-
Notifications
You must be signed in to change notification settings - Fork 493
Solves issue with SwarmResult.agent AfterWorkOption -> str #1155
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
Conversation
The previous constructor of SwarmResult converts AfterWorkOptions to a string. This causes exceptions when a function sets an AfterWorkOption as the next agent.
|
Thanks for the fix @ghoto! Looks good, if you can sign the CLA we'll get it merged! |
|
Just a note that we found a bug when processing the SwarmResult from the tool call, it was ignoring the AfterWorkOption. This fix has been put in this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
The previous constructor of SwarmResult converts AfterWorkOptions to a string. This causes exceptions when a function sets an AfterWorkOption as the next agent.
Why are these changes needed?
The current constructor of SwarmResults converts AfterworkOption to
str. This causes exceptions when trying to select the next agent, because the str is compared against the list of all agents, but the agent doesn't exist.Related issue number
Checks