AI Agents · Class
AgentHooks
An agent is a model that can call tools in a loop. createAgent builds the agent and lets you configure its model and tools.
Last updated
Syntax
createAgent({ model, tools })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createAgentmiddlewarenode-style hookswrap-style hooksbefore_modelafter_modelwrap_model_callwrap_tool_call