@langchain/langgraph-sdk
Version:
Client library for interacting with the LangGraph API
18 lines (17 loc) • 1.03 kB
TypeScript
import { AudioMedia, FileMedia, ImageMedia, VideoMedia } from "../../client/stream/media.js";
import { ProjectionSpec } from "../types.js";
//#region src/stream/projections/media.d.ts
interface MediaProjectionOptions {
/**
* Optional `fetch` for URL-sourced blocks. Forwarded into the
* underlying {@link MediaAssembler}.
*/
fetch?: typeof fetch;
}
declare function audioProjection(namespace: readonly string[], options?: MediaProjectionOptions): ProjectionSpec<AudioMedia[]>;
declare function imagesProjection(namespace: readonly string[], options?: MediaProjectionOptions): ProjectionSpec<ImageMedia[]>;
declare function videoProjection(namespace: readonly string[], options?: MediaProjectionOptions): ProjectionSpec<VideoMedia[]>;
declare function filesProjection(namespace: readonly string[], options?: MediaProjectionOptions): ProjectionSpec<FileMedia[]>;
//#endregion
export { type MediaProjectionOptions, audioProjection, filesProjection, imagesProjection, videoProjection };
//# sourceMappingURL=media.d.ts.map