agsamantha/node_modules/langchain/dist/tools/retriever.d.ts

11 lines
471 B
TypeScript
Raw Normal View History

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