Skip to content

Simplify agent message and streaming management #91

@tomkis

Description

@tomkis

Is your feature request related to a problem? Please describe.
Streaming tokens via adk-sdk currently yields individual messages per token, causing:

  • A2A clients must implement custom token concatenation logic
  • Task store gets polluted with excessive per-token messages, problematic for persistent/SQL backends
  • Disconnect between streamed content and conversation history causes stale UI on refresh

Describe the solution you'd like
Introduce a context manager API for message construction that handles history storage automatically and streams tokens via TaskStatusUpdate metadata rather than individual messages.

Additional context
Migrated from i-am-bee/agentstack#2065

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions