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
filterSubagentMessages optionReactAgent → UseAgentStreamOptions
CompiledGraph / Default → UseGraphStreamOptions
ResolveStreamOptions: IsDeepAgent<
T
> extends true UseDeepAgentStreamOptions<StateRecord<InferStateType<T>>, Bag> : IsReactAgent<T> extends true UseAgentStreamOptions<StateRecord<InferStateType<T>>, Bag> : UseStreamOptions<StateRecord<InferStateType<T>>, 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