trustgraph-cli 3.0.0rc8__tar.gz → 3.0.0rc10__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.0rc8 → trustgraph_cli-3.0.0rc10}/PKG-INFO +1 -1
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_action.py +91 -39
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_orchestrator.py +23 -19
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_planner.py +13 -3
- trustgraph_cli-3.0.0rc10/trustgraph/cli_version.py +1 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/PKG-INFO +1 -1
- trustgraph_cli-3.0.0rc8/trustgraph/cli_version.py +0 -1
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/README.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/pyproject.toml +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/setup.cfg +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/__init__.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/_iam.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/add_library_document.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/bootstrap_iam.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/change_password.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_api_key.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_user.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/create_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_collection.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_tool.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_user.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/describe_image.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/disable_user.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/dump_msgpack.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/dump_queues.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/enable_user.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/export_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/export_workspace_config.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_de_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_document_content.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/get_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/graph_to_turtle.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/import_workspace.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/import_workspace_config.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/init_pulsar_manager.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_agent.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_chunk.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_cloze.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_concept_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_decision_scoring.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_decode.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_rag.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_field_extraction.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_graph_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_graph_rag.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_knowledge_retrieval.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_llm.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_nl_sparql.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_nlp_query.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_ontology_subset.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_policy.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_prompt.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_query_formulation.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_reranker.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_row_embeddings.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_rows_query.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_sparql_nl_query.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_sparql_query.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_structured_query.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_verification.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_api_keys.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_cloze_models.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_collections.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_config_items.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_explain_traces.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_models.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_my_workspaces.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_ontologies.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_users.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/list_workspaces.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_doc_embeds.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_knowledge.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_sample_documents.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_structured_data.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_turtle.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/login.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/mint_token.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/monitor_prompts.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/nquads.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_config_item.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_de_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_flow_blueprint.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/put_ontology.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/query_graph.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/remove_library_document.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/reset_password.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/revoke_api_key.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/__init__.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/belgian-beer.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/bronze-age-collapse.pdf +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/corporate-scandals.pdf +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/history-of-pets.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/metadata.json +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/mil-fortifications-america-19th-c.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/recipes.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/trade-routes-europe.md +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/save_doc_embeds.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_collection.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_mcp_tool.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_prompt.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_token_costs.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/set_tool.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_config.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_explain_trace.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_extraction_provenance.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flow_blueprints.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flow_state.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_flows.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_graph.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_kg_cores.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_library_documents.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_mcp_tools.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_parameter_types.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_processor_state.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_prompts.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_token_costs.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_token_rate.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_tools.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/start_flow.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/start_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/stop_flow.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/stop_library_processing.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/unload_kg_core.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/update_user.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/verify_system_status.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/whoami.py +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/SOURCES.txt +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/entry_points.txt +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/requires.txt +0 -0
- {trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc10
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Invoke the action worker with a capability and parameters.
|
|
3
|
-
Displays the resulting
|
|
3
|
+
Displays the resulting artifacts.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import argparse
|
|
@@ -67,47 +67,94 @@ def main():
|
|
|
67
67
|
'-p', '--param',
|
|
68
68
|
action='append',
|
|
69
69
|
default=[],
|
|
70
|
-
metavar='
|
|
71
|
-
help=
|
|
70
|
+
metavar='NAME:TYPE:VALUE',
|
|
71
|
+
help=(
|
|
72
|
+
'Input parameter as NAME:TYPE:VALUE '
|
|
73
|
+
'e.g. question:TextBlobArtifact:\'{"text": "hello"}\' '
|
|
74
|
+
'(repeatable)'
|
|
75
|
+
),
|
|
72
76
|
)
|
|
73
77
|
|
|
74
78
|
parser.add_argument(
|
|
75
|
-
'-i', '--input
|
|
79
|
+
'-i', '--input',
|
|
76
80
|
action='append',
|
|
77
81
|
default=[],
|
|
78
|
-
metavar='TYPE:FILE',
|
|
79
|
-
help=
|
|
82
|
+
metavar='NAME:TYPE:FILE',
|
|
83
|
+
help=(
|
|
84
|
+
'Input from file as NAME:TYPE:FILE '
|
|
85
|
+
'e.g. data:TabularArtifact:data.json (repeatable)'
|
|
86
|
+
),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
parser.add_argument(
|
|
90
|
+
'-T', '--text',
|
|
91
|
+
action='append',
|
|
92
|
+
default=[],
|
|
93
|
+
metavar='NAME=VALUE',
|
|
94
|
+
help=(
|
|
95
|
+
'Text input shorthand as NAME=VALUE '
|
|
96
|
+
'e.g. question="What are total expenses?" (repeatable)'
|
|
97
|
+
),
|
|
80
98
|
)
|
|
81
99
|
|
|
82
100
|
parser.add_argument(
|
|
83
101
|
'capability',
|
|
84
|
-
help='Capability to invoke (e.g.
|
|
102
|
+
help='Capability to invoke (e.g. llm-synthesis)',
|
|
85
103
|
)
|
|
86
104
|
|
|
87
105
|
args = parser.parse_args()
|
|
88
106
|
|
|
89
107
|
params = {}
|
|
90
|
-
for p in args.param:
|
|
91
|
-
if '=' not in p:
|
|
92
|
-
print(f"Error: parameter must be KEY=VALUE: {p}", file=sys.stderr)
|
|
93
|
-
sys.exit(1)
|
|
94
|
-
key, value = p.split('=', 1)
|
|
95
|
-
params[key] = value
|
|
96
108
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if
|
|
109
|
+
for spec in args.param:
|
|
110
|
+
parts = spec.split(':', 2)
|
|
111
|
+
if len(parts) != 3:
|
|
112
|
+
print(
|
|
113
|
+
f"Error: parameter must be NAME:TYPE:VALUE: {spec}",
|
|
114
|
+
file=sys.stderr,
|
|
115
|
+
)
|
|
116
|
+
sys.exit(1)
|
|
117
|
+
name, artifact_type, value = parts
|
|
118
|
+
try:
|
|
119
|
+
artifact = json.loads(value)
|
|
120
|
+
except json.JSONDecodeError as e:
|
|
100
121
|
print(
|
|
101
|
-
f"Error:
|
|
122
|
+
f"Error: value for '{name}' is not valid JSON: {e}",
|
|
102
123
|
file=sys.stderr,
|
|
103
124
|
)
|
|
104
125
|
sys.exit(1)
|
|
105
|
-
|
|
126
|
+
params[name] = {
|
|
127
|
+
"artifact-type": artifact_type,
|
|
128
|
+
"artifact": artifact,
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
for spec in args.input:
|
|
132
|
+
parts = spec.split(':', 2)
|
|
133
|
+
if len(parts) != 3:
|
|
134
|
+
print(
|
|
135
|
+
f"Error: input must be NAME:TYPE:FILE: {spec}",
|
|
136
|
+
file=sys.stderr,
|
|
137
|
+
)
|
|
138
|
+
sys.exit(1)
|
|
139
|
+
name, artifact_type, path = parts
|
|
106
140
|
with open(path) as f:
|
|
107
|
-
|
|
141
|
+
params[name] = {
|
|
108
142
|
"artifact-type": artifact_type,
|
|
109
143
|
"artifact": json.load(f),
|
|
110
|
-
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
for spec in args.text:
|
|
147
|
+
if '=' not in spec:
|
|
148
|
+
print(
|
|
149
|
+
f"Error: text input must be NAME=VALUE: {spec}",
|
|
150
|
+
file=sys.stderr,
|
|
151
|
+
)
|
|
152
|
+
sys.exit(1)
|
|
153
|
+
name, value = spec.split('=', 1)
|
|
154
|
+
params[name] = {
|
|
155
|
+
"artifact-type": "TextBlobArtifact",
|
|
156
|
+
"artifact": {"text": value},
|
|
157
|
+
}
|
|
111
158
|
|
|
112
159
|
try:
|
|
113
160
|
|
|
@@ -124,7 +171,6 @@ def main():
|
|
|
124
171
|
"step-id": args.step_id,
|
|
125
172
|
"capability": args.capability,
|
|
126
173
|
"params": params,
|
|
127
|
-
"input-artifacts": input_artifacts,
|
|
128
174
|
},
|
|
129
175
|
)
|
|
130
176
|
finally:
|
|
@@ -133,30 +179,36 @@ def main():
|
|
|
133
179
|
if result.get("error"):
|
|
134
180
|
err = result["error"]
|
|
135
181
|
print(
|
|
136
|
-
f"Error: [{err.get('type', '?')}]
|
|
182
|
+
f"Error: [{err.get('type', '?')}] "
|
|
183
|
+
f"{err.get('message', '?')}",
|
|
137
184
|
file=sys.stderr,
|
|
138
185
|
)
|
|
139
186
|
sys.exit(1)
|
|
140
187
|
|
|
188
|
+
artifacts = result.get("artifacts", {})
|
|
189
|
+
|
|
141
190
|
if args.json:
|
|
142
|
-
print(json.dumps(
|
|
191
|
+
print(json.dumps(artifacts, indent=2))
|
|
143
192
|
else:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
193
|
+
for name, entry in artifacts.items():
|
|
194
|
+
artifact_type = entry.get("artifact-type", "?")
|
|
195
|
+
artifact = entry.get("artifact", {})
|
|
196
|
+
|
|
197
|
+
print(f"--- {name} ({artifact_type}) ---")
|
|
198
|
+
print()
|
|
199
|
+
|
|
200
|
+
if artifact_type == "TabularArtifact":
|
|
201
|
+
_print_tabular(artifact)
|
|
202
|
+
elif artifact_type == "TextBlobArtifact":
|
|
203
|
+
_print_text_blob(artifact)
|
|
204
|
+
elif artifact_type == "SubgraphArtifact":
|
|
205
|
+
_print_subgraph(artifact)
|
|
206
|
+
elif artifact_type == "ReportArtifact":
|
|
207
|
+
_print_report(artifact)
|
|
208
|
+
else:
|
|
209
|
+
print(json.dumps(artifact, indent=2))
|
|
210
|
+
|
|
211
|
+
print()
|
|
160
212
|
|
|
161
213
|
except Exception as e:
|
|
162
214
|
print("Exception:", e, flush=True)
|
|
@@ -112,27 +112,31 @@ def main():
|
|
|
112
112
|
|
|
113
113
|
print(f"Run: {run_id}")
|
|
114
114
|
print(f"Plan: {plan_id}")
|
|
115
|
-
|
|
115
|
+
artifact_count = sum(
|
|
116
|
+
len(v) for v in artifacts.values()
|
|
117
|
+
)
|
|
118
|
+
print(f"Artifacts: {artifact_count}")
|
|
116
119
|
print()
|
|
117
120
|
|
|
118
|
-
for
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
for step_id, step_arts in artifacts.items():
|
|
122
|
+
for port, art in step_arts.items():
|
|
123
|
+
artifact_type = art.get("artifact-type", "?")
|
|
124
|
+
artifact = art.get("artifact", {})
|
|
125
|
+
|
|
126
|
+
print(f"--- {step_id}/{port} ({artifact_type}) ---")
|
|
127
|
+
|
|
128
|
+
if artifact_type == "TabularArtifact":
|
|
129
|
+
_print_tabular(artifact)
|
|
130
|
+
elif artifact_type == "TextBlobArtifact":
|
|
131
|
+
_print_text_blob(artifact)
|
|
132
|
+
elif artifact_type == "SubgraphArtifact":
|
|
133
|
+
_print_subgraph(artifact)
|
|
134
|
+
elif artifact_type == "ReportArtifact":
|
|
135
|
+
_print_report(artifact)
|
|
136
|
+
else:
|
|
137
|
+
print(json.dumps(artifact, indent=2))
|
|
138
|
+
|
|
139
|
+
print()
|
|
136
140
|
|
|
137
141
|
except Exception as e:
|
|
138
142
|
print("Exception:", e, flush=True)
|
|
@@ -114,17 +114,27 @@ def main():
|
|
|
114
114
|
|
|
115
115
|
table = []
|
|
116
116
|
for s in steps:
|
|
117
|
+
params = s.get("params", {})
|
|
118
|
+
param_summary = []
|
|
119
|
+
for k, v in params.items():
|
|
120
|
+
if isinstance(v, str):
|
|
121
|
+
param_summary.append(f"{k}={v}")
|
|
122
|
+
elif isinstance(v, dict):
|
|
123
|
+
atype = v.get("artifact-type", "?")
|
|
124
|
+
param_summary.append(f"{k}: {atype}")
|
|
125
|
+
else:
|
|
126
|
+
param_summary.append(f"{k}={v}")
|
|
127
|
+
|
|
117
128
|
table.append([
|
|
118
129
|
s.get("step-id", ""),
|
|
119
130
|
s.get("capability", ""),
|
|
120
131
|
", ".join(s.get("depends-on", [])) or "-",
|
|
121
|
-
|
|
122
|
-
json.dumps(s.get("params", {})),
|
|
132
|
+
"; ".join(param_summary) or "-",
|
|
123
133
|
])
|
|
124
134
|
|
|
125
135
|
print(tabulate.tabulate(
|
|
126
136
|
table,
|
|
127
|
-
headers=["Step", "Capability", "Depends On", "
|
|
137
|
+
headers=["Step", "Capability", "Depends On", "Params"],
|
|
128
138
|
tablefmt="pretty",
|
|
129
139
|
stralign="left",
|
|
130
140
|
))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.0.0rc10"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0rc10
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.0.0rc8"
|
|
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.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/delete_flow_blueprint.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
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/import_workspace_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_concept_extraction.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_decision_scoring.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_decode.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_document_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_field_extraction.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_graph_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_ontology_subset.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_query_formulation.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_row_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/invoke_sparql_nl_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/load_sample_documents.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
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/remove_library_document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/__init__.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/belgian-beer.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/sample_documents/metadata.json
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/show_library_documents.py
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/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.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/start_library_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph/cli/stop_library_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{trustgraph_cli-3.0.0rc8 → trustgraph_cli-3.0.0rc10}/trustgraph_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|