string literal returns

This commit is contained in:
lorenzejay
2025-12-27 12:13:54 -08:00
parent 3dfe63f556
commit b95f97fcaa

View File

@@ -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()