UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

196 lines 7.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LLM_PROMPT_MCP_TOOL = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../../createNodeDescriptor"); exports.LLM_PROMPT_MCP_TOOL = (0, createNodeDescriptor_1.createNodeDescriptor)({ type: "llmPromptMCPTool", defaultLabel: "MCP Tool", summary: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__SUMMARY", parentType: "llmPromptV2", constraints: { editable: true, deletable: true, collapsable: true, creatable: true, movable: true, placement: { predecessor: { whitelist: [], }, }, childFlowCreatable: false, }, preview: { type: "text", key: "name", }, fields: [ { type: "description", key: "cachingWarning", label: " ", params: { text: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__CACHING_WARNING__TEXT", }, condition: { key: "cacheTools", value: false, } }, { key: "name", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__NAME__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__NAME__DESCRIPTION", type: "cognigyText", params: { required: true, rows: 1, multiline: false, maxLength: 64, }, }, { type: "description", key: "mcpWarning", label: " ", params: { text: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_WARNING__TEXT", }, }, { key: "mcpServerUrl", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_SERVER_URL__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_SERVER_URL__DESCRIPTION", type: "cognigyText", params: { required: true, rows: 5, multiline: true, }, }, { key: "timeout", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TIMEOUT__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TIMEOUT__DESCRIPTION", type: "slider", defaultValue: 12, params: { min: 1, max: 30, step: 1, }, }, { key: "debugMessageFetchedTools", type: "toggle", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_TOOLS__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_TOOLS__DESCRIPTION", defaultValue: true, }, { key: "debugMessageParameters", type: "toggle", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__DESCRIPTION", defaultValue: false, condition: { key: "debugMessageFetchedTools", value: true, }, }, { key: "debugMessage", type: "toggle", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__DESCRIPTION", defaultValue: true, }, { key: "cacheTools", type: "toggle", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__CACHE_TOOLS__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__CACHE_TOOLS__DESCRIPTION", defaultValue: true, }, { key: "condition", label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__LABEL", description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__DESCRIPTION", type: "cognigyText", defaultValue: "", }, { key: "toolFilter", type: "select", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__DESCRIPTION", defaultValue: "none", params: { options: [ { label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__NONE__LABEL", value: "none", }, { label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__WHITELIST__LABEL", value: "whitelist", }, { label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__BLACKLIST__LABEL", value: "blacklist", }, ], }, }, { key: "whitelist", type: "cognigyTextArray", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__WHITELIST__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__WHITELIST__DESCRIPTION", condition: { key: "toolFilter", value: "whitelist", }, }, { key: "blacklist", type: "cognigyTextArray", label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__BLACKLIST__LABEL", description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__BLACKLIST__DESCRIPTION", condition: { key: "toolFilter", value: "blacklist", }, }, ], sections: [ { key: "debugging", label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__DEBUG_SETTINGS__LABEL", defaultCollapsed: true, fields: ["debugMessageFetchedTools", "debugMessageParameters", "debugMessage"], }, { key: "advanced", label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__ADVANCED__LABEL", defaultCollapsed: true, fields: ["cacheTools", "condition", "toolFilter", "whitelist", "blacklist"], }, ], form: [ { type: "field", key: "cachingWarning" }, { type: "field", key: "name" }, { type: "field", key: "mcpWarning" }, { type: "field", key: "mcpServerUrl" }, { type: "field", key: "timeout" }, { type: "section", key: "debugging" }, { type: "section", key: "advanced" }, ], appearance: { color: "white", textColor: "#252525", variant: "mini", }, }); //# sourceMappingURL=llmPromptMCPTool.js.map