langchain.js
    Preparing search index...

    Interface ToolEmulatorOptions

    Options for configuring the Tool Emulator middleware.

    interface ToolEmulatorOptions {
        model?: any;
        tools?: any[];
    }
    Index

    Properties

    Properties

    model?: any

    Model to use for emulation.

    • Can be a model identifier string (e.g., "anthropic:claude-sonnet-4-5-20250929")
    • Can be a BaseChatModel instance
    • Defaults to agent model
    tools?: any[]

    List of tool names (string) or tool instances to emulate.

    • If undefined (default), ALL tools will be emulated.
    • If empty array, no tools will be emulated.
    • If array with tool names/instances, only those tools will be emulated.