langchain.js
    Preparing search index...

    Type Alias InferAgentTools<T>

    InferAgentTools: InferAgentType<T, "Tools">

    Shorthand helper to extract the Tools type from an AgentTypeConfig or ReactAgent.

    Type Parameters

    • T
    const agent = createAgent({ tools: [searchTool, calculatorTool], ... });
    type Tools = InferAgentTools<typeof agent>; // readonly [typeof searchTool, typeof calculatorTool]