langchain.js
    Preparing search index...

    Type Alias ExtractDeepAgentConfig<T>

    ExtractDeepAgentConfig: T extends { "~deepAgentTypes": infer Config }
        ? Config extends DeepAgentTypeConfigLike ? Config : never
        : never

    Extract the DeepAgentTypeConfig from a DeepAgent-like type.

    Type Parameters

    • T
    const agent = createDeepAgent({ subagents: [...] });
    type Config = ExtractDeepAgentConfig<typeof agent>;
    // Config includes { Subagents: [...] }