crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG] Agent Final Answer includes Agent `Thought` and `Action`

Open ninad-opsverse opened this issue 1 month ago • 4 comments

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

Image

Operating System

macOS Sonoma

Python Version

3.12

crewAI Version

0.165.0

crewAI Tools Version

0.62.3

Virtual Environment

Venv

Evidence

Image

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.

Image

ninad-opsverse avatar Nov 10 '25 11:11 ninad-opsverse

Hi @ninad-opsverse , can you bump to latest? You're on an old version.

greysonlalonde avatar Nov 10 '25 14:11 greysonlalonde

Hi @greysonlalonde , Same issue here, even with 1.4.1 version,

OmixMinana avatar Nov 12 '25 11:11 OmixMinana

Thanks for confirming @OmixMinana on this. I was able to verify that the issue persisted till v0.193.2. But was having trouble bumping the crewai version further due to dependency conflicts in my project's env

ninad-opsverse avatar Nov 13 '25 11:11 ninad-opsverse

It feels like the agent response is "None". Mind sharing entire trace to understand more.

Vidit-Ostwal avatar Nov 13 '25 13:11 Vidit-Ostwal

Is there any update for this issue? Thanks

OmixMinana avatar Nov 26 '25 10:11 OmixMinana