This commit is contained in:
chungyau97
2023-05-16 16:29:10 +07:00
parent 1d9181f099
commit 3e4278e4fe
3 changed files with 48 additions and 2 deletions
@@ -26,7 +26,7 @@ class MRKLAgentLLM_Agents implements INode {
{
label: 'Allowed Tools',
name: 'tools',
type: 'Tool',
type: 'Tool' || 'Tool[]',
list: true
},
{
@@ -40,7 +40,7 @@ class MRKLAgentLLM_Agents implements INode {
async init(nodeData: INodeData): Promise<any> {
const model = nodeData.inputs?.model as BaseLLM
const tools = nodeData.inputs?.tools as Tool[]
console.log(`something about tools: ${JSON.stringify(tools)}`)
const executor = await initializeAgentExecutorWithOptions(tools, model, {
agentType: 'zero-shot-react-description',
verbose: true