Error parsing LLM output, agent will retry: I did it wrong. Tried to both perform Action and give a Final Answer at the same time, I must do one or the other

@albert_pinto There can be two reasons:

  • Such errors can happen because of the LLM you’re using. Unfortunately, smaller LLMs sometimes struggle to work with CrewAI (source). Try to switch the LLM to a more capable one.
  • Such errors can happen because the task prompt is too long or strong, which changes some internal CrewAI keywords like action, thought, etc (source). Try to adjust the task prompt.