forked from Archives/langchain
cr
This commit is contained in:
parent
3086b752a3
commit
6953c2e707
@ -294,6 +294,8 @@ class AgentExecutor(Chain, BaseModel):
|
|||||||
output = self.agent.return_stopped_response(
|
output = self.agent.return_stopped_response(
|
||||||
self.early_stopping_method, intermediate_steps, **inputs
|
self.early_stopping_method, intermediate_steps, **inputs
|
||||||
)
|
)
|
||||||
|
if self.verbose:
|
||||||
|
self.callback_manager.on_agent_end(output, color="green")
|
||||||
final_output = output.return_values
|
final_output = output.return_values
|
||||||
if self.return_intermediate_steps:
|
if self.return_intermediate_steps:
|
||||||
final_output["intermediate_steps"] = intermediate_steps
|
final_output["intermediate_steps"] = intermediate_steps
|
||||||
|
Loading…
Reference in New Issue
Block a user