mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Merge branch 'main' into update-llm-docs
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user