|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Convenience factory for creating standard ReAct agent graphs. More...
#include <neograph/graph/engine.h>Go to the source code of this file.
Functions | |
| std::unique_ptr< GraphEngine > | neograph::graph::create_react_graph (std::shared_ptr< Provider > provider, std::vector< std::unique_ptr< Tool > > tools, const std::string &instructions="", const std::string &model="") |
| Create a standard ReAct (Reasoning + Acting) 2-node graph. | |
Convenience factory for creating standard ReAct agent graphs.
Definition in file react_graph.h.
| std::unique_ptr< GraphEngine > neograph::graph::create_react_graph | ( | std::shared_ptr< Provider > | provider, |
| std::vector< std::unique_ptr< Tool > > | tools, | ||
| const std::string & | instructions = "", |
||
| const std::string & | model = "" |
||
| ) |
Create a standard ReAct (Reasoning + Acting) 2-node graph.
Builds a graph with an LLM call node and a tool dispatch node wired in a loop: llm_call -> tool_dispatch -> llm_call -> ... -> end. Equivalent to Agent::run() but as a composable graph engine.
| provider | LLM provider for making completions. |
| tools | Vector of tools available to the agent (ownership transferred). |
| instructions | Optional system prompt / instructions for the LLM. |
| model | Optional model name override (empty = use provider default). |
References neograph::graph::create_react_graph().
Referenced by neograph::graph::create_react_graph().