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

Method shouldContinue

packages/components/src/agents.ts:357–359  ·  view source on GitHub ↗

* Method that checks if the agent execution should continue based on the * number of iterations. * @param iterations The current number of iterations. * @returns A boolean indicating whether the agent execution should continue.

(iterations: number)

Source from the content-addressed store, hash-verified

355 * @returns A boolean indicating whether the agent execution should continue.
356 */
357 private shouldContinue(iterations: number): boolean {
358 return this.maxIterations === undefined || iterations < this.maxIterations
359 }
360
361 async _call(inputs: ChainValues, runManager?: CallbackManagerForChainRun, config?: RunnableConfig): Promise<AgentExecutorOutput> {
362 const toolsByName = Object.fromEntries(this.tools.map((t) => [t.name?.toLowerCase(), t]))

Callers 1

_callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected