mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
When converting `types.Content` with a `function_response` to LiteLLM's `ChatCompletionToolMessage`, if the response is already a string, use it directly. Otherwise, serialize the response to JSON. This prevents double-serialization of string payloads Close #3676 Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 840013822