Skip to content
masterclass Buddy

AI Agents · Concept

Environment

An agent is a model that calls tools in a loop until a task is complete. In LangChain, create_agent builds the model, tools, prompt, and optional middleware into a configurable harness.

Last updated

Syntax

createAgent({ model, tools, middleware })

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

Subscribe
  • create_agent
  • create_deep_agent
  • Middleware
  • Execution environment
  • Context management
  • Planning and delegation
  • Fault tolerance
  • Guardrails

Source: Agents - Docs by LangChain. Checked 2026-11-03.