|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
HTTP server exposing a NeoGraph as an A2A agent. More...
#include <server.h>
Public Member Functions | |
| A2AServer (std::shared_ptr< neograph::graph::GraphEngine > engine, AgentCard card, std::shared_ptr< GraphAgentAdapter > adapter={}) | |
| bool | is_running () const |
| True once start_async() has the server listening. | |
| int | port () const |
| Bound port — useful when caller passed 0 to bind a free port. | |
| bool | start (const std::string &host, int port) |
| Bind + listen. | |
| bool | start_async (const std::string &host, int port) |
| Bind + spawn a worker thread; returns when the server is ready to accept connections. | |
| void | stop () |
| Signal the server to stop accepting connections and join. | |
HTTP server exposing a NeoGraph as an A2A agent.
| neograph::a2a::A2AServer::A2AServer | ( | std::shared_ptr< neograph::graph::GraphEngine > | engine, |
| AgentCard | card, | ||
| std::shared_ptr< GraphAgentAdapter > | adapter = {} |
||
| ) |
| engine | The graph engine that handles incoming messages. |
| card | Discovery payload returned at /.well-known/agent-card.json. |
| adapter | Optional input/output mapping override. |
| bool neograph::a2a::A2AServer::start | ( | const std::string & | host, |
| int | port | ||
| ) |
Bind + listen.
Blocks the calling thread.
| bool neograph::a2a::A2AServer::start_async | ( | const std::string & | host, |
| int | port | ||
| ) |
Bind + spawn a worker thread; returns when the server is ready to accept connections.
Use stop() to shut down.