mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 20:05:13 +02:00
Fix config inconsistency (#609)
* Plural/singular confusion in config key * Flow class vs flow blueprint nomenclature change * Update docs & CLI to reflect the above
This commit is contained in:
parent
99f17d1b9d
commit
b08db761d7
36 changed files with 816 additions and 814 deletions
|
|
@ -7,27 +7,27 @@ from ..core.primitives import Error
|
|||
############################################################################
|
||||
|
||||
# Flow service:
|
||||
# list_classes() -> (classname[])
|
||||
# get_class(classname) -> (class)
|
||||
# put_class(class) -> (class)
|
||||
# delete_class(classname) -> ()
|
||||
# list_blueprints() -> (blueprintname[])
|
||||
# get_blueprint(blueprintname) -> (blueprint)
|
||||
# put_blueprint(blueprint) -> (blueprint)
|
||||
# delete_blueprint(blueprintname) -> ()
|
||||
#
|
||||
# list_flows() -> (flowid[])
|
||||
# get_flow(flowid) -> (flow)
|
||||
# start_flow(flowid, classname) -> ()
|
||||
# start_flow(flowid, blueprintname) -> ()
|
||||
# stop_flow(flowid) -> ()
|
||||
|
||||
# Prompt services, abstract the prompt generation
|
||||
@dataclass
|
||||
class FlowRequest:
|
||||
operation: str = "" # list-classes, get-class, put-class, delete-class
|
||||
operation: str = "" # list-blueprints, get-blueprint, put-blueprint, delete-blueprint
|
||||
# list-flows, get-flow, start-flow, stop-flow
|
||||
|
||||
# get_class, put_class, delete_class, start_flow
|
||||
class_name: str = ""
|
||||
# get_blueprint, put_blueprint, delete_blueprint, start_flow
|
||||
blueprint_name: str = ""
|
||||
|
||||
# put_class
|
||||
class_definition: str = ""
|
||||
# put_blueprint
|
||||
blueprint_definition: str = ""
|
||||
|
||||
# start_flow
|
||||
description: str = ""
|
||||
|
|
@ -40,14 +40,14 @@ class FlowRequest:
|
|||
|
||||
@dataclass
|
||||
class FlowResponse:
|
||||
# list_classes
|
||||
class_names: list[str] = field(default_factory=list)
|
||||
# list_blueprints
|
||||
blueprint_names: list[str] = field(default_factory=list)
|
||||
|
||||
# list_flows
|
||||
flow_ids: list[str] = field(default_factory=list)
|
||||
|
||||
# get_class
|
||||
class_definition: str = ""
|
||||
# get_blueprint
|
||||
blueprint_definition: str = ""
|
||||
|
||||
# get_flow
|
||||
flow: str = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue