|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Adapt a NeoGraph run to the A2A request/response shape. More...
#include <server.h>
Public Member Functions | |
| virtual neograph::json | build_initial_state (const std::string &user_text) const |
| Hook to populate the initial graph state. | |
| virtual std::string | input_channel () const |
| Channel name to write the inbound user text into (default "prompt"). | |
| virtual std::string | output_channel () const |
| Channel name to read the agent's text response from (default "response"). | |
Adapt a NeoGraph run to the A2A request/response shape.
Default: drop the inbound text into prompt, run the graph, return the value of response as the agent's text. Subclass / override for domain-specific input/output mapping.
|
virtual |
Hook to populate the initial graph state.
Default writes the inbound user text to input_channel(). Override to add system prompts, conversation history, etc.