Context
.NET PR #5423 sets SendMessageConfiguration.ReturnImmediately = true when the caller opts into background responses (A2AAgent.cs#L117).
Current Python state
python/packages/a2a/agent_framework_a2a/_agent.py ~L296 sends without any MessageSendConfiguration. The background=True flag is honored only client-side inside _map_a2a_stream, so the server is never told to return immediately.
Proposed change
- When
background=True, set SendMessageConfiguration(blocking=False) on the outgoing SendMessageRequest.
- Stop using streaming (
send_message SSE) for non-streaming operations.
Context
.NET PR #5423 sets
SendMessageConfiguration.ReturnImmediately = truewhen the caller opts into background responses (A2AAgent.cs#L117).Current Python state
python/packages/a2a/agent_framework_a2a/_agent.py~L296 sends without anyMessageSendConfiguration. Thebackground=Trueflag is honored only client-side inside_map_a2a_stream, so the server is never told to return immediately.Proposed change
background=True, setSendMessageConfiguration(blocking=False)on the outgoingSendMessageRequest.send_messageSSE) for non-streaming operations.