NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
server.h File Reference

A2A server — exposes a NeoGraph as an Agent-to-Agent endpoint. More...

#include <neograph/api.h>
#include <neograph/a2a/types.h>
#include <neograph/graph/engine.h>
#include <functional>
#include <memory>
#include <string>
Include dependency graph for server.h:

Go to the source code of this file.

Classes

class  neograph::a2a::A2AServer
 HTTP server exposing a NeoGraph as an A2A agent. More...
 
class  neograph::a2a::GraphAgentAdapter
 Adapt a NeoGraph run to the A2A request/response shape. More...
 

Detailed Description

A2A server — exposes a NeoGraph as an Agent-to-Agent endpoint.

Speaks the JSON-RPC v0.3 dialect (slash-form method names, kind discriminator) so clients written against either the a2a-js spec or a2a-sdk Python in v0.3 compat mode can connect.

Endpoints:

  • GET /.well-known/agent-card.json — AgentCard discovery
  • POST / — JSON-RPC dispatcher

Methods:

  • message/send — sync round-trip (graph runs, response wrapped as Task)
  • message/stream — SSE-framed status updates while graph runs
  • tasks/get — recall a Task from the in-memory store
  • tasks/cancel — request cancellation (stops further super-steps)

Built on httplib (already a dep) — one OS thread per connection, fine for agent-style traffic where LLM call time dominates.

Definition in file server.h.