trustgraph-base 2.11.7__tar.gz → 3.0.0rc2__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_base-2.11.7 → trustgraph_base-3.0.0rc2}/PKG-INFO +1 -1
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/async_socket_client.py +66 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/socket_client.py +32 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/__init__.py +14 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/action_service.py +124 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/cloze_client.py +34 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/concept_extraction_client.py +30 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/concept_extraction_service.py +121 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/decision_scoring_client.py +33 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/document_decoder_base.py +300 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/document_decoder_client.py +53 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/document_rag_client.py +50 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/field_extraction_client.py +33 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/graph_rag_client.py +13 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/knowledge_retrieval_client.py +49 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/knowledge_retrieval_service.py +132 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/planner_service.py +119 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/policy_engine_service.py +120 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/prompt_client.py +10 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/triples_client.py +23 -0
- trustgraph_base-3.0.0rc2/trustgraph/base/verification_service.py +129 -0
- trustgraph_base-3.0.0rc2/trustgraph/base_version.py +1 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/__init__.py +49 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/__init__.py +1 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/action.py +53 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/concept_extraction.py +42 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/document_decoder.py +48 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/knowledge_retrieval.py +86 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/planner.py +63 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/policy_engine.py +68 -0
- trustgraph_base-3.0.0rc2/trustgraph/messaging/translators/verification.py +64 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/__init__.py +7 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/action.py +30 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/concept_extraction.py +23 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/document_decoder.py +29 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/knowledge_retrieval.py +53 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/planner.py +40 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/policy_engine.py +45 -0
- trustgraph_base-3.0.0rc2/trustgraph/schema/verification.py +41 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/PKG-INFO +1 -1
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/SOURCES.txt +28 -0
- trustgraph_base-2.11.7/trustgraph/base_version.py +0 -1
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/README.md +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/pyproject.toml +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/setup.cfg +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/api.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/async_bulk_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/async_flow.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/async_metrics.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/bulk_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/collection.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/config.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/exceptions.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/explainability.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/flow.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/knowledge.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/library.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/metrics.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/api/types.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/agent_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/agent_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_backend.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_config_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_kafka_backend.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_librarian_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_processor.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_pulsar_backend.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_rabbitmq_backend.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/async_rr_wrapper.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/audit_publisher.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/backend.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/cassandra_config.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/chunking_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/collection_config_handler.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/config_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/consumer_spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/document_embeddings_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/document_embeddings_query_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/document_embeddings_store_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/dynamic_tool_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/embeddings_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/embeddings_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/flow.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/flow_processor.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/graph_embeddings_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/graph_embeddings_query_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/graph_embeddings_store_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/iam_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/image_to_text_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/keyword_index_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/keyword_index_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/librarian_spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/llm_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/logging.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/metrics.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/parameter_spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/policy_event_publisher.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/processor_group.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/producer_spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/pubsub.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/qdrant_config.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/receiver_pool.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/request_response_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/request_response_spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/reranker_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/reranker_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/row_embeddings_query_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/schema_compatibility.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/sender_pool.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/serialization.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/sparql_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/spec.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/structured_query_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/text_completion_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/tool_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/tool_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/tool_service_client.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/triples_query_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/triples_store_service.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/base/workspace_processor.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/exceptions.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/ar.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/en.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/es.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/he.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/hi.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/pt.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/ru.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/sw.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/tr.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/i18n/packs/zh-cn.json +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/document.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/log_level.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/registry.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/agent.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/base.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/cloze.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/collection.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/config.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/decision_scoring.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/diagnosis.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/document_loading.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/embeddings.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/embeddings_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/field_extraction.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/flow.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/iam.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/image_to_text.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/knowledge.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/library.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/metadata.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/nl_sparql.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/nlp_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/ontology.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/primitives.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/prompt.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/reranker.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/retrieval.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/rows_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/sparql_nl_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/sparql_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/structured_query.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/text_completion.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/tool.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/messaging/translators/triples.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/objects/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/objects/field.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/objects/object.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/agent.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/namespaces.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/triples.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/uris.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/provenance/vocabulary.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/rdf.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/agent.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/audit.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/cloze.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/config.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/core/__init__.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/core/metadata.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/core/primitives.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/core/topic.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/decision_scoring.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/documents.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/embeddings.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/field_extraction.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/iam.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/llm.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/nl_sparql.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/ontology.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/policy_event.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/retrieval.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/structured.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/triples.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph/schema/user_context.py +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/entry_points.txt +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph_base-2.11.7 → trustgraph_base-3.0.0rc2}/trustgraph_base.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-base
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0rc2
|
|
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
|
|
@@ -227,6 +227,41 @@ class AsyncSocketClient:
|
|
|
227
227
|
finally:
|
|
228
228
|
self._pending.pop(request_id, None)
|
|
229
229
|
|
|
230
|
+
async def _send_request_streaming_raw(self, service: str, flow: Optional[str], request: Dict[str, Any]):
|
|
231
|
+
"""Send a request and yield raw response dicts."""
|
|
232
|
+
await self._ensure_connected()
|
|
233
|
+
|
|
234
|
+
request_id = self._next_request_id()
|
|
235
|
+
queue = asyncio.Queue()
|
|
236
|
+
self._pending[request_id] = queue
|
|
237
|
+
|
|
238
|
+
try:
|
|
239
|
+
message = {
|
|
240
|
+
"id": request_id,
|
|
241
|
+
"workspace": self.workspace,
|
|
242
|
+
"service": service,
|
|
243
|
+
"request": request
|
|
244
|
+
}
|
|
245
|
+
if flow:
|
|
246
|
+
message["flow"] = flow
|
|
247
|
+
|
|
248
|
+
await self._socket.send(json.dumps(message))
|
|
249
|
+
|
|
250
|
+
while True:
|
|
251
|
+
response = await queue.get()
|
|
252
|
+
|
|
253
|
+
if "error" in response:
|
|
254
|
+
raise ApplicationException(response["error"])
|
|
255
|
+
|
|
256
|
+
if "response" in response:
|
|
257
|
+
yield response["response"]
|
|
258
|
+
|
|
259
|
+
if response.get("complete"):
|
|
260
|
+
break
|
|
261
|
+
|
|
262
|
+
finally:
|
|
263
|
+
self._pending.pop(request_id, None)
|
|
264
|
+
|
|
230
265
|
def _parse_chunk(self, resp: Dict[str, Any]):
|
|
231
266
|
"""Parse response chunk into appropriate type. Returns None for non-content messages."""
|
|
232
267
|
message_type = resp.get("message_type")
|
|
@@ -594,3 +629,34 @@ class AsyncSocketFlowInstance:
|
|
|
594
629
|
request.update(kwargs)
|
|
595
630
|
|
|
596
631
|
return await self.client._send_request("field-extraction", self.flow_id, request)
|
|
632
|
+
|
|
633
|
+
async def document_decode(self, document_id: str, mode: str = "page"):
|
|
634
|
+
"""Decode a document from the librarian into sections.
|
|
635
|
+
|
|
636
|
+
Returns a list of section dicts with document_id, page,
|
|
637
|
+
and section_type.
|
|
638
|
+
"""
|
|
639
|
+
request = {
|
|
640
|
+
"document_id": document_id,
|
|
641
|
+
"mode": mode,
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
sections = []
|
|
645
|
+
async for resp in self.client._send_request_streaming_raw(
|
|
646
|
+
"document-decode", self.flow_id, request,
|
|
647
|
+
):
|
|
648
|
+
if resp.get("end_of_stream"):
|
|
649
|
+
break
|
|
650
|
+
if resp.get("error"):
|
|
651
|
+
err = resp["error"]
|
|
652
|
+
raise RuntimeError(
|
|
653
|
+
f"{err.get('type', 'error')}: {err.get('message', '')}"
|
|
654
|
+
)
|
|
655
|
+
if resp.get("document_id"):
|
|
656
|
+
sections.append({
|
|
657
|
+
"document_id": resp["document_id"],
|
|
658
|
+
"page": resp.get("page", 0),
|
|
659
|
+
"section_type": resp.get("section_type", "text"),
|
|
660
|
+
})
|
|
661
|
+
|
|
662
|
+
return sections
|
|
@@ -1228,3 +1228,35 @@ class SocketFlowInstance:
|
|
|
1228
1228
|
request.update(kwargs)
|
|
1229
1229
|
|
|
1230
1230
|
return self.client._send_request_sync("sparql-nl-query", self.flow_id, request, False)
|
|
1231
|
+
|
|
1232
|
+
def document_decode(self, document_id: str, mode: str = "page"):
|
|
1233
|
+
"""Decode a document from the librarian into sections.
|
|
1234
|
+
|
|
1235
|
+
Streams section responses. Returns a list of section dicts,
|
|
1236
|
+
each with document_id, page, and section_type.
|
|
1237
|
+
"""
|
|
1238
|
+
request = {
|
|
1239
|
+
"document_id": document_id,
|
|
1240
|
+
"mode": mode,
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
sections = []
|
|
1244
|
+
for resp in self.client._send_request_sync(
|
|
1245
|
+
"document-decode", self.flow_id, request,
|
|
1246
|
+
streaming_raw=True,
|
|
1247
|
+
):
|
|
1248
|
+
if resp.get("end_of_stream"):
|
|
1249
|
+
break
|
|
1250
|
+
if resp.get("error"):
|
|
1251
|
+
err = resp["error"]
|
|
1252
|
+
raise RuntimeError(
|
|
1253
|
+
f"{err.get('type', 'error')}: {err.get('message', '')}"
|
|
1254
|
+
)
|
|
1255
|
+
if resp.get("document_id"):
|
|
1256
|
+
sections.append({
|
|
1257
|
+
"document_id": resp["document_id"],
|
|
1258
|
+
"page": resp.get("page", 0),
|
|
1259
|
+
"section_type": resp.get("section_type", "text"),
|
|
1260
|
+
})
|
|
1261
|
+
|
|
1262
|
+
return sections
|
|
@@ -55,4 +55,18 @@ from . receiver_pool import ReceiverPool, ConsumerRegistration
|
|
|
55
55
|
from . sender_pool import SenderPool, ProducerHandle
|
|
56
56
|
from . request_response_client import RequestResponseClient
|
|
57
57
|
from . async_librarian_client import AsyncLibrarianClient
|
|
58
|
+
from . concept_extraction_service import ConceptExtractionService
|
|
59
|
+
from . concept_extraction_client import ConceptExtractionClientSpec
|
|
60
|
+
from . knowledge_retrieval_service import KnowledgeRetrievalService
|
|
61
|
+
from . knowledge_retrieval_client import KnowledgeRetrievalClientSpec
|
|
62
|
+
from . planner_service import PlannerService
|
|
63
|
+
from . verification_service import VerificationService
|
|
64
|
+
from . policy_engine_service import PolicyEngineService
|
|
65
|
+
from . action_service import ActionService
|
|
66
|
+
from . document_rag_client import DocumentRagClientSpec
|
|
67
|
+
from . document_decoder_client import DocumentDecoderClientSpec
|
|
68
|
+
from . document_decoder_base import DocumentDecoderBase
|
|
69
|
+
from . cloze_client import ClozeClientSpec
|
|
70
|
+
from . decision_scoring_client import DecisionScoringClientSpec
|
|
71
|
+
from . field_extraction_client import FieldExtractionClientSpec
|
|
58
72
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Action worker service. Dispatches step execution to capability
|
|
3
|
+
handlers. Single service handles all capabilities via a pluggable
|
|
4
|
+
handler registry.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from argparse import ArgumentParser
|
|
10
|
+
|
|
11
|
+
import time
|
|
12
|
+
import logging
|
|
13
|
+
from prometheus_client import Histogram, Counter
|
|
14
|
+
|
|
15
|
+
from .. schema import ActionRequest, ActionResponse, Error
|
|
16
|
+
|
|
17
|
+
from . flow_processor import FlowProcessor
|
|
18
|
+
from . consumer_spec import ConsumerSpec
|
|
19
|
+
from . producer_spec import ProducerSpec
|
|
20
|
+
|
|
21
|
+
logger = logging.getLogger(__name__)
|
|
22
|
+
|
|
23
|
+
default_ident = "action"
|
|
24
|
+
default_concurrency = 10
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ActionService(FlowProcessor):
|
|
28
|
+
|
|
29
|
+
def __init__(self, **params):
|
|
30
|
+
|
|
31
|
+
id = params.get("id")
|
|
32
|
+
concurrency = params.get("concurrency", default_concurrency)
|
|
33
|
+
|
|
34
|
+
super(ActionService, self).__init__(**params | { "id": id })
|
|
35
|
+
|
|
36
|
+
self.register_specification(
|
|
37
|
+
ConsumerSpec(
|
|
38
|
+
name = "request",
|
|
39
|
+
schema = ActionRequest,
|
|
40
|
+
handler = self.on_message,
|
|
41
|
+
concurrency = concurrency,
|
|
42
|
+
)
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
self.register_specification(
|
|
46
|
+
ProducerSpec(
|
|
47
|
+
name = "response",
|
|
48
|
+
schema = ActionResponse,
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
if not hasattr(__class__, "action_duration_metric"):
|
|
53
|
+
from . metrics import BUCKETS_LLM
|
|
54
|
+
__class__.action_duration_metric = Histogram(
|
|
55
|
+
'tg_action_duration_seconds',
|
|
56
|
+
'Action worker execution latency (seconds)',
|
|
57
|
+
["processor", "capability"],
|
|
58
|
+
buckets=BUCKETS_LLM,
|
|
59
|
+
)
|
|
60
|
+
__class__.action_count_metric = Counter(
|
|
61
|
+
'tg_action_total',
|
|
62
|
+
'Action worker executions by capability',
|
|
63
|
+
["processor", "capability"],
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
async def on_message(self, msg, consumer, flow):
|
|
67
|
+
|
|
68
|
+
try:
|
|
69
|
+
|
|
70
|
+
request = msg.value()
|
|
71
|
+
|
|
72
|
+
id = msg.properties()["id"]
|
|
73
|
+
|
|
74
|
+
logger.debug(
|
|
75
|
+
f"Handling action request {id} "
|
|
76
|
+
f"({request.capability})..."
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
workspace = flow.workspace
|
|
80
|
+
|
|
81
|
+
t0 = time.monotonic()
|
|
82
|
+
response = await self.execute(workspace, request, flow)
|
|
83
|
+
__class__.action_duration_metric.labels(
|
|
84
|
+
processor=self.id,
|
|
85
|
+
capability=request.capability,
|
|
86
|
+
).observe(time.monotonic() - t0)
|
|
87
|
+
__class__.action_count_metric.labels(
|
|
88
|
+
processor=self.id,
|
|
89
|
+
capability=request.capability,
|
|
90
|
+
).inc()
|
|
91
|
+
|
|
92
|
+
logger.debug("Sending action response...")
|
|
93
|
+
await flow("response").send(response, properties={"id": id})
|
|
94
|
+
logger.debug("Action request completed")
|
|
95
|
+
|
|
96
|
+
except Exception as e:
|
|
97
|
+
|
|
98
|
+
logger.error(
|
|
99
|
+
f"Exception in action service: {e}", exc_info=True
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
logger.info("Sending error response...")
|
|
103
|
+
|
|
104
|
+
r = ActionResponse(
|
|
105
|
+
error = Error(
|
|
106
|
+
type = "action-error",
|
|
107
|
+
message = str(e),
|
|
108
|
+
),
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
await flow("response").send(r, properties={"id": id})
|
|
112
|
+
|
|
113
|
+
async def execute(self, workspace, request, flow):
|
|
114
|
+
raise NotImplementedError("Subclasses must implement execute")
|
|
115
|
+
|
|
116
|
+
@staticmethod
|
|
117
|
+
def add_args(parser: ArgumentParser) -> None:
|
|
118
|
+
|
|
119
|
+
FlowProcessor.add_args(parser)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def run() -> None:
|
|
123
|
+
|
|
124
|
+
Processor.launch(default_ident, __doc__)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
from . request_response_spec import RequestResponseSpec
|
|
3
|
+
from .. schema import ClozeRequest, ClozeResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ClozeClient:
|
|
7
|
+
async def predict(self, model, query, timeout=300):
|
|
8
|
+
|
|
9
|
+
resp = await self.request(
|
|
10
|
+
ClozeRequest(
|
|
11
|
+
operation="predict",
|
|
12
|
+
model=model,
|
|
13
|
+
query=query,
|
|
14
|
+
),
|
|
15
|
+
timeout=timeout,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
if resp.error:
|
|
19
|
+
raise RuntimeError(resp.error.message)
|
|
20
|
+
|
|
21
|
+
return resp
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ClozeClientSpec(RequestResponseSpec):
|
|
25
|
+
def __init__(
|
|
26
|
+
self, request_name, response_name,
|
|
27
|
+
):
|
|
28
|
+
super(ClozeClientSpec, self).__init__(
|
|
29
|
+
request_name=request_name,
|
|
30
|
+
request_schema=ClozeRequest,
|
|
31
|
+
response_name=response_name,
|
|
32
|
+
response_schema=ClozeResponse,
|
|
33
|
+
impl=ClozeClient,
|
|
34
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
from . request_response_spec import RequestResponseSpec
|
|
3
|
+
from .. schema import ConceptExtractionRequest, ConceptExtractionResponse
|
|
4
|
+
|
|
5
|
+
class ConceptExtractionClient:
|
|
6
|
+
async def extract(self, query, timeout=300):
|
|
7
|
+
|
|
8
|
+
resp = await self.request(
|
|
9
|
+
ConceptExtractionRequest(
|
|
10
|
+
query=query,
|
|
11
|
+
),
|
|
12
|
+
timeout=timeout,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
if resp.error:
|
|
16
|
+
raise RuntimeError(resp.error.message)
|
|
17
|
+
|
|
18
|
+
return resp.concepts
|
|
19
|
+
|
|
20
|
+
class ConceptExtractionClientSpec(RequestResponseSpec):
|
|
21
|
+
def __init__(
|
|
22
|
+
self, request_name, response_name,
|
|
23
|
+
):
|
|
24
|
+
super(ConceptExtractionClientSpec, self).__init__(
|
|
25
|
+
request_name = request_name,
|
|
26
|
+
request_schema = ConceptExtractionRequest,
|
|
27
|
+
response_name = response_name,
|
|
28
|
+
response_schema = ConceptExtractionResponse,
|
|
29
|
+
impl = ConceptExtractionClient,
|
|
30
|
+
)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Concept extraction service. Input is a natural-language query.
|
|
3
|
+
Output is a list of key concepts extracted from the query.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from argparse import ArgumentParser
|
|
9
|
+
|
|
10
|
+
import time
|
|
11
|
+
import logging
|
|
12
|
+
from prometheus_client import Histogram, Counter
|
|
13
|
+
|
|
14
|
+
from .. schema import (
|
|
15
|
+
ConceptExtractionRequest, ConceptExtractionResponse, Error,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
from . flow_processor import FlowProcessor
|
|
19
|
+
from . consumer_spec import ConsumerSpec
|
|
20
|
+
from . producer_spec import ProducerSpec
|
|
21
|
+
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
default_ident = "concept-extraction"
|
|
25
|
+
default_concurrency = 10
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ConceptExtractionService(FlowProcessor):
|
|
29
|
+
|
|
30
|
+
def __init__(self, **params):
|
|
31
|
+
|
|
32
|
+
id = params.get("id")
|
|
33
|
+
concurrency = params.get("concurrency", default_concurrency)
|
|
34
|
+
|
|
35
|
+
super(ConceptExtractionService, self).__init__(**params | { "id": id })
|
|
36
|
+
|
|
37
|
+
self.register_specification(
|
|
38
|
+
ConsumerSpec(
|
|
39
|
+
name = "request",
|
|
40
|
+
schema = ConceptExtractionRequest,
|
|
41
|
+
handler = self.on_message,
|
|
42
|
+
concurrency = concurrency,
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
self.register_specification(
|
|
47
|
+
ProducerSpec(
|
|
48
|
+
name = "response",
|
|
49
|
+
schema = ConceptExtractionResponse,
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
if not hasattr(__class__, "extract_duration_metric"):
|
|
54
|
+
from . metrics import BUCKETS_LLM
|
|
55
|
+
__class__.extract_duration_metric = Histogram(
|
|
56
|
+
'tg_concept_extraction_duration_seconds',
|
|
57
|
+
'Concept extraction latency (seconds)',
|
|
58
|
+
["processor"],
|
|
59
|
+
buckets=BUCKETS_LLM,
|
|
60
|
+
)
|
|
61
|
+
__class__.extract_count_metric = Counter(
|
|
62
|
+
'tg_concept_extraction_total',
|
|
63
|
+
'Number of concept extraction requests',
|
|
64
|
+
["processor"],
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
async def on_message(self, msg, consumer, flow):
|
|
68
|
+
|
|
69
|
+
try:
|
|
70
|
+
|
|
71
|
+
request = msg.value()
|
|
72
|
+
|
|
73
|
+
id = msg.properties()["id"]
|
|
74
|
+
|
|
75
|
+
logger.debug(f"Handling concept extraction request {id}...")
|
|
76
|
+
|
|
77
|
+
workspace = flow.workspace
|
|
78
|
+
|
|
79
|
+
t0 = time.monotonic()
|
|
80
|
+
response = await self.extract(workspace, request, flow)
|
|
81
|
+
__class__.extract_duration_metric.labels(
|
|
82
|
+
processor=self.id,
|
|
83
|
+
).observe(time.monotonic() - t0)
|
|
84
|
+
__class__.extract_count_metric.labels(
|
|
85
|
+
processor=self.id,
|
|
86
|
+
).inc()
|
|
87
|
+
|
|
88
|
+
logger.debug("Sending concept extraction response...")
|
|
89
|
+
await flow("response").send(response, properties={"id": id})
|
|
90
|
+
logger.debug("Concept extraction request completed")
|
|
91
|
+
|
|
92
|
+
except Exception as e:
|
|
93
|
+
|
|
94
|
+
logger.error(
|
|
95
|
+
f"Exception in concept extraction service: {e}",
|
|
96
|
+
exc_info=True,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
logger.info("Sending error response...")
|
|
100
|
+
|
|
101
|
+
r = ConceptExtractionResponse(
|
|
102
|
+
error = Error(
|
|
103
|
+
type = "concept-extraction-error",
|
|
104
|
+
message = str(e),
|
|
105
|
+
),
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
await flow("response").send(r, properties={"id": id})
|
|
109
|
+
|
|
110
|
+
async def extract(self, workspace, request, flow):
|
|
111
|
+
raise NotImplementedError("Subclasses must implement extract")
|
|
112
|
+
|
|
113
|
+
@staticmethod
|
|
114
|
+
def add_args(parser: ArgumentParser) -> None:
|
|
115
|
+
|
|
116
|
+
FlowProcessor.add_args(parser)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def run() -> None:
|
|
120
|
+
|
|
121
|
+
Processor.launch(default_ident, __doc__)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
from . request_response_spec import RequestResponseSpec
|
|
3
|
+
from .. schema import DecisionScoringRequest, DecisionScoringResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DecisionScoringClient:
|
|
7
|
+
async def score(self, state, questions, timeout=300):
|
|
8
|
+
|
|
9
|
+
resp = await self.request(
|
|
10
|
+
DecisionScoringRequest(
|
|
11
|
+
state=state,
|
|
12
|
+
questions=questions,
|
|
13
|
+
),
|
|
14
|
+
timeout=timeout,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
if resp.error:
|
|
18
|
+
raise RuntimeError(resp.error.message)
|
|
19
|
+
|
|
20
|
+
return resp
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class DecisionScoringClientSpec(RequestResponseSpec):
|
|
24
|
+
def __init__(
|
|
25
|
+
self, request_name, response_name,
|
|
26
|
+
):
|
|
27
|
+
super(DecisionScoringClientSpec, self).__init__(
|
|
28
|
+
request_name=request_name,
|
|
29
|
+
request_schema=DecisionScoringRequest,
|
|
30
|
+
response_name=response_name,
|
|
31
|
+
response_schema=DecisionScoringResponse,
|
|
32
|
+
impl=DecisionScoringClient,
|
|
33
|
+
)
|