Skip to content

Python: [Bug]: Unreasonable extraction of context_id from request messages in A2AAgent #5353

Description

@lixiaoqiang

Description

The current implementation of A2AAgent handles the context_id of messages sent to A2AServer in an unreasonable way.
At present, it extracts the context_id from additional_properties.
The proper approach should be to use AgentSession.service_session_id as the context_id.
This aligns with the intended purpose of service_session_id and ensures session consistency across the entire system.

Code Sample

Error Messages / Stack Traces

Package Versions

agent-framework: 1.0.1

Python Version

Python 3.13

Additional Context

No response

Metadata

Metadata

Assignees

Labels

a2aUsage: [Issues, PRs], Target: A2AbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)pythonUsage: [Issues, PRs], Target: Python

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions