Skip to content
masterclass Buddy

AI Agents · Concept

Planning

An agent is a model that calls tools in a loop until a task is complete. A harness surrounds that loop with prompts, tools, and middleware; use create_agent for a smaller configurable harness, or Deep Agents for complex long-running work.

Last updated

Syntax

create_agent(model, tools, system_prompt=None, middleware=None)

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

Subscribe
  • LangGraph
  • Deep Agents
  • create_agent
  • create_deep_agent
  • middleware
  • subagents
  • TodoListMiddleware
  • LangSmith Deployment

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