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

new multi agent flow with terminate agent #1846

Closed
wants to merge 2 commits into from

Conversation

fatihozturkh2o
Copy link
Contributor

@fatihozturkh2o fatihozturkh2o commented Sep 16, 2024

image

  • Better for prompts where user is only asking for the code but not for the execution.
    • Now GroupManager decides whether code execution is needed or not based on # execution: VALUE tag coming from code generator agent.
  • Now Group manager has capability of terminating the chat as soon as user request is met. It's done by selecting the next agent as 'terminate_agent'.
    • This termination process can be extended to detecting repetitive errors in the agents' conversation. If Group manager decides that there has been repetitive/unsolvable errors in the chat history, it can decide to terminate the chat.

Based on current h2ogpte agents pytest, it shows similar results to the other agent types. The most distinctive success comes with the question "Write a code to show an image in matplotlib. Do not execute any code." Because this new flow is the only flow that does not even call 'code_execution_agent'.

  • testing

@fatihozturkh2o fatihozturkh2o self-assigned this Sep 16, 2024
Copy link

@RahulVadisetty91 RahulVadisetty91 left a comment

Choose a reason for hiding this comment

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

re454

Ensure that executor is properly defined and compatible with the expected configuration. Verify that the configuration for code_execution_config aligns with the new or updated requirements for code execution.

@pseudotensor
Copy link
Collaborator

pseudotensor commented Sep 16, 2024

Write a code to show an image in matplotlib. Do not execute any code. works normally for the 2 agent case. It does not execute the code.

@fatihozturkh2o
Copy link
Contributor Author

Write a code to show an image in matplotlib. Do not execute any code. works normally for the 2 agent case. It does not execute the code.

Yeah, but, with 2agent, the code execution agent is called anyways like in this example: (even code generation is called once more though it's not needed)

2agent

Screen.Recording.2024-09-17.at.12.48.56.AM.mov

I'm aiming not even calling code_executor agent with the new flow (because # execution: false information is out there anyway, thought the manager could make use of it during agent selection)

PR multiagent

Screen.Recording.2024-09-17.at.12.54.53.AM.mov

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.

3 participants