trustgraph-base 1.4.5__tar.gz → 1.4.6__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-base might be problematic. Click here for more details.
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/PKG-INFO +1 -1
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/flow.py +138 -2
- trustgraph_base-1.4.6/trustgraph/base_version.py +1 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/diagnosis.py +2 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/diagnosis.py +5 -2
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph_base.egg-info/PKG-INFO +1 -1
- trustgraph_base-1.4.5/trustgraph/base_version.py +0 -1
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/README.md +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/pyproject.toml +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/setup.cfg +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/api.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/config.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/exceptions.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/knowledge.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/library.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/api/types.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/agent_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/agent_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/async_processor.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/cassandra_config.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/consumer.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/consumer_spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/embeddings_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/flow.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/flow_processor.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/llm_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/metrics.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/producer.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/producer_spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/prompt_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/publisher.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/pubsub.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/request_response_spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/setting_spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/structured_query_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/subscriber.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/subscriber_spec.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/text_completion_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/tool_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/tool_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/triples_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/triples_query_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/triples_store_service.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/base.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/config_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/exceptions.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/document.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/log_level.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/registry.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/agent.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/base.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/config.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/document_loading.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/embeddings.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/embeddings_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/flow.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/knowledge.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/library.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/metadata.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/nlp_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/objects_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/primitives.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/prompt.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/retrieval.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/structured_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/text_completion.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/tool.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/triples.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/objects/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/objects/field.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/objects/object.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/rdf.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/core/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/core/metadata.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/core/primitives.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/core/topic.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/document.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/embeddings.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/graph.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/knowledge.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/nlp.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/object.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/rows.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/knowledge/structured.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/__init__.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/agent.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/config.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/flow.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/library.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/llm.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/lookup.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/nlp_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/objects_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/prompt.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/retrieval.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/structured_query.py +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph_base.egg-info/SOURCES.txt +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/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: 1.4.
|
|
3
|
+
Version: 1.4.6
|
|
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
|
|
@@ -492,12 +492,148 @@ class FlowInstance:
|
|
|
492
492
|
"service/structured-query",
|
|
493
493
|
input
|
|
494
494
|
)
|
|
495
|
-
|
|
495
|
+
|
|
496
496
|
# Check for system-level error
|
|
497
497
|
if "error" in response and response["error"]:
|
|
498
498
|
error_type = response["error"].get("type", "unknown")
|
|
499
499
|
error_message = response["error"].get("message", "Unknown error")
|
|
500
500
|
raise ProtocolException(f"{error_type}: {error_message}")
|
|
501
|
-
|
|
501
|
+
|
|
502
502
|
return response
|
|
503
503
|
|
|
504
|
+
def detect_type(self, sample):
|
|
505
|
+
"""
|
|
506
|
+
Detect the data type of a structured data sample.
|
|
507
|
+
|
|
508
|
+
Args:
|
|
509
|
+
sample: Data sample to analyze (string content)
|
|
510
|
+
|
|
511
|
+
Returns:
|
|
512
|
+
dict with detected_type, confidence, and optional metadata
|
|
513
|
+
"""
|
|
514
|
+
|
|
515
|
+
input = {
|
|
516
|
+
"operation": "detect-type",
|
|
517
|
+
"sample": sample
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
response = self.request(
|
|
521
|
+
"service/structured-diag",
|
|
522
|
+
input
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
# Check for system-level error
|
|
526
|
+
if "error" in response and response["error"]:
|
|
527
|
+
error_type = response["error"].get("type", "unknown")
|
|
528
|
+
error_message = response["error"].get("message", "Unknown error")
|
|
529
|
+
raise ProtocolException(f"{error_type}: {error_message}")
|
|
530
|
+
|
|
531
|
+
return response["detected-type"]
|
|
532
|
+
|
|
533
|
+
def generate_descriptor(self, sample, data_type, schema_name, options=None):
|
|
534
|
+
"""
|
|
535
|
+
Generate a descriptor for structured data mapping to a specific schema.
|
|
536
|
+
|
|
537
|
+
Args:
|
|
538
|
+
sample: Data sample to analyze (string content)
|
|
539
|
+
data_type: Data type (csv, json, xml)
|
|
540
|
+
schema_name: Target schema name for descriptor generation
|
|
541
|
+
options: Optional parameters (e.g., delimiter for CSV)
|
|
542
|
+
|
|
543
|
+
Returns:
|
|
544
|
+
dict with descriptor and metadata
|
|
545
|
+
"""
|
|
546
|
+
|
|
547
|
+
input = {
|
|
548
|
+
"operation": "generate-descriptor",
|
|
549
|
+
"sample": sample,
|
|
550
|
+
"type": data_type,
|
|
551
|
+
"schema-name": schema_name
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if options:
|
|
555
|
+
input["options"] = options
|
|
556
|
+
|
|
557
|
+
response = self.request(
|
|
558
|
+
"service/structured-diag",
|
|
559
|
+
input
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
# Check for system-level error
|
|
563
|
+
if "error" in response and response["error"]:
|
|
564
|
+
error_type = response["error"].get("type", "unknown")
|
|
565
|
+
error_message = response["error"].get("message", "Unknown error")
|
|
566
|
+
raise ProtocolException(f"{error_type}: {error_message}")
|
|
567
|
+
|
|
568
|
+
return response["descriptor"]
|
|
569
|
+
|
|
570
|
+
def diagnose_data(self, sample, schema_name=None, options=None):
|
|
571
|
+
"""
|
|
572
|
+
Perform combined data diagnosis: detect type and generate descriptor.
|
|
573
|
+
|
|
574
|
+
Args:
|
|
575
|
+
sample: Data sample to analyze (string content)
|
|
576
|
+
schema_name: Optional target schema name for descriptor generation
|
|
577
|
+
options: Optional parameters (e.g., delimiter for CSV)
|
|
578
|
+
|
|
579
|
+
Returns:
|
|
580
|
+
dict with detected_type, confidence, descriptor, and metadata
|
|
581
|
+
"""
|
|
582
|
+
|
|
583
|
+
input = {
|
|
584
|
+
"operation": "diagnose",
|
|
585
|
+
"sample": sample
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
if schema_name:
|
|
589
|
+
input["schema-name"] = schema_name
|
|
590
|
+
|
|
591
|
+
if options:
|
|
592
|
+
input["options"] = options
|
|
593
|
+
|
|
594
|
+
response = self.request(
|
|
595
|
+
"service/structured-diag",
|
|
596
|
+
input
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
# Check for system-level error
|
|
600
|
+
if "error" in response and response["error"]:
|
|
601
|
+
error_type = response["error"].get("type", "unknown")
|
|
602
|
+
error_message = response["error"].get("message", "Unknown error")
|
|
603
|
+
raise ProtocolException(f"{error_type}: {error_message}")
|
|
604
|
+
|
|
605
|
+
return response
|
|
606
|
+
|
|
607
|
+
def schema_selection(self, sample, options=None):
|
|
608
|
+
"""
|
|
609
|
+
Select matching schemas for a data sample using prompt analysis.
|
|
610
|
+
|
|
611
|
+
Args:
|
|
612
|
+
sample: Data sample to analyze (string content)
|
|
613
|
+
options: Optional parameters
|
|
614
|
+
|
|
615
|
+
Returns:
|
|
616
|
+
dict with schema_matches array and metadata
|
|
617
|
+
"""
|
|
618
|
+
|
|
619
|
+
input = {
|
|
620
|
+
"operation": "schema-selection",
|
|
621
|
+
"sample": sample
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if options:
|
|
625
|
+
input["options"] = options
|
|
626
|
+
|
|
627
|
+
response = self.request(
|
|
628
|
+
"service/structured-diag",
|
|
629
|
+
input
|
|
630
|
+
)
|
|
631
|
+
|
|
632
|
+
# Check for system-level error
|
|
633
|
+
if "error" in response and response["error"]:
|
|
634
|
+
error_type = response["error"].get("type", "unknown")
|
|
635
|
+
error_message = response["error"].get("message", "Unknown error")
|
|
636
|
+
raise ProtocolException(f"{error_type}: {error_message}")
|
|
637
|
+
|
|
638
|
+
return response["schema-matches"]
|
|
639
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.6"
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/diagnosis.py
RENAMED
|
@@ -57,6 +57,8 @@ class StructuredDataDiagnosisResponseTranslator(MessageTranslator):
|
|
|
57
57
|
result["descriptor"] = obj.descriptor
|
|
58
58
|
if obj.metadata:
|
|
59
59
|
result["metadata"] = obj.metadata
|
|
60
|
+
if obj.schema_matches is not None:
|
|
61
|
+
result["schema-matches"] = obj.schema_matches
|
|
60
62
|
|
|
61
63
|
return result
|
|
62
64
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from pulsar.schema import Record, String, Map, Double
|
|
1
|
+
from pulsar.schema import Record, String, Map, Double, Array
|
|
2
2
|
from ..core.primitives import Error
|
|
3
3
|
|
|
4
4
|
############################################################################
|
|
@@ -6,7 +6,7 @@ from ..core.primitives import Error
|
|
|
6
6
|
# Structured data diagnosis services
|
|
7
7
|
|
|
8
8
|
class StructuredDataDiagnosisRequest(Record):
|
|
9
|
-
operation = String() # "detect-type", "generate-descriptor", or "
|
|
9
|
+
operation = String() # "detect-type", "generate-descriptor", "diagnose", or "schema-selection"
|
|
10
10
|
sample = String() # Data sample to analyze (text content)
|
|
11
11
|
type = String() # Data type (csv, json, xml) - optional, required for generate-descriptor
|
|
12
12
|
schema_name = String() # Target schema name for descriptor generation - optional
|
|
@@ -27,4 +27,7 @@ class StructuredDataDiagnosisResponse(Record):
|
|
|
27
27
|
# JSON encoded additional metadata (e.g., field count, sample records)
|
|
28
28
|
metadata = Map(String())
|
|
29
29
|
|
|
30
|
+
# Array of matching schema IDs (for schema-selection operation) - optional
|
|
31
|
+
schema_matches = Array(String())
|
|
32
|
+
|
|
30
33
|
############################################################################
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-base
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.6
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.4.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_client.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_query_service.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/document_embeddings_store_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_embeddings_query_service.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/base/graph_embeddings_store_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/document_embeddings_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/clients/graph_embeddings_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/document_loading.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/embeddings.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/embeddings_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/knowledge.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/metadata.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/nlp_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/objects_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/primitives.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/retrieval.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/structured_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/messaging/translators/text_completion.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph/schema/services/structured_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.5 → trustgraph_base-1.4.6}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|