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

[Bug]: Functions registered in a swarm may not be returning the correct SwarmResult #1157

Open
marklysze opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@marklysze
Copy link
Collaborator

Describe the bug

We need to investigate if functions that return SwarmResults in a swarm have the SwarmResult handled correctly. There may be an issue with serialisation of things like AfterWorkOption's that treats them as an agent name instead of the AfterWorkOption object.

We need to check that there's consistency with SwarmResult processing in swarm's _determine_next_speaker function when:

  • A function is registered with an agent via the register_function method
  • A function is registered with an agent via the register_for_llm decorator
  • A function is registered with an agent via the functions argument on creation

Steps to reproduce

No response

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

@marklysze marklysze added the bug Something isn't working label Feb 26, 2025
@marklysze marklysze self-assigned this Feb 26, 2025
@marklysze marklysze added this to ag2 Feb 26, 2025
@marklysze marklysze moved this to Todo in ag2 Feb 26, 2025
@marklysze marklysze changed the title [Bug]: Functions register in a swarm may not be returning the correct SwarmResult [Bug]: Functions registered in a swarm may not be returning the correct SwarmResult Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant