|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Node that makes LLM completion calls. More...
#include <node.h>
Public Member Functions | |
| std::string | get_name () const override |
| Get the node's unique name within the graph. | |
| bool | has_provider () const noexcept |
| False when built from a NodeContext without a provider; run() then fails. | |
| LLMCallNode (const std::string &name, const NodeContext &ctx) | |
| Construct an LLM call node. | |
| asio::awaitable< NodeOutput > | run (NodeInput in) override |
| Dispatch the owned typed request and retain every ordered returned message. | |
Node that makes LLM completion calls.
Reads the "messages" channel, builds completion parameters, calls the LLM provider, and writes the response back to "messages". Mirrors the Agent::run() LLM call logic.
| neograph::graph::LLMCallNode::LLMCallNode | ( | const std::string & | name, |
| const NodeContext & | ctx | ||
| ) |
Construct an LLM call node.
| name | Unique node name within the graph. |
| ctx | Node context providing the LLM provider, tools, model, and instructions. |
|
inlineoverridevirtual |
Get the node's unique name within the graph.
Implements neograph::graph::GraphNode.
|
overridevirtual |
Dispatch the owned typed request and retain every ordered returned message.
Streaming observers receive complete typed events; LLM_TOKEN is display only.
Implements neograph::graph::GraphNode.