SubagentStream: IsDeepAgentLike<
T
> extends true SubagentStreamInterface<SubagentStateMap<T, InferAgentToolCalls<Represents a single subagent stream.
Supports two usage patterns:
import type { agent } from "./agent";
// Automatically infers state and tool call types from the agent
const subagent: SubagentStream<typeof agent> = ...;
type ResearcherState = { research_notes: string };
const researcher: SubagentStream<ResearcherState, MyToolCall> = ...;