(
output: AgentFinish,
intermediateSteps: AgentStep[],
runManager?: CallbackManagerForChainRun
)
| 665 | } |
| 666 | |
| 667 | async _return( |
| 668 | output: AgentFinish, |
| 669 | intermediateSteps: AgentStep[], |
| 670 | runManager?: CallbackManagerForChainRun |
| 671 | ): Promise<AgentExecutorOutput> { |
| 672 | if (runManager) { |
| 673 | await runManager.handleAgentEnd(output) |
| 674 | } |
| 675 | const finalOutput: Record<string, unknown> = output.returnValues |
| 676 | if (this.returnIntermediateSteps) { |
| 677 | finalOutput.intermediateSteps = intermediateSteps |
| 678 | } |
| 679 | return finalOutput |
| 680 | } |
| 681 | |
| 682 | async _getToolReturn(nextStepOutput: AgentStep): Promise<AgentFinish | null> { |
| 683 | const { action, observation } = nextStepOutput |
no outgoing calls
no test coverage detected