Skip to content

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

@lixiaoqiang

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

a2aIssue relates to A2AbugSomething isn't workingpython

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions