-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Description
The Agent Final Answer responds back with Agent Thought and Action instead of a proper response.
Context:
We use a heirarchial crew wherein a single manager agent delegates tasks to agents like Postgres Agent, MySQL Agent etc. If the task delegated to an Agent comes back with a failure message, then the Manager Agent often replies back with the thought and action fields instead of processing the delegated task response and formatting it properly in the final response.
Steps to Reproduce
Create a heirarchial crew where manager agent has 2-3 agents to delegate to (say postgres, mysql, etc). Give a query that the agent will possibly fail to execute and work on.
Check additional Context to see my crew setup.
Expected behavior
The agent should not respond back with the Thought and Action fields that seems to be internal to crewAI and not really required as part of the Agent Final Response.
Screenshots/Code snippets
Task provided for the crew was:
Fetch list of tables from postgres db
Operating System
macOS Sonoma
Python Version
3.12
crewAI Version
0.165.0
crewAI Tools Version
0.62.3
Virtual Environment
Venv
Evidence
Possible Solution
None
Additional context
I have designed a heirarchial crew with a manager agent having access to agents like Postgres Expert, MySQL Expert, etc. The
User task in this case was - Fetch list of tables from postgres db.
