UNPKG

n8n-nodes-sap-ai-core

Version:

n8n nodes for SAP AI Core LLM and embeddings integration

386 lines 13.6 kB
/** * UI field descriptions and configurations for SAP AI Core LLM node */ export declare const schemaTypeField: { readonly displayName: "Schema Type"; readonly name: "schemaType"; readonly type: "options"; readonly noDataExpression: true; readonly options: readonly [{ readonly name: "Generate From JSON Example"; readonly value: "fromJson"; readonly description: "Generate a schema from an example JSON object"; }, { readonly name: "Define using JSON Schema"; readonly value: "manual"; readonly description: "Define the JSON schema manually"; }]; readonly default: "fromJson"; readonly description: "How to specify the schema for the function"; }; export declare const buildJsonSchemaExampleField: (props?: { showExtraProps?: any; }) => { displayName: string; name: string; type: string; default: string; noDataExpression: boolean; typeOptions: { rows: number; }; displayOptions: { show: any; }; description: string; }; export declare const buildJsonSchemaExampleNotice: (props?: { showExtraProps?: any; }) => { displayName: string; name: string; type: string; default: string; displayOptions: { show: any; }; }; export declare const jsonSchemaExampleField: { displayName: string; name: string; type: string; default: string; noDataExpression: boolean; typeOptions: { rows: number; }; displayOptions: { show: any; }; description: string; }; export declare const buildInputSchemaField: (props?: { showExtraProps?: any; }) => { displayName: string; name: string; type: string; default: string; noDataExpression: boolean; typeOptions: { rows: number; }; displayOptions: { show: any; }; description: string; hint: string; }; export declare const inputSchemaField: { displayName: string; name: string; type: string; default: string; noDataExpression: boolean; typeOptions: { rows: number; }; displayOptions: { show: any; }; description: string; hint: string; }; export declare const promptTypeOptions: { readonly displayName: "Source for Prompt (User Message)"; readonly name: "promptType"; readonly type: "options"; readonly options: readonly [{ readonly name: "Connected Chat Trigger Node"; readonly value: "auto"; readonly description: "Looks for an input field called \"chatInput\" that is coming from a directly connected Chat Trigger"; }, { readonly name: "Define below"; readonly value: "define"; readonly description: "Use an expression to reference data in previous nodes or enter static text"; }]; readonly default: "auto"; }; export declare const textInput: { readonly displayName: "Prompt (User Message)"; readonly name: "text"; readonly type: "string"; readonly required: true; readonly default: ""; readonly placeholder: "e.g. Hello, how can you help me analyze this data?"; readonly typeOptions: { readonly rows: 3; }; }; export declare const textFromPreviousNode: { readonly displayName: "Prompt (User Message)"; readonly name: "text"; readonly type: "string"; readonly required: true; readonly default: "={{ $json.chatInput }}"; readonly typeOptions: { readonly rows: 3; }; readonly displayOptions: { readonly show: { readonly promptType: readonly ["define"]; }; }; }; export declare const toolDescription: { readonly displayName: "Description"; readonly name: "toolDescription"; readonly type: "string"; readonly default: "SAP AI Core Agent that can call other tools to perform various tasks"; readonly required: true; readonly typeOptions: { readonly rows: 2; }; readonly description: "Explain to the LLM what this tool does. A good, specific description allows SAP AI Core to produce expected results much more often"; }; export declare const sapAiCoreModelField: { readonly displayName: "SAP AI Core Model"; readonly name: "model"; readonly type: "options"; readonly description: "The SAP AI Core model to use for processing. Different models have different capabilities and performance characteristics."; readonly required: true; readonly typeOptions: { readonly loadOptions: { readonly routing: { readonly request: { readonly method: "GET"; readonly url: "/v2/lm/deployments"; }; readonly output: { readonly postReceive: readonly [{ readonly type: "rootProperty"; readonly properties: { readonly property: "resources"; }; }, { readonly type: "filter"; readonly properties: { readonly pass: "={{ $responseItem.status === \"RUNNING\" }}"; }; }, { readonly type: "setKeyValue"; readonly properties: { readonly name: "={{$responseItem.id}} ({{$responseItem.scenarioId}})"; readonly value: "={{$responseItem.id}}"; readonly description: "={{$responseItem.details?.scaling?.backend_details?.model?.name || $responseItem.scenarioId}}"; }; }, { readonly type: "sort"; readonly properties: { readonly key: "name"; }; }]; }; }; }; }; readonly routing: { readonly send: { readonly type: "body"; readonly property: "deploymentId"; }; }; readonly default: ""; }; export declare const sapAiCoreOptionsField: { readonly displayName: "SAP AI Core Options"; readonly name: "sapAiCoreOptions"; readonly type: "collection"; readonly placeholder: "Add SAP AI Core Option"; readonly default: {}; readonly options: readonly [{ readonly displayName: "Resource Group"; readonly name: "resourceGroup"; readonly type: "string"; readonly default: "default"; readonly description: "SAP AI Core resource group to use"; }, { readonly displayName: "Temperature"; readonly name: "temperature"; readonly type: "number"; readonly default: 0.7; readonly typeOptions: { readonly maxValue: 2; readonly minValue: 0; readonly numberPrecision: 2; }; readonly description: "Controls randomness in the output. Lower values make output more deterministic."; }, { readonly displayName: "Max Tokens"; readonly name: "maxTokens"; readonly type: "number"; readonly default: 1000; readonly typeOptions: { readonly minValue: 1; readonly maxValue: 8000; }; readonly description: "Maximum number of tokens to generate"; }, { readonly displayName: "Top P"; readonly name: "topP"; readonly type: "number"; readonly default: 1; readonly typeOptions: { readonly maxValue: 1; readonly minValue: 0; readonly numberPrecision: 2; }; readonly description: "Controls diversity via nucleus sampling"; }, { readonly displayName: "Frequency Penalty"; readonly name: "frequencyPenalty"; readonly type: "number"; readonly default: 0; readonly typeOptions: { readonly maxValue: 2; readonly minValue: -2; readonly numberPrecision: 2; }; readonly description: "Penalize new tokens based on their frequency in the text so far"; }, { readonly displayName: "Presence Penalty"; readonly name: "presencePenalty"; readonly type: "number"; readonly default: 0; readonly typeOptions: { readonly maxValue: 2; readonly minValue: -2; readonly numberPrecision: 2; }; readonly description: "Penalize new tokens based on whether they appear in the text so far"; }]; }; export declare const agentOptionsField: { readonly displayName: "Agent Options"; readonly name: "agentOptions"; readonly type: "collection"; readonly placeholder: "Add Agent Option"; readonly default: {}; readonly options: readonly [{ readonly displayName: "Max Iterations"; readonly name: "maxIterations"; readonly type: "number"; readonly default: 10; readonly typeOptions: { readonly minValue: 1; readonly maxValue: 50; }; readonly description: "Maximum number of iterations the agent will run"; }, { readonly displayName: "Return Intermediate Steps"; readonly name: "returnIntermediateSteps"; readonly type: "boolean"; readonly default: false; readonly description: "Whether to return intermediate steps taken by the agent"; }, { readonly displayName: "Early Stopping Method"; readonly name: "earlyStoppingMethod"; readonly type: "options"; readonly options: readonly [{ readonly name: "Force"; readonly value: "force"; readonly description: "Force stop when max iterations reached"; }, { readonly name: "Generate"; readonly value: "generate"; readonly description: "Generate final answer when max iterations reached"; }]; readonly default: "force"; readonly description: "Method to use when stopping early"; }, { readonly displayName: "Handle Parsing Errors"; readonly name: "handleParsingErrors"; readonly type: "boolean"; readonly default: true; readonly description: "Whether to handle parsing errors gracefully"; }]; }; export declare const memoryOptionsField: { readonly displayName: "Memory Configuration"; readonly name: "memoryConfig"; readonly type: "collection"; readonly placeholder: "Add Memory Option"; readonly default: {}; readonly options: readonly [{ readonly displayName: "Memory Type"; readonly name: "memoryType"; readonly type: "options"; readonly options: readonly [{ readonly name: "Buffer Memory"; readonly value: "buffer"; readonly description: "Simple buffer memory that stores conversation history"; }, { readonly name: "Summary Memory"; readonly value: "summary"; readonly description: "Summarizes conversation history to save tokens"; }, { readonly name: "Token Buffer Memory"; readonly value: "tokenBuffer"; readonly description: "Buffer memory with token limit"; }]; readonly default: "buffer"; readonly description: "Type of memory to use for conversation history"; }, { readonly displayName: "Memory Key"; readonly name: "memoryKey"; readonly type: "string"; readonly default: "chat_history"; readonly description: "Key to use for storing memory in the context"; }, { readonly displayName: "Input Key"; readonly name: "inputKey"; readonly type: "string"; readonly default: "input"; readonly description: "Key for input in the memory"; }, { readonly displayName: "Output Key"; readonly name: "outputKey"; readonly type: "string"; readonly default: "output"; readonly description: "Key for output in the memory"; }, { readonly displayName: "Return Messages"; readonly name: "returnMessages"; readonly type: "boolean"; readonly default: true; readonly description: "Whether to return messages as objects instead of strings"; }]; }; export declare const connectionNoticeField: { readonly displayName: "This node requires a connection to an SAP AI Core Language Model. Connect a Language Model node to get started."; readonly name: "connectionNotice"; readonly type: "notice"; readonly default: ""; readonly typeOptions: { readonly theme: "info"; }; }; export declare const toolConnectionNoticeField: { readonly displayName: "Connect Tool nodes to give this agent additional capabilities. Tools allow the agent to perform specific actions like making API calls, querying databases, or processing data."; readonly name: "toolNotice"; readonly type: "notice"; readonly default: ""; readonly typeOptions: { readonly theme: "info"; }; }; export declare const sapAiCoreCredentialsNotice: { readonly displayName: "You need SAP AI Core credentials to use this node. Make sure your credentials have access to the AI Core service and the specific deployment you want to use."; readonly name: "credentialsNotice"; readonly type: "notice"; readonly default: ""; readonly typeOptions: { readonly theme: "warning"; }; }; //# sourceMappingURL=descriptions.d.ts.map