-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AI Agent Node): Implement Tool calling agent (#9339)
Signed-off-by: Oleg Ivaniv <[email protected]>
- Loading branch information
1 parent
1081429
commit 677f534
Showing
5 changed files
with
345 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/@n8n/nodes-langchain/nodes/agents/Agent/agents/ToolsAgent/description.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import type { INodeProperties } from 'n8n-workflow'; | ||
import { SYSTEM_MESSAGE } from './prompt'; | ||
|
||
export const toolsAgentProperties: INodeProperties[] = [ | ||
{ | ||
displayName: 'Options', | ||
name: 'options', | ||
type: 'collection', | ||
displayOptions: { | ||
show: { | ||
agent: ['toolsAgent'], | ||
}, | ||
}, | ||
default: {}, | ||
placeholder: 'Add Option', | ||
options: [ | ||
{ | ||
displayName: 'System Message', | ||
name: 'systemMessage', | ||
type: 'string', | ||
default: SYSTEM_MESSAGE, | ||
description: 'The message that will be sent to the agent before the conversation starts', | ||
typeOptions: { | ||
rows: 6, | ||
}, | ||
}, | ||
{ | ||
displayName: 'Max Iterations', | ||
name: 'maxIterations', | ||
type: 'number', | ||
default: 10, | ||
description: 'The maximum number of iterations the agent will run before stopping', | ||
}, | ||
{ | ||
displayName: 'Return Intermediate Steps', | ||
name: 'returnIntermediateSteps', | ||
type: 'boolean', | ||
default: false, | ||
description: 'Whether or not the output should include intermediate steps the agent took', | ||
}, | ||
], | ||
}, | ||
]; |
Oops, something went wrong.