UNPKG

dtamind-components

Version:

Apps integration for Dtamind. Contain Nodes and Credentials.

21 lines (20 loc) 1.04 kB
import { BaseLLMOutputParser } from '@langchain/core/output_parsers'; import { ChatGeneration } from '@langchain/core/outputs'; import { InteropZodType } from '@langchain/core/utils/types'; import { JsonOutputKeyToolsParserParamsInterop } from '@langchain/core/output_parsers/openai_tools'; interface GoogleGenerativeAIToolsOutputParserParams<T extends Record<string, any>> extends JsonOutputKeyToolsParserParamsInterop<T> { } export declare class GoogleGenerativeAIToolsOutputParser<T extends Record<string, any> = Record<string, any>> extends BaseLLMOutputParser<T> { static lc_name(): string; lc_namespace: string[]; returnId: boolean; /** The type of tool calls to return. */ keyName: string; /** Whether to return only the first tool call. */ returnSingle: boolean; zodSchema?: InteropZodType<T>; constructor(params: GoogleGenerativeAIToolsOutputParserParams<T>); protected _validateResult(result: unknown): Promise<T>; parseResult(generations: ChatGeneration[]): Promise<T>; } export {};