MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / GetValue

Method GetValue

runtime/example/python/combined_example.py:79–89  ·  view source on GitHub ↗
(self, request, context)

Source from the content-addressed store, hash-verified

77 self.kv_dict = kv_dict
78
79 def GetValue(self, request, context):
80 k = request.key
81 vals = self.kv_dict.get(k)
82 resp = data_pb2.GetValueResponse()
83 if vals is None:
84 resp.status = 1
85 resp.error = 'Not found'
86 else:
87 resp.status = 0
88 resp.typed_value.extend(vals)
89 return resp
90
91
92def parse_value(value_proto):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected