AI Agents · Class
RunHooks
ToolNode executes the tools requested by the latest AIMessage. It supports StateGraph and MessageGraph and returns one ToolMessage for each call.
Last updated
Syntax
new ToolNode(tools)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
StateGraphMessageGraphAIMessageToolMessagetool