-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Legacy A2A executor finalizes metadata-only responses as status=working instead of completed #5188
Copy link
Copy link
Open
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation
Description
Bug Description
The legacy A2aAgentExecutor in a2a_agent_executor.py has several finalization issues:
-
Wrong terminal status: When the final ADK event has no content parts (metadata-only or action-only), finalization produces
final=Truewithstatus=workinginstead ofcompleted, leaving clients with a "still processing" Task that never updates. -
Truncated streaming text: Delta-style text streaming only retains the last chunk; earlier partial text is discarded in the synthesized final artifact.
-
Missing artifact metadata: The synthesized final
TaskArtifactUpdateEventdoes not carry response metadata, soTask.artifacts[*].metadatais empty.
Expected Behavior
- Finalization without failure/interaction should produce
status=completed - Streamed text chunks should be accumulated for the final artifact
- Final artifact events should propagate response metadata
Affected Files
src/google/adk/a2a/executor/a2a_agent_executor.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation