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.
SubscribeRelated
MiddlewareStructured outputShort-term memoryToolsLangGraphDeep Agents