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
Hi, I'm someone who is not very familiar with Python and streaming, so I’d like to ask a basic question.
Currently, I’m using ADK to build an agent, and I'm integrating A2A into my ADK setup.
I’m a bit confused about whether the sample message/stream example actually uses streaming. From what I observe, it seems to wait until the entire response is complete before returning anything.
Do I have to explicitly configure streaming_mode for it to actually stream? For example, I saw this:
classA2ARunConfig(RunConfig):
"""Custom override of ADK RunConfig to smuggle extra data through the event loop."""model_config=ConfigDict(
arbitrary_types_allowed=True,
)
current_task_updater: TaskUpdaterstreaming_mode: StreamingMode.SSE# 👉 Does this line enable streaming with A2A? Why is it missing in the example?
Does this line enable streaming with A2A? Why is it missing in the example?
Since my knowledge is limited, I’m not sure when or why I should use this. Any clarification or simple explanation would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm someone who is not very familiar with Python and streaming, so I’d like to ask a basic question.
Currently, I’m using ADK to build an agent, and I'm integrating A2A into my ADK setup.
I’m a bit confused about whether the sample
message/stream
example actually uses streaming. From what I observe, it seems to wait until the entire response is complete before returning anything.Do I have to explicitly configure
streaming_mode
for it to actually stream? For example, I saw this:Does this line enable streaming with A2A? Why is it missing in the example?
Since my knowledge is limited, I’m not sure when or why I should use this. Any clarification or simple explanation would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions