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 satisfy the expect criteria, use the EXACT format below:
Thought: I now can give a great answer
Final Answer: my best complete final answer to the task.
Such an error can happen because of the LLM you’re using (source). Unfortunately, smaller LLMs sometimes struggle to work with CrewAI. Try to switch the LLM to a more capable one.
Such an error can happen because the task configuration is too long or strong (source), which changes some internal CrewAI keywords like action, thought, etc. Try to rephrase the task configuration.
I have the same issue but when I run the agent in my local PC I do not get any thing like that but when deployed in AWS, I get the same issue. I don’t think it’s the issue with my prompt. Any suggestions?