cortexdb-client 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/PKG-INFO +1 -1
  2. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/admin_pb2.py +9 -5
  3. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/admin_pb2_grpc.py +45 -0
  4. cortexdb_client-0.3.0/cortexdb_client/_pb/cortexdb/v1/contract_pb2.py +53 -0
  5. cortexdb_client-0.3.0/cortexdb_client/_pb/cortexdb/v1/contract_pb2_grpc.py +157 -0
  6. cortexdb_client-0.3.0/cortexdb_client/_pb/cortexdb/v1/decision_pb2.py +53 -0
  7. cortexdb_client-0.3.0/cortexdb_client/_pb/cortexdb/v1/decision_pb2_grpc.py +207 -0
  8. cortexdb_client-0.3.0/cortexdb_client/_pb/cortexdb/v1/graph_pb2.py +166 -0
  9. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/knowledge_pb2.py +4 -4
  10. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/memory_pb2.py +4 -4
  11. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/client.py +27 -0
  12. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/pyproject.toml +1 -1
  13. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/uv.lock +1 -1
  14. cortexdb_client-0.2.0/cortexdb_client/_pb/cortexdb/v1/graph_pb2.py +0 -162
  15. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/.gitignore +0 -0
  16. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/MANIFEST.in +0 -0
  17. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/README.md +0 -0
  18. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/__init__.py +0 -0
  19. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/__init__.py +0 -0
  20. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/__init__.py +0 -0
  21. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/__init__.py +0 -0
  22. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/common_pb2.py +0 -0
  23. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/common_pb2_grpc.py +0 -0
  24. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/graph_pb2_grpc.py +0 -0
  25. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/graphrag_pb2.py +0 -0
  26. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/graphrag_pb2_grpc.py +0 -0
  27. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/knowledge_pb2_grpc.py +0 -0
  28. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/memory_pb2_grpc.py +0 -0
  29. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/tools_pb2.py +0 -0
  30. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/_pb/cortexdb/v1/tools_pb2_grpc.py +0 -0
  31. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/cortexdb_client/proto.py +0 -0
  32. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/examples/agent_memory.py +0 -0
  33. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/gen.sh +0 -0
  34. {cortexdb_client-0.2.0 → cortexdb_client-0.3.0}/tests/test_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cortexdb-client
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Typed gRPC client for CortexDB (AI memory + knowledge graph sidecar)
5
5
  Project-URL: Homepage, https://github.com/liliang-cn/cortexdb
6
6
  Project-URL: Repository, https://github.com/liliang-cn/cortexdb
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63ortexdb/v1/admin.proto\x12\x0b\x63ortexdb.v1\"\x0f\n\rHealthRequest\"\x1c\n\x0eHealthResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"\r\n\x0bInfoRequest\"F\n\x0cInfoResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x62_path\x18\x02 \x01(\t\x12\x14\n\x0chas_embedder\x18\x03 \x01(\x08\x32\x8e\x01\n\x0c\x41\x64minService\x12\x41\n\x06Health\x12\x1a.cortexdb.v1.HealthRequest\x1a\x1b.cortexdb.v1.HealthResponse\x12;\n\x04Info\x12\x18.cortexdb.v1.InfoRequest\x1a\x19.cortexdb.v1.InfoResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63ortexdb/v1/admin.proto\x12\x0b\x63ortexdb.v1\"\x0f\n\rHealthRequest\"\x1c\n\x0eHealthResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"\r\n\x0bInfoRequest\"\x99\x01\n\x0cInfoResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x62_path\x18\x02 \x01(\t\x12\x14\n\x0chas_embedder\x18\x03 \x01(\x08\x12\x18\n\x10\x65mbedder_healthy\x18\x04 \x01(\x08\x12\x16\n\x0e\x65mbedder_error\x18\x05 \x01(\t\x12\x1f\n\x17memories_without_vector\x18\x06 \x01(\x03\"\x1d\n\rBackupRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\"2\n\x0e\x42\x61\x63kupResponse\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x12\n\nsize_bytes\x18\x02 \x01(\x03\x32\xd1\x01\n\x0c\x41\x64minService\x12\x41\n\x06Health\x12\x1a.cortexdb.v1.HealthRequest\x1a\x1b.cortexdb.v1.HealthResponse\x12;\n\x04Info\x12\x18.cortexdb.v1.InfoRequest\x1a\x19.cortexdb.v1.InfoResponse\x12\x41\n\x06\x42\x61\x63kup\x12\x1a.cortexdb.v1.BackupRequest\x1a\x1b.cortexdb.v1.BackupResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,8 +38,12 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
38
  _globals['_HEALTHRESPONSE']._serialized_end=85
39
39
  _globals['_INFOREQUEST']._serialized_start=87
40
40
  _globals['_INFOREQUEST']._serialized_end=100
41
- _globals['_INFORESPONSE']._serialized_start=102
42
- _globals['_INFORESPONSE']._serialized_end=172
43
- _globals['_ADMINSERVICE']._serialized_start=175
44
- _globals['_ADMINSERVICE']._serialized_end=317
41
+ _globals['_INFORESPONSE']._serialized_start=103
42
+ _globals['_INFORESPONSE']._serialized_end=256
43
+ _globals['_BACKUPREQUEST']._serialized_start=258
44
+ _globals['_BACKUPREQUEST']._serialized_end=287
45
+ _globals['_BACKUPRESPONSE']._serialized_start=289
46
+ _globals['_BACKUPRESPONSE']._serialized_end=339
47
+ _globals['_ADMINSERVICE']._serialized_start=342
48
+ _globals['_ADMINSERVICE']._serialized_end=551
45
49
  # @@protoc_insertion_point(module_scope)
@@ -44,6 +44,11 @@ class AdminServiceStub:
44
44
  request_serializer=cortexdb_dot_v1_dot_admin__pb2.InfoRequest.SerializeToString,
45
45
  response_deserializer=cortexdb_dot_v1_dot_admin__pb2.InfoResponse.FromString,
46
46
  _registered_method=True)
47
+ self.Backup = channel.unary_unary(
48
+ '/cortexdb.v1.AdminService/Backup',
49
+ request_serializer=cortexdb_dot_v1_dot_admin__pb2.BackupRequest.SerializeToString,
50
+ response_deserializer=cortexdb_dot_v1_dot_admin__pb2.BackupResponse.FromString,
51
+ _registered_method=True)
47
52
 
48
53
 
49
54
  class AdminServiceServicer:
@@ -61,6 +66,14 @@ class AdminServiceServicer:
61
66
  context.set_details('Method not implemented!')
62
67
  raise NotImplementedError('Method not implemented!')
63
68
 
69
+ def Backup(self, request, context):
70
+ """Backup snapshots the whole brain without stopping the server. Backends that
71
+ are backed up by their own tooling (PostgreSQL) fail it with UNIMPLEMENTED.
72
+ """
73
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
74
+ context.set_details('Method not implemented!')
75
+ raise NotImplementedError('Method not implemented!')
76
+
64
77
 
65
78
  def add_AdminServiceServicer_to_server(servicer, server):
66
79
  rpc_method_handlers = {
@@ -74,6 +87,11 @@ def add_AdminServiceServicer_to_server(servicer, server):
74
87
  request_deserializer=cortexdb_dot_v1_dot_admin__pb2.InfoRequest.FromString,
75
88
  response_serializer=cortexdb_dot_v1_dot_admin__pb2.InfoResponse.SerializeToString,
76
89
  ),
90
+ 'Backup': grpc.unary_unary_rpc_method_handler(
91
+ servicer.Backup,
92
+ request_deserializer=cortexdb_dot_v1_dot_admin__pb2.BackupRequest.FromString,
93
+ response_serializer=cortexdb_dot_v1_dot_admin__pb2.BackupResponse.SerializeToString,
94
+ ),
77
95
  }
78
96
  generic_handler = grpc.method_handlers_generic_handler(
79
97
  'cortexdb.v1.AdminService', rpc_method_handlers)
@@ -138,3 +156,30 @@ class AdminService:
138
156
  timeout,
139
157
  metadata,
140
158
  _registered_method=True)
