Merge branch 'main' into update-llm-docs

This commit is contained in:
Tony Kipkemboi
2025-03-20 12:50:06 -07:00
committed by GitHub

View File

@@ -124,9 +124,9 @@ class CrewAgentParser:
) )
def _extract_thought(self, text: str) -> str: def _extract_thought(self, text: str) -> str:
thought_index = text.find("\n\nAction") thought_index = text.find("\nAction")
if thought_index == -1: if thought_index == -1:
thought_index = text.find("\n\nFinal Answer") thought_index = text.find("\nFinal Answer")
if thought_index == -1: if thought_index == -1:
return "" return ""
thought = text[:thought_index].strip() thought = text[:thought_index].strip()