MCPcopy
hub / github.com/FlowiseAI/Flowise / fromAgentAndTools

Method fromAgentAndTools

packages/components/src/agents.ts:336–345  ·  view source on GitHub ↗
(
        fields: AgentExecutorInput & { sessionId?: string; chatId?: string; input?: string; isXML?: boolean }
    )

Source from the content-addressed store, hash-verified

334 }
335
336 static fromAgentAndTools(
337 fields: AgentExecutorInput & { sessionId?: string; chatId?: string; input?: string; isXML?: boolean }
338 ): AgentExecutor {
339 const newInstance = new AgentExecutor(fields)
340 if (fields.sessionId) newInstance.sessionId = fields.sessionId
341 if (fields.chatId) newInstance.chatId = fields.chatId
342 if (fields.input) newInstance.input = fields.input
343 if (fields.isXML) newInstance.isXML = fields.isXML
344 return newInstance
345 }
346
347 get shouldContinueGetter() {
348 return this.shouldContinue.bind(this)

Callers 6

createAgentFunction · 0.80
createAgentFunction · 0.80
prepareAgentFunction · 0.80
prepareAgentFunction · 0.80
prepareAgentFunction · 0.80
prepareAgentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected