Replies: 1 comment 7 replies
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: This is excellent analysis, and you're likely correct that the issue is specific to the bidirectional streaming implementation. The problem seems to be that after the tool executes, its output is not being correctly passed back to the model to complete the reasoning loop, which differs from the behavior in SSE mode. A secondary point to verify is that you are using a model version explicitly compatible with the Live API. Hi @Robbilie, thank you for the very detailed and helpful report! Your observation that
This behavior is certainly not intended, and your detailed breakdown provides a strong basis for investigating it as a potential bug in the [1] publicly accessible HTTPS URL of the document |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ive been experimenting with adk web and mcp servers (https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/servers/everything-server/README.md)
using adk with a text based model (gemini-2.5-flash) which in turn uses the run_sse endpoint of adk web the tool works as intended (i assume :D), at least i can get the model to access the static text resource.
when i run adk web with bidi streaming the tool does not work properly. i see a function response with the resource name but there it gets stuck. the tool has to be called twice to load the file into context and for the sse based approach the process_llm_request method is called multiple times, for the bidi streaming approach it is not and thus the context is not enriched with the content.
https://github.com/google/adk-python/blob/main/src/google/adk/tools/load_mcp_resource_tool.py#L96
any ideas why that would happen? probably affects other tools aswell, not sure if this is a adk web / adk api server issue or a bidi one.
cc @wukath thanks for your work, maybe you got some insights?
Beta Was this translation helpful? Give feedback.
All reactions