MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / _stop

Method _stop

packages/components/src/agents.ts:229–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

_callNextMethod · 0.95

Calls 2

setFinalOutputsMethod · 0.95
_returnMethod · 0.80

Tested by

no test coverage detected