-
Notifications
You must be signed in to change notification settings - Fork 474
feat(a2a): add A2AAgent class as an implementation of the agent interface for remote A2A protocol based agents #1174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…face for remote A2A protocol based agents
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…d function + reduce use of Any type
| """ | ||
| return run_async(lambda: self.invoke_async(prompt, **kwargs)) | ||
|
|
||
| async def stream_async( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stream async needs to return AgentResult for it to work with graph/swarm https://github.com/strands-agents/sdk-python/blob/main/src/strands/multiagent/graph.py#L810
Description
Adds an A2AAgent class that makes it simple to consume remote A2A agents and invoke them like any other Strands Agents.
Implements the Protocol in #1126.
Example usage:
Output:
Standalone invocation of A2AAgent objects also works:
Follow-ups:
Related Issues
#907
Documentation PR
TODO
Type of Change
New feature
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.