UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

7 lines (6 loc) 451 B
import type { JSONSchema7 } from 'json-schema'; import type { IExecuteFunctions } from 'n8n-workflow'; import type { z } from 'zod'; export declare function generateSchemaFromExample(exampleJsonString: string, allFieldsRequired?: boolean): JSONSchema7; export declare function convertJsonSchemaToZod<T extends z.ZodTypeAny = z.ZodTypeAny>(schema: JSONSchema7): T; export declare function throwIfToolSchema(ctx: IExecuteFunctions, error: Error): void;