Skip to content

Python: preserve A2A status message ids#5967

Open
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/a2a-message-id-status-events
Open

Python: preserve A2A status message ids#5967
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/a2a-message-id-status-events

Conversation

@he-yufeng
Copy link
Copy Markdown
Contributor

Summary

  • Preserve A2A status message IDs when converting status messages into AgentResponseUpdate.
  • Cover both in-progress task snapshots and TaskStatusUpdateEvent streaming updates.

Fixes #5949.

Validation

  • python -m pytest packages\a2a\tests\test_a2a_agent.py::test_terminal_no_artifacts_after_working_with_content packages\a2a\tests\test_a2a_agent.py::test_streaming_status_update_event_yields_content -q -p no:cacheprovider
  • python -m pytest packages\a2a\tests\test_a2a_agent.py -q -p no:cacheprovider
  • python -m ruff check python\packages\a2a\agent_framework_a2a\_agent.py python\packages\a2a\tests\test_a2a_agent.py
  • python -m py_compile python\packages\a2a\agent_framework_a2a\_agent.py python\packages\a2a\tests\test_a2a_agent.py
  • python -m mypy --config-file pyproject.toml agent_framework_a2a
  • python -m pyright --pythonpath .\.venv\Scripts\python.exe packages\a2a\agent_framework_a2a

Copilot AI review requested due to automatic review settings May 20, 2026 06:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Bug]: [A2A] Correctly Handle task_id and message_id Returned by A2A

3 participants