NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::a2a::GraphAgentAdapter Class Reference

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").
 

Detailed Description

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.

Definition at line 41 of file server.h.

Member Function Documentation

◆ build_initial_state()

virtual neograph::json neograph::a2a::GraphAgentAdapter::build_initial_state ( const std::string &  user_text) const
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.


The documentation for this class was generated from the following file: