n8n-nodes-sap-ai-core
Version:
n8n nodes for SAP AI Core LLM and embeddings integration
52 lines • 1.64 kB
TypeScript
import type { IExecuteFunctions } from 'n8n-workflow';
/**
* Generate JSON schema from example JSON string
*/
export declare function generateSchemaFromExample(exampleJsonString: string, allFieldsRequired?: boolean): any;
/**
* Convert JSON schema to Zod-like schema (simplified implementation)
*/
export declare function convertJsonSchemaToZod(schema: any): any;
/**
* Validate a JSON schema
*/
export declare function validateJsonSchema(schema: any): boolean;
/**
* Sanitize schema by removing unsupported features
*/
export declare function sanitizeSchema(schema: any): any;
/**
* Prepare fallback tool description with schema information
*/
export declare function prepareFallbackToolDescription(toolDescription: string, schema?: any): string;
/**
* Throw error if tool schema is invalid for SAP AI Core
*/
export declare function throwIfInvalidToolSchema(ctx: IExecuteFunctions, error: any): void;
/**
* Extract schema from tool definition
*/
export declare function extractSchemaFromTool(tool: any): any | null;
/**
* Merge multiple schemas into one
*/
export declare function mergeSchemas(schemas: any[]): any;
/**
* Create a basic schema validator
*/
export declare function createSchemaValidator(schema: any): {
validate: (data: any) => {
valid: boolean;
errors: string[];
};
schema: any;
};
/**
* Convert schema to OpenAPI format
*/
export declare function convertToOpenApiSchema(schema: any): any;
/**
* Simplify complex schema for SAP AI Core compatibility
*/
export declare function simplifySchemaForSapAiCore(schema: any): any;
//# sourceMappingURL=schemaParsing.d.ts.map