Skip to content
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

feat: Add ConditionalToolRules #2279

Merged

Conversation

mlong93
Copy link
Collaborator

@mlong93 mlong93 commented Dec 18, 2024

Description

  • update ToolRuleSolver with ConditionalToolRule type
  • updated tests for conditional rules

* update ToolRuleSolver to
    * check for Init->Terminal paths
    * remove cycle detection
* updated tests for conditional rules, valid paths
* added state to track last function result in agent
* added logic in ToolRuleSolver to choose correct next tool
* Integrated test cases for conditional tools in agent
* removed 'children' field
* allowed default_child to be None
* updated tests
@sarahwooders sarahwooders merged commit 8cc6870 into main Dec 19, 2024
39 of 40 checks passed
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.

2 participants