UNPKG

@n8n/n8n-nodes-langchain

Version:

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

13 lines (12 loc) 792 B
import type { Callbacks } from '@langchain/core/callbacks/manager'; import { StructuredOutputParser } from '@langchain/classic/output_parsers'; import type { ISupplyDataFunctions } from 'n8n-workflow'; import { z } from 'zod'; export declare class N8nStructuredOutputParser extends StructuredOutputParser<z.ZodType<object, z.ZodTypeDef, object>> { private context; constructor(context: ISupplyDataFunctions, zodSchema: z.ZodSchema<object>); lc_namespace: string[]; parse(text: string, _callbacks?: Callbacks, errorMapper?: (error: Error) => Error): Promise<object>; static fromZodJsonSchema(zodSchema: z.ZodSchema<object>, nodeVersion: number, context: ISupplyDataFunctions): Promise<N8nStructuredOutputParser>; getSchema(): z.ZodType<object, z.ZodTypeDef, object>; }