Skip to content
masterclass Buddy

AI Agents · Class

MessageGraph

ToolNode runs the tools requested by the latest AIMessage. It supports StateGraph message state and MessageGraph, and returns one ToolMessage for each call.

Last updated

Syntax

new ToolNode<T>(tools)

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

Subscribe
  • StateGraph
  • MessageGraph
  • ToolMessage
  • AIMessage

Source: ToolNode | LangGraph.js API Reference. Checked 2026-11-03.