NeoGraph
0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
graph_service.h
1
// neograph::grpc — expose a compiled GraphEngine over gRPC.
2
//
3
// Opt-in component (NEOGRAPH_BUILD_GRPC=ON, default OFF). The whole
4
// header is behind NEOGRAPH_HAVE_GRPC so a default build that includes
5
// <neograph/neograph.h> umbrella never pulls grpc++ headers.
6
//
7
// This is a NeoGraph-native gRPC API, independent of the still-
8
// unratified MCP-over-gRPC transport (modelcontextprotocol #966).
9
10
#pragma once
11
12
#ifdef NEOGRAPH_HAVE_GRPC
13
14
#include <cstddef>
15
#include <neograph.grpc.pb.h>
16
#include <memory>
17
#include <string>
18
19
#include <
neograph/graph/engine.h
>
20
#include <
neograph/graph/types.h
>
21
#include <neograph/grpc/serve_options.h>
22
23
namespace
neograph::grpc {
24
33
std::unique_ptr<neograph::v1::GraphService::Service> make_graph_service(
34
neograph::graph::NodeContext
ctx,
35
std::string default_graph_json =
""
,
36
std::shared_ptr<neograph::graph::GraphEngine> default_engine = {},
37
std::size_t max_inflight_runs = 0);
38
45
void
run_server(
const
std::string& address,
46
neograph::graph::NodeContext
ctx,
47
std::string default_graph_json =
""
);
48
51
void
run_server(
const
std::string& address,
52
neograph::graph::NodeContext
ctx,
53
std::string default_graph_json,
54
const
ServeOptions& options);
55
56
}
// namespace neograph::grpc
57
58
#endif
// NEOGRAPH_HAVE_GRPC
engine.h
Main graph execution engine with super-step loop and HITL support.
types.h
Graph engine type definitions: channels, edges, nodes, events, and control flow.
neograph::graph::NodeContext
Dependency injection context passed to nodes during construction.
Definition
types.h:753
include
neograph
grpc
graph_service.h
Generated by
1.9.8