agsamantha/node_modules/langchain/dist/agents/helpers.d.ts

5 lines
583 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
import type { ToolInterface } from "@langchain/core/tools";
import type { SerializedAgentT, AgentInput } from "./types.js";
export declare const deserializeHelper: <T extends string, U extends Record<string, unknown>, V extends AgentInput, Z>(llm: BaseLanguageModelInterface | undefined, tools: ToolInterface[] | undefined, data: SerializedAgentT<T, U, V>, fromLLMAndTools: (llm: BaseLanguageModelInterface, tools: ToolInterface[], args: U) => Z, fromConstructor: (args: V) => Z) => Promise<Z>;