diff --git a/lib/crewai/src/crewai/llm.py b/lib/crewai/src/crewai/llm.py index db126954e..cbef0d6de 100644 --- a/lib/crewai/src/crewai/llm.py +++ b/lib/crewai/src/crewai/llm.py @@ -1121,7 +1121,7 @@ def _handle_non_streaming_response( call_type=LLMCallType.LLM_CALL, from_task=from_task, from_agent=from_agent, - messages=params["messages"], + messages=messages, usage=None, ) return structured_response @@ -1277,7 +1277,7 @@ async def _ahandle_non_streaming_response( call_type=LLMCallType.LLM_CALL, from_task=from_task, from_agent=from_agent, - messages=params["messages"], + messages=messages, usage=None, ) return structured_response