UNPKG

langchain

Version:
14 lines • 585 B
import { Namespace, NativeStreamTransformer, ToolCallStream } from "@langchain/langgraph"; interface ToolCallProjection { toolCalls: AsyncIterable<ToolCallStream>; } /** * Creates a native transformer that correlates `tools` channel events * into per-call {@link ToolCallStream} objects. * * Marked `__native: true` — projection keys land directly on the * `GraphRunStream` instance as `run.toolCalls`. */ export declare function createToolCallTransformer(path: Namespace): () => NativeStreamTransformer<ToolCallProjection>; export {}; //# sourceMappingURL=tool-call.d.ts.map