-
Notifications
You must be signed in to change notification settings - Fork 192
Support hierarchical reasoning and manager agents #167
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| { | ||
| "name": "reasoning", | ||
| "description": "Implement test time compute using an agentic framework to emulate o1 with Claude.", | ||
| "template_version": 3, | ||
| "framework": "crewai", | ||
| "agents": [{ | ||
| "name": "manager", | ||
| "role": "Manager", | ||
| "goal": "Delegate requests to multiple sub-agents to find the best solution to the user's request using the best resources available. Break up the user's request into very small tasks and delegate them to the right agents. <user_input>{query}</user_input>", | ||
| "backstory": "You are responsible for delegating tasks to the right AI agents and ensuring that the team works together to achieve the best results.", | ||
| "allow_delegation": true, | ||
| "model": "anthropic/claude-3-5-sonnet-20240620" | ||
| }, { | ||
| "name": "triage", | ||
| "role": "Triage", | ||
| "goal": "You are responsible for interpreting the request and exploring possible ways of solving the problem. Delegate the actual problem solving to one of your workers. <original_user_input>{query}</original_user_input>", | ||
| "backstory": "You are responsible for interpreting the user's request and deciding which agent is best suited to solve the problem. You are the first point of contact for the system.", | ||
| "model": "anthropic/claude-3-5-sonnet-20240620" | ||
| }, { | ||
| "name": "worker", | ||
| "role": "Worker", | ||
| "goal": "You are responsible for solving the problem that the triage agent has delegated to you. You should use your knowledge and skills to find the best solution to the user's request.", | ||
| "backstory": "You are responsible for solving the problem that the triage agent has delegated to you. You are an expert in your field and you should use your knowledge and skills to find the best solution to the user's request.", | ||
| "model": "anthropic/claude-3-5-sonnet-20240620" | ||
| }, { | ||
| "name": "fact_checker", | ||
| "role": "Fact Checker", | ||
| "goal": "You are responsible for checking the solution that the worker agent has come up with. You should make sure that the solution is correct and that it meets the user's requirements. Evaluate the response in regards to the user's original question, and provide a concise answer that is factually correct. Now is a great time to omit any questionable statements and inconclusive data. <user_original_input>{query}</user_original_input>", | ||
| "backstory": "You are responsible for checking the solution that the worker agent has come up with. You should make sure that the solution is correct and that it meets the user's requirements. You are the last line of defense before the solution is presented to the user.", | ||
| "model": "anthropic/claude-3-5-sonnet-20240620" | ||
| }], | ||
| "tasks": [{ | ||
| "name": "identify_plan_of_action", | ||
| "description": "Identify the problem being presented and come up with steps to solve it. Restate the problem in your own words, and identify 3 to 12 steps you can take to explore possible solutions. Do not actually present solutions to the problem yourself, but pass it to a new agent to do so.", | ||
| "expected_output": "A detailed description of the problem being presented and a list of possible steps that can be taken to explore possible solutions.", | ||
| "agent": "triage" | ||
| }, { | ||
| "name": "find_solution", | ||
| "description": "Identify the problem being presented to you and come up with the best solution you can think of. After you have come up with a solution, pass it to a new agent to check it.", | ||
| "expected_output": "A concise, complete solution to the problem being presented.", | ||
| "agent": "worker" | ||
| }, { | ||
| "name": "check_solution", | ||
| "description": "Review the problem and solution being presented and determine wether you think it is correct or not.", | ||
| "expected_output": "Reiterate the solution to be factually correct.", | ||
| "agent": "fact_checker" | ||
| }], | ||
| "tools": [], | ||
| "method": "hierarchical", | ||
| "manager_agent": "manager", | ||
| "inputs": { | ||
| "query": "What is the meaning of life, the universe, and everything?" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.