Skip to content

Conversation

minorun365
Copy link
Contributor

Description

Pin the a2a-sdk dependency to a safe range so that pip install strands-agents[a2a]
never resolves an older, incompatible version that triggers the runtime error reported
in #572.
Changes:

  • pyproject.toml
    • [project.dependencies]a2a-sdk = ">=0.2.16"
    • [project.optional-dependencies]["a2a"] – same range

No source‐code changes; only dependency pinning and lockfile update.

Related Issues

Fixes #572

Documentation PR

N/A — install command in README remains the same (pip install 'strands-agents[a2a]').
If maintainers prefer explicit version hints, I’m happy to open a follow-up docs PR.

Type of Change

  • Bug fix

Testing

Verified in a fresh virtualenv:

  1. pip install -e ".[dev]"
  2. hatch run prepare (all checks pass)
  3. A script below now starts without the exception seen in [BUG] A2A Doesn't Work on 1.2.0 #572.
import logging
from strands_tools.calculator import calculator
from strands import Agent
from strands.multiagent.a2a import A2AServer

logging.basicConfig(level=logging.INFO)

# Create a Strands agent
strands_agent = Agent(
    name="Calculator Agent",
    description="A calculator agent that can perform basic arithmetic operations.",
    tools=[calculator],
    callback_handler=None
)

# Create A2A server (streaming enabled by default)
a2a_server = A2AServer(agent=strands_agent)

# Start the server
a2a_server.serve()

Also confirmed that downstream repos (agents-docs, agents-tools, agents-cli) run their
unit tests cleanly against this branch.

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly, or no new docs are needed
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jer96 jer96 had a problem deploying to manual-approval July 31, 2025 14:19 — with GitHub Actions Failure
jer96
jer96 previously approved these changes Jul 31, 2025
@jer96 jer96 temporarily deployed to manual-approval July 31, 2025 14:21 — with GitHub Actions Inactive
@jer96 jer96 enabled auto-merge (squash) July 31, 2025 14:31
@jer96 jer96 merged commit 3d526f2 into strands-agents:main Jul 31, 2025
12 checks passed
@minorun365 minorun365 deleted the patch-1 branch July 31, 2025 14:48
dbschmigelski pushed a commit to dbavro19/sdk-python that referenced this pull request Aug 28, 2025
This was referenced Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] A2A Doesn't Work on 1.2.0
3 participants