Discussion: Should Message events terminate the event stream? #248
Unanswered
questflow-kyle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Message Events Should Not Terminate Event Streams
Current Behavior
The event stream terminates when receiving any Message event, effectively limiting agents to sending a single message per task execution.
Use Cases We Need
Many real-world scenarios require streaming multiple messages and artifacts:
Examples:
Why This Design is Problematic
firstChunk
/lastChunk
, but Messages don'tProposal
1. Add Streaming Support to Messages
Similar to Artifacts, add
firstChunk
andlastChunk
fields to Message:2. Change Termination Logic
Only terminate the stream when:
TaskStatusUpdateEvent.final = true
is receivedlastChunk = true
is received3. Why Now is the Right Time
The A2A protocol currently has a very small audience and is still in early stages. Making this breaking change now will:
Questions for Discussion
firstChunk
/lastChunk
to Messages align with the protocol's vision?Beta Was this translation helpful? Give feedback.
All reactions