The agent or graph type (use typeof agent or typeof graph)
Type configuration bag for interrupts, configurable, etc.
// Automatic detection based on agent type
type GraphStream = ResolveStreamInterface<typeof compiledGraph, BagTemplate>;
// → UseGraphStream (with typed node names)
type AgentStream = ResolveStreamInterface<typeof reactAgent, BagTemplate>;
// → UseAgentStream (has toolCalls)
type DeepStream = ResolveStreamInterface<typeof deepAgent, BagTemplate>;
// → UseDeepAgentStream (has toolCalls AND subagents)
Resolves the appropriate stream interface based on the agent/graph type.
This type automatically selects the correct stream interface based on the type of agent or graph passed to
useStream:DeepAgent (
~deepAgentTypes) → UseDeepAgentStreamReactAgent (
~agentTypes) → UseAgentStreamCompiledGraph (
~RunOutput/~OutputType) → UseGraphStream~NodeTypefor type-safe accessDefault → UseGraphStream