Check-Graph
$ tman check graph -h
Check whether the graph content of the predefined graph or start_graph command is correct. For more detailed usage, run 'graph -h'
Usage: tman check graph [OPTIONS] --app <APP>
Options:
--app <APP>
The absolute path of the app defined in the graph. By default, the predefined graph will be read from the first one in the list.
--predefined-graph-name <PREDEFINED_GRAPH_NAME>
Specify a predefined graph name to check, otherwise, all predefined graphs will be checked.
--graph <GRAPH>
Specify the JSON string of a 'start_graph' command to be checked. If not specified, the predefined graph in the first app will be checked.
-h, --help
Print helpExample Usages
tman check graph --app /home/TEN-Agent/agentstman check graph --predefined-graph-name va.openai.azure --app /home/TEN-Agent/agentstman check graph --graph '{ "type": "start_graph", "seq_id": "55", "nodes": [ { "type": "extension", "name": "test_extension", "addon": "basic_hello_world_2__test_extension", "extension_group": "test_extension_group", "app": "msgpack://127.0.0.1:8001/" }, { "type": "extension", "name": "test_extension", "addon": "basic_hello_world_1__test_extension", "extension_group": "test_extension_group", "app": "msgpack://127.0.0.1:8001/" } ] }' --app /home/TEN-Agent/agents
Prerequisites
Validation Rules
1. Presence of Nodes
2. Uniqueness of Nodes
3. Extensions used in connections should be defined in nodes
4. The addons declared in the nodes must be installed in the app
nodes must be installed in the app5. In connections, messages sent from one extension should be defined in the same section
6. In connections, the messages sent out from one extension should have a unique name in each type
7. The messages declared in the connections should be compatible
8. The app in node must be unambiguous
app in node must be unambiguousLast updated