8000 feat: add ConditionalAgent for routing between two sub-agents by LaamiriOuail · Pull Request #1572 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content

feat: add ConditionalAgent for routing between two sub-agents #1572

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LaamiriOuail
Copy link
  • Implement ConditionalAgent class to route execution between exactly two sub-agents based on a boolean predicate.
  • Add support for both synchronous and asynchronous predicates.
  • Integrate with async and live run modes in the agent framework.
  • Include comprehensive unit tests for async, live, synchronous, and asynchronous predicate scenarios.
  • Provide a sample agent demonstrating practical usage with intent-based routing for dice rolling and prime number checking.

- Implement ConditionalAgent class to route execution between exactly two sub-agents based on a boolean predicate.
- Add support for both synchronous and asynchronous predicates.
- Integrate with async and live run modes in the agent framework.
- Include comprehensive unit tests for async, live, synchronous, and asynchronous predicate scenarios.
- Provide a sample agent demonstrating practical usage with intent-based routing for dice rolling and prime number checking.
Copy link
google-cla bot commented Jun 22, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

LaamiriOuail added a commit to LaamiriOuail/adk-docs that referenced this pull request Jun 22, 2025
- Update index.md to include ConditionalAgent in the list of workflow agents.
- These changes are based on the acceptance of the following feature added to the Agent Development Kit: [feat: add ConditionalAgent for routing between two sub-agents (#1572)](google/adk-python#1572)
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.

1 participant
0