Skip to content
masterclass Buddy

AI Agents · Class

Agent

An agent is a model that calls tools in a loop until a task is complete. In LangChain, createAgent builds the harness around this loop, including the model, tools, prompt, middleware, state, and optional structured output.

Last updated

Syntax

createAgent({ model, tools, systemPrompt?, responseFormat?, middleware? })

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

Subscribe
  • Middleware
  • Structured output
  • Short-term memory
  • Tools
  • LangGraph
  • Deep Agents

Source: Agents. Checked 2026-11-03.