|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Node that dispatches and executes pending tool calls. More...
#include <node.h>
Public Member Functions | |
| std::string | get_name () const override |
| Get the node's unique name within the graph. | |
| asio::awaitable< NodeOutput > | run (NodeInput in) override |
Unified run — finds the latest assistant message with tool_calls, dispatches each call to the matching Tool, writes tool result messages back to the messages channel. | |
| ToolDispatchNode (const std::string &name, const NodeContext &ctx) | |
| Construct a tool dispatch node. | |
Node that dispatches and executes pending tool calls.
Reads the last assistant message from the "messages" channel, executes each tool call, and writes tool result messages back.
Tool dispatch does not emit LLM token events because it executes tool calls, not a model stream. Tools can emit their own progress through application observability when finer-grained reporting is needed.
| neograph::graph::ToolDispatchNode::ToolDispatchNode | ( | const std::string & | name, |
| const NodeContext & | ctx | ||
| ) |
Construct a tool dispatch node.
| name | Unique node name within the graph. |
| ctx | Node context providing available tools. |
|
inlineoverridevirtual |
Get the node's unique name within the graph.
Implements neograph::graph::GraphNode.