-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] Training fails due to 'Manager agent should not have tools' #2131
Comments
- Add model validation to prevent tool assignment to manager agent - Improve error handling in _create_manager_agent - Add test to verify manager agent tools validation Co-Authored-By: Joe Moura <[email protected]>
Can you share the entire code once. |
Here the entire crew.py: ` logger = logging.getLogger(name) @crewbase
` |
Maybe of interest, it is repeatedly asking for a tool even though I did not specify: `Processing training feedback. Error parsing LLM output, agent will retry: I did it wrong. Invalid Format: I missed the 'Action:' after 'Thought:'. I will do right next, and don't use a tool I have already used. If you don't need to use any more tools, you must give your best complete final answer, make sure it satisfies the expected criteria, use the EXACT format below: Thought: I now can give a great answer |
Description
The crew is running, doing its job and almost finished, final stage with last agent I get the following error message:
'
[2025-02-14 20:49:46][WARNING]: Manager agent should not have tools
[2025-02-14 20:49:46][ERROR]: Training failed: Manager agent should not have tools
Traceback (most recent call last):
...
'
Steps to Reproduce
Expected behavior
Finalizing task
Screenshots/Code snippets
All agents are defined like this:
@agent def jury(self) -> Agent: return Agent( config=self.agents_config['jury'], verbose=True, allow_delegation=True, temperature=0.7, memory=True, respect_context_window=True, )
The crew is
` @crew
def crew(self) -> Crew:
"""Creates the Mycrew crew"""
`
Operating System
Ubuntu 24.04
Python Version
3.12
crewAI Version
0.102.0
crewAI Tools Version
latest
Virtual Environment
Venv
Evidence
`[2025-02-14 20:49:46][WARNING]: Manager agent should not have tools
[2025-02-14 20:49:46][ERROR]: Training failed: Manager agent should not have tools
Traceback (most recent call last):`
Possible Solution
None
Additional context
No available documentation
The text was updated successfully, but these errors were encountered: