langchain.js
    Preparing search index...

    Type Alias ResolveStreamOptions<T, Bag>

    ResolveStreamOptions: IsDeepAgent<T> extends true
        ? UseDeepAgentStreamOptions<InferStateType<T>, Bag>
        : IsReactAgent<T> extends true
            ? UseAgentStreamOptions<InferStateType<T>, Bag>
            : UseStreamOptions<InferStateType<T>, Bag>

    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:

    1. DeepAgentUseDeepAgentStreamOptions

      • Includes: filterSubagentMessages option
    2. ReactAgentUseAgentStreamOptions

    3. CompiledGraph / Default → UseGraphStreamOptions

    Type Parameters

    // 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