Skip to content
masterclass Buddy

LangChain · Class

LLMToolEmulator

LLMToolEmulator is middleware for testing and prototyping agents. It uses an LLM to simulate tool results instead of running the real tools.

Last updated

Since
v1.4

Syntax

LLMToolEmulator(self, *, tools: list[str | BaseTool] | None = None, model: str | BaseChatModel | None = None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • AgentMiddleware
  • BaseTool
  • BaseChatModel
  • create_agent
  • init_chat_model

Source: Prebuilt middleware - Docs by LangChain Documentation. Checked 2026-11-03.