UNPKG

@langchain/core

Version:
17 lines • 764 B
import { CallbackManagerForToolRun } from "../../callbacks/manager.cjs"; import { StructuredTool } from "../../tools/index.cjs"; import { ToolInputSchemaOutputType, ToolParams } from "../../tools/types.cjs"; import { InteropZodObject } from "../types/zod.cjs"; export interface FakeToolParams<T extends InteropZodObject = InteropZodObject> extends ToolParams { name: string; description: string; schema: T; } export declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends StructuredTool<T> { name: string; description: string; schema: T; constructor(fields: FakeToolParams<T>); protected _call(arg: ToolInputSchemaOutputType<T>, _runManager?: CallbackManagerForToolRun): Promise<string>; } //# sourceMappingURL=tools.d.cts.map