UNPKG

@langchain/langgraph-sdk

Version:

Client library for interacting with the LangGraph API

22 lines (21 loc) • 897 B
import { ProjectionSpec } from "../types.cjs"; import { Channel, Event } from "@langchain/protocol"; //#region src/stream/projections/channel.d.ts interface ChannelProjectionOptions { /** * Maximum number of events retained in the projection snapshot. * Defaults to 4096 so replay-backed discovery hooks can tolerate * bursty token/media streams without dropping early lifecycle events. */ bufferSize?: number; /** * Whether to open a real subscription and receive replayed history. * Defaults to true. Set false for live-only root-bus inspection when * replay is unnecessary. */ replay?: boolean; } declare function channelProjection(channels: readonly Channel[], namespace: readonly string[], options?: ChannelProjectionOptions): ProjectionSpec<Event[]>; //#endregion export { ChannelProjectionOptions, channelProjection }; //# sourceMappingURL=channel.d.cts.map