mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
cleaned text to squash
This commit is contained in:
@@ -99,7 +99,7 @@ class CrewAgentParser:
|
|||||||
# If count is odd then it's an unmatched trailing set; remove it.
|
# If count is odd then it's an unmatched trailing set; remove it.
|
||||||
if count % 2 != 0:
|
if count % 2 != 0:
|
||||||
final_answer = final_answer[:-3].rstrip()
|
final_answer = final_answer[:-3].rstrip()
|
||||||
return AgentFinish(thought, final_answer, text)
|
return AgentFinish(thought, final_answer, cleaned_text)
|
||||||
|
|
||||||
elif action_match:
|
elif action_match:
|
||||||
return self._create_agent_action(thought, action_match, cleaned_text)
|
return self._create_agent_action(thought, action_match, cleaned_text)
|
||||||
|
|||||||
Reference in New Issue
Block a user