159
+
160
+ @staticmethod
161
+ def Backup(request,
162
+ target,
163
+ options=(),
164
+ channel_credentials=None,
165
+ call_credentials=None,
166
+ insecure=False,
167
+ compression=None,
168
+ wait_for_ready=None,
169
+ timeout=None,
170
+ metadata=None):
171
+ return grpc.experimental.unary_unary(
172
+ request,
173
+ target,
174
+ '/cortexdb.v1.AdminService/Backup',
175
+ cortexdb_dot_v1_dot_admin__pb2.BackupRequest.SerializeToString,
176
+ cortexdb_dot_v1_dot_admin__pb2.BackupResponse.FromString,
177
+ options,
178
+ channel_credentials,
179
+ insecure,
180
+ call_credentials,
181
+ compression,
182
+ wait_for_ready,
183
+ timeout,
184
+ metadata,
185
+ _registered_method=True)
@@ -0,0 +1,53 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: cortexdb/v1/contract.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'cortexdb/v1/contract.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63ortexdb/v1/contract.proto\x12\x0b\x63ortexdb.v1\"*\n\nGradeCount\x12\r\n\x05nodes\x18\x01 \x01(\x03\x12\r\n\x05\x65\x64ges\x18\x02 \x01(\x03\"\x16\n\x14\x43ontractTallyRequest\"\xa6\x03\n\x15\x43ontractTallyResponse\x12)\n\x08verified\x18\x01 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12\x30\n\x0fself_consistent\x18\x02 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12)\n\x08\x61sserted\x18\x03 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12%\n\x04held\x18\x04 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12(\n\x07refused\x18\x05 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12)\n\x08untagged\x18\x06 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount\x12@\n\x07unknown\x18\x07 \x03(\x0b\x32/.cortexdb.v1.ContractTallyResponse.UnknownEntry\x1aG\n\x0cUnknownEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.cortexdb.v1.GradeCount:\x02\x38\x01\"\xc6\x01\n\x0cGradedRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x02 \x01(\x08\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x04 \x01(\t\x12\x0c\n\x04\x66rom\x18\x05 \x01(\t\x12\n\n\x02to\x18\x06 \x01(\t\x12\r\n\x05grade\x18\x07 \x01(\t\x12\r\n\x05state\x18\x08 \x01(\t\x12\x0b\n\x03why\x18\t \x01(\t\x12\x0e\n\x06source\x18\n \x01(\t\x12\x10\n\x08producer\x18\x0b \x01(\t\x12\n\n\x02\x61t\x18\x0c \x01(\t\x12\n\n\x02\x62y\x18\r \x01(\t\"&\n\x15NeedsAttentionRequest\x12\r\n\x05limit\x18\x01 \x01(\x05\"f\n\x16NeedsAttentionResponse\x12*\n\x07records\x18\x01 \x03(\x0b\x32\x19.cortexdb.v1.GradedRecord\x12\x11\n\ttruncated\x18\x02 \x01(\x08\x12\r\n\x05total\x18\x03 \x01(\x03\x32\xc4\x01\n\x0f\x43ontractService\x12V\n\rContractTally\x12!.cortexdb.v1.ContractTallyRequest\x1a\".cortexdb.v1.ContractTallyResponse\x12Y\n\x0eNeedsAttention\x12\".cortexdb.v1.NeedsAttentionRequest\x1a#.cortexdb.v1.NeedsAttentionResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cortexdb.v1.contract_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1'
35
+ _globals['_CONTRACTTALLYRESPONSE_UNKNOWNENTRY']._loaded_options = None
36
+ _globals['_CONTRACTTALLYRESPONSE_UNKNOWNENTRY']._serialized_options = b'8\001'
37
+ _globals['_GRADECOUNT']._serialized_start=43
38
+ _globals['_GRADECOUNT']._serialized_end=85
39
+ _globals['_CONTRACTTALLYREQUEST']._serialized_start=87
40
+ _globals['_CONTRACTTALLYREQUEST']._serialized_end=109
41
+ _globals['_CONTRACTTALLYRESPONSE']._serialized_start=112
42
+ _globals['_CONTRACTTALLYRESPONSE']._serialized_end=534
43
+ _globals['_CONTRACTTALLYRESPONSE_UNKNOWNENTRY']._serialized_start=463
44
+ _globals['_CONTRACTTALLYRESPONSE_UNKNOWNENTRY']._serialized_end=534
45
+ _globals['_GRADEDRECORD']._serialized_start=537
46
+ _globals['_GRADEDRECORD']._serialized_end=735
47
+ _globals['_NEEDSATTENTIONREQUEST']._serialized_start=737
48
+ _globals['_NEEDSATTENTIONREQUEST']._serialized_end=775
49
+ _globals['_NEEDSATTENTIONRESPONSE']._serialized_start=777
50
+ _globals['_NEEDSATTENTIONRESPONSE']._serialized_end=879
51
+ _globals['_CONTRACTSERVICE']._serialized_start=882
52
+ _globals['_CONTRACTSERVICE']._serialized_end=1078
53
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,157 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from cortexdb_client._pb.cortexdb.v1 import contract_pb2 as cortexdb_dot_v1_dot_contract__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in cortexdb/v1/contract_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class ContractServiceStub:
29
+ """ContractService reads the knowledge contract. Read-only by construction:
30
+ what goes on the shelf is written through the stores' own RPCs, and a
31
+ producer that could stamp a grade without writing the record would be a way
32
+ to make the tally disagree with the shelf.
33
+ """
34
+
35
+ def __init__(self, channel):
36
+ """Constructor.
37
+
38
+ Args:
39
+ channel: A grpc.Channel.
40
+ """
41
+ self.ContractTally = channel.unary_unary(
42
+ '/cortexdb.v1.ContractService/ContractTally',
43
+ request_serializer=cortexdb_dot_v1_dot_contract__pb2.ContractTallyRequest.SerializeToString,
44
+ response_deserializer=cortexdb_dot_v1_dot_contract__pb2.ContractTallyResponse.FromString,
45
+ _registered_method=True)
46
+ self.NeedsAttention = channel.unary_unary(
47
+ '/cortexdb.v1.ContractService/NeedsAttention',
48
+ request_serializer=cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionRequest.SerializeToString,
49
+ response_deserializer=cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionResponse.FromString,
50
+ _registered_method=True)
51
+
52
+
53
+ class ContractServiceServicer:
54
+ """ContractService reads the knowledge contract. Read-only by construction:
55
+ what goes on the shelf is written through the stores' own RPCs, and a
56
+ producer that could stamp a grade without writing the record would be a way
57
+ to make the tally disagree with the shelf.
58
+ """
59
+
60
+ def ContractTally(self, request, context):
61
+ """ContractTally counts every node and edge by its grade.
62
+ """
63
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
64
+ context.set_details('Method not implemented!')
65
+ raise NotImplementedError('Method not implemented!')
66
+
67
+ def NeedsAttention(self, request, context):
68
+ """NeedsAttention lists what a person has to deal with. It is a named call
69
+ rather than a filter language because it is the one question the contract
70
+ exists to make answerable, and because held and refused belong in one list
71
+ — split into two calls, it is likely only one gets rendered.
72
+ """
73
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
74
+ context.set_details('Method not implemented!')
75
+ raise NotImplementedError('Method not implemented!')
76
+
77
+
78
+ def add_ContractServiceServicer_to_server(servicer, server):
79
+ rpc_method_handlers = {
80
+ 'ContractTally': grpc.unary_unary_rpc_method_handler(
81
+ servicer.ContractTally,
82
+ request_deserializer=cortexdb_dot_v1_dot_contract__pb2.ContractTallyRequest.FromString,
83
+ response_serializer=cortexdb_dot_v1_dot_contract__pb2.ContractTallyResponse.SerializeToString,
84
+ ),
85
+ 'NeedsAttention': grpc.unary_unary_rpc_method_handler(
86
+ servicer.NeedsAttention,
87
+ request_deserializer=cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionRequest.FromString,
88
+ response_serializer=cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionResponse.SerializeToString,
89
+ ),
90
+ }
91
+ generic_handler = grpc.method_handlers_generic_handler(
92
+ 'cortexdb.v1.ContractService', rpc_method_handlers)
93
+ server.add_generic_rpc_handlers((generic_handler,))
94
+ server.add_registered_method_handlers('cortexdb.v1.ContractService', rpc_method_handlers)
95
+
96
+
97
+ # This class is part of an EXPERIMENTAL API.
98
+ class ContractService:
99
+ """ContractService reads the knowledge contract. Read-only by construction:
100
+ what goes on the shelf is written through the stores' own RPCs, and a
101
+ producer that could stamp a grade without writing the record would be a way
102
+ to make the tally disagree with the shelf.
103
+ """
104
+
105
+ @staticmethod
106
+ def ContractTally(request,
107
+ target,
108
+ options=(),
109
+ channel_credentials=None,
110
+ call_credentials=None,
111
+ insecure=False,
112
+ compression=None,
113
+ wait_for_ready=None,
114
+ timeout=None,
115
+ metadata=None):
116
+ return grpc.experimental.unary_unary(
117
+ request,
118
+ target,
119
+ '/cortexdb.v1.ContractService/ContractTally',
120
+ cortexdb_dot_v1_dot_contract__pb2.ContractTallyRequest.SerializeToString,
121
+ cortexdb_dot_v1_dot_contract__pb2.ContractTallyResponse.FromString,
122
+ options,
123
+ channel_credentials,
124
+ insecure,
125
+ call_credentials,
126
+ compression,
127
+ wait_for_ready,
128
+ timeout,
129
+ metadata,
130
+ _registered_method=True)
131
+
132
+ @staticmethod
133
+ def NeedsAttention(request,
134
+ target,
135
+ options=(),
136
+ channel_credentials=None,
137
+ call_credentials=None,
138
+ insecure=False,
139
+ compression=None,
140
+ wait_for_ready=None,
141
+ timeout=None,
142
+ metadata=None):
143
+ return grpc.experimental.unary_unary(
144
+ request,
145
+ target,
146
+ '/cortexdb.v1.ContractService/NeedsAttention',
147
+ cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionRequest.SerializeToString,
148
+ cortexdb_dot_v1_dot_contract__pb2.NeedsAttentionResponse.FromString,
149
+ options,
150
+ channel_credentials,
151
+ insecure,
152
+ call_credentials,
153
+ compression,
154
+ wait_for_ready,
155
+ timeout,
156
+ metadata,
157
+ _registered_method=True)
@@ -0,0 +1,53 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: cortexdb/v1/decision.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'cortexdb/v1/decision.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63ortexdb/v1/decision.proto\x12\x0b\x63ortexdb.v1\"\xa6\x01\n\x0f\x44\x65\x63isionPremise\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x02 \x01(\x08\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x04 \x01(\t\x12\x0c\n\x04\x66rom\x18\x05 \x01(\t\x12\n\n\x02to\x18\x06 \x01(\t\x12\x10\n\x08\x64\x65\x63ision\x18\x07 \x01(\x08\x12\r\n\x05grade\x18\x08 \x01(\t\x12\x0e\n\x06source\x18\t \x01(\t\x12\x0f\n\x07missing\x18\n \x01(\x08\"\x80\x02\n\x08\x44\x65\x63ision\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\r\n\x05\x61\x63tor\x18\x03 \x01(\t\x12\n\n\x02\x61t\x18\x04 \x01(\t\x12\x0f\n\x07verdict\x18\x05 \x01(\t\x12\x0f\n\x07subject\x18\x06 \x01(\t\x12\x0c\n\x04note\x18\x07 \x01(\t\x12\r\n\x05grade\x18\x08 \x01(\t\x12\x0e\n\x06source\x18\t \x01(\t\x12\x10\n\x08producer\x18\n \x01(\t\x12\r\n\x05state\x18\x0b \x01(\t\x12\x0b\n\x03why\x18\x0c \x01(\t\x12.\n\x08premises\x18\r \x03(\x0b\x32\x1c.cortexdb.v1.DecisionPremise\x12\x12\n\nsupersedes\x18\x0e \x03(\t\"\xef\x01\n\x15RecordDecisionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\r\n\x05\x61\x63tor\x18\x03 \x01(\t\x12\x0c\n\x04note\x18\x04 \x01(\t\x12\x0f\n\x07verdict\x18\x05 \x01(\t\x12\x0f\n\x07subject\x18\x06 \x01(\t\x12\x10\n\x08premises\x18\x07 \x03(\t\x12\x12\n\nsupersedes\x18\x08 \x01(\t\x12\n\n\x02\x61t\x18\t \x01(\t\x12\x0e\n\x06source\x18\n \x01(\t\x12\x10\n\x08producer\x18\x0b \x01(\t\x12\r\n\x05grade\x18\x0c \x01(\t\x12\r\n\x05state\x18\r \x01(\t\x12\x0b\n\x03why\x18\x0e \x01(\t\"A\n\x16RecordDecisionResponse\x12\'\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0b\x32\x15.cortexdb.v1.Decision\"5\n\x14\x44\x65\x63isionChainRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tmax_depth\x18\x02 \x01(\x05\"q\n\x15\x44\x65\x63isionChainResponse\x12\x0c\n\x04root\x18\x01 \x01(\t\x12(\n\tdecisions\x18\x02 \x03(\x0b\x32\x15.cortexdb.v1.Decision\x12\r\n\x05\x64\x65pth\x18\x03 \x01(\x05\x12\x11\n\ttruncated\x18\x04 \x01(\x08\"R\n\x11PrecedentsRequest\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x0f\n\x07\x65xclude\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\x05\"`\n\x12PrecedentsResponse\x12(\n\tdecisions\x18\x01 \x03(\x0b\x32\x15.cortexdb.v1.Decision\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\x12\x11\n\ttruncated\x18\x03 \x01(\x08\x32\x93\x02\n\x0f\x44\x65\x63isionService\x12Y\n\x0eRecordDecision\x12\".cortexdb.v1.RecordDecisionRequest\x1a#.cortexdb.v1.RecordDecisionResponse\x12V\n\rDecisionChain\x12!.cortexdb.v1.DecisionChainRequest\x1a\".cortexdb.v1.DecisionChainResponse\x12M\n\nPrecedents\x12\x1e.cortexdb.v1.PrecedentsRequest\x1a\x1f.cortexdb.v1.PrecedentsResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cortexdb.v1.decision_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1'
35
+ _globals['_DECISIONPREMISE']._serialized_start=44
36
+ _globals['_DECISIONPREMISE']._serialized_end=210
37
+ _globals['_DECISION']._serialized_start=213
38
+ _globals['_DECISION']._serialized_end=469
39
+ _globals['_RECORDDECISIONREQUEST']._serialized_start=472
40
+ _globals['_RECORDDECISIONREQUEST']._serialized_end=711
41
+ _globals['_RECORDDECISIONRESPONSE']._serialized_start=713
42
+ _globals['_RECORDDECISIONRESPONSE']._serialized_end=778
43
+ _globals['_DECISIONCHAINREQUEST']._serialized_start=780
44
+ _globals['_DECISIONCHAINREQUEST']._serialized_end=833
45
+ _globals['_DECISIONCHAINRESPONSE']._serialized_start=835
46
+ _globals['_DECISIONCHAINRESPONSE']._serialized_end=948
47
+ _globals['_PRECEDENTSREQUEST']._serialized_start=950
48
+ _globals['_PRECEDENTSREQUEST']._serialized_end=1032
49
+ _globals['_PRECEDENTSRESPONSE']._serialized_start=1034
50
+ _globals['_PRECEDENTSRESPONSE']._serialized_end=1130
51
+ _globals['_DECISIONSERVICE']._serialized_start=1133
52
+ _globals['_DECISIONSERVICE']._serialized_end=1408
53
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,207 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from cortexdb_client._pb.cortexdb.v1 import decision_pb2 as cortexdb_dot_v1_dot_decision__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in cortexdb/v1/decision_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class DecisionServiceStub:
29
+ """DecisionService records and reads the ledger. RecordDecision is the only
30
+ write, and it is a write in the ordinary sense — it puts a node and its
31
+ edges on the same shelf every other producer writes to, graded by the same
32
+ contract, so contract_tally counts a decision without being told about
33
+ decisions.
34
+ """
35
+
36
+ def __init__(self, channel):
37
+ """Constructor.
38
+
39
+ Args:
40
+ channel: A grpc.Channel.
41
+ """
42
+ self.RecordDecision = channel.unary_unary(
43
+ '/cortexdb.v1.DecisionService/RecordDecision',
44
+ request_serializer=cortexdb_dot_v1_dot_decision__pb2.RecordDecisionRequest.SerializeToString,
45
+ response_deserializer=cortexdb_dot_v1_dot_decision__pb2.RecordDecisionResponse.FromString,
46
+ _registered_method=True)
47
+ self.DecisionChain = channel.unary_unary(
48
+ '/cortexdb.v1.DecisionService/DecisionChain',
49
+ request_serializer=cortexdb_dot_v1_dot_decision__pb2.DecisionChainRequest.SerializeToString,
50
+ response_deserializer=cortexdb_dot_v1_dot_decision__pb2.DecisionChainResponse.FromString,
51
+ _registered_method=True)
52
+ self.Precedents = channel.unary_unary(
53
+ '/cortexdb.v1.DecisionService/Precedents',
54
+ request_serializer=cortexdb_dot_v1_dot_decision__pb2.PrecedentsRequest.SerializeToString,
55
+ response_deserializer=cortexdb_dot_v1_dot_decision__pb2.PrecedentsResponse.FromString,
56
+ _registered_method=True)
57
+
58
+
59
+ class DecisionServiceServicer:
60
+ """DecisionService records and reads the ledger. RecordDecision is the only
61
+ write, and it is a write in the ordinary sense — it puts a node and its
62
+ edges on the same shelf every other producer writes to, graded by the same
63
+ contract, so contract_tally counts a decision without being told about
64
+ decisions.
65
+ """
66
+
67
+ def RecordDecision(self, request, context):
68
+ """RecordDecision writes a decision and the edges that explain it. It fails
69
+ closed and it fails before writing anything: an unknown premise, an empty
70
+ actor or metadata the knowledge contract refuses leaves the store
71
+ untouched, because a decision that half-wrote has fewer premises than its
72
+ author believes and nothing downstream can tell that from a decision that
73
+ genuinely rested on less.
74
+ """
75
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
76
+ context.set_details('Method not implemented!')
77
+ raise NotImplementedError('Method not implemented!')
78
+
79
+ def DecisionChain(self, request, context):
80
+ """DecisionChain walks back from a decision to what it rested on.
81
+ """
82
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
83
+ context.set_details('Method not implemented!')
84
+ raise NotImplementedError('Method not implemented!')
85
+
86
+ def Precedents(self, request, context):
87
+ """Precedents lists earlier decisions of the same kind or about the same
88
+ subject, newest first.
89
+ """
90
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
91
+ context.set_details('Method not implemented!')
92
+ raise NotImplementedError('Method not implemented!')
93
+
94
+
95
+ def add_DecisionServiceServicer_to_server(servicer, server):
96
+ rpc_method_handlers = {
97
+ 'RecordDecision': grpc.unary_unary_rpc_method_handler(
98
+ servicer.RecordDecision,
99
+ request_deserializer=cortexdb_dot_v1_dot_decision__pb2.RecordDecisionRequest.FromString,
100
+ response_serializer=cortexdb_dot_v1_dot_decision__pb2.RecordDecisionResponse.SerializeToString,
101
+ ),
102
+ 'DecisionChain': grpc.unary_unary_rpc_method_handler(
103
+ servicer.DecisionChain,
104
+ request_deserializer=cortexdb_dot_v1_dot_decision__pb2.DecisionChainRequest.FromString,
105
+ response_serializer=cortexdb_dot_v1_dot_decision__pb2.DecisionChainResponse.SerializeToString,
106
+ ),
107
+ 'Precedents': grpc.unary_unary_rpc_method_handler(
108
+ servicer.Precedents,
109
+ request_deserializer=cortexdb_dot_v1_dot_decision__pb2.PrecedentsRequest.FromString,
110
+ response_serializer=cortexdb_dot_v1_dot_decision__pb2.PrecedentsResponse.SerializeToString,
111
+ ),
112
+ }
113
+ generic_handler = grpc.method_handlers_generic_handler(
114
+ 'cortexdb.v1.DecisionService', rpc_method_handlers)
115
+ server.add_generic_rpc_handlers((generic_handler,))
116
+ server.add_registered_method_handlers('cortexdb.v1.DecisionService', rpc_method_handlers)
117
+
118
+
119
+ # This class is part of an EXPERIMENTAL API.
120
+ class DecisionService:
121
+ """DecisionService records and reads the ledger. RecordDecision is the only
122
+ write, and it is a write in the ordinary sense — it puts a node and its
123
+ edges on the same shelf every other producer writes to, graded by the same
124
+ contract, so contract_tally counts a decision without being told about
125
+ decisions.
126
+ """
127
+
128
+ @staticmethod
129
+ def RecordDecision(request,
130
+ target,
131
+ options=(),
132
+ channel_credentials=None,
133
+ call_credentials=None,
134
+ insecure=False,
135
+ compression=None,
136
+ wait_for_ready=None,
137
+ timeout=None,
138
+ metadata=None):
139
+ return grpc.experimental.unary_unary(
140
+ request,
141
+ target,
142
+ '/cortexdb.v1.DecisionService/RecordDecision',
143
+ cortexdb_dot_v1_dot_decision__pb2.RecordDecisionRequest.SerializeToString,
144
+ cortexdb_dot_v1_dot_decision__pb2.RecordDecisionResponse.FromString,
145
+ options,
146
+ channel_credentials,
147
+ insecure,
148
+ call_credentials,
149
+ compression,
150
+ wait_for_ready,
151
+ timeout,
152
+ metadata,
153
+ _registered_method=True)
154
+
155
+ @staticmethod
156
+ def DecisionChain(request,
157
+ target,
158
+ options=(),
159
+ channel_credentials=None,
160
+ call_credentials=None,
161
+ insecure=False,
162
+ compression=None,
163
+ wait_for_ready=None,
164
+ timeout=None,
165
+ metadata=None):
166
+ return grpc.experimental.unary_unary(
167
+ request,
168
+ target,
169
+ '/cortexdb.v1.DecisionService/DecisionChain',
170
+ cortexdb_dot_v1_dot_decision__pb2.DecisionChainRequest.SerializeToString,
171
+ cortexdb_dot_v1_dot_decision__pb2.DecisionChainResponse.FromString,
172
+ options,
173
+ channel_credentials,
174
+ insecure,
175
+ call_credentials,
176
+ compression,
177
+ wait_for_ready,
178
+ timeout,
179
+ metadata,
180
+ _registered_method=True)
181
+
182
+ @staticmethod
183
+ def Precedents(request,
184
+ target,
185
+ options=(),
186
+ channel_credentials=None,
187
+ call_credentials=None,
188
+ insecure=False,
189
+ compression=None,
190
+ wait_for_ready=None,
191
+ timeout=None,
192
+ metadata=None):
193
+ return grpc.experimental.unary_unary(
194
+ request,
195
+ target,
196
+ '/cortexdb.v1.DecisionService/Precedents',
197
+ cortexdb_dot_v1_dot_decision__pb2.PrecedentsRequest.SerializeToString,
198
+ cortexdb_dot_v1_dot_decision__pb2.PrecedentsResponse.FromString,
199
+ options,
200
+ channel_credentials,
201
+ insecure,
202
+ call_credentials,
203
+ compression,
204
+ wait_for_ready,
205
+ timeout,
206
+ metadata,
207
+ _registered_method=True)
@@ -0,0 +1,166 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: cortexdb/v1/graph.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'cortexdb/v1/graph.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63ortexdb/v1/graph.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"J\n\x07RdfTerm\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08\x64\x61tatype\x18\x03 \x01(\t\x12\x10\n\x08language\x18\x04 \x01(\t\"\xf6\x01\n\tRdfTriple\x12\n\n\x02id\x18\x01 \x01(\t\x12%\n\x07subject\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\'\n\tpredicate\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12$\n\x06object\x18\x04 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12(\n\x05graph\x18\x05 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x00\x88\x01\x01\x12\x10\n\x08inferred\x18\x06 \x01(\x08\x12\x0c\n\x04rule\x18\x07 \x01(\t\x12\x13\n\x0bsupport_ids\x18\x08 \x03(\tB\x08\n\x06_graph\"\xa0\x02\n\rTriplePattern\x12*\n\x07subject\x18\x01 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x00\x88\x01\x01\x12,\n\tpredicate\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x01\x88\x01\x01\x12)\n\x06object\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x02\x88\x01\x01\x12(\n\x05graph\x18\x04 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x03\x88\x01\x01\x12\x15\n\x08inferred\x18\x05 \x01(\x08H\x04\x88\x01\x01\x12\r\n\x05limit\x18\x06 \x01(\x05\x42\n\n\x08_subjectB\x0c\n\n_predicateB\t\n\x07_objectB\x08\n\x06_graphB\x0b\n\t_inferred\"-\n\x0eGraphNamespace\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"5\n\x16UpsertNamespaceRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"I\n\x17UpsertNamespaceResponse\x12.\n\tnamespace\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.GraphNamespace\"\x17\n\x15ListNamespacesRequest\"I\n\x16ListNamespacesResponse\x12/\n\nnamespaces\x18\x01 \x03(\x0b\x32\x1b.cortexdb.v1.GraphNamespace\"F\n\x1bUpsertKnowledgeGraphRequest\x12\'\n\x07triples\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"A\n\x1cUpsertKnowledgeGraphResponse\x12\x12\n\ntriple_ids\x18\x01 \x03(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"H\n\x19\x46indKnowledgeGraphRequest\x12+\n\x07pattern\x18\x01 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePattern\"E\n\x1a\x46indKnowledgeGraphResponse\x12\'\n\x07triples\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"\x98\x01\n\x1b\x44\x65leteKnowledgeGraphRequest\x12\x12\n\ntriple_ids\x18\x01 \x03(\t\x12\'\n\x07triples\x18\x02 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x30\n\x07pattern\x18\x03 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePatternH\x00\x88\x01\x01\x42\n\n\x08_pattern\"/\n\x1c\x44\x65leteKnowledgeGraphResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x05\">\n\x1bImportKnowledgeGraphRequest\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"=\n\x1cImportKnowledgeGraphResponse\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"-\n\x1b\x45xportKnowledgeGraphRequest\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\"?\n\x1c\x45xportKnowledgeGraphResponse\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"\x86\x01\n\rSparqlBinding\x12\x32\n\x04vars\x18\x01 \x03(\x0b\x32$.cortexdb.v1.SparqlBinding.VarsEntry\x1a\x41\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm:\x02\x38\x01\"\xa7\x01\n\x0cSparqlResult\x12\x12\n\nquery_type\x18\x01 \x01(\t\x12\x0c\n\x04vars\x18\x02 \x03(\t\x12,\n\x08\x62indings\x18\x03 \x03(\x0b\x32\x1a.cortexdb.v1.SparqlBinding\x12\'\n\x07triples\x18\x04 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x0f\n\x07\x62oolean\x18\x05 \x01(\x08\x12\r\n\x05\x63ount\x18\x06 \x01(\x05\"#\n\x12QuerySparqlRequest\x12\r\n\x05query\x18\x01 \x01(\t\"@\n\x13QuerySparqlResponse\x12)\n\x06result\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.SparqlResult\"\xd9\x01\n\x15ShaclValidationResult\x12(\n\nfocus_node\x18\x01 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\"\n\x04path\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12#\n\x05value\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\x0f\n\x07message\x18\x04 \x01(\t\x12\x10\n\x08severity\x18\x05 \x01(\t\x12*\n\x0csource_shape\x18\x06 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\"T\n\x0bShaclReport\x12\x10\n\x08\x63onforms\x18\x01 \x01(\x08\x12\x33\n\x07results\x18\x02 \x03(\x0b\x32\".cortexdb.v1.ShaclValidationResult\">\n\x14ValidateShaclRequest\x12&\n\x06shapes\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"A\n\x15ValidateShaclResponse\x12(\n\x06report\x18\x01 \x01(\x0b\x32\x18.cortexdb.v1.ShaclReport\"\xc2\x01\n\x17RefreshInferenceRequest\x12\x0c\n\x04mode\x18\x01 \x01(\t\x12\x12\n\ntriple_ids\x18\x02 \x03(\t\x12\'\n\x07triples\x18\x03 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x30\n\x07pattern\x18\x04 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePatternH\x00\x88\x01\x01\x12\x1e\n\x16max_same_as_class_size\x18\x05 \x01(\x05\x42\n\n\x08_pattern\"B\n\x14OversizedSameAsClass\x12\x0c\n\x04size\x18\x01 \x01(\x05\x12\x0b\n\x03\x63\x61p\x18\x02 \x01(\x05\x12\x0f\n\x07members\x18\x03 \x03(\t\"\xbf\x02\n\x16InferenceRefreshResult\x12\x16\n\x0e\x65xplicit_count\x18\x01 \x01(\x05\x12\x16\n\x0einferred_count\x18\x02 \x01(\x05\x12\x13\n\x0bincremental\x18\x03 \x01(\x08\x12\x1f\n\x17\x61\x66\x66\x65\x63ted_explicit_count\x18\x04 \x01(\x05\x12\x1e\n\x16removed_inferred_count\x18\x05 \x01(\x05\x12\x44\n\x19oversized_same_as_classes\x18\x06 \x03(\x0b\x32!.cortexdb.v1.OversizedSameAsClass\x12<\n\x0finconsistencies\x18\x07 \x03(\x0b\x32#.cortexdb.v1.InferenceInconsistency\x12\x1b\n\x13inconsistency_count\x18\x08 \x01(\x05\"\xbc\x01\n\x16InferenceInconsistency\x12\x0c\n\x04rule\x18\x01 \x01(\t\x12\x13\n\x0b\x65xplanation\x18\x02 \x01(\t\x12\'\n\x07triples\x18\x03 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x31\n\x11suspended_same_as\x18\x04 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x0f\n\x07members\x18\x05 \x03(\t\x12\x12\n\nclass_size\x18\x06 \x01(\x05\"O\n\x18RefreshInferenceResponse\x12\x33\n\x06result\x18\x01 \x01(\x0b\x32#.cortexdb.v1.InferenceRefreshResult\"\x1b\n\x19SummarizeInferenceRequest\"\xa9\x01\n\x10InferenceSummary\x12\x16\n\x0e\x65xplicit_count\x18\x01 \x01(\x05\x12\x16\n\x0einferred_count\x18\x02 \x01(\x05\x12\x37\n\x05rules\x18\x03 \x03(\x0b\x32(.cortexdb.v1.InferenceSummary.RulesEntry\x1a,\n\nRulesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"K\n\x1aSummarizeInferenceResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x1d.cortexdb.v1.InferenceSummary\"z\n\x14InferenceExplanation\x12&\n\x06triple\x18\x01 \x01(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x10\n\x08\x65xplicit\x18\x02 \x01(\x08\x12\x0c\n\x04rule\x18\x03 \x01(\t\x12\x1a\n\x12support_triple_ids\x18\x04 \x03(\t\"\x9c\x01\n\x13InferenceTraceEntry\x12\x11\n\ttriple_id\x18\x01 \x01(\t\x12\x18\n\x10parent_triple_id\x18\x02 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x03 \x01(\x05\x12\x36\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12\x11\n\ttruncated\x18\x05 \x01(\x08\";\n\x17\x45xplainInferenceRequest\x12\x11\n\ttriple_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\"\x83\x01\n\x18\x45xplainInferenceResponse\x12\x36\n\x0b\x65xplanation\x18\x01 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12/\n\x05trace\x18\x02 \x03(\x0b\x32 .cortexdb.v1.InferenceTraceEntry\"\x84\x01\n\x19InferenceMatchExplanation\x12\x36\n\x0b\x65xplanation\x18\x01 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12/\n\x05trace\x18\x02 \x03(\x0b\x32 .cortexdb.v1.InferenceTraceEntry\"Z\n\x1c\x45xplainInferenceMatchRequest\x12+\n\x07pattern\x18\x01 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePattern\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\"X\n\x1d\x45xplainInferenceMatchResponse\x12\x37\n\x07matches\x18\x01 \x03(\x0b\x32&.cortexdb.v1.InferenceMatchExplanation\"T\n\x12OntologyEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1b\n\x13required_properties\x18\x03 \x03(\t\"\x8c\x01\n\x14OntologyRelationType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1a\n\x12\x61llowed_from_types\x18\x03 \x03(\t\x12\x18\n\x10\x61llowed_to_types\x18\x04 \x03(\t\x12\x1b\n\x13required_properties\x18\x05 \x03(\t\"\xc4\x03\n\x0eOntologySchema\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\x0e\n\x06\x61\x63tive\x18\x05 \x01(\x08\x12;\n\x08metadata\x18\x06 \x03(\x0b\x32).cortexdb.v1.OntologySchema.MetadataEntry\x12\x39\n\x0c\x65ntity_types\x18\x07 \x03(\x0b\x32\x1f.cortexdb.v1.OntologyEntityTypeB\x02\x18\x01\x12=\n\x0erelation_types\x18\x08 \x03(\x0b\x32!.cortexdb.v1.OntologyRelationTypeB\x02\x18\x01\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bschema_json\x18\x0b \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x03\n\x19SaveOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\x10\n\x08\x61\x63tivate\x18\x05 \x01(\x08\x12\x12\n\ndeactivate\x18\x06 \x01(\x08\x12\x46\n\x08metadata\x18\x07 \x03(\x0b\x32\x34.cortexdb.v1.SaveOntologySchemaRequest.MetadataEntry\x12\x39\n\x0c\x65ntity_types\x18\x08 \x03(\x0b\x32\x1f.cortexdb.v1.OntologyEntityTypeB\x02\x18\x01\x12=\n\x0erelation_types\x18\t \x03(\x0b\x32!.cortexdb.v1.OntologyRelationTypeB\x02\x18\x01\x12\x13\n\x0bschema_json\x18\n \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x1aSaveOntologySchemaResponse\x12+\n\x06schema\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"-\n\x18GetOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\"H\n\x19GetOntologySchemaResponse\x12+\n\x06schema\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"1\n\x1aListOntologySchemasRequest\x12\x13\n\x0b\x61\x63tive_only\x18\x01 \x01(\x08\"K\n\x1bListOntologySchemasResponse\x12,\n\x07schemas\x18\x01 \x03(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"0\n\x1b\x44\x65leteOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\"B\n\x1c\x44\x65leteOntologySchemaResponse\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x32\xd0\r\n\x15KnowledgeGraphService\x12\\\n\x0fUpsertNamespace\x12#.cortexdb.v1.UpsertNamespaceRequest\x1a$.cortexdb.v1.UpsertNamespaceResponse\x12Y\n\x0eListNamespaces\x12\".cortexdb.v1.ListNamespacesRequest\x1a#.cortexdb.v1.ListNamespacesResponse\x12k\n\x14UpsertKnowledgeGraph\x12(.cortexdb.v1.UpsertKnowledgeGraphRequest\x1a).cortexdb.v1.UpsertKnowledgeGraphResponse\x12\x65\n\x12\x46indKnowledgeGraph\x12&.cortexdb.v1.FindKnowledgeGraphRequest\x1a\'.cortexdb.v1.FindKnowledgeGraphResponse\x12k\n\x14\x44\x65leteKnowledgeGraph\x12(.cortexdb.v1.DeleteKnowledgeGraphRequest\x1a).cortexdb.v1.DeleteKnowledgeGraphResponse\x12k\n\x14ImportKnowledgeGraph\x12(.cortexdb.v1.ImportKnowledgeGraphRequest\x1a).cortexdb.v1.ImportKnowledgeGraphResponse\x12k\n\x14\x45xportKnowledgeGraph\x12(.cortexdb.v1.ExportKnowledgeGraphRequest\x1a).cortexdb.v1.ExportKnowledgeGraphResponse\x12P\n\x0bQuerySparql\x12\x1f.cortexdb.v1.QuerySparqlRequest\x1a .cortexdb.v1.QuerySparqlResponse\x12V\n\rValidateShacl\x12!.cortexdb.v1.ValidateShaclRequest\x1a\".cortexdb.v1.ValidateShaclResponse\x12_\n\x10RefreshInference\x12$.cortexdb.v1.RefreshInferenceRequest\x1a%.cortexdb.v1.RefreshInferenceResponse\x12\x65\n\x12SummarizeInference\x12&.cortexdb.v1.SummarizeInferenceRequest\x1a\'.cortexdb.v1.SummarizeInferenceResponse\x12_\n\x10\x45xplainInference\x12$.cortexdb.v1.ExplainInferenceRequest\x1a%.cortexdb.v1.ExplainInferenceResponse\x12n\n\x15\x45xplainInferenceMatch\x12).cortexdb.v1.ExplainInferenceMatchRequest\x1a*.cortexdb.v1.ExplainInferenceMatchResponse\x12\x65\n\x12SaveOntologySchema\x12&.cortexdb.v1.SaveOntologySchemaRequest\x1a\'.cortexdb.v1.SaveOntologySchemaResponse\x12\x62\n\x11GetOntologySchema\x12%.cortexdb.v1.GetOntologySchemaRequest\x1a&.cortexdb.v1.GetOntologySchemaResponse\x12h\n\x13ListOntologySchemas\x12\'.cortexdb.v1.ListOntologySchemasRequest\x1a(.cortexdb.v1.ListOntologySchemasResponse\x12k\n\x14\x44\x65leteOntologySchema\x12(.cortexdb.v1.DeleteOntologySchemaRequest\x1a).cortexdb.v1.DeleteOntologySchemaResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cortexdb.v1.graph_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1'
36
+ _globals['_SPARQLBINDING_VARSENTRY']._loaded_options = None
37
+ _globals['_SPARQLBINDING_VARSENTRY']._serialized_options = b'8\001'
38
+ _globals['_INFERENCESUMMARY_RULESENTRY']._loaded_options = None
39
+ _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_options = b'8\001'
40
+ _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._loaded_options = None
41
+ _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_options = b'8\001'
42
+ _globals['_ONTOLOGYSCHEMA'].fields_by_name['entity_types']._loaded_options = None
43
+ _globals['_ONTOLOGYSCHEMA'].fields_by_name['entity_types']._serialized_options = b'\030\001'
44
+ _globals['_ONTOLOGYSCHEMA'].fields_by_name['relation_types']._loaded_options = None
45
+ _globals['_ONTOLOGYSCHEMA'].fields_by_name['relation_types']._serialized_options = b'\030\001'
46
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._loaded_options = None
47
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_options = b'8\001'
48
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['entity_types']._loaded_options = None
49
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['entity_types']._serialized_options = b'\030\001'
50
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['relation_types']._loaded_options = None
51
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['relation_types']._serialized_options = b'\030\001'
52
+ _globals['_RDFTERM']._serialized_start=73
53
+ _globals['_RDFTERM']._serialized_end=147
54
+ _globals['_RDFTRIPLE']._serialized_start=150
55
+ _globals['_RDFTRIPLE']._serialized_end=396
56
+ _globals['_TRIPLEPATTERN']._serialized_start=399
57
+ _globals['_TRIPLEPATTERN']._serialized_end=687
58
+ _globals['_GRAPHNAMESPACE']._serialized_start=689
59
+ _globals['_GRAPHNAMESPACE']._serialized_end=734
60
+ _globals['_UPSERTNAMESPACEREQUEST']._serialized_start=736
61
+ _globals['_UPSERTNAMESPACEREQUEST']._serialized_end=789
62
+ _globals['_UPSERTNAMESPACERESPONSE']._serialized_start=791
63
+ _globals['_UPSERTNAMESPACERESPONSE']._serialized_end=864
64
+ _globals['_LISTNAMESPACESREQUEST']._serialized_start=866
65
+ _globals['_LISTNAMESPACESREQUEST']._serialized_end=889
66
+ _globals['_LISTNAMESPACESRESPONSE']._serialized_start=891
67
+ _globals['_LISTNAMESPACESRESPONSE']._serialized_end=964
68
+ _globals['_UPSERTKNOWLEDGEGRAPHREQUEST']._serialized_start=966
69
+ _globals['_UPSERTKNOWLEDGEGRAPHREQUEST']._serialized_end=1036
70
+ _globals['_UPSERTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1038
71
+ _globals['_UPSERTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1103
72
+ _globals['_FINDKNOWLEDGEGRAPHREQUEST']._serialized_start=1105
73
+ _globals['_FINDKNOWLEDGEGRAPHREQUEST']._serialized_end=1177
74
+ _globals['_FINDKNOWLEDGEGRAPHRESPONSE']._serialized_start=1179
75
+ _globals['_FINDKNOWLEDGEGRAPHRESPONSE']._serialized_end=1248
76
+ _globals['_DELETEKNOWLEDGEGRAPHREQUEST']._serialized_start=1251
77
+ _globals['_DELETEKNOWLEDGEGRAPHREQUEST']._serialized_end=1403
78
+ _globals['_DELETEKNOWLEDGEGRAPHRESPONSE']._serialized_start=1405
79
+ _globals['_DELETEKNOWLEDGEGRAPHRESPONSE']._serialized_end=1452
80
+ _globals['_IMPORTKNOWLEDGEGRAPHREQUEST']._serialized_start=1454
81
+ _globals['_IMPORTKNOWLEDGEGRAPHREQUEST']._serialized_end=1516
82
+ _globals['_IMPORTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1518
83
+ _globals['_IMPORTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1579
84
+ _globals['_EXPORTKNOWLEDGEGRAPHREQUEST']._serialized_start=1581
85
+ _globals['_EXPORTKNOWLEDGEGRAPHREQUEST']._serialized_end=1626
86
+ _globals['_EXPORTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1628
87
+ _globals['_EXPORTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1691
88
+ _globals['_SPARQLBINDING']._serialized_start=1694
89
+ _globals['_SPARQLBINDING']._serialized_end=1828
90
+ _globals['_SPARQLBINDING_VARSENTRY']._serialized_start=1763
91
+ _globals['_SPARQLBINDING_VARSENTRY']._serialized_end=1828
92
+ _globals['_SPARQLRESULT']._serialized_start=1831
93
+ _globals['_SPARQLRESULT']._serialized_end=1998
94
+ _globals['_QUERYSPARQLREQUEST']._serialized_start=2000
95
+ _globals['_QUERYSPARQLREQUEST']._serialized_end=2035
96
+ _globals['_QUERYSPARQLRESPONSE']._serialized_start=2037
97
+ _globals['_QUERYSPARQLRESPONSE']._serialized_end=2101
98
+ _globals['_SHACLVALIDATIONRESULT']._serialized_start=2104
99
+ _globals['_SHACLVALIDATIONRESULT']._serialized_end=2321
100
+ _globals['_SHACLREPORT']._serialized_start=2323
101
+ _globals['_SHACLREPORT']._serialized_end=2407
102
+ _globals['_VALIDATESHACLREQUEST']._serialized_start=2409
103
+ _globals['_VALIDATESHACLREQUEST']._serialized_end=2471
104
+ _globals['_VALIDATESHACLRESPONSE']._serialized_start=2473
105
+ _globals['_VALIDATESHACLRESPONSE']._serialized_end=2538
106
+ _globals['_REFRESHINFERENCEREQUEST']._serialized_start=2541
107
+ _globals['_REFRESHINFERENCEREQUEST']._serialized_end=2735
108
+ _globals['_OVERSIZEDSAMEASCLASS']._serialized_start=2737
109
+ _globals['_OVERSIZEDSAMEASCLASS']._serialized_end=2803
110
+ _globals['_INFERENCEREFRESHRESULT']._serialized_start=2806
111
+ _globals['_INFERENCEREFRESHRESULT']._serialized_end=3125
112
+ _globals['_INFERENCEINCONSISTENCY']._serialized_start=3128
113
+ _globals['_INFERENCEINCONSISTENCY']._serialized_end=3316
114
+ _globals['_REFRESHINFERENCERESPONSE']._serialized_start=3318
115
+ _globals['_REFRESHINFERENCERESPONSE']._serialized_end=3397
116
+ _globals['_SUMMARIZEINFERENCEREQUEST']._serialized_start=3399
117
+ _globals['_SUMMARIZEINFERENCEREQUEST']._serialized_end=3426
118
+ _globals['_INFERENCESUMMARY']._serialized_start=3429
119
+ _globals['_INFERENCESUMMARY']._serialized_end=3598
120
+ _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_start=3554
121
+ _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_end=3598
122
+ _globals['_SUMMARIZEINFERENCERESPONSE']._serialized_start=3600
123
+ _globals['_SUMMARIZEINFERENCERESPONSE']._serialized_end=3675
124
+ _globals['_INFERENCEEXPLANATION']._serialized_start=3677
125
+ _globals['_INFERENCEEXPLANATION']._serialized_end=3799
126
+ _globals['_INFERENCETRACEENTRY']._serialized_start=3802
127
+ _globals['_INFERENCETRACEENTRY']._serialized_end=3958
128
+ _globals['_EXPLAININFERENCEREQUEST']._serialized_start=3960
129
+ _globals['_EXPLAININFERENCEREQUEST']._serialized_end=4019
130
+ _globals['_EXPLAININFERENCERESPONSE']._serialized_start=4022
131
+ _globals['_EXPLAININFERENCERESPONSE']._serialized_end=4153
132
+ _globals['_INFERENCEMATCHEXPLANATION']._serialized_start=4156
133
+ _globals['_INFERENCEMATCHEXPLANATION']._serialized_end=4288
134
+ _globals['_EXPLAININFERENCEMATCHREQUEST']._serialized_start=4290
135
+ _globals['_EXPLAININFERENCEMATCHREQUEST']._serialized_end=4380
136
+ _globals['_EXPLAININFERENCEMATCHRESPONSE']._serialized_start=4382
137
+ _globals['_EXPLAININFERENCEMATCHRESPONSE']._serialized_end=4470
138
+ _globals['_ONTOLOGYENTITYTYPE']._serialized_start=4472
139
+ _globals['_ONTOLOGYENTITYTYPE']._serialized_end=4556
140
+ _globals['_ONTOLOGYRELATIONTYPE']._serialized_start=4559
141
+ _globals['_ONTOLOGYRELATIONTYPE']._serialized_end=4699
142
+ _globals['_ONTOLOGYSCHEMA']._serialized_start=4702
143
+ _globals['_ONTOLOGYSCHEMA']._serialized_end=5154
144
+ _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_start=5107
145
+ _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_end=5154
146
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST']._serialized_start=5157
147
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST']._serialized_end=5557
148
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_start=5107
149
+ _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_end=5154
150
+ _globals['_SAVEONTOLOGYSCHEMARESPONSE']._serialized_start=5559
151
+ _globals['_SAVEONTOLOGYSCHEMARESPONSE']._serialized_end=5632
152
+ _globals['_GETONTOLOGYSCHEMAREQUEST']._serialized_start=5634
153
+ _globals['_GETONTOLOGYSCHEMAREQUEST']._serialized_end=5679
154
+ _globals['_GETONTOLOGYSCHEMARESPONSE']._serialized_start=5681
155
+ _globals['_GETONTOLOGYSCHEMARESPONSE']._serialized_end=5753
156
+ _globals['_LISTONTOLOGYSCHEMASREQUEST']._serialized_start=5755
157
+ _globals['_LISTONTOLOGYSCHEMASREQUEST']._serialized_end=5804
158
+ _globals['_LISTONTOLOGYSCHEMASRESPONSE']._serialized_start=5806
159
+ _globals['_LISTONTOLOGYSCHEMASRESPONSE']._serialized_end=5881
160
+ _globals['_DELETEONTOLOGYSCHEMAREQUEST']._serialized_start=5883
161
+ _globals['_DELETEONTOLOGYSCHEMAREQUEST']._serialized_end=5931
162
+ _globals['_DELETEONTOLOGYSCHEMARESPONSE']._serialized_start=5933
163
+ _globals['_DELETEONTOLOGYSCHEMARESPONSE']._serialized_end=5999
164
+ _globals['_KNOWLEDGEGRAPHSERVICE']._serialized_start=6002
165
+ _globals['_KNOWLEDGEGRAPHSERVICE']._serialized_end=7746
166
+ # @@protoc_insertion_point(module_scope)
@@ -26,7 +26,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
26
26
  from cortexdb_client._pb.cortexdb.v1 import common_pb2 as cortexdb_dot_v1_dot_common__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63ortexdb/v1/knowledge.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18\x63ortexdb/v1/common.proto\"\xe9\x02\n\x0fKnowledgeRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x12\n\nsource_url\x18\x04 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x01(\t\x12\x12\n\ncollection\x18\x06 \x01(\t\x12<\n\x08metadata\x18\x07 \x03(\x0b\x32*.cortexdb.v1.KnowledgeRecord.MetadataEntry\x12\x11\n\tchunk_ids\x18\x08 \x03(\t\x12\x10\n\x08\x65ntities\x18\t \x03(\t\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x03\n\x14SaveKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x12\n\nsource_url\x18\x04 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x01(\t\x12\x12\n\ncollection\x18\x06 \x01(\t\x12\x12\n\nchunk_size\x18\x07 \x01(\x05\x12\x15\n\rchunk_overlap\x18\x08 \x01(\x05\x12\x41\n\x08metadata\x18\t \x03(\x0b\x32/.cortexdb.v1.SaveKnowledgeRequest.MetadataEntry\x12.\n\x08\x65ntities\x18\n \x03(\x0b\x32\x1c.cortexdb.v1.ToolEntityInput\x12\x31\n\trelations\x18\x0b \x03(\x0b\x32\x1e.cortexdb.v1.ToolRelationInput\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x01\n\x15SaveKnowledgeResponse\x12/\n\tknowledge\x18\x01 \x01(\x0b\x32\x1c.cortexdb.v1.KnowledgeRecord\x12\x18\n\x10\x64ocument_node_id\x18\x02 \x01(\t\x12\x17\n\x0f\x65ntity_node_ids\x18\x03 \x03(\t\x12\x19\n\x11relation_edge_ids\x18\x04 \x03(\t\"\x8d\x04\n\x16UpdateKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\x12\n\x05title\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x63ontent\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nsource_url\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x61uthor\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x17\n\ncollection\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x17\n\nchunk_size\x18\x07 \x01(\x05H\x05\x88\x01\x01\x12\x1a\n\rchunk_overlap\x18\x08 \x01(\x05H\x06\x88\x01\x01\x12\x43\n\x08metadata\x18\t \x03(\x0b\x32\x31.cortexdb.v1.UpdateKnowledgeRequest.MetadataEntry\x12.\n\x08\x65ntities\x18\n \x03(\x0b\x32\x1c.cortexdb.v1.ToolEntityInput\x12\x31\n\trelations\x18\x0b \x03(\x0b\x32\x1e.cortexdb.v1.ToolRelationInput\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06_titleB\n\n\x08_contentB\r\n\x0b_source_urlB\t\n\x07_authorB\r\n\x0b_collectionB\r\n\x0b_chunk_sizeB\x10\n\x0e_chunk_overlap\"+\n\x13GetKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\"G\n\x14GetKnowledgeResponse\x12/\n\tknowledge\x18\x01 \x01(\x0b\x32\x1c.cortexdb.v1.KnowledgeRecord\".\n\x16\x44\x65leteKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\"@\n\x17\x44\x65leteKnowledgeResponse\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\"\x96\x04\n\x16SearchKnowledgeRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\r\n\x05top_k\x18\x03 \x01(\x05\x12\x10\n\x08max_hops\x18\x04 \x01(\x05\x12\x1a\n\x12max_related_chunks\x18\x05 \x01(\x05\x12\x1a\n\x12max_context_chunks\x18\x06 \x01(\x05\x12\x19\n\x11max_context_chars\x18\x07 \x01(\x05\x12\x1a\n\x12per_document_limit\x18\x08 \x01(\x05\x12\x18\n\x10\x64iversity_lambda\x18\t \x01(\x01\x12\x16\n\x0e\x64isable_rerank\x18\n \x01(\x08\x12\x14\n\x0c\x65ntity_names\x18\x0b \x03(\t\x12\x10\n\x08keywords\x18\x0c \x03(\t\x12\x19\n\x11\x61lternate_queries\x18\r \x03(\t\x12\x16\n\x0eretrieval_mode\x18\x0e \x01(\t\x12\x15\n\rdisable_graph\x18\x0f \x01(\x08\x12\x13\n\x0bgraph_light\x18\x10 \x01(\x08\x12\x1b\n\x13max_expansion_seeds\x18\x11 \x01(\x05\x12\x1b\n\x13max_traversal_nodes\x18\x12 \x01(\x05\x12\x1e\n\x16max_entities_per_chunk\x18\x13 \x01(\x05\x12-\n\x04plan\x18\x14 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlanH\x00\x88\x01\x01\x42\x07\n\x05_plan\"\x94\x02\n\x12KnowledgeSearchHit\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x12\n\nsource_url\x18\x03 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x04 \x01(\t\x12\x0f\n\x07snippet\x18\x05 \x01(\t\x12\r\n\x05score\x18\x06 \x01(\x01\x12\x11\n\tchunk_ids\x18\x07 \x03(\t\x12\x10\n\x08\x65ntities\x18\x08 \x03(\t\x12?\n\x08metadata\x18\t \x03(\x0b\x32-.cortexdb.v1.KnowledgeSearchHit.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8b\x02\n\x17SearchKnowledgeResponse\x12\r\n\x05query\x18\x01 \x01(\t\x12(\n\x04plan\x18\x02 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlan\x12\x30\n\x08\x64\x65\x63ision\x18\x03 \x01(\x0b\x32\x1e.cortexdb.v1.RetrievalDecision\x12\x30\n\x07results\x18\x04 \x03(\x0b\x32\x1f.cortexdb.v1.KnowledgeSearchHit\x12\x30\n\x06\x63hunks\x18\x05 \x03(\x0b\x32 .cortexdb.v1.GraphRagChunkResult\x12\x10\n\x08\x65ntities\x18\x06 \x03(\t\x12\x0f\n\x07\x63ontext\x18\x07 \x01(\t2\xd7\x03\n\x10KnowledgeService\x12V\n\rSaveKnowledge\x12!.cortexdb.v1.SaveKnowledgeRequest\x1a\".cortexdb.v1.SaveKnowledgeResponse\x12Z\n\x0fUpdateKnowledge\x12#.cortexdb.v1.UpdateKnowledgeRequest\x1a\".cortexdb.v1.SaveKnowledgeResponse\x12S\n\x0cGetKnowledge\x12 .cortexdb.v1.GetKnowledgeRequest\x1a!.cortexdb.v1.GetKnowledgeResponse\x12\\\n\x0fSearchKnowledge\x12#.cortexdb.v1.SearchKnowledgeRequest\x1a$.cortexdb.v1.SearchKnowledgeResponse\x12\\\n\x0f\x44\x65leteKnowledge\x12#.cortexdb.v1.DeleteKnowledgeRequest\x1a$.cortexdb.v1.DeleteKnowledgeResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63ortexdb/v1/knowledge.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18\x63ortexdb/v1/common.proto\"\xe9\x02\n\x0fKnowledgeRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x12\n\nsource_url\x18\x04 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x01(\t\x12\x12\n\ncollection\x18\x06 \x01(\t\x12<\n\x08metadata\x18\x07 \x03(\x0b\x32*.cortexdb.v1.KnowledgeRecord.MetadataEntry\x12\x11\n\tchunk_ids\x18\x08 \x03(\t\x12\x10\n\x08\x65ntities\x18\t \x03(\t\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x03\n\x14SaveKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x12\n\nsource_url\x18\x04 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x01(\t\x12\x12\n\ncollection\x18\x06 \x01(\t\x12\x12\n\nchunk_size\x18\x07 \x01(\x05\x12\x15\n\rchunk_overlap\x18\x08 \x01(\x05\x12\x41\n\x08metadata\x18\t \x03(\x0b\x32/.cortexdb.v1.SaveKnowledgeRequest.MetadataEntry\x12.\n\x08\x65ntities\x18\n \x03(\x0b\x32\x1c.cortexdb.v1.ToolEntityInput\x12\x31\n\trelations\x18\x0b \x03(\x0b\x32\x1e.cortexdb.v1.ToolRelationInput\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x01\n\x15SaveKnowledgeResponse\x12/\n\tknowledge\x18\x01 \x01(\x0b\x32\x1c.cortexdb.v1.KnowledgeRecord\x12\x18\n\x10\x64ocument_node_id\x18\x02 \x01(\t\x12\x17\n\x0f\x65ntity_node_ids\x18\x03 \x03(\t\x12\x19\n\x11relation_edge_ids\x18\x04 \x03(\t\"\x8d\x04\n\x16UpdateKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\x12\n\x05title\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x63ontent\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nsource_url\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x61uthor\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x17\n\ncollection\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x17\n\nchunk_size\x18\x07 \x01(\x05H\x05\x88\x01\x01\x12\x1a\n\rchunk_overlap\x18\x08 \x01(\x05H\x06\x88\x01\x01\x12\x43\n\x08metadata\x18\t \x03(\x0b\x32\x31.cortexdb.v1.UpdateKnowledgeRequest.MetadataEntry\x12.\n\x08\x65ntities\x18\n \x03(\x0b\x32\x1c.cortexdb.v1.ToolEntityInput\x12\x31\n\trelations\x18\x0b \x03(\x0b\x32\x1e.cortexdb.v1.ToolRelationInput\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06_titleB\n\n\x08_contentB\r\n\x0b_source_urlB\t\n\x07_authorB\r\n\x0b_collectionB\r\n\x0b_chunk_sizeB\x10\n\x0e_chunk_overlap\"+\n\x13GetKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\"G\n\x14GetKnowledgeResponse\x12/\n\tknowledge\x18\x01 \x01(\x0b\x32\x1c.cortexdb.v1.KnowledgeRecord\".\n\x16\x44\x65leteKnowledgeRequest\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\"@\n\x17\x44\x65leteKnowledgeResponse\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\"\x96\x04\n\x16SearchKnowledgeRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\r\n\x05top_k\x18\x03 \x01(\x05\x12\x10\n\x08max_hops\x18\x04 \x01(\x05\x12\x1a\n\x12max_related_chunks\x18\x05 \x01(\x05\x12\x1a\n\x12max_context_chunks\x18\x06 \x01(\x05\x12\x19\n\x11max_context_chars\x18\x07 \x01(\x05\x12\x1a\n\x12per_document_limit\x18\x08 \x01(\x05\x12\x18\n\x10\x64iversity_lambda\x18\t \x01(\x01\x12\x16\n\x0e\x64isable_rerank\x18\n \x01(\x08\x12\x14\n\x0c\x65ntity_names\x18\x0b \x03(\t\x12\x10\n\x08keywords\x18\x0c \x03(\t\x12\x19\n\x11\x61lternate_queries\x18\r \x03(\t\x12\x16\n\x0eretrieval_mode\x18\x0e \x01(\t\x12\x15\n\rdisable_graph\x18\x0f \x01(\x08\x12\x13\n\x0bgraph_light\x18\x10 \x01(\x08\x12\x1b\n\x13max_expansion_seeds\x18\x11 \x01(\x05\x12\x1b\n\x13max_traversal_nodes\x18\x12 \x01(\x05\x12\x1e\n\x16max_entities_per_chunk\x18\x13 \x01(\x05\x12-\n\x04plan\x18\x14 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlanH\x00\x88\x01\x01\x42\x07\n\x05_plan\"\x94\x02\n\x12KnowledgeSearchHit\x12\x14\n\x0cknowledge_id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x12\n\nsource_url\x18\x03 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x04 \x01(\t\x12\x0f\n\x07snippet\x18\x05 \x01(\t\x12\r\n\x05score\x18\x06 \x01(\x01\x12\x11\n\tchunk_ids\x18\x07 \x03(\t\x12\x10\n\x08\x65ntities\x18\x08 \x03(\t\x12?\n\x08metadata\x18\t \x03(\x0b\x32-.cortexdb.v1.KnowledgeSearchHit.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9d\x02\n\x17SearchKnowledgeResponse\x12\r\n\x05query\x18\x01 \x01(\t\x12(\n\x04plan\x18\x02 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlan\x12\x30\n\x08\x64\x65\x63ision\x18\x03 \x01(\x0b\x32\x1e.cortexdb.v1.RetrievalDecision\x12\x30\n\x07results\x18\x04 \x03(\x0b\x32\x1f.cortexdb.v1.KnowledgeSearchHit\x12\x30\n\x06\x63hunks\x18\x05 \x03(\x0b\x32 .cortexdb.v1.GraphRagChunkResult\x12\x10\n\x08\x65ntities\x18\x06 \x03(\t\x12\x0f\n\x07\x63ontext\x18\x07 \x01(\t\x12\x10\n\x08\x64\x65graded\x18\x08 \x03(\t2\xd7\x03\n\x10KnowledgeService\x12V\n\rSaveKnowledge\x12!.cortexdb.v1.SaveKnowledgeRequest\x1a\".cortexdb.v1.SaveKnowledgeResponse\x12Z\n\x0fUpdateKnowledge\x12#.cortexdb.v1.UpdateKnowledgeRequest\x1a\".cortexdb.v1.SaveKnowledgeResponse\x12S\n\x0cGetKnowledge\x12 .cortexdb.v1.GetKnowledgeRequest\x1a!.cortexdb.v1.GetKnowledgeResponse\x12\\\n\x0fSearchKnowledge\x12#.cortexdb.v1.SearchKnowledgeRequest\x1a$.cortexdb.v1.SearchKnowledgeResponse\x12\\\n\x0f\x44\x65leteKnowledge\x12#.cortexdb.v1.DeleteKnowledgeRequest\x1a$.cortexdb.v1.DeleteKnowledgeResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -71,7 +71,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
71
71
  _globals['_KNOWLEDGESEARCHHIT_METADATAENTRY']._serialized_start=418
72
72
  _globals['_KNOWLEDGESEARCHHIT_METADATAENTRY']._serialized_end=465
73
73
  _globals['_SEARCHKNOWLEDGERESPONSE']._serialized_start=2590
74
- _globals['_SEARCHKNOWLEDGERESPONSE']._serialized_end=2857
75
- _globals['_KNOWLEDGESERVICE']._serialized_start=2860
76
- _globals['_KNOWLEDGESERVICE']._serialized_end=3331
74
+ _globals['_SEARCHKNOWLEDGERESPONSE']._serialized_end=2875
75
+ _globals['_KNOWLEDGESERVICE']._serialized_start=2878
76
+ _globals['_KNOWLEDGESERVICE']._serialized_end=3349
77
77
  # @@protoc_insertion_point(module_scope)
@@ -27,7 +27,7 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
27
27
  from cortexdb_client._pb.cortexdb.v1 import common_pb2 as cortexdb_dot_v1_dot_common__pb2
28
28
 
29
29
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63ortexdb/v1/memory.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18\x63ortexdb/v1/common.proto\"\xb4\x02\n\x0cMemoryRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\x0c\n\x04role\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x07 \x01(\t\x12)\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nimportance\x18\t \x01(\x01\x12\x13\n\x0bttl_seconds\x18\n \x01(\x05\x12.\n\nexpires_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe0\x01\n\x11SaveMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\x0c\n\x04role\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x07 \x01(\t\x12)\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nimportance\x18\t \x01(\x01\x12\x13\n\x0bttl_seconds\x18\n \x01(\x05\"?\n\x12SaveMemoryResponse\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\"\xc7\x01\n\x13UpdateMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x88\x01\x01\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x17\n\nimportance\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x18\n\x0bttl_seconds\x18\x05 \x01(\x05H\x02\x88\x01\x01\x42\n\n\x08_contentB\r\n\x0b_importanceB\x0e\n\x0c_ttl_seconds\"%\n\x10GetMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\">\n\x11GetMemoryResponse\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\"(\n\x13\x44\x65leteMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\":\n\x14\x44\x65leteMemoryResponse\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\"\xf7\x01\n\x13SearchMemoryRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\r\n\x05top_k\x18\x06 \x01(\x05\x12\x10\n\x08keywords\x18\x07 \x03(\t\x12\x19\n\x11\x61lternate_queries\x18\x08 \x03(\t\x12\x16\n\x0eretrieval_mode\x18\t \x01(\t\x12-\n\x04plan\x18\n \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlanH\x00\x88\x01\x01\x42\x07\n\x05_plan\"K\n\x0fMemorySearchHit\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\x12\r\n\x05score\x18\x02 \x01(\x01\"\xb0\x01\n\x14SearchMemoryResponse\x12\r\n\x05query\x18\x01 \x01(\t\x12(\n\x04plan\x18\x02 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlan\x12\x30\n\x08\x64\x65\x63ision\x18\x03 \x01(\x0b\x32\x1e.cortexdb.v1.RetrievalDecision\x12-\n\x07results\x18\x04 \x03(\x0b\x32\x1c.cortexdb.v1.MemorySearchHit2\xa7\x03\n\rMemoryService\x12M\n\nSaveMemory\x12\x1e.cortexdb.v1.SaveMemoryRequest\x1a\x1f.cortexdb.v1.SaveMemoryResponse\x12Q\n\x0cUpdateMemory\x12 .cortexdb.v1.UpdateMemoryRequest\x1a\x1f.cortexdb.v1.SaveMemoryResponse\x12J\n\tGetMemory\x12\x1d.cortexdb.v1.GetMemoryRequest\x1a\x1e.cortexdb.v1.GetMemoryResponse\x12S\n\x0cSearchMemory\x12 .cortexdb.v1.SearchMemoryRequest\x1a!.cortexdb.v1.SearchMemoryResponse\x12S\n\x0c\x44\x65leteMemory\x12 .cortexdb.v1.DeleteMemoryRequest\x1a!.cortexdb.v1.DeleteMemoryResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63ortexdb/v1/memory.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18\x63ortexdb/v1/common.proto\"\xb4\x02\n\x0cMemoryRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\x0c\n\x04role\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x07 \x01(\t\x12)\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nimportance\x18\t \x01(\x01\x12\x13\n\x0bttl_seconds\x18\n \x01(\x05\x12.\n\nexpires_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe0\x01\n\x11SaveMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\x0c\n\x04role\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x07 \x01(\t\x12)\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nimportance\x18\t \x01(\x01\x12\x13\n\x0bttl_seconds\x18\n \x01(\x05\"?\n\x12SaveMemoryResponse\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\"\xc7\x01\n\x13UpdateMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x88\x01\x01\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x17\n\nimportance\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x18\n\x0bttl_seconds\x18\x05 \x01(\x05H\x02\x88\x01\x01\x42\n\n\x08_contentB\r\n\x0b_importanceB\x0e\n\x0c_ttl_seconds\"%\n\x10GetMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\">\n\x11GetMemoryResponse\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\"(\n\x13\x44\x65leteMemoryRequest\x12\x11\n\tmemory_id\x18\x01 \x01(\t\":\n\x14\x44\x65leteMemoryResponse\x12\x11\n\tmemory_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\"\xf7\x01\n\x13SearchMemoryRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\x12\r\n\x05scope\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x05 \x01(\t\x12\r\n\x05top_k\x18\x06 \x01(\x05\x12\x10\n\x08keywords\x18\x07 \x03(\t\x12\x19\n\x11\x61lternate_queries\x18\x08 \x03(\t\x12\x16\n\x0eretrieval_mode\x18\t \x01(\t\x12-\n\x04plan\x18\n \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlanH\x00\x88\x01\x01\x42\x07\n\x05_plan\"K\n\x0fMemorySearchHit\x12)\n\x06memory\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.MemoryRecord\x12\r\n\x05score\x18\x02 \x01(\x01\"\xc2\x01\n\x14SearchMemoryResponse\x12\r\n\x05query\x18\x01 \x01(\t\x12(\n\x04plan\x18\x02 \x01(\x0b\x32\x1a.cortexdb.v1.RetrievalPlan\x12\x30\n\x08\x64\x65\x63ision\x18\x03 \x01(\x0b\x32\x1e.cortexdb.v1.RetrievalDecision\x12-\n\x07results\x18\x04 \x03(\x0b\x32\x1c.cortexdb.v1.MemorySearchHit\x12\x10\n\x08\x64\x65graded\x18\x05 \x03(\t2\xa7\x03\n\rMemoryService\x12M\n\nSaveMemory\x12\x1e.cortexdb.v1.SaveMemoryRequest\x1a\x1f.cortexdb.v1.SaveMemoryResponse\x12Q\n\x0cUpdateMemory\x12 .cortexdb.v1.UpdateMemoryRequest\x1a\x1f.cortexdb.v1.SaveMemoryResponse\x12J\n\tGetMemory\x12\x1d.cortexdb.v1.GetMemoryRequest\x1a\x1e.cortexdb.v1.GetMemoryResponse\x12S\n\x0cSearchMemory\x12 .cortexdb.v1.SearchMemoryRequest\x1a!.cortexdb.v1.SearchMemoryResponse\x12S\n\x0c\x44\x65leteMemory\x12 .cortexdb.v1.DeleteMemoryRequest\x1a!.cortexdb.v1.DeleteMemoryResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
31
31
 
32
32
  _globals = globals()
33
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -56,7 +56,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
56
56
  _globals['_MEMORYSEARCHHIT']._serialized_start=1390
57
57
  _globals['_MEMORYSEARCHHIT']._serialized_end=1465
58
58
  _globals['_SEARCHMEMORYRESPONSE']._serialized_start=1468
59
- _globals['_SEARCHMEMORYRESPONSE']._serialized_end=1644
60
- _globals['_MEMORYSERVICE']._serialized_start=1647
61
- _globals['_MEMORYSERVICE']._serialized_end=2070
59
+ _globals['_SEARCHMEMORYRESPONSE']._serialized_end=1662
60
+ _globals['_MEMORYSERVICE']._serialized_start=1665
61
+ _globals['_MEMORYSERVICE']._serialized_end=2088
62
62
  # @@protoc_insertion_point(module_scope)
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import uuid
5
6
  from typing import Optional
6
7
 
7
8
  import grpc
@@ -23,6 +24,31 @@ def _bearer_interceptor(token: str) -> grpc.UnaryUnaryClientInterceptor:
23
24
  return _Interceptor()
24
25
 
25
26
 
27
+ REQUEST_ID_HEADER = "x-request-id"
28
+
29
+
30
+ class _RequestIDInterceptor(grpc.UnaryUnaryClientInterceptor):
31
+ """Send a request id with every unary call, unless the caller set one.
32
+
33
+ The server logs the id and returns it; here it is also put on what the
34
+ call returns as ``request_id`` — on the raised ``grpc.RpcError`` too — so
35
+ a reply that went wrong can be matched to the server's record of it.
36
+ """
37
+
38
+ def intercept_unary_unary(self, continuation, client_call_details, request):
39
+ metadata = list(client_call_details.metadata or [])
40
+ request_id = next((v for k, v in metadata if k == REQUEST_ID_HEADER), None)
41
+ if request_id is None:
42
+ request_id = uuid.uuid4().hex
43
+ metadata.append((REQUEST_ID_HEADER, request_id))
44
+ outcome = continuation(client_call_details._replace(metadata=metadata), request)
45
+ try:
46
+ outcome.request_id = request_id
47
+ except AttributeError:
48
+ pass
49
+ return outcome
50
+
51
+
26
52
  class CortexClient:
27
53
  """One connection to a CortexDB sidecar, exposing all service clients.
28
54
 
@@ -65,6 +91,7 @@ class CortexClient:
65
91
  else:
66
92
  channel = grpc.insecure_channel(target)
67
93
 
94
+ channel = grpc.intercept_channel(channel, _RequestIDInterceptor())
68
95
  if token:
69
96
  channel = grpc.intercept_channel(channel, _bearer_interceptor(token))
70
97
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cortexdb-client"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "Typed gRPC client for CortexDB (AI memory + knowledge graph sidecar)"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -258,7 +258,7 @@ wheels = [
258
258
 
259
259
  [[package]]
260
260
  name = "cortexdb-client"
261
- version = "0.1.0"
261
+ version = "0.3.0"
262
262
  source = { editable = "." }
263
263
  dependencies = [
264
264
  { name = "grpcio", version = "1.80.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
@@ -1,162 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: cortexdb/v1/graph.proto
5
- # Protobuf Python Version: 6.33.5
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
17
- '',
18
- 'cortexdb/v1/graph.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
-
27
-
28
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63ortexdb/v1/graph.proto\x12\x0b\x63ortexdb.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"J\n\x07RdfTerm\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08\x64\x61tatype\x18\x03 \x01(\t\x12\x10\n\x08language\x18\x04 \x01(\t\"\xf6\x01\n\tRdfTriple\x12\n\n\x02id\x18\x01 \x01(\t\x12%\n\x07subject\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\'\n\tpredicate\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12$\n\x06object\x18\x04 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12(\n\x05graph\x18\x05 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x00\x88\x01\x01\x12\x10\n\x08inferred\x18\x06 \x01(\x08\x12\x0c\n\x04rule\x18\x07 \x01(\t\x12\x13\n\x0bsupport_ids\x18\x08 \x03(\tB\x08\n\x06_graph\"\xa0\x02\n\rTriplePattern\x12*\n\x07subject\x18\x01 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x00\x88\x01\x01\x12,\n\tpredicate\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x01\x88\x01\x01\x12)\n\x06object\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x02\x88\x01\x01\x12(\n\x05graph\x18\x04 \x01(\x0b\x32\x14.cortexdb.v1.RdfTermH\x03\x88\x01\x01\x12\x15\n\x08inferred\x18\x05 \x01(\x08H\x04\x88\x01\x01\x12\r\n\x05limit\x18\x06 \x01(\x05\x42\n\n\x08_subjectB\x0c\n\n_predicateB\t\n\x07_objectB\x08\n\x06_graphB\x0b\n\t_inferred\"-\n\x0eGraphNamespace\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"5\n\x16UpsertNamespaceRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"I\n\x17UpsertNamespaceResponse\x12.\n\tnamespace\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.GraphNamespace\"\x17\n\x15ListNamespacesRequest\"I\n\x16ListNamespacesResponse\x12/\n\nnamespaces\x18\x01 \x03(\x0b\x32\x1b.cortexdb.v1.GraphNamespace\"F\n\x1bUpsertKnowledgeGraphRequest\x12\'\n\x07triples\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"A\n\x1cUpsertKnowledgeGraphResponse\x12\x12\n\ntriple_ids\x18\x01 \x03(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"H\n\x19\x46indKnowledgeGraphRequest\x12+\n\x07pattern\x18\x01 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePattern\"E\n\x1a\x46indKnowledgeGraphResponse\x12\'\n\x07triples\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"\x98\x01\n\x1b\x44\x65leteKnowledgeGraphRequest\x12\x12\n\ntriple_ids\x18\x01 \x03(\t\x12\'\n\x07triples\x18\x02 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x30\n\x07pattern\x18\x03 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePatternH\x00\x88\x01\x01\x42\n\n\x08_pattern\"/\n\x1c\x44\x65leteKnowledgeGraphResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x05\">\n\x1bImportKnowledgeGraphRequest\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"=\n\x1cImportKnowledgeGraphResponse\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"-\n\x1b\x45xportKnowledgeGraphRequest\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\"?\n\x1c\x45xportKnowledgeGraphResponse\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"\x86\x01\n\rSparqlBinding\x12\x32\n\x04vars\x18\x01 \x03(\x0b\x32$.cortexdb.v1.SparqlBinding.VarsEntry\x1a\x41\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm:\x02\x38\x01\"\xa7\x01\n\x0cSparqlResult\x12\x12\n\nquery_type\x18\x01 \x01(\t\x12\x0c\n\x04vars\x18\x02 \x03(\t\x12,\n\x08\x62indings\x18\x03 \x03(\x0b\x32\x1a.cortexdb.v1.SparqlBinding\x12\'\n\x07triples\x18\x04 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x0f\n\x07\x62oolean\x18\x05 \x01(\x08\x12\r\n\x05\x63ount\x18\x06 \x01(\x05\"#\n\x12QuerySparqlRequest\x12\r\n\x05query\x18\x01 \x01(\t\"@\n\x13QuerySparqlResponse\x12)\n\x06result\x18\x01 \x01(\x0b\x32\x19.cortexdb.v1.SparqlResult\"\xd9\x01\n\x15ShaclValidationResult\x12(\n\nfocus_node\x18\x01 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\"\n\x04path\x18\x02 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12#\n\x05value\x18\x03 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\x12\x0f\n\x07message\x18\x04 \x01(\t\x12\x10\n\x08severity\x18\x05 \x01(\t\x12*\n\x0csource_shape\x18\x06 \x01(\x0b\x32\x14.cortexdb.v1.RdfTerm\"T\n\x0bShaclReport\x12\x10\n\x08\x63onforms\x18\x01 \x01(\x08\x12\x33\n\x07results\x18\x02 \x03(\x0b\x32\".cortexdb.v1.ShaclValidationResult\">\n\x14ValidateShaclRequest\x12&\n\x06shapes\x18\x01 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\"A\n\x15ValidateShaclResponse\x12(\n\x06report\x18\x01 \x01(\x0b\x32\x18.cortexdb.v1.ShaclReport\"\xa2\x01\n\x17RefreshInferenceRequest\x12\x0c\n\x04mode\x18\x01 \x01(\t\x12\x12\n\ntriple_ids\x18\x02 \x03(\t\x12\'\n\x07triples\x18\x03 \x03(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x30\n\x07pattern\x18\x04 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePatternH\x00\x88\x01\x01\x42\n\n\x08_pattern\"\x9e\x01\n\x16InferenceRefreshResult\x12\x16\n\x0e\x65xplicit_count\x18\x01 \x01(\x05\x12\x16\n\x0einferred_count\x18\x02 \x01(\x05\x12\x13\n\x0bincremental\x18\x03 \x01(\x08\x12\x1f\n\x17\x61\x66\x66\x65\x63ted_explicit_count\x18\x04 \x01(\x05\x12\x1e\n\x16removed_inferred_count\x18\x05 \x01(\x05\"O\n\x18RefreshInferenceResponse\x12\x33\n\x06result\x18\x01 \x01(\x0b\x32#.cortexdb.v1.InferenceRefreshResult\"\x1b\n\x19SummarizeInferenceRequest\"\xa9\x01\n\x10InferenceSummary\x12\x16\n\x0e\x65xplicit_count\x18\x01 \x01(\x05\x12\x16\n\x0einferred_count\x18\x02 \x01(\x05\x12\x37\n\x05rules\x18\x03 \x03(\x0b\x32(.cortexdb.v1.InferenceSummary.RulesEntry\x1a,\n\nRulesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"K\n\x1aSummarizeInferenceResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x1d.cortexdb.v1.InferenceSummary\"z\n\x14InferenceExplanation\x12&\n\x06triple\x18\x01 \x01(\x0b\x32\x16.cortexdb.v1.RdfTriple\x12\x10\n\x08\x65xplicit\x18\x02 \x01(\x08\x12\x0c\n\x04rule\x18\x03 \x01(\t\x12\x1a\n\x12support_triple_ids\x18\x04 \x03(\t\"\x9c\x01\n\x13InferenceTraceEntry\x12\x11\n\ttriple_id\x18\x01 \x01(\t\x12\x18\n\x10parent_triple_id\x18\x02 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x03 \x01(\x05\x12\x36\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12\x11\n\ttruncated\x18\x05 \x01(\x08\";\n\x17\x45xplainInferenceRequest\x12\x11\n\ttriple_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\"\x83\x01\n\x18\x45xplainInferenceResponse\x12\x36\n\x0b\x65xplanation\x18\x01 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12/\n\x05trace\x18\x02 \x03(\x0b\x32 .cortexdb.v1.InferenceTraceEntry\"\x84\x01\n\x19InferenceMatchExplanation\x12\x36\n\x0b\x65xplanation\x18\x01 \x01(\x0b\x32!.cortexdb.v1.InferenceExplanation\x12/\n\x05trace\x18\x02 \x03(\x0b\x32 .cortexdb.v1.InferenceTraceEntry\"Z\n\x1c\x45xplainInferenceMatchRequest\x12+\n\x07pattern\x18\x01 \x01(\x0b\x32\x1a.cortexdb.v1.TriplePattern\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\"X\n\x1d\x45xplainInferenceMatchResponse\x12\x37\n\x07matches\x18\x01 \x03(\x0b\x32&.cortexdb.v1.InferenceMatchExplanation\"T\n\x12OntologyEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1b\n\x13required_properties\x18\x03 \x03(\t\"\x8c\x01\n\x14OntologyRelationType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1a\n\x12\x61llowed_from_types\x18\x03 \x03(\t\x12\x18\n\x10\x61llowed_to_types\x18\x04 \x03(\t\x12\x1b\n\x13required_properties\x18\x05 \x03(\t\"\xc4\x03\n\x0eOntologySchema\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\x0e\n\x06\x61\x63tive\x18\x05 \x01(\x08\x12;\n\x08metadata\x18\x06 \x03(\x0b\x32).cortexdb.v1.OntologySchema.MetadataEntry\x12\x39\n\x0c\x65ntity_types\x18\x07 \x03(\x0b\x32\x1f.cortexdb.v1.OntologyEntityTypeB\x02\x18\x01\x12=\n\x0erelation_types\x18\x08 \x03(\x0b\x32!.cortexdb.v1.OntologyRelationTypeB\x02\x18\x01\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bschema_json\x18\x0b \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x03\n\x19SaveOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\x10\n\x08\x61\x63tivate\x18\x05 \x01(\x08\x12\x12\n\ndeactivate\x18\x06 \x01(\x08\x12\x46\n\x08metadata\x18\x07 \x03(\x0b\x32\x34.cortexdb.v1.SaveOntologySchemaRequest.MetadataEntry\x12\x39\n\x0c\x65ntity_types\x18\x08 \x03(\x0b\x32\x1f.cortexdb.v1.OntologyEntityTypeB\x02\x18\x01\x12=\n\x0erelation_types\x18\t \x03(\x0b\x32!.cortexdb.v1.OntologyRelationTypeB\x02\x18\x01\x12\x13\n\x0bschema_json\x18\n \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x1aSaveOntologySchemaResponse\x12+\n\x06schema\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"-\n\x18GetOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\"H\n\x19GetOntologySchemaResponse\x12+\n\x06schema\x18\x01 \x01(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"1\n\x1aListOntologySchemasRequest\x12\x13\n\x0b\x61\x63tive_only\x18\x01 \x01(\x08\"K\n\x1bListOntologySchemasResponse\x12,\n\x07schemas\x18\x01 \x03(\x0b\x32\x1b.cortexdb.v1.OntologySchema\"0\n\x1b\x44\x65leteOntologySchemaRequest\x12\x11\n\tschema_id\x18\x01 \x01(\t\"B\n\x1c\x44\x65leteOntologySchemaResponse\x12\x11\n\tschema_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x32\xd0\r\n\x15KnowledgeGraphService\x12\\\n\x0fUpsertNamespace\x12#.cortexdb.v1.UpsertNamespaceRequest\x1a$.cortexdb.v1.UpsertNamespaceResponse\x12Y\n\x0eListNamespaces\x12\".cortexdb.v1.ListNamespacesRequest\x1a#.cortexdb.v1.ListNamespacesResponse\x12k\n\x14UpsertKnowledgeGraph\x12(.cortexdb.v1.UpsertKnowledgeGraphRequest\x1a).cortexdb.v1.UpsertKnowledgeGraphResponse\x12\x65\n\x12\x46indKnowledgeGraph\x12&.cortexdb.v1.FindKnowledgeGraphRequest\x1a\'.cortexdb.v1.FindKnowledgeGraphResponse\x12k\n\x14\x44\x65leteKnowledgeGraph\x12(.cortexdb.v1.DeleteKnowledgeGraphRequest\x1a).cortexdb.v1.DeleteKnowledgeGraphResponse\x12k\n\x14ImportKnowledgeGraph\x12(.cortexdb.v1.ImportKnowledgeGraphRequest\x1a).cortexdb.v1.ImportKnowledgeGraphResponse\x12k\n\x14\x45xportKnowledgeGraph\x12(.cortexdb.v1.ExportKnowledgeGraphRequest\x1a).cortexdb.v1.ExportKnowledgeGraphResponse\x12P\n\x0bQuerySparql\x12\x1f.cortexdb.v1.QuerySparqlRequest\x1a .cortexdb.v1.QuerySparqlResponse\x12V\n\rValidateShacl\x12!.cortexdb.v1.ValidateShaclRequest\x1a\".cortexdb.v1.ValidateShaclResponse\x12_\n\x10RefreshInference\x12$.cortexdb.v1.RefreshInferenceRequest\x1a%.cortexdb.v1.RefreshInferenceResponse\x12\x65\n\x12SummarizeInference\x12&.cortexdb.v1.SummarizeInferenceRequest\x1a\'.cortexdb.v1.SummarizeInferenceResponse\x12_\n\x10\x45xplainInference\x12$.cortexdb.v1.ExplainInferenceRequest\x1a%.cortexdb.v1.ExplainInferenceResponse\x12n\n\x15\x45xplainInferenceMatch\x12).cortexdb.v1.ExplainInferenceMatchRequest\x1a*.cortexdb.v1.ExplainInferenceMatchResponse\x12\x65\n\x12SaveOntologySchema\x12&.cortexdb.v1.SaveOntologySchemaRequest\x1a\'.cortexdb.v1.SaveOntologySchemaResponse\x12\x62\n\x11GetOntologySchema\x12%.cortexdb.v1.GetOntologySchemaRequest\x1a&.cortexdb.v1.GetOntologySchemaResponse\x12h\n\x13ListOntologySchemas\x12\'.cortexdb.v1.ListOntologySchemasRequest\x1a(.cortexdb.v1.ListOntologySchemasResponse\x12k\n\x14\x44\x65leteOntologySchema\x12(.cortexdb.v1.DeleteOntologySchemaRequest\x1a).cortexdb.v1.DeleteOntologySchemaResponseB4Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1b\x06proto3')
29
-
30
- _globals = globals()
31
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cortexdb.v1.graph_pb2', _globals)
33
- if not _descriptor._USE_C_DESCRIPTORS:
34
- _globals['DESCRIPTOR']._loaded_options = None
35
- _globals['DESCRIPTOR']._serialized_options = b'Z2github.com/liliang-cn/cortexdb/v2/pkg/rpc/v1;rpcv1'
36
- _globals['_SPARQLBINDING_VARSENTRY']._loaded_options = None
37
- _globals['_SPARQLBINDING_VARSENTRY']._serialized_options = b'8\001'
38
- _globals['_INFERENCESUMMARY_RULESENTRY']._loaded_options = None
39
- _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_options = b'8\001'
40
- _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._loaded_options = None
41
- _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_options = b'8\001'
42
- _globals['_ONTOLOGYSCHEMA'].fields_by_name['entity_types']._loaded_options = None
43
- _globals['_ONTOLOGYSCHEMA'].fields_by_name['entity_types']._serialized_options = b'\030\001'
44
- _globals['_ONTOLOGYSCHEMA'].fields_by_name['relation_types']._loaded_options = None
45
- _globals['_ONTOLOGYSCHEMA'].fields_by_name['relation_types']._serialized_options = b'\030\001'
46
- _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._loaded_options = None
47
- _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_options = b'8\001'
48
- _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['entity_types']._loaded_options = None
49
- _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['entity_types']._serialized_options = b'\030\001'
50
- _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['relation_types']._loaded_options = None
51
- _globals['_SAVEONTOLOGYSCHEMAREQUEST'].fields_by_name['relation_types']._serialized_options = b'\030\001'
52
- _globals['_RDFTERM']._serialized_start=73
53
- _globals['_RDFTERM']._serialized_end=147
54
- _globals['_RDFTRIPLE']._serialized_start=150
55
- _globals['_RDFTRIPLE']._serialized_end=396
56
- _globals['_TRIPLEPATTERN']._serialized_start=399
57
- _globals['_TRIPLEPATTERN']._serialized_end=687
58
- _globals['_GRAPHNAMESPACE']._serialized_start=689
59
- _globals['_GRAPHNAMESPACE']._serialized_end=734
60
- _globals['_UPSERTNAMESPACEREQUEST']._serialized_start=736
61
- _globals['_UPSERTNAMESPACEREQUEST']._serialized_end=789
62
- _globals['_UPSERTNAMESPACERESPONSE']._serialized_start=791
63
- _globals['_UPSERTNAMESPACERESPONSE']._serialized_end=864
64
- _globals['_LISTNAMESPACESREQUEST']._serialized_start=866
65
- _globals['_LISTNAMESPACESREQUEST']._serialized_end=889
66
- _globals['_LISTNAMESPACESRESPONSE']._serialized_start=891
67
- _globals['_LISTNAMESPACESRESPONSE']._serialized_end=964
68
- _globals['_UPSERTKNOWLEDGEGRAPHREQUEST']._serialized_start=966
69
- _globals['_UPSERTKNOWLEDGEGRAPHREQUEST']._serialized_end=1036
70
- _globals['_UPSERTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1038
71
- _globals['_UPSERTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1103
72
- _globals['_FINDKNOWLEDGEGRAPHREQUEST']._serialized_start=1105
73
- _globals['_FINDKNOWLEDGEGRAPHREQUEST']._serialized_end=1177
74
- _globals['_FINDKNOWLEDGEGRAPHRESPONSE']._serialized_start=1179
75
- _globals['_FINDKNOWLEDGEGRAPHRESPONSE']._serialized_end=1248
76
- _globals['_DELETEKNOWLEDGEGRAPHREQUEST']._serialized_start=1251
77
- _globals['_DELETEKNOWLEDGEGRAPHREQUEST']._serialized_end=1403
78
- _globals['_DELETEKNOWLEDGEGRAPHRESPONSE']._serialized_start=1405
79
- _globals['_DELETEKNOWLEDGEGRAPHRESPONSE']._serialized_end=1452
80
- _globals['_IMPORTKNOWLEDGEGRAPHREQUEST']._serialized_start=1454
81
- _globals['_IMPORTKNOWLEDGEGRAPHREQUEST']._serialized_end=1516
82
- _globals['_IMPORTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1518
83
- _globals['_IMPORTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1579
84
- _globals['_EXPORTKNOWLEDGEGRAPHREQUEST']._serialized_start=1581
85
- _globals['_EXPORTKNOWLEDGEGRAPHREQUEST']._serialized_end=1626
86
- _globals['_EXPORTKNOWLEDGEGRAPHRESPONSE']._serialized_start=1628
87
- _globals['_EXPORTKNOWLEDGEGRAPHRESPONSE']._serialized_end=1691
88
- _globals['_SPARQLBINDING']._serialized_start=1694
89
- _globals['_SPARQLBINDING']._serialized_end=1828
90
- _globals['_SPARQLBINDING_VARSENTRY']._serialized_start=1763
91
- _globals['_SPARQLBINDING_VARSENTRY']._serialized_end=1828
92
- _globals['_SPARQLRESULT']._serialized_start=1831
93
- _globals['_SPARQLRESULT']._serialized_end=1998
94
- _globals['_QUERYSPARQLREQUEST']._serialized_start=2000
95
- _globals['_QUERYSPARQLREQUEST']._serialized_end=2035
96
- _globals['_QUERYSPARQLRESPONSE']._serialized_start=2037
97
- _globals['_QUERYSPARQLRESPONSE']._serialized_end=2101
98
- _globals['_SHACLVALIDATIONRESULT']._serialized_start=2104
99
- _globals['_SHACLVALIDATIONRESULT']._serialized_end=2321
100
- _globals['_SHACLREPORT']._serialized_start=2323
101
- _globals['_SHACLREPORT']._serialized_end=2407
102
- _globals['_VALIDATESHACLREQUEST']._serialized_start=2409
103
- _globals['_VALIDATESHACLREQUEST']._serialized_end=2471
104
- _globals['_VALIDATESHACLRESPONSE']._serialized_start=2473
105
- _globals['_VALIDATESHACLRESPONSE']._serialized_end=2538
106
- _globals['_REFRESHINFERENCEREQUEST']._serialized_start=2541
107
- _globals['_REFRESHINFERENCEREQUEST']._serialized_end=2703
108
- _globals['_INFERENCEREFRESHRESULT']._serialized_start=2706
109
- _globals['_INFERENCEREFRESHRESULT']._serialized_end=2864
110
- _globals['_REFRESHINFERENCERESPONSE']._serialized_start=2866
111
- _globals['_REFRESHINFERENCERESPONSE']._serialized_end=2945
112
- _globals['_SUMMARIZEINFERENCEREQUEST']._serialized_start=2947
113
- _globals['_SUMMARIZEINFERENCEREQUEST']._serialized_end=2974
114
- _globals['_INFERENCESUMMARY']._serialized_start=2977
115
- _globals['_INFERENCESUMMARY']._serialized_end=3146
116
- _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_start=3102
117
- _globals['_INFERENCESUMMARY_RULESENTRY']._serialized_end=3146
118
- _globals['_SUMMARIZEINFERENCERESPONSE']._serialized_start=3148
119
- _globals['_SUMMARIZEINFERENCERESPONSE']._serialized_end=3223
120
- _globals['_INFERENCEEXPLANATION']._serialized_start=3225
121
- _globals['_INFERENCEEXPLANATION']._serialized_end=3347
122
- _globals['_INFERENCETRACEENTRY']._serialized_start=3350
123
- _globals['_INFERENCETRACEENTRY']._serialized_end=3506
124
- _globals['_EXPLAININFERENCEREQUEST']._serialized_start=3508
125
- _globals['_EXPLAININFERENCEREQUEST']._serialized_end=3567
126
- _globals['_EXPLAININFERENCERESPONSE']._serialized_start=3570
127
- _globals['_EXPLAININFERENCERESPONSE']._serialized_end=3701
128
- _globals['_INFERENCEMATCHEXPLANATION']._serialized_start=3704
129
- _globals['_INFERENCEMATCHEXPLANATION']._serialized_end=3836
130
- _globals['_EXPLAININFERENCEMATCHREQUEST']._serialized_start=3838
131
- _globals['_EXPLAININFERENCEMATCHREQUEST']._serialized_end=3928
132
- _globals['_EXPLAININFERENCEMATCHRESPONSE']._serialized_start=3930
133
- _globals['_EXPLAININFERENCEMATCHRESPONSE']._serialized_end=4018
134
- _globals['_ONTOLOGYENTITYTYPE']._serialized_start=4020
135
- _globals['_ONTOLOGYENTITYTYPE']._serialized_end=4104
136
- _globals['_ONTOLOGYRELATIONTYPE']._serialized_start=4107
137
- _globals['_ONTOLOGYRELATIONTYPE']._serialized_end=4247
138
- _globals['_ONTOLOGYSCHEMA']._serialized_start=4250
139
- _globals['_ONTOLOGYSCHEMA']._serialized_end=4702
140
- _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_start=4655
141
- _globals['_ONTOLOGYSCHEMA_METADATAENTRY']._serialized_end=4702
142
- _globals['_SAVEONTOLOGYSCHEMAREQUEST']._serialized_start=4705
143
- _globals['_SAVEONTOLOGYSCHEMAREQUEST']._serialized_end=5105
144
- _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_start=4655
145
- _globals['_SAVEONTOLOGYSCHEMAREQUEST_METADATAENTRY']._serialized_end=4702
146
- _globals['_SAVEONTOLOGYSCHEMARESPONSE']._serialized_start=5107
147
- _globals['_SAVEONTOLOGYSCHEMARESPONSE']._serialized_end=5180
148
- _globals['_GETONTOLOGYSCHEMAREQUEST']._serialized_start=5182
149
- _globals['_GETONTOLOGYSCHEMAREQUEST']._serialized_end=5227
150
- _globals['_GETONTOLOGYSCHEMARESPONSE']._serialized_start=5229
151
- _globals['_GETONTOLOGYSCHEMARESPONSE']._serialized_end=5301
152
- _globals['_LISTONTOLOGYSCHEMASREQUEST']._serialized_start=5303
153
- _globals['_LISTONTOLOGYSCHEMASREQUEST']._serialized_end=5352
154
- _globals['_LISTONTOLOGYSCHEMASRESPONSE']._serialized_start=5354
155
- _globals['_LISTONTOLOGYSCHEMASRESPONSE']._serialized_end=5429
156
- _globals['_DELETEONTOLOGYSCHEMAREQUEST']._serialized_start=5431
157
- _globals['_DELETEONTOLOGYSCHEMAREQUEST']._serialized_end=5479
158
- _globals['_DELETEONTOLOGYSCHEMARESPONSE']._serialized_start=5481
159
- _globals['_DELETEONTOLOGYSCHEMARESPONSE']._serialized_end=5547
160
- _globals['_KNOWLEDGEGRAPHSERVICE']._serialized_start=5550
161
- _globals['_KNOWLEDGEGRAPHSERVICE']._serialized_end=7294
162
- # @@protoc_insertion_point(module_scope)
File without changes