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
21#include <neograph/grpc/serve_options.h>
22
23namespace neograph::grpc {
24
33std::unique_ptr<neograph::v1::GraphService::Service> make_graph_service(
35 std::string default_graph_json = "",
36 std::shared_ptr<neograph::graph::GraphEngine> default_engine = {},
37 std::size_t max_inflight_runs = 0);
38
45void run_server(const std::string& address,
47 std::string default_graph_json = "");
48
51void run_server(const std::string& address,
53 std::string default_graph_json,
54 const ServeOptions& options);
55
56} // namespace neograph::grpc
57
58#endif // NEOGRAPH_HAVE_GRPC
Main graph execution engine with super-step loop and HITL support.
Graph engine type definitions: channels, edges, nodes, events, and control flow.
Dependency injection context passed to nodes during construction.
Definition types.h:753