This commit is contained in:
Harrison Chase 2023-01-03 12:32:20 -08:00
parent 3086b752a3
commit 6953c2e707

View File

@ -294,6 +294,8 @@ class AgentExecutor(Chain, BaseModel):
output = self.agent.return_stopped_response(
self.early_stopping_method, intermediate_steps, **inputs
)
if self.verbose:
self.callback_manager.on_agent_end(output, color="green")
final_output = output.return_values
if self.return_intermediate_steps:
final_output["intermediate_steps"] = intermediate_steps