mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-18 09:41:03 +02:00
Changed schema to add batching
This commit is contained in:
parent
1762ecaf90
commit
1b2de0c76f
4 changed files with 274 additions and 155 deletions
|
|
@ -6,19 +6,51 @@ from . types import Error, RowSchema
|
|||
|
||||
############################################################################
|
||||
|
||||
# Prompt services, abstract the prompt generation
|
||||
class ConfigRequest(Record):
|
||||
operation = String() # get, list, getall, delete, put, dump
|
||||
# Config service:
|
||||
# get(keys) -> (version, values)
|
||||
# list(type) -> (version, values)
|
||||
# getvalues(type) -> (version, values)
|
||||
# put(values) -> ()
|
||||
# delete(keys) -> ()
|
||||
# config() -> (version, config)
|
||||
class ConfigKey(Record):
|
||||
type = String()
|
||||
key = String()
|
||||
|
||||
class ConfigValue(Record):
|
||||
type = String()
|
||||
key = String()
|
||||
value = String()
|
||||
|
||||
# Prompt services, abstract the prompt generation
|
||||
class ConfigRequest(Record):
|
||||
|
||||
operation = String() # get, list, getvalues, delete, put, config
|
||||
|
||||
# get, delete
|
||||
keys = Array(ConfigKey())
|
||||
|
||||
# list, getvalues
|
||||
type = String()
|
||||
|
||||
# put
|
||||
values = Array(ConfigValue())
|
||||
|
||||
class ConfigResponse(Record):
|
||||
|
||||
# get, list, getvalues, config
|
||||
version = Integer()
|
||||
value = String()
|
||||
|
||||
# get, getvalues
|
||||
values = Array(ConfigValue())
|
||||
|
||||
# list
|
||||
directory = Array(String())
|
||||
values = Map(String())
|
||||
|
||||
# config
|
||||
config = Map(Map(String()))
|
||||
|
||||
# Everything
|
||||
error = Error()
|
||||
|
||||
class ConfigPush(Record):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue