Tool execution error: list.remove(x): x not in list

Hi team,

I have built a crew that does the following:

  1. Generate and Execute Big Query queries on GCP (Retrieval Agent)
  2. Product insights based on the results of the query (Analyst Agent)
  3. Aggregates the findings (Aggregator Agent)

When I try to chat with same by running crewai chat

I get the error shared below

ERROR:root:Error executing function ‘CisInsights’: list.remove(x): x not in list

:white_check_mark: Crew: crew
├── :clipboard: Task: 3
│ Assigned to: Data Retrieval Agent
│ Status: :white_check_mark: Completed
│ └── :robot: Agent: Data Retrieval Agent
│ Status: :white_check_mark: Completed
│ └── :wrench: Used Big Query Execution (1)
├── :clipboard: Task:
│ Assigned to: Data Analysis Agent
│ Status: :white_check_mark: Completed
│ └── :robot: Agent: Data Analysis Agent
│ Status: :white_check_mark: Completed
└── :clipboard: Task:
Assigned to: Report Aggregation Agent
Status: :white_check_mark: Completed
└── :robot: Agent: Report Aggregation Agent
Status: :white_check_mark: Completed

╭───────────────────────────────────────────────────── LLM Error ──────────────────────────────────────────────────────╮
│ │
:cross_mark: LLM Call Failed │
│ Error: Tool execution error: list.remove(x): x not in list

Any thoughts on how to fix this error?

Thanks in advance

1 Like

the same error:
ERROR:root:LiteLLM call failed: list.remove(x): x not in list

I think you’ll stand a better chance of getting support if you provide more context, preferably with the code for the tool you’re using (since the error clearly relates to executing a tool), or minimal code that allows reproducing the same error.

It’s v0.108.0 that’s broken and I have already logged an issue [BUG] crewai chat is broken · Issue #2446 · crewAIInc/crewAI · GitHub

They said a fix is coming in the next release, not sure when that is.