mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
string literal returns
This commit is contained in:
@@ -267,6 +267,7 @@ class CrewAgentExecutorFlow(Flow[AgentReActState], CrewAgentExecutorMixin):
|
|||||||
response_model=self.response_model,
|
response_model=self.response_model,
|
||||||
executor_context=self,
|
executor_context=self,
|
||||||
)
|
)
|
||||||
|
print(f"lorenze answer: {answer}")
|
||||||
|
|
||||||
# Parse the LLM response
|
# Parse the LLM response
|
||||||
formatted_answer = process_llm_response(answer, self.use_stop_words)
|
formatted_answer = process_llm_response(answer, self.use_stop_words)
|
||||||
@@ -386,7 +387,7 @@ class CrewAgentExecutorFlow(Flow[AgentReActState], CrewAgentExecutorMixin):
|
|||||||
return "initialized"
|
return "initialized"
|
||||||
|
|
||||||
@listen(or_("agent_finished", "tool_result_is_final"))
|
@listen(or_("agent_finished", "tool_result_is_final"))
|
||||||
def finalize(self) -> str:
|
def finalize(self) -> Literal["completed", "skipped"]:
|
||||||
"""Finalize execution and emit completion logs."""
|
"""Finalize execution and emit completion logs."""
|
||||||
if self.state.current_answer is None:
|
if self.state.current_answer is None:
|
||||||
skip_text = Text()
|
skip_text = Text()
|
||||||
|
|||||||
Reference in New Issue
Block a user