trustgraph-flow 2.11.6__tar.gz → 3.0.0__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.
Potentially problematic release.
This version of trustgraph-flow might be problematic. Click here for more details.
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/PKG-INFO +2 -2
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/pyproject.toml +3 -1
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/agent_manager.py +32 -14
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/streaming_parser.py +13 -1
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/bootstrapper/service.py +2 -2
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/config/service/service.py +2 -13
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/common.py +78 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/external.py +48 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/handlers.py +46 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/retrieval.py +322 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/service.py +163 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/synthesis.py +75 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/system1.py +147 -0
- trustgraph_flow-3.0.0/trustgraph/execution/action_worker/transform.py +206 -0
- trustgraph_flow-3.0.0/trustgraph/execution/planner/service.py +202 -0
- trustgraph_flow-3.0.0/trustgraph/execution/policy/evaluator.py +375 -0
- trustgraph_flow-3.0.0/trustgraph/execution/policy/service.py +131 -0
- trustgraph_flow-3.0.0/trustgraph/execution/verification/__init__.py +1 -0
- trustgraph_flow-3.0.0/trustgraph/execution/verification/service.py +312 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/flow/service/service.py +2 -2
- trustgraph_flow-3.0.0/trustgraph/flow_version.py +1 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/config/receiver.py +14 -4
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/action.py +31 -0
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/concept_extraction.py +33 -0
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/knowledge_retrieval.py +33 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/manager.py +12 -0
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/planner.py +31 -0
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/policy_engine.py +31 -0
- trustgraph_flow-3.0.0/trustgraph/gateway/dispatch/verification.py +31 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/registry.py +6 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/service.py +23 -5
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/service/iam.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/model/decision_scoring/__init__.py +1 -0
- trustgraph_flow-3.0.0/trustgraph/query/sparql/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/reranker/__init__.py +1 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/concept_extraction/__init__.py +2 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/concept_extraction/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/concept_extraction/service.py +67 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/graph_rag/graph_rag.py +419 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/graph_rag/rag.py +74 -139
- trustgraph_flow-3.0.0/trustgraph/retrieval/knowledge_retrieval/__init__.py +2 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/knowledge_retrieval/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/knowledge_retrieval/service.py +148 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/knowledge_retrieval/traversal.py +461 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/nl_sparql/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/retrieval/sparql_nl_query/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/storage/kw_index/fts5/__main__.py +6 -0
- trustgraph_flow-3.0.0/trustgraph/tables/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph_flow.egg-info/SOURCES.txt +34 -0
- trustgraph_flow-3.0.0/trustgraph_flow.egg-info/dependency_links.txt +1 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph_flow.egg-info/entry_points.txt +2 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph_flow.egg-info/requires.txt +1 -1
- trustgraph_flow-2.11.6/trustgraph/flow_version.py +0 -1
- trustgraph_flow-2.11.6/trustgraph/retrieval/graph_rag/graph_rag.py +0 -1149
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/README.md +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/setup.cfg +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/mcp_tool/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/mcp_tool/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/mcp_tool/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/aggregator.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/meta_router.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/pattern_base.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/plan_pattern.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/react_pattern.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/orchestrator/supervisor_pattern.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/react/types.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/agent/tool_filter.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/base.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/bootstrapper/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/bootstrapper/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/initialisers/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/initialisers/default_flow_start.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/initialisers/pulsar_topology.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/initialisers/template_seed.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/initialisers/workspace_init.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/config/service/config.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/cores/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/cores/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/cores/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/direct/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/direct/cassandra_kg.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/row_embeddings/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/embeddings/row_embeddings/embeddings.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/model/decision_scoring → trustgraph_flow-3.0.0/trustgraph/execution}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/reranker → trustgraph_flow-3.0.0/trustgraph/execution/action_worker}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/flow/service → trustgraph_flow-3.0.0/trustgraph/execution/action_worker}/__main__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/external → trustgraph_flow-3.0.0/trustgraph/execution/planner}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/model/image_to_text/openai → trustgraph_flow-3.0.0/trustgraph/execution/planner}/__main__.py +0 -0
- /trustgraph_flow-2.11.6/trustgraph_flow.egg-info/dependency_links.txt → /trustgraph_flow-3.0.0/trustgraph/execution/policy/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/ontology → trustgraph_flow-3.0.0/trustgraph/execution/policy}/__main__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query/sparql → trustgraph_flow-3.0.0/trustgraph/execution/verification}/__main__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/extract → trustgraph_flow-3.0.0/trustgraph/external}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/extract/kg → trustgraph_flow-3.0.0/trustgraph/extract}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/iam → trustgraph_flow-3.0.0/trustgraph/extract/kg}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/agent/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/agent/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/agent/extract.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/extract_metrics.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/entity_normalizer.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/extract.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/ontology_embedder.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/ontology_loader.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/ontology_selector.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/run.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/simplified_parser.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/text_processor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/triple_converter.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/ontology/vector_store.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/rows/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/rows/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/rows/processor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/flow/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/flow/service/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/retrieval/nl_sparql → trustgraph_flow-3.0.0/trustgraph/flow/service}/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/flow/service/flow.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/audit.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/auth.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/capabilities.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/cloze.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/collection_management.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/core_export.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/core_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/decision_scoring.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_embeddings_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/document_stream.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/field_extraction.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/iam.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/image_to_text.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/mcp_tool.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/nl_sparql.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/nlp_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/ontology.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/passthrough.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/reranker.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/row_embeddings_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/rows_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/rows_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/sparql_nl_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/sparql_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/structured_diag.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/structured_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/auth_endpoints.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/i18n.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/iam_endpoint.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/registry_endpoint.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/stream_endpoint.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/running.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/model → trustgraph_flow-3.0.0/trustgraph/iam}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/noauth/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/noauth/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/noauth/handler.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/noauth/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/service/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/service/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/iam/service/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/collection_manager.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/librarian/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/metering/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/metering/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/metering/counter.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/model/image_to_text → trustgraph_flow-3.0.0/trustgraph/model}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/model/text_completion → trustgraph_flow-3.0.0/trustgraph/model/image_to_text}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/image_to_text/openai/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/retrieval/sparql_nl_query → trustgraph_flow-3.0.0/trustgraph/model/image_to_text/openai}/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/image_to_text/openai/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/policy/triples → trustgraph_flow-3.0.0/trustgraph/model/text_completion}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/openai/variants.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/tgi/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/vllm/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/vllm/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/model/text_completion/vllm/llm.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/ontology/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/kw_index/fts5 → trustgraph_flow-3.0.0/trustgraph/ontology}/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/ontology/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/policy/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/policy/policy_filter.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/prompt → trustgraph_flow-3.0.0/trustgraph/policy/triples}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/policy/triples/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/processing/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/processing/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/processing/processing.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query → trustgraph_flow-3.0.0/trustgraph/prompt}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/prompt/template/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/prompt/template/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/prompt/template/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query/doc_embeddings → trustgraph_flow-3.0.0/trustgraph/query}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query/graph_embeddings → trustgraph_flow-3.0.0/trustgraph/query/doc_embeddings}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query/rows → trustgraph_flow-3.0.0/trustgraph/query/graph_embeddings}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graphql/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graphql/filters.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graphql/schema.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/graphql/types.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/row_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/row_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/row_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/query/triples → trustgraph_flow-3.0.0/trustgraph/query/rows}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/rows/cassandra/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/rows/cassandra/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/rows/cassandra/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/algebra.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/expressions.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/parser.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/sparql/solutions.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/retrieval → trustgraph_flow-3.0.0/trustgraph/query/triples}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/reranker/flashrank/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/reranker/flashrank/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/reranker/flashrank/processor.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage → trustgraph_flow-3.0.0/trustgraph/retrieval}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/document_rag/rerank.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/nl_sparql/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/nl_sparql/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/nlp_query/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/nlp_query/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/nlp_query/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/sparql_nl_query/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/sparql_nl_query/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_diag/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_diag/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_diag/type_detector.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_query/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_query/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/retrieval/structured_query/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/rev_gateway/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/rev_gateway/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/rev_gateway/dispatcher.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/rev_gateway/service.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/doc_embeddings → trustgraph_flow-3.0.0/trustgraph/storage}/__init__.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/graph_embeddings → trustgraph_flow-3.0.0/trustgraph/storage/doc_embeddings}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/kw_index → trustgraph_flow-3.0.0/trustgraph/storage/graph_embeddings}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/rows → trustgraph_flow-3.0.0/trustgraph/storage/kw_index}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/kw_index/fts5/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/kw_index/fts5/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/row_embeddings/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/row_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/row_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/row_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/storage/triples → trustgraph_flow-3.0.0/trustgraph/storage/rows}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph_flow-2.11.6/trustgraph/tables → trustgraph_flow-3.0.0/trustgraph/storage/triples}/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tables/cassandra_async.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tables/config.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tables/iam.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tables/library.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/template/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/template/prompt_manager.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tool_service/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tool_service/joke/__init__.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/tool_service/joke/service.py +0 -0
- {trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph_flow.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-flow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
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
|
|
@@ -8,7 +8,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
8
8
|
Classifier: Operating System :: OS Independent
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
-
Requires-Dist: trustgraph-base<
|
|
11
|
+
Requires-Dist: trustgraph-base<3.1,>=3.0
|
|
12
12
|
Requires-Dist: aiohttp
|
|
13
13
|
Requires-Dist: anthropic
|
|
14
14
|
Requires-Dist: scylla-driver
|
|
@@ -10,7 +10,7 @@ description = "TrustGraph provides a means to run a pipeline of flexible AI proc
|
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
12
12
|
dependencies = [
|
|
13
|
-
"trustgraph-base>=
|
|
13
|
+
"trustgraph-base>=3.0,<3.1",
|
|
14
14
|
"aiohttp",
|
|
15
15
|
"anthropic",
|
|
16
16
|
"scylla-driver",
|
|
@@ -80,6 +80,8 @@ graph-embeddings-write-milvus = "trustgraph.storage.graph_embeddings.milvus:run"
|
|
|
80
80
|
graph-embeddings-write-pinecone = "trustgraph.storage.graph_embeddings.pinecone:run"
|
|
81
81
|
graph-embeddings-write-qdrant = "trustgraph.storage.graph_embeddings.qdrant:run"
|
|
82
82
|
graph-embeddings = "trustgraph.embeddings.graph_embeddings:run"
|
|
83
|
+
concept-extraction = "trustgraph.retrieval.concept_extraction:run"
|
|
84
|
+
knowledge-retrieval = "trustgraph.retrieval.knowledge_retrieval:run"
|
|
83
85
|
graph-rag = "trustgraph.retrieval.graph_rag:run"
|
|
84
86
|
image-to-text-openai = "trustgraph.model.image_to_text.openai:run"
|
|
85
87
|
reranker-flashrank = "trustgraph.reranker.flashrank:run"
|
|
@@ -9,6 +9,29 @@ from . types import Action, Final
|
|
|
9
9
|
|
|
10
10
|
logger = logging.getLogger(__name__)
|
|
11
11
|
|
|
12
|
+
def scan_braces(text, depth, in_string, escaped):
|
|
13
|
+
"""Track JSON brace depth, ignoring braces inside string values.
|
|
14
|
+
|
|
15
|
+
Returns (depth, in_string, escaped, started).
|
|
16
|
+
"""
|
|
17
|
+
started = False
|
|
18
|
+
for char in text:
|
|
19
|
+
if in_string:
|
|
20
|
+
if escaped:
|
|
21
|
+
escaped = False
|
|
22
|
+
elif char == '\\':
|
|
23
|
+
escaped = True
|
|
24
|
+
elif char == '"':
|
|
25
|
+
in_string = False
|
|
26
|
+
elif char == '"':
|
|
27
|
+
in_string = True
|
|
28
|
+
elif char == '{':
|
|
29
|
+
depth += 1
|
|
30
|
+
started = True
|
|
31
|
+
elif char == '}':
|
|
32
|
+
depth -= 1
|
|
33
|
+
return depth, in_string, escaped, started
|
|
34
|
+
|
|
12
35
|
class AgentManager:
|
|
13
36
|
|
|
14
37
|
def __init__(self, tools, additional_context=None):
|
|
@@ -118,28 +141,23 @@ class AgentManager:
|
|
|
118
141
|
if line.startswith("Args:"):
|
|
119
142
|
# Check if JSON starts on the same line
|
|
120
143
|
args_on_same_line = line[5:].strip()
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
args_text = ""
|
|
126
|
-
brace_count = 0
|
|
144
|
+
args_text = args_on_same_line
|
|
145
|
+
brace_count, in_string, escaped, started = scan_braces(
|
|
146
|
+
args_on_same_line, 0, False, False
|
|
147
|
+
)
|
|
127
148
|
|
|
128
149
|
# Collect all lines that form the JSON arguments
|
|
129
150
|
i += 1
|
|
130
|
-
started = bool(args_on_same_line and '{' in args_on_same_line)
|
|
131
151
|
|
|
132
152
|
while i < len(lines) and (not started or brace_count > 0):
|
|
133
153
|
current_line = lines[i]
|
|
134
154
|
args_text += ("\n" if args_text else "") + current_line
|
|
135
155
|
|
|
136
|
-
# Count braces to
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
elif char == '}':
|
|
142
|
-
brace_count -= 1
|
|
156
|
+
# Count braces outside strings to find the end of the JSON
|
|
157
|
+
brace_count, in_string, escaped, line_started = scan_braces(
|
|
158
|
+
current_line + "\n", brace_count, in_string, escaped
|
|
159
|
+
)
|
|
160
|
+
started = started or line_started
|
|
143
161
|
|
|
144
162
|
# If we've started and braces are balanced, we're done
|
|
145
163
|
if started and brace_count == 0:
|
|
@@ -96,6 +96,8 @@ class StreamingReActParser:
|
|
|
96
96
|
# JSON parsing state for Args
|
|
97
97
|
self.brace_count = 0
|
|
98
98
|
self.args_started = False
|
|
99
|
+
self.args_in_string = False
|
|
100
|
+
self.args_escaped = False
|
|
99
101
|
|
|
100
102
|
# Result object (Action or Final)
|
|
101
103
|
self.result = None
|
|
@@ -236,7 +238,17 @@ class StreamingReActParser:
|
|
|
236
238
|
char = self.line_buffer[i]
|
|
237
239
|
self.args_buffer += char
|
|
238
240
|
|
|
239
|
-
|
|
241
|
+
# Braces inside string values do not count
|
|
242
|
+
if self.args_in_string:
|
|
243
|
+
if self.args_escaped:
|
|
244
|
+
self.args_escaped = False
|
|
245
|
+
elif char == '\\':
|
|
246
|
+
self.args_escaped = True
|
|
247
|
+
elif char == '"':
|
|
248
|
+
self.args_in_string = False
|
|
249
|
+
elif char == '"':
|
|
250
|
+
self.args_in_string = True
|
|
251
|
+
elif char == '{':
|
|
240
252
|
self.brace_count += 1
|
|
241
253
|
self.args_started = True
|
|
242
254
|
elif char == '}':
|
{trustgraph_flow-2.11.6 → trustgraph_flow-3.0.0}/trustgraph/bootstrap/bootstrapper/service.py
RENAMED
|
@@ -166,8 +166,8 @@ class Processor(AsyncProcessor):
|
|
|
166
166
|
async def _make_config_client(self):
|
|
167
167
|
return await AsyncConfigClient.create(
|
|
168
168
|
backend=self.async_backend,
|
|
169
|
-
request_topic=config_request_queue,
|
|
170
|
-
response_topic=config_response_queue,
|
|
169
|
+
request_topic=self.config_request_queue,
|
|
170
|
+
response_topic=self.config_response_queue,
|
|
171
171
|
subscription=f"{self.id}--config--{uuid.uuid4()}",
|
|
172
172
|
timeout=self.config_timeout,
|
|
173
173
|
)
|
|
@@ -374,19 +374,8 @@ class Processor(AsyncProcessor):
|
|
|
374
374
|
|
|
375
375
|
AsyncProcessor.add_args(parser)
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
default=default_config_request_queue,
|
|
380
|
-
help=f'Config request queue (default: {default_config_request_queue})'
|
|
381
|
-
)
|
|
382
|
-
|
|
383
|
-
parser.add_argument(
|
|
384
|
-
'--config-response-queue',
|
|
385
|
-
default=default_config_response_queue,
|
|
386
|
-
help=f'Config response queue {default_config_response_queue}',
|
|
387
|
-
)
|
|
388
|
-
|
|
389
|
-
# Note: --config-push-queue is already added by AsyncProcessor.add_args()
|
|
377
|
+
# Note: --config-push-queue, --config-request-queue, and
|
|
378
|
+
# --config-response-queue are added by AsyncProcessor.add_args()
|
|
390
379
|
|
|
391
380
|
add_cassandra_args(parser)
|
|
392
381
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
import json
|
|
3
|
+
import logging
|
|
4
|
+
|
|
5
|
+
logger = logging.getLogger(__name__)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class HandlerError(Exception):
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def get_param(params, key, required=True):
|
|
13
|
+
value = params.get(key, "")
|
|
14
|
+
if required and not value:
|
|
15
|
+
raise HandlerError(f"Missing required parameter: {key}")
|
|
16
|
+
return value
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def term_to_str(term):
|
|
20
|
+
if hasattr(term, 'type'):
|
|
21
|
+
if term.type == 'i':
|
|
22
|
+
return term.iri
|
|
23
|
+
elif term.type == 'l':
|
|
24
|
+
return term.value
|
|
25
|
+
elif term.type == 'b':
|
|
26
|
+
return term.id
|
|
27
|
+
return str(term)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def get_param_list(params, key):
|
|
31
|
+
value = params.get(key, "")
|
|
32
|
+
if not value:
|
|
33
|
+
return []
|
|
34
|
+
return [v.strip() for v in value.split(",") if v.strip()]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def get_param_int(params, key, default):
|
|
38
|
+
value = params.get(key, "")
|
|
39
|
+
if not value:
|
|
40
|
+
return default
|
|
41
|
+
return int(value)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def parse_param_json(params, key, expected_type=None):
|
|
45
|
+
value = params.get(key, "")
|
|
46
|
+
if not value:
|
|
47
|
+
return None
|
|
48
|
+
try:
|
|
49
|
+
parsed = json.loads(value)
|
|
50
|
+
except json.JSONDecodeError as e:
|
|
51
|
+
raise HandlerError(
|
|
52
|
+
f"Parameter '{key}' is not valid JSON: {e}"
|
|
53
|
+
)
|
|
54
|
+
if expected_type and not isinstance(parsed, expected_type):
|
|
55
|
+
type_name = expected_type.__name__
|
|
56
|
+
raise HandlerError(
|
|
57
|
+
f"Parameter '{key}' must be a JSON {type_name}, "
|
|
58
|
+
f"got {type(parsed).__name__}"
|
|
59
|
+
)
|
|
60
|
+
return parsed
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def get_input_artifact(input_artifacts, artifact_type):
|
|
64
|
+
for artifact in input_artifacts:
|
|
65
|
+
if artifact.get("artifact-type") == artifact_type:
|
|
66
|
+
return artifact.get("artifact", {})
|
|
67
|
+
return None
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def format_tabular(artifact):
|
|
71
|
+
columns = artifact.get("columns", [])
|
|
72
|
+
rows = artifact.get("rows", [])
|
|
73
|
+
col_names = [c.get("name", "?") for c in columns]
|
|
74
|
+
lines = [" | ".join(col_names)]
|
|
75
|
+
lines.append(" | ".join("---" for _ in col_names))
|
|
76
|
+
for row in rows:
|
|
77
|
+
lines.append(" | ".join(str(row.get(c, "")) for c in col_names))
|
|
78
|
+
return "\n".join(lines)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
import logging
|
|
3
|
+
|
|
4
|
+
from . common import get_param
|
|
5
|
+
|
|
6
|
+
logger = logging.getLogger(__name__)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ErpFinanceQueryHandler:
|
|
10
|
+
|
|
11
|
+
async def execute(self, params, input_artifacts, flow):
|
|
12
|
+
|
|
13
|
+
query = get_param(params, "query")
|
|
14
|
+
|
|
15
|
+
logger.info(f"ERP finance query (mock): {query[:80]}...")
|
|
16
|
+
|
|
17
|
+
return "TabularArtifact", {
|
|
18
|
+
"columns": [
|
|
19
|
+
{"name": "cost_centre", "type": "string"},
|
|
20
|
+
{"name": "department", "type": "string"},
|
|
21
|
+
{"name": "budget_q3", "type": "number"},
|
|
22
|
+
{"name": "actual_q3", "type": "number"},
|
|
23
|
+
{"name": "variance", "type": "number"},
|
|
24
|
+
],
|
|
25
|
+
"rows": [
|
|
26
|
+
{
|
|
27
|
+
"cost_centre": "CC-1001",
|
|
28
|
+
"department": "Engineering",
|
|
29
|
+
"budget_q3": "500000",
|
|
30
|
+
"actual_q3": "485000",
|
|
31
|
+
"variance": "-15000",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"cost_centre": "CC-1002",
|
|
35
|
+
"department": "Research",
|
|
36
|
+
"budget_q3": "300000",
|
|
37
|
+
"actual_q3": "312000",
|
|
38
|
+
"variance": "12000",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"cost_centre": "CC-1003",
|
|
42
|
+
"department": "Operations",
|
|
43
|
+
"budget_q3": "750000",
|
|
44
|
+
"actual_q3": "743000",
|
|
45
|
+
"variance": "-7000",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Capability handler registry for the action worker.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from . common import HandlerError
|
|
6
|
+
|
|
7
|
+
from . retrieval import (
|
|
8
|
+
ConceptExtractionHandler,
|
|
9
|
+
KnowledgeRetrievalHandler,
|
|
10
|
+
GraphRagQueryHandler,
|
|
11
|
+
GraphEmbeddingsQueryHandler,
|
|
12
|
+
EntityTriplesQueryHandler,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from . transform import (
|
|
16
|
+
RerankHandler,
|
|
17
|
+
TabularRedactHandler,
|
|
18
|
+
TabularJoinHandler,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
from . synthesis import LlmSynthesisHandler
|
|
22
|
+
|
|
23
|
+
from . system1 import (
|
|
24
|
+
ClozeHandler,
|
|
25
|
+
DecisionScoringHandler,
|
|
26
|
+
FieldExtractionHandler,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
from . external import ErpFinanceQueryHandler
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
BUILTIN_HANDLERS = {
|
|
33
|
+
"concept-extraction": ConceptExtractionHandler(),
|
|
34
|
+
"knowledge-retrieval": KnowledgeRetrievalHandler(),
|
|
35
|
+
"graph-rag-query": GraphRagQueryHandler(),
|
|
36
|
+
"graph-embeddings-query": GraphEmbeddingsQueryHandler(),
|
|
37
|
+
"entity-triples-query": EntityTriplesQueryHandler(),
|
|
38
|
+
"rerank": RerankHandler(),
|
|
39
|
+
"llm-synthesis": LlmSynthesisHandler(),
|
|
40
|
+
"tabular-redact": TabularRedactHandler(),
|
|
41
|
+
"tabular-join": TabularJoinHandler(),
|
|
42
|
+
"cloze": ClozeHandler(),
|
|
43
|
+
"decision-scoring": DecisionScoringHandler(),
|
|
44
|
+
"field-extraction": FieldExtractionHandler(),
|
|
45
|
+
"erp-finance-query": ErpFinanceQueryHandler(),
|
|
46
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
|
|
2
|
+
import logging
|
|
3
|
+
|
|
4
|
+
from trustgraph.schema import TraversalStep
|
|
5
|
+
|
|
6
|
+
from . common import (
|
|
7
|
+
HandlerError, get_param, get_param_list, get_param_int,
|
|
8
|
+
parse_param_json, term_to_str, get_input_artifact,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
logger = logging.getLogger(__name__)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _parse_traversal_instructions(params):
|
|
15
|
+
raw = parse_param_json(params, "traversal-instructions", list)
|
|
16
|
+
if not raw:
|
|
17
|
+
return None
|
|
18
|
+
steps = []
|
|
19
|
+
for i, item in enumerate(raw):
|
|
20
|
+
if not isinstance(item, dict):
|
|
21
|
+
raise HandlerError(
|
|
22
|
+
f"traversal-instructions[{i}] must be an object, "
|
|
23
|
+
f"got {type(item).__name__}"
|
|
24
|
+
)
|
|
25
|
+
steps.append(TraversalStep(
|
|
26
|
+
types=item.get("types", []),
|
|
27
|
+
relationships=item.get("relationships", []),
|
|
28
|
+
graphs=item.get("graphs", []),
|
|
29
|
+
))
|
|
30
|
+
return steps
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ConceptExtractionHandler:
|
|
34
|
+
|
|
35
|
+
async def execute(self, params, input_artifacts, flow):
|
|
36
|
+
|
|
37
|
+
query = get_param(params, "query")
|
|
38
|
+
|
|
39
|
+
logger.info(f"Concept extraction: {query[:80]}...")
|
|
40
|
+
|
|
41
|
+
concept_extraction = flow("concept-extraction-request")
|
|
42
|
+
|
|
43
|
+
concepts = await concept_extraction.extract(
|
|
44
|
+
query, timeout=300,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return "KeywordsArtifact", {
|
|
48
|
+
"keywords": concepts,
|
|
49
|
+
"query": query,
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class KnowledgeRetrievalHandler:
|
|
54
|
+
|
|
55
|
+
async def execute(self, params, input_artifacts, flow):
|
|
56
|
+
|
|
57
|
+
keywords_artifact = get_input_artifact(
|
|
58
|
+
input_artifacts, "KeywordsArtifact",
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
if keywords_artifact:
|
|
62
|
+
concepts = keywords_artifact.get("keywords", [])
|
|
63
|
+
else:
|
|
64
|
+
concepts = get_param_list(params, "concepts")
|
|
65
|
+
|
|
66
|
+
entities_param = get_param(params, "entities", required=False)
|
|
67
|
+
entities = [
|
|
68
|
+
e.strip() for e in entities_param.split(",")
|
|
69
|
+
if e.strip()
|
|
70
|
+
] if entities_param else []
|
|
71
|
+
|
|
72
|
+
if not concepts and not entities:
|
|
73
|
+
raise HandlerError(
|
|
74
|
+
"knowledge-retrieval requires at least one of: "
|
|
75
|
+
"KeywordsArtifact input, 'concepts' parameter, "
|
|
76
|
+
"or 'entities' parameter"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
collection = get_param(params, "collection", required=False) \
|
|
80
|
+
or "default"
|
|
81
|
+
entity_limit = get_param_int(params, "entity-limit", 50)
|
|
82
|
+
triple_limit = get_param_int(params, "triple-limit", 30)
|
|
83
|
+
max_path_length = get_param_int(params, "max-path-length", 2)
|
|
84
|
+
edge_limit = get_param_int(params, "edge-limit", 25)
|
|
85
|
+
max_reranker_input = get_param_int(
|
|
86
|
+
params, "max-reranker-input", 350,
|
|
87
|
+
)
|
|
88
|
+
languages = get_param_list(params, "languages")
|
|
89
|
+
graph = get_param(params, "graph", required=False) or ""
|
|
90
|
+
|
|
91
|
+
logger.info(
|
|
92
|
+
f"Knowledge retrieval: {len(concepts)} concepts, "
|
|
93
|
+
f"{len(entities)} seed entities, "
|
|
94
|
+
f"collection={collection}"
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
knowledge_retrieval = flow("knowledge-retrieval-request")
|
|
98
|
+
|
|
99
|
+
response = await knowledge_retrieval.retrieve(
|
|
100
|
+
concepts=concepts or None,
|
|
101
|
+
entities=entities or None,
|
|
102
|
+
collection=collection,
|
|
103
|
+
entity_limit=entity_limit,
|
|
104
|
+
triple_limit=triple_limit,
|
|
105
|
+
max_path_length=max_path_length,
|
|
106
|
+
edge_limit=edge_limit,
|
|
107
|
+
max_reranker_input=max_reranker_input,
|
|
108
|
+
languages=languages or None,
|
|
109
|
+
graph=graph,
|
|
110
|
+
timeout=300,
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
triples = [
|
|
114
|
+
{
|
|
115
|
+
"s": e.s, "p": e.p, "o": e.o,
|
|
116
|
+
"s_label": e.s_label, "p_label": e.p_label,
|
|
117
|
+
"o_label": e.o_label,
|
|
118
|
+
"score": e.score, "concept": e.concept,
|
|
119
|
+
}
|
|
120
|
+
for e in response.edges
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
return "SubgraphArtifact", {
|
|
124
|
+
"triples": triples,
|
|
125
|
+
"seed_entities": response.seed_entities,
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class GraphRagQueryHandler:
|
|
130
|
+
|
|
131
|
+
async def execute(self, params, input_artifacts, flow):
|
|
132
|
+
|
|
133
|
+
query = get_param(params, "query")
|
|
134
|
+
|
|
135
|
+
collection = get_param(params, "collection", required=False) \
|
|
136
|
+
or "default"
|
|
137
|
+
entity_limit = get_param_int(params, "entity-limit", 0)
|
|
138
|
+
triple_limit = get_param_int(params, "triple-limit", 0)
|
|
139
|
+
max_subgraph_size = get_param_int(params, "max-subgraph-size", 0)
|
|
140
|
+
max_path_length = get_param_int(params, "max-path-length", 0)
|
|
141
|
+
edge_score_limit = get_param_int(params, "edge-score-limit", 0)
|
|
142
|
+
edge_limit = get_param_int(params, "edge-limit", 0)
|
|
143
|
+
max_reranker_input = get_param_int(
|
|
144
|
+
params, "max-reranker-input", 0,
|
|
145
|
+
)
|
|
146
|
+
grounding_seeds = get_param_list(params, "grounding-seeds")
|
|
147
|
+
graph_seeds = get_param_list(params, "graph-seeds")
|
|
148
|
+
languages = get_param_list(params, "languages")
|
|
149
|
+
traversal_instructions = _parse_traversal_instructions(params)
|
|
150
|
+
graph = get_param(params, "graph", required=False) or None
|
|
151
|
+
|
|
152
|
+
logger.info(
|
|
153
|
+
f"Graph RAG query: {query[:80]}... "
|
|
154
|
+
f"collection={collection}"
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
graph_rag = flow("graph-rag-request")
|
|
158
|
+
|
|
159
|
+
response = await graph_rag.rag(
|
|
160
|
+
query=query,
|
|
161
|
+
collection=collection,
|
|
162
|
+
entity_limit=entity_limit,
|
|
163
|
+
triple_limit=triple_limit,
|
|
164
|
+
max_subgraph_size=max_subgraph_size,
|
|
165
|
+
max_path_length=max_path_length,
|
|
166
|
+
edge_score_limit=edge_score_limit,
|
|
167
|
+
edge_limit=edge_limit,
|
|
168
|
+
max_reranker_input=max_reranker_input,
|
|
169
|
+
grounding_seeds=grounding_seeds or None,
|
|
170
|
+
graph_seeds=graph_seeds or None,
|
|
171
|
+
languages=languages or None,
|
|
172
|
+
traversal_instructions=traversal_instructions,
|
|
173
|
+
graph=graph,
|
|
174
|
+
timeout=300,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
return "TextBlobArtifact", {
|
|
178
|
+
"text": response,
|
|
179
|
+
"query": query,
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class GraphEmbeddingsQueryHandler:
|
|
184
|
+
|
|
185
|
+
async def execute(self, params, input_artifacts, flow):
|
|
186
|
+
|
|
187
|
+
query = get_param(params, "query")
|
|
188
|
+
limit = get_param_int(params, "limit", 20)
|
|
189
|
+
collection = get_param(params, "collection", required=False) \
|
|
190
|
+
or "default"
|
|
191
|
+
rdf_type = get_param(params, "rdf-type", required=False) or ""
|
|
192
|
+
attributes = parse_param_json(params, "attributes", dict)
|
|
193
|
+
|
|
194
|
+
logger.info(
|
|
195
|
+
f"Graph embeddings query: {query[:80]}... "
|
|
196
|
+
f"collection={collection}"
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
embeddings = flow("embeddings-request")
|
|
200
|
+
vectors = await embeddings.embed([query], timeout=300)
|
|
201
|
+
|
|
202
|
+
if not vectors:
|
|
203
|
+
raise HandlerError("Embeddings service returned no vectors")
|
|
204
|
+
|
|
205
|
+
graph_embeddings = flow("graph-embeddings-request")
|
|
206
|
+
entities = await graph_embeddings.query(
|
|
207
|
+
vector=vectors[0],
|
|
208
|
+
limit=limit,
|
|
209
|
+
collection=collection,
|
|
210
|
+
rdf_type=rdf_type,
|
|
211
|
+
attributes=attributes,
|
|
212
|
+
timeout=300,
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
results = [
|
|
216
|
+
{
|
|
217
|
+
"entity": term_to_str(e.entity) if e.entity else "",
|
|
218
|
+
"score": e.score,
|
|
219
|
+
"rdf_type": e.rdf_type,
|
|
220
|
+
"attributes": e.attributes,
|
|
221
|
+
}
|
|
222
|
+
for e in entities
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
logger.info(
|
|
226
|
+
f"Graph embeddings query: {len(results)} matches"
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
return "EntityListArtifact", {
|
|
230
|
+
"entities": results,
|
|
231
|
+
"query": query,
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class EntityTriplesQueryHandler:
|
|
236
|
+
|
|
237
|
+
async def execute(self, params, input_artifacts, flow):
|
|
238
|
+
|
|
239
|
+
entity_list = get_input_artifact(
|
|
240
|
+
input_artifacts, "EntityListArtifact",
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
if entity_list:
|
|
244
|
+
entities = [
|
|
245
|
+
e.get("entity", "")
|
|
246
|
+
for e in entity_list.get("entities", [])
|
|
247
|
+
if e.get("entity")
|
|
248
|
+
]
|
|
249
|
+
else:
|
|
250
|
+
entity_param = get_param(params, "entity", required=False)
|
|
251
|
+
entities_param = get_param(params, "entities", required=False)
|
|
252
|
+
entities = []
|
|
253
|
+
if entity_param:
|
|
254
|
+
entities.append(entity_param.strip())
|
|
255
|
+
if entities_param:
|
|
256
|
+
entities.extend(
|
|
257
|
+
e.strip() for e in entities_param.split(",")
|
|
258
|
+
if e.strip()
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
if not entities:
|
|
262
|
+
raise HandlerError(
|
|
263
|
+
"entity-triples-query requires at least one of: "
|
|
264
|
+
"EntityListArtifact input, 'entity' parameter, "
|
|
265
|
+
"or 'entities' parameter"
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
limit = get_param_int(params, "limit", 50)
|
|
269
|
+
direction = get_param(
|
|
270
|
+
params, "direction", required=False,
|
|
271
|
+
) or "both"
|
|
272
|
+
collection = get_param(params, "collection", required=False) \
|
|
273
|
+
or "default"
|
|
274
|
+
g = get_param(params, "graph", required=False) or None
|
|
275
|
+
|
|
276
|
+
logger.info(
|
|
277
|
+
f"Entity triples query: {len(entities)} entities, "
|
|
278
|
+
f"limit={limit}, direction={direction}, "
|
|
279
|
+
f"collection={collection}"
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
triples_client = flow("triples-request")
|
|
283
|
+
seen = set()
|
|
284
|
+
triples = []
|
|
285
|
+
|
|
286
|
+
for entity_uri in entities:
|
|
287
|
+
if direction in ("outbound", "both"):
|
|
288
|
+
results = await triples_client.query(
|
|
289
|
+
s=entity_uri, limit=limit,
|
|
290
|
+
collection=collection, g=g,
|
|
291
|
+
timeout=300,
|
|
292
|
+
)
|
|
293
|
+
for t in results:
|
|
294
|
+
key = (str(t.s), str(t.p), str(t.o))
|
|
295
|
+
if key not in seen:
|
|
296
|
+
seen.add(key)
|
|
297
|
+
triples.append({
|
|
298
|
+
"s": str(t.s), "p": str(t.p), "o": str(t.o),
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
if direction in ("inbound", "both"):
|
|
302
|
+
results = await triples_client.query(
|
|
303
|
+
o=entity_uri, limit=limit,
|
|
304
|
+
collection=collection, g=g,
|
|
305
|
+
timeout=300,
|
|
306
|
+
)
|
|
307
|
+
for t in results:
|
|
308
|
+
key = (str(t.s), str(t.p), str(t.o))
|
|
309
|
+
if key not in seen:
|
|
310
|
+
seen.add(key)
|
|
311
|
+
triples.append({
|
|
312
|
+
"s": str(t.s), "p": str(t.p), "o": str(t.o),
|
|
313
|
+
})
|
|
314
|
+
|
|
315
|
+
logger.info(
|
|
316
|
+
f"Entity triples query: {len(triples)} unique triples"
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
return "SubgraphArtifact", {
|
|
320
|
+
"triples": triples,
|
|
321
|
+
"seed_entities": entities,
|
|
322
|
+
}
|