langchain.js
    Preparing search index...

    Type Alias InferBag<T, B>

    InferBag: T extends { "~agentTypes": unknown } ? BagTemplate : B

    Infer the Bag type from an agent, defaulting to the provided Bag.

    Currently returns the provided Bag for all types. Can be extended in the future to extract Bag from agent types.

    Type Parameters