import { ClientAssembledToolCall } from "./tools.js"; import { StreamingMessageHandle } from "../messages.js"; import { AudioMedia, FileMedia, ImageMedia, VideoMedia } from "../media.js"; import { EventForChannel, EventForChannels, SubscribeOptions, YieldForChannel, YieldForChannels } from "../types.js"; import { SubgraphHandle, Subscribable } from "./subgraphs.js"; import { SubscriptionHandle } from "../index.js"; import { Channel, Event, SubscribeParams } from "@langchain/protocol"; //#region src/client/stream/handles/subagents.d.ts /** * Discovered subagent within a streaming session. Mirrors the * in-process `SubagentRunStream` from DeepAgent. * * Each subagent is discovered when a `tool-started` event with * `tool_name === "task"` is observed. The `taskInput` and `output` * promises resolve from the task tool's lifecycle events. * * Use lazy getters (`sub.messages`, `sub.toolCalls`, etc.) for * namespace-scoped projections. */ declare class SubagentHandle { #private; readonly name: string; readonly callId: string; readonly taskInput: Promise; readonly output: Promise; readonly namespace: string[]; constructor(name: string, callId: string, namespace: string[], taskInput: Promise, output: Promise, session: Subscribable); get messages(): AsyncIterable; get toolCalls(): AsyncIterable; get audio(): AsyncIterable; get images(): AsyncIterable; get video(): AsyncIterable; get files(): AsyncIterable; get subgraphs(): AsyncIterable; /** * Create a raw channel subscription scoped to this subagent's namespace. */ subscribe(channel: TChannel, options?: SubscribeOptions): Promise, YieldForChannel>>; subscribe(channels: TChannels, options?: SubscribeOptions): Promise, YieldForChannels>>; subscribe(params: SubscribeParams): Promise>; } //#endregion export { SubagentHandle }; //# sourceMappingURL=subagents.d.ts.map