AIMessage
object, which includes a tool_calls
field that specifies the tool name and input arguments:
@tool
decorator or plain Python functions. For example:
ToolNode
: A prebuilt node that executes tools.create_react_agent
: Constructs a full agent that manages tool calling automatically.