n8n-nodes-sap-ai-core
Version:
n8n nodes for SAP AI Core LLM and embeddings integration
36 lines • 1.31 kB
TypeScript
import type { Tool } from '@langchain/core/tools';
/**
* Format a tool for SAP AI Core Function format
*/
export declare function formatToSapAiCoreFunction(tool: Tool): any;
/**
* Format a tool for SAP AI Core Tool format
* Main format used by SAP AI Core for tool calling
*/
export declare function formatToSapAiCoreTool(tool: Tool): any;
/**
* Format a tool for SAP AI Core Assistant Tool format
* Used specifically for assistant-style interactions
*/
export declare function formatToSapAiCoreAssistantTool(tool: Tool): any;
/**
* Validate tool schema for SAP AI Core compatibility
*/
export declare function validateSapAiCoreTool(tool: Tool): boolean;
/**
* Convert tools array to SAP AI Core format
*/
export declare function convertToolsToSapAiCoreFormat(tools: Tool[]): any[];
/**
* Get tool by name from formatted tools array
*/
export declare function findToolByName(tools: any[], name: string): any | undefined;
/**
* Extract tool names from formatted tools array
*/
export declare function extractToolNames(tools: any[]): string[];
/**
* Prepare tool description with SAP AI Core specific formatting
*/
export declare function prepareSapAiCoreToolDescription(toolDescription: string, schema?: any, additionalContext?: string): string;
//# sourceMappingURL=sapAiCoreUtils.d.ts.map