Skip to content

Commit

Permalink
feat(AI Agent Node): Update descriptions and titles for Chat Trigger …
Browse files Browse the repository at this point in the history
…options in AI Agents and Memory (#12155)
  • Loading branch information
CharlieKolb authored Dec 12, 2024
1 parent 5a055ed commit 07a6ae1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/@n8n/nodes-langchain/nodes/memory/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const sessionIdOption: INodeProperties = {
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Take from previous node automatically',
name: 'Connected Chat Trigger Node',
value: 'fromInput',
description: 'Looks for an input field called sessionId',
description:
"Looks for an input field called 'sessionId' that is coming from a directly connected Chat Trigger",
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
Expand Down
7 changes: 3 additions & 4 deletions packages/@n8n/nodes-langchain/utils/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ export const promptTypeOptions: INodeProperties = {
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Take from previous node automatically',
name: 'Connected Chat Trigger Node',
value: 'auto',
description: 'Looks for an input field called chatInput',
description:
"Looks for an input field called 'chatInput' that is coming from a directly connected Chat Trigger",
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Define below',
value: 'define',
description: 'Use an expression to reference data in previous nodes or enter static text',
Expand Down
2 changes: 1 addition & 1 deletion packages/@n8n/nodes-langchain/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getSessionId(
if (sessionId === '' || sessionId === undefined) {
throw new NodeOperationError(ctx.getNode(), 'Key parameter is empty', {
description:
"Provide a key to use as session ID in the 'Key' parameter or use the 'Take from previous node automatically' option to use the session ID from the previous node, e.t. chat trigger node",
"Provide a key to use as session ID in the 'Key' parameter or use the 'Connected Chat Trigger Node' option to use the session ID from your Chat Trigger",
itemIndex,
});
}
Expand Down

0 comments on commit 07a6ae1

Please sign in to comment.