Merge pull request #2179 from Molecule-AI/fix/agent-capabilities-state-transition-history

fix: drop state_transition_history (removed in a2a-sdk 1.x)
This commit is contained in:
Hongming Wang 2026-04-27 14:22:09 +00:00 committed by GitHub
commit 11e149f05c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,7 +188,12 @@ async def main(): # pragma: no cover
capabilities=AgentCapabilities(
streaming=config.a2a.streaming,
push_notifications=config.a2a.push_notifications,
state_transition_history=True,
# Note: state_transition_history (a 0.x capability flag) was
# removed in a2a-sdk 1.0. Per the SDK's own
# a2a/compat/v0_3/conversions.py: "No longer supported in
# v1.0". The capability is now universal — Task.history is
# always available and tasks/get accepts historyLength via
# apply_history_length(). Don't add this kwarg back.
),
skills=[
AgentSkill(