Skip to content
masterclass Buddy

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.

Subscribe
  • createAgent
  • middleware
  • node-style hooks
  • wrap-style hooks
  • before_model
  • after_model
  • wrap_model_call
  • wrap_tool_call

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