UNPKG

@n8n/n8n-nodes-langchain

Version:
32 lines • 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.INTERNAL_TOOL_ARG_STASH_KEY = void 0; exports.isThinkingBlock = isThinkingBlock; exports.isRedactedThinkingBlock = isRedactedThinkingBlock; exports.isGeminiThoughtSignatureBlock = isGeminiThoughtSignatureBlock; function isThinkingBlock(block) { return (typeof block === 'object' && block !== null && 'type' in block && block.type === 'thinking' && 'thinking' in block && typeof block.thinking === 'string' && 'signature' in block && typeof block.signature === 'string'); } exports.INTERNAL_TOOL_ARG_STASH_KEY = '_n8nOriginalToolArg'; function isRedactedThinkingBlock(block) { return (typeof block === 'object' && block !== null && 'type' in block && block.type === 'redacted_thinking' && 'data' in block && typeof block.data === 'string'); } function isGeminiThoughtSignatureBlock(block) { return (typeof block === 'object' && block !== null && 'thoughtSignature' in block && typeof block.thoughtSignature === 'string'); } //# sourceMappingURL=types.js.map