@n8n/n8n-nodes-langchain 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js +0 -14
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js +0 -14
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +6 -0
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +14 -0
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js +12 -0
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js.map +1 -1
- package/dist/types/nodes.json +5 -5
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../nodes/vendors/OpenAi/v2/actions/descriptions.ts"],"sourcesContent":["import type { INodeProperties, INodePropertyCollection } from 'n8n-workflow';\n\nexport const modelRLC = (searchListMethod: string = 'modelSearch'): INodeProperties => ({\n\tdisplayName: 'Model',\n\tname: 'modelId',\n\ttype: 'resourceLocator',\n\tdefault: { mode: 'list', value: '' },\n\trequired: true,\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From List',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod,\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'ID',\n\t\t\tname: 'id',\n\t\t\ttype: 'string',\n\t\t\tplaceholder: 'e.g. gpt-4',\n\t\t},\n\t],\n});\n\nexport const metadataProperty: INodeProperties = {\n\tdisplayName: 'Metadata',\n\tname: 'metadata',\n\ttype: 'json',\n\tdescription:\n\t\t'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.',\n\tdefault: '{}',\n};\n\nconst imageMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Image Type',\n\t\tname: 'imageType',\n\t\ttype: 'options',\n\t\tdefault: 'url',\n\t\toptions: [\n\t\t\t{ name: 'Image URL', value: 'url' },\n\t\t\t{ name: 'File ID', value: 'fileId' },\n\t\t\t{ name: 'File Data', value: 'base64' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Image URL',\n\t\tname: 'imageUrl',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. https://example.com/image.jpeg',\n\t\tdescription: 'URL of the image to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['url'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Image Data',\n\t\tname: 'binaryPropertyName',\n\t\ttype: 'string',\n\t\tdefault: 'data',\n\t\tplaceholder: 'e.g. data',\n\t\thint: 'The name of the input field containing the binary file data to be processed',\n\t\tdescription: 'Name of the binary property which contains the image(s)',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File ID',\n\t\tname: 'fileId',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdescription: 'ID of the file to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['fileId'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Detail',\n\t\tname: 'imageDetail',\n\t\ttype: 'options',\n\t\tdefault: 'auto',\n\t\tdescription: 'The detail level of the image to be sent to the model',\n\t\toptions: [\n\t\t\t{ name: 'Auto', value: 'auto' },\n\t\t\t{ name: 'Low', value: 'low' },\n\t\t\t{ name: 'High', value: 'high' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport const textMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Prompt',\n\t\tname: 'content',\n\t\ttype: 'string',\n\t\tdescription: 'The content of the message to be send',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. Hello, how can you help me?',\n\t\ttypeOptions: {\n\t\t\trows: 2,\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['text'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nconst fileMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'File Type',\n\t\tname: 'fileType',\n\t\ttype: 'options',\n\t\tdefault: 'url',\n\t\toptions: [\n\t\t\t{ name: 'File URL', value: 'url' },\n\t\t\t{ name: 'File ID', value: 'fileId' },\n\t\t\t{ name: 'File Data', value: 'base64' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File URL',\n\t\tname: 'fileUrl',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. https://example.com/file.pdf',\n\t\tdescription: 'URL of the file to be sent. Accepts base64 encoded files as well.',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['url'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File ID',\n\t\tname: 'fileId',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdescription: 'ID of the file to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['fileId'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File Data',\n\t\tname: 'binaryPropertyName',\n\t\ttype: 'string',\n\t\tdefault: 'data',\n\t\tplaceholder: 'e.g. data',\n\t\thint: 'The name of the input field containing the binary file data to be processed',\n\t\tdescription: 'Name of the binary property which contains the file',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File Name',\n\t\tname: 'fileName',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport const messageOptions: INodePropertyCollection[] = [\n\t{\n\t\tdisplayName: 'Values',\n\t\tname: 'values',\n\t\tvalues: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Type',\n\t\t\t\tname: 'type',\n\t\t\t\ttype: 'options',\n\t\t\t\tdefault: 'text',\n\t\t\t\toptions: [\n\t\t\t\t\t{ name: 'Text', value: 'text' },\n\t\t\t\t\t{ name: 'Image', value: 'image' },\n\t\t\t\t\t{ name: 'File', value: 'file' },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Role',\n\t\t\t\tname: 'role',\n\t\t\t\ttype: 'options',\n\t\t\t\tdescription:\n\t\t\t\t\t\"Role in shaping the model's response, it tells the model how it should behave and interact with the user\",\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'User',\n\t\t\t\t\t\tvalue: 'user',\n\t\t\t\t\t\tdescription: 'Send a message as a user and get a response from the model',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Assistant',\n\t\t\t\t\t\tvalue: 'assistant',\n\t\t\t\t\t\tdescription: 'Tell the model to adopt a specific tone or personality',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'System',\n\t\t\t\t\t\tvalue: 'system',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\"Usually used to set the model's behavior or context for the next user message\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdefault: 'user',\n\t\t\t},\n\t\t\t...textMessageProperties,\n\t\t\t...imageMessageProperties,\n\t\t\t...fileMessageProperties,\n\t\t],\n\t},\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,WAAW,CAAC,mBAA2B,mBAAoC;AAAA,EACvF,aAAa;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS,EAAE,MAAM,QAAQ,OAAO,GAAG;AAAA,EACnC,UAAU;AAAA,EACV,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,QACZ;AAAA,QACA,YAAY;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,IACd;AAAA,EACD;AACD;AAEO,MAAM,mBAAoC;AAAA,EAChD,aAAa;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,aACC;AAAA,EACD,SAAS;AACV;AAEA,MAAM,yBAA4C;AAAA,EACjD;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,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
{"version":3,"sources":["../../../../../../nodes/vendors/OpenAi/v2/actions/descriptions.ts"],"sourcesContent":["import type { INodeProperties, INodePropertyCollection } from 'n8n-workflow';\n\nexport const modelRLC = (searchListMethod: string = 'modelSearch'): INodeProperties => ({\n\tdisplayName: 'Model',\n\tname: 'modelId',\n\ttype: 'resourceLocator',\n\tdefault: { mode: 'list', value: '' },\n\trequired: true,\n\tmodes: [\n\t\t{\n\t\t\tdisplayName: 'From List',\n\t\t\tname: 'list',\n\t\t\ttype: 'list',\n\t\t\ttypeOptions: {\n\t\t\t\tsearchListMethod,\n\t\t\t\tsearchable: true,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'ID',\n\t\t\tname: 'id',\n\t\t\ttype: 'string',\n\t\t\tplaceholder: 'e.g. gpt-4',\n\t\t},\n\t],\n});\n\nexport const metadataProperty: INodeProperties = {\n\tdisplayName: 'Metadata',\n\tname: 'metadata',\n\ttype: 'json',\n\tdescription:\n\t\t'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.',\n\tdefault: '{}',\n};\n\nconst imageMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Image Type',\n\t\tname: 'imageType',\n\t\ttype: 'options',\n\t\tdefault: 'url',\n\t\toptions: [\n\t\t\t{ name: 'Image URL', value: 'url' },\n\t\t\t{ name: 'File ID', value: 'fileId' },\n\t\t\t{ name: 'File Data', value: 'base64' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Image URL',\n\t\tname: 'imageUrl',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. https://example.com/image.jpeg',\n\t\tdescription: 'URL of the image to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['url'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Image Data',\n\t\tname: 'binaryPropertyName',\n\t\ttype: 'string',\n\t\tdefault: 'data',\n\t\tplaceholder: 'e.g. data',\n\t\thint: 'The name of the input field containing the binary file data to be processed',\n\t\tdescription: 'Name of the binary property which contains the image(s)',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File ID',\n\t\tname: 'fileId',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdescription: 'ID of the file to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t\timageType: ['fileId'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Detail',\n\t\tname: 'imageDetail',\n\t\ttype: 'options',\n\t\tdefault: 'auto',\n\t\tdescription: 'The detail level of the image to be sent to the model',\n\t\toptions: [\n\t\t\t{ name: 'Auto', value: 'auto' },\n\t\t\t{ name: 'Low', value: 'low' },\n\t\t\t{ name: 'High', value: 'high' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['image'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport const textMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Prompt',\n\t\tname: 'content',\n\t\ttype: 'string',\n\t\tdescription: 'The content of the message to be send',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. Hello, how can you help me?',\n\t\ttypeOptions: {\n\t\t\trows: 2,\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['text'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nconst fileMessageProperties: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'File Type',\n\t\tname: 'fileType',\n\t\ttype: 'options',\n\t\tdefault: 'url',\n\t\toptions: [\n\t\t\t{ name: 'File URL', value: 'url' },\n\t\t\t{ name: 'File ID', value: 'fileId' },\n\t\t\t{ name: 'File Data', value: 'base64' },\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File URL',\n\t\tname: 'fileUrl',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tplaceholder: 'e.g. https://example.com/file.pdf',\n\t\tdescription: 'URL of the file to be sent. Accepts base64 encoded files as well.',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['url'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File ID',\n\t\tname: 'fileId',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdescription: 'ID of the file to be sent',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['fileId'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File Data',\n\t\tname: 'binaryPropertyName',\n\t\ttype: 'string',\n\t\tdefault: 'data',\n\t\tplaceholder: 'e.g. data',\n\t\thint: 'The name of the input field containing the binary file data to be processed',\n\t\tdescription: 'Name of the binary property which contains the file',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'File Name',\n\t\tname: 'fileName',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\ttype: ['file'],\n\t\t\t\tfileType: ['base64'],\n\t\t\t},\n\t\t},\n\t},\n];\n\nexport const messageOptions: INodePropertyCollection[] = [\n\t{\n\t\tdisplayName: 'Message',\n\t\tname: 'values',\n\t\tvalues: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Type',\n\t\t\t\tname: 'type',\n\t\t\t\ttype: 'options',\n\t\t\t\tdefault: 'text',\n\t\t\t\toptions: [\n\t\t\t\t\t{ name: 'Text', value: 'text' },\n\t\t\t\t\t{ name: 'Image', value: 'image' },\n\t\t\t\t\t{ name: 'File', value: 'file' },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Role',\n\t\t\t\tname: 'role',\n\t\t\t\ttype: 'options',\n\t\t\t\tdescription:\n\t\t\t\t\t\"Role in shaping the model's response, it tells the model how it should behave and interact with the user\",\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'User',\n\t\t\t\t\t\tvalue: 'user',\n\t\t\t\t\t\tdescription: 'Send a message as a user and get a response from the model',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Assistant',\n\t\t\t\t\t\tvalue: 'assistant',\n\t\t\t\t\t\tdescription: 'Tell the model to adopt a specific tone or personality',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'System',\n\t\t\t\t\t\tvalue: 'system',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\"Usually used to set the model's behavior or context for the next user message\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdefault: 'user',\n\t\t\t},\n\t\t\t...textMessageProperties,\n\t\t\t...imageMessageProperties,\n\t\t\t...fileMessageProperties,\n\t\t],\n\t},\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,WAAW,CAAC,mBAA2B,mBAAoC;AAAA,EACvF,aAAa;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS,EAAE,MAAM,QAAQ,OAAO,GAAG;AAAA,EACnC,UAAU;AAAA,EACV,OAAO;AAAA,IACN;AAAA,MACC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,M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