trustgraph-cli 3.0.0rc4__tar.gz → 3.0.0rc5__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.
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/PKG-INFO +1 -1
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/pyproject.toml +1 -0
- trustgraph_cli-3.0.0rc5/trustgraph/cli/invoke_orchestrator.py +205 -0
- trustgraph_cli-3.0.0rc5/trustgraph/cli_version.py +1 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/PKG-INFO +1 -1
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/SOURCES.txt +1 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/entry_points.txt +1 -0
- trustgraph_cli-3.0.0rc4/trustgraph/cli_version.py +0 -1
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/README.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/setup.cfg +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/__init__.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/_iam.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/add_library_document.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/bootstrap_iam.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/change_password.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/create_api_key.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/create_user.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/create_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_collection.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_tool.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/delete_user.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/describe_image.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/disable_user.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/dump_msgpack.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/dump_queues.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/enable_user.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/export_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/export_workspace_config.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_de_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_document_content.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/get_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/graph_to_turtle.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/import_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/import_workspace_config.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/init_pulsar_manager.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_action.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_agent.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_chunk.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_cloze.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_concept_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_decision_scoring.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_document_decode.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_document_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_document_rag.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_field_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_graph_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_graph_rag.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_knowledge_retrieval.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_llm.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_nl_sparql.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_nlp_query.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_ontology_subset.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_planner.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_policy.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_prompt.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_reranker.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_row_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_rows_query.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_sparql_nl_query.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_sparql_query.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_structured_query.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_verification.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_api_keys.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_cloze_models.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_collections.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_config_items.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_explain_traces.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_models.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_my_workspaces.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_ontologies.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_users.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/list_workspaces.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_doc_embeds.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_knowledge.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_sample_documents.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_structured_data.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/load_turtle.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/login.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/mint_token.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/monitor_prompts.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/nquads.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/put_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/put_de_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/put_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/put_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/put_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/query_graph.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/remove_library_document.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/reset_password.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/revoke_api_key.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/__init__.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/belgian-beer.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/bronze-age-collapse.pdf +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/corporate-scandals.pdf +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/history-of-pets.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/metadata.json +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/mil-fortifications-america-19th-c.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/recipes.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/trade-routes-europe.md +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/save_doc_embeds.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/set_collection.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/set_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/set_prompt.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/set_token_costs.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/set_tool.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_config.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_explain_trace.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_extraction_provenance.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_flow_blueprints.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_flow_state.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_flows.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_graph.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_kg_cores.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_library_documents.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_mcp_tools.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_parameter_types.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_processor_state.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_prompts.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_token_costs.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_token_rate.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_tools.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/start_flow.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/start_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/stop_flow.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/stop_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/unload_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/update_user.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/verify_system_status.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/whoami.py +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/requires.txt +0 -0
- {trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0rc5
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -66,6 +66,7 @@ tg-invoke-planner = "trustgraph.cli.invoke_planner:main"
|
|
|
66
66
|
tg-invoke-verification = "trustgraph.cli.invoke_verification:main"
|
|
67
67
|
tg-invoke-policy = "trustgraph.cli.invoke_policy:main"
|
|
68
68
|
tg-invoke-action = "trustgraph.cli.invoke_action:main"
|
|
69
|
+
tg-invoke-orchestrator = "trustgraph.cli.invoke_orchestrator:main"
|
|
69
70
|
tg-invoke-document-rag = "trustgraph.cli.invoke_document_rag:main"
|
|
70
71
|
tg-invoke-graph-rag = "trustgraph.cli.invoke_graph_rag:main"
|
|
71
72
|
tg-invoke-llm = "trustgraph.cli.invoke_llm:main"
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Invoke the execution orchestrator with a goal and display the
|
|
3
|
+
resulting artifacts.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import json
|
|
8
|
+
import os
|
|
9
|
+
import sys
|
|
10
|
+
from trustgraph.api import Api
|
|
11
|
+
|
|
12
|
+
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8888/')
|
|
13
|
+
default_token = os.getenv("TRUSTGRAPH_TOKEN", None)
|
|
14
|
+
default_workspace = os.getenv("TRUSTGRAPH_WORKSPACE", "default")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main():
|
|
18
|
+
|
|
19
|
+
parser = argparse.ArgumentParser(
|
|
20
|
+
prog='tg-invoke-orchestrator',
|
|
21
|
+
description=__doc__,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
parser.add_argument(
|
|
25
|
+
'-u', '--url',
|
|
26
|
+
default=default_url,
|
|
27
|
+
help=f'API URL (default: {default_url})',
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
parser.add_argument(
|
|
31
|
+
'-t', '--token',
|
|
32
|
+
default=default_token,
|
|
33
|
+
help='Authentication token (default: $TRUSTGRAPH_TOKEN)',
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
parser.add_argument(
|
|
37
|
+
'-w', '--workspace',
|
|
38
|
+
default=default_workspace,
|
|
39
|
+
help=f'Workspace (default: {default_workspace})',
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
parser.add_argument(
|
|
43
|
+
'-f', '--flow-id',
|
|
44
|
+
default="default",
|
|
45
|
+
help='Flow ID (default: default)',
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
parser.add_argument(
|
|
49
|
+
'-r', '--run-id',
|
|
50
|
+
default="",
|
|
51
|
+
help='Run ID (default: auto-generated)',
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
parser.add_argument(
|
|
55
|
+
'-j', '--json',
|
|
56
|
+
action='store_true',
|
|
57
|
+
help='Output as JSON',
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
parser.add_argument(
|
|
61
|
+
'goal',
|
|
62
|
+
nargs='?',
|
|
63
|
+
help='Goal for the orchestrator (or read from stdin if not provided)',
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
args = parser.parse_args()
|
|
67
|
+
|
|
68
|
+
goal = args.goal
|
|
69
|
+
if goal is None:
|
|
70
|
+
if sys.stdin.isatty():
|
|
71
|
+
print("Enter goal (Ctrl-D to finish):", file=sys.stderr)
|
|
72
|
+
goal = sys.stdin.read().strip()
|
|
73
|
+
|
|
74
|
+
if not goal:
|
|
75
|
+
print("Error: no goal provided", file=sys.stderr)
|
|
76
|
+
sys.exit(1)
|
|
77
|
+
|
|
78
|
+
request = {
|
|
79
|
+
"goal": goal,
|
|
80
|
+
}
|
|
81
|
+
if args.run_id:
|
|
82
|
+
request["run-id"] = args.run_id
|
|
83
|
+
|
|
84
|
+
try:
|
|
85
|
+
|
|
86
|
+
api = Api(
|
|
87
|
+
url=args.url, token=args.token, workspace=args.workspace,
|
|
88
|
+
)
|
|
89
|
+
socket = api.socket()
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
result = socket._send_request_sync(
|
|
93
|
+
"orchestrator", args.flow_id, request,
|
|
94
|
+
)
|
|
95
|
+
finally:
|
|
96
|
+
socket.close()
|
|
97
|
+
|
|
98
|
+
if result.get("error"):
|
|
99
|
+
err = result["error"]
|
|
100
|
+
print(
|
|
101
|
+
f"Error: [{err.get('type', '?')}] {err.get('message', '?')}",
|
|
102
|
+
file=sys.stderr,
|
|
103
|
+
)
|
|
104
|
+
sys.exit(1)
|
|
105
|
+
|
|
106
|
+
if args.json:
|
|
107
|
+
print(json.dumps(result, indent=2))
|
|
108
|
+
else:
|
|
109
|
+
run_id = result.get("run-id", "?")
|
|
110
|
+
plan_id = result.get("plan-id", "?")
|
|
111
|
+
artifacts = result.get("artifacts", {})
|
|
112
|
+
|
|
113
|
+
print(f"Run: {run_id}")
|
|
114
|
+
print(f"Plan: {plan_id}")
|
|
115
|
+
print(f"Artifacts: {len(artifacts)}")
|
|
116
|
+
print()
|
|
117
|
+
|
|
118
|
+
for name, art in artifacts.items():
|
|
119
|
+
artifact_type = art.get("artifact-type", "?")
|
|
120
|
+
artifact = art.get("artifact", {})
|
|
121
|
+
|
|
122
|
+
print(f"--- {name} ({artifact_type}) ---")
|
|
123
|
+
|
|
124
|
+
if artifact_type == "TabularArtifact":
|
|
125
|
+
_print_tabular(artifact)
|
|
126
|
+
elif artifact_type == "TextBlobArtifact":
|
|
127
|
+
_print_text_blob(artifact)
|
|
128
|
+
elif artifact_type == "SubgraphArtifact":
|
|
129
|
+
_print_subgraph(artifact)
|
|
130
|
+
elif artifact_type == "ReportArtifact":
|
|
131
|
+
_print_report(artifact)
|
|
132
|
+
else:
|
|
133
|
+
print(json.dumps(artifact, indent=2))
|
|
134
|
+
|
|
135
|
+
print()
|
|
136
|
+
|
|
137
|
+
except Exception as e:
|
|
138
|
+
print("Exception:", e, flush=True)
|
|
139
|
+
sys.exit(1)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def _print_tabular(artifact):
|
|
143
|
+
columns = artifact.get("columns", [])
|
|
144
|
+
rows = artifact.get("rows", [])
|
|
145
|
+
col_names = [c.get("name", "?") for c in columns]
|
|
146
|
+
|
|
147
|
+
if not col_names:
|
|
148
|
+
print("(empty table)")
|
|
149
|
+
return
|
|
150
|
+
|
|
151
|
+
try:
|
|
152
|
+
import tabulate
|
|
153
|
+
table = [
|
|
154
|
+
[row.get(c, "") for c in col_names]
|
|
155
|
+
for row in rows
|
|
156
|
+
]
|
|
157
|
+
print(tabulate.tabulate(
|
|
158
|
+
table,
|
|
159
|
+
headers=col_names,
|
|
160
|
+
tablefmt="pretty",
|
|
161
|
+
stralign="left",
|
|
162
|
+
))
|
|
163
|
+
except ImportError:
|
|
164
|
+
print(" | ".join(col_names))
|
|
165
|
+
print(" | ".join("---" for _ in col_names))
|
|
166
|
+
for row in rows:
|
|
167
|
+
print(" | ".join(str(row.get(c, "")) for c in col_names))
|
|
168
|
+
|
|
169
|
+
print(f"\n{len(rows)} rows")
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def _print_text_blob(artifact):
|
|
173
|
+
text = artifact.get("text", "")
|
|
174
|
+
print(text)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def _print_subgraph(artifact):
|
|
178
|
+
triples = artifact.get("triples", [])
|
|
179
|
+
summary = artifact.get("summary", "")
|
|
180
|
+
|
|
181
|
+
if summary:
|
|
182
|
+
print("Summary:")
|
|
183
|
+
print(summary)
|
|
184
|
+
print()
|
|
185
|
+
|
|
186
|
+
print(f"Triples ({len(triples)}):")
|
|
187
|
+
for t in triples[:20]:
|
|
188
|
+
s = t.get("s", "?")
|
|
189
|
+
p = t.get("p", "?")
|
|
190
|
+
o = t.get("o", "?")
|
|
191
|
+
print(f" {s} {p} {o}")
|
|
192
|
+
if len(triples) > 20:
|
|
193
|
+
print(f" ... and {len(triples) - 20} more")
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def _print_report(artifact):
|
|
197
|
+
fmt = artifact.get("format", "?")
|
|
198
|
+
narrative = artifact.get("narrative", "")
|
|
199
|
+
print(f"Format: {fmt}")
|
|
200
|
+
print()
|
|
201
|
+
print(narrative)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
if __name__ == "__main__":
|
|
205
|
+
main()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.0.0rc5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0rc5
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -54,6 +54,7 @@ trustgraph/cli/invoke_mcp_tool.py
|
|
|
54
54
|
trustgraph/cli/invoke_nl_sparql.py
|
|
55
55
|
trustgraph/cli/invoke_nlp_query.py
|
|
56
56
|
trustgraph/cli/invoke_ontology_subset.py
|
|
57
|
+
trustgraph/cli/invoke_orchestrator.py
|
|
57
58
|
trustgraph/cli/invoke_planner.py
|
|
58
59
|
trustgraph/cli/invoke_policy.py
|
|
59
60
|
trustgraph/cli/invoke_prompt.py
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/entry_points.txt
RENAMED
|
@@ -49,6 +49,7 @@ tg-invoke-mcp-tool = trustgraph.cli.invoke_mcp_tool:main
|
|
|
49
49
|
tg-invoke-nl-sparql = trustgraph.cli.invoke_nl_sparql:main
|
|
50
50
|
tg-invoke-nlp-query = trustgraph.cli.invoke_nlp_query:main
|
|
51
51
|
tg-invoke-ontology-subset = trustgraph.cli.invoke_ontology_subset:main
|
|
52
|
+
tg-invoke-orchestrator = trustgraph.cli.invoke_orchestrator:main
|
|
52
53
|
tg-invoke-planner = trustgraph.cli.invoke_planner:main
|
|
53
54
|
tg-invoke-policy = trustgraph.cli.invoke_policy:main
|
|
54
55
|
tg-invoke-prompt = trustgraph.cli.invoke_prompt:main
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.0.0rc4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/export_workspace_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/import_workspace_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_concept_extraction.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_decision_scoring.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_document_decode.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_document_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_field_extraction.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_graph_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_knowledge_retrieval.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_ontology_subset.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_sparql_nl_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/invoke_structured_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/remove_library_document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/__init__.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/belgian-beer.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/metadata.json
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/sample_documents/recipes.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_extraction_provenance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_library_documents.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/show_library_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/start_library_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph/cli/stop_library_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc4 → trustgraph_cli-3.0.0rc5}/trustgraph_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|