Skip to content

Conversation

@awsarron
Copy link
Member

@awsarron awsarron commented Nov 1, 2025

Description

Adds an AgentBase Protocol that defines a minimal interface for agent classes.

This is in part to support #907 where we will introduce an A2AAgent class alongside the current Agent class. Both Agent and A2AAgent need the same functions and signatures for our multiagent classes like Graph to consume - AgentBase is that consistent interface.

The purpose of the AgentBase interface is to define the signatures for methods that are used in higher level primitives, like multiagent orchestrators (e.g. Graph).

Related Issues

#573

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

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • [N/A] I have added any necessary tests that prove my fix is effective or my feature works
  • [TODO] I have updated the documentation accordingly
  • [TODO] 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.

@codecov
Copy link

codecov bot commented Nov 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

dbschmigelski
dbschmigelski previously approved these changes Nov 3, 2025
Copy link
Member

@dbschmigelski dbschmigelski left a comment

Choose a reason for hiding this comment

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

🥳

Just calling out here if anyone looks back

  • structured_output() is deprecated so it wasn't added
  • Direct tool calling also was not added

mkmeral
mkmeral previously approved these changes Nov 3, 2025
@mkmeral
Copy link
Contributor

mkmeral commented Nov 3, 2025

nit: How would this relate to MultiAgentBase? I personally want to get rid of it, but given that AgentBase is more extensive than MultiAgentBase, it might not be possible, right?

@awsarron awsarron force-pushed the feat-agent-interface branch from f5490c1 to bf2dbe4 Compare November 13, 2025 02:58
@github-actions github-actions bot added size/s and removed size/m labels Nov 13, 2025
@awsarron awsarron changed the title feat(agent-interface): introduce AgentBase abstract class as the interface for agent classes to implement feat(agent-interface): introduce AgentBase Protocol as the interface for agent classes to implement Nov 13, 2025
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.

4 participants