agsamantha/node_modules/langchain/dist/agents/toolkits/conversational_retrieval/tool.d.ts

12 lines
526 B
TypeScript
Raw Permalink Normal View History

2024-10-02 15:15:21 -05:00
import type { BaseRetrieverInterface } from "@langchain/core/retrievers";
import { z } from "zod";
import { DynamicStructuredTool, DynamicStructuredToolInput } from "@langchain/core/tools";
/** @deprecated Use "langchain/tools/retriever" instead. */
export declare function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, "func" | "schema">): DynamicStructuredTool<z.ZodObject<{
input: z.ZodString;
}, "strip", z.ZodTypeAny, {
input: string;
}, {
input: string;
}>>;