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.
SubscribeRelated
create_agentcreate_deep_agentMiddlewareExecution environmentContext managementPlanning and delegationFault toleranceGuardrails