You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ApigeeLlm (Chat Completions): text sent alongside a function_response is silently dropped聽#7475
Describe the Bug:
In the OpenAI-compatible (Chat Completions) path of ApigeeLlm, CompletionsHTTPClient._content_to_messages drops every non-tool part of a Content that also contains a function_response. Text parts are collected into content_parts, but the if function_responses: branch returns the tool messages (plus any tool-attached media) without ever using content_parts, so the text never reaches the model.
LiteLlm had the same issue and now sends the remaining parts as a follow-up message after the tool messages (lite_llm.py, _content_to_message_param).
Steps to Reproduce:
pip install google-adk==2.11.0
Run the snippet below.
Expected Behavior:
The tool message, followed by a user message carrying the text:
Proposed fix: In the function_responses branch, append the remaining content_parts to the follow-up user message (alongside any tool-attached media), collapsing to a plain string when it is a single text part, as the non-tool branch already does. I have a PR ready with unit tests.
Activity
fix(models): keep text sent alongside a function response in ApigeeLlm
fix: keep text sent alongside a function response in ApigeeLlm