()
| 227 | } |
| 228 | |
| 229 | async _stop(): Promise<Record<string, unknown>> { |
| 230 | const output = await this.agentExecutor.agent.returnStoppedResponse( |
| 231 | this.agentExecutor.earlyStoppingMethod, |
| 232 | this.intermediateSteps, |
| 233 | this.inputs |
| 234 | ) |
| 235 | const returnedOutput = await this.agentExecutor._return(output, this.intermediateSteps, this.runManager) |
| 236 | await this.setFinalOutputs(returnedOutput) |
| 237 | return returnedOutput |
| 238 | } |
| 239 | |
| 240 | async _callNext(): Promise<Record<string, unknown>> { |
| 241 | // final output already reached: stopiteration (final output) |
no test coverage detected