The agent or graph type
Type configuration bag
// Only DeepAgent options include filterSubagentMessages
type DeepOptions = ResolveStreamOptions<typeof deepAgent, BagTemplate>;
// DeepOptions.filterSubagentMessages exists
type AgentOptions = ResolveStreamOptions<typeof reactAgent, BagTemplate>;
// AgentOptions.filterSubagentMessages does NOT exist
Resolves the appropriate options interface based on the agent/graph type.
This type automatically selects the correct options interface based on the type of agent or graph:
DeepAgent → UseDeepAgentStreamOptions
filterSubagentMessagesoptionReactAgent → UseAgentStreamOptions
CompiledGraph / Default → UseGraphStreamOptions