NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
schema.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <cstdint>
8
9namespace neograph::program {
10inline constexpr std::uint32_t PROGRAM_SCHEMA_VERSION_V1 = 1;
11inline constexpr std::uint32_t PROGRAM_SCHEMA_VERSION_V2 = 2;
12inline constexpr std::uint32_t PROGRAM_SCHEMA_VERSION_V3 = 3;
13inline constexpr std::uint32_t PROGRAM_SCHEMA_VERSION_V4 = 4;
14inline constexpr std::uint32_t LATEST_PROGRAM_SCHEMA_VERSION = PROGRAM_SCHEMA_VERSION_V4;
15
16constexpr bool is_supported_program_schema_version(std::uint32_t version) noexcept {
17 return version == PROGRAM_SCHEMA_VERSION_V1 || version == PROGRAM_SCHEMA_VERSION_V2 ||
18 version == PROGRAM_SCHEMA_VERSION_V3 || version == PROGRAM_SCHEMA_VERSION_V4;
19}
20
21} // namespace neograph::program