trustgraph-base 1.4.7__tar.gz → 1.4.9__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.7 → trustgraph_base-1.4.9}/PKG-INFO +1 -1
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/collection.py +9 -1
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/request_response_spec.py +0 -4
- trustgraph_base-1.4.9/trustgraph/base_version.py +1 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/collection.py +41 -39
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/collection.py +1 -2
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/PKG-INFO +1 -1
- trustgraph_base-1.4.7/trustgraph/base_version.py +0 -1
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/README.md +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/pyproject.toml +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/setup.cfg +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/api.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/config.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/exceptions.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/flow.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/knowledge.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/library.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/types.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/agent_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/agent_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/async_processor.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/cassandra_config.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/consumer.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/consumer_spec.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/embeddings_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/flow.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/flow_processor.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/llm_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/metrics.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/producer.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/producer_spec.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/prompt_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/publisher.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/pubsub.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/setting_spec.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/spec.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/structured_query_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/subscriber.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/subscriber_spec.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/text_completion_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/tool_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/tool_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_query_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_store_service.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/base.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/config_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/exceptions.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/document.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/log_level.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/registry.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/agent.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/base.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/config.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/diagnosis.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/document_loading.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/flow.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/knowledge.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/library.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/metadata.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/nlp_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/objects_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/primitives.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/prompt.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/retrieval.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/structured_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/text_completion.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/tool.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/triples.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/field.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/object.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/rdf.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/metadata.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/primitives.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/topic.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/document.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/embeddings.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/graph.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/knowledge.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/nlp.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/object.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/rows.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/structured.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/__init__.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/agent.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/config.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/diagnosis.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/flow.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/library.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/llm.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/lookup.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/nlp_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/objects_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/prompt.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/retrieval.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/storage.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/structured_query.py +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/SOURCES.txt +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/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.9
|
|
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
|
|
@@ -27,6 +27,14 @@ class Collection:
|
|
|
27
27
|
object = self.request(input)
|
|
28
28
|
|
|
29
29
|
try:
|
|
30
|
+
# Handle case where collections might be None or missing
|
|
31
|
+
if object is None or "collections" not in object:
|
|
32
|
+
return []
|
|
33
|
+
|
|
34
|
+
collections = object.get("collections", [])
|
|
35
|
+
if collections is None:
|
|
36
|
+
return []
|
|
37
|
+
|
|
30
38
|
return [
|
|
31
39
|
CollectionMetadata(
|
|
32
40
|
user = v["user"],
|
|
@@ -37,7 +45,7 @@ class Collection:
|
|
|
37
45
|
created_at = v["created_at"],
|
|
38
46
|
updated_at = v["updated_at"]
|
|
39
47
|
)
|
|
40
|
-
for v in
|
|
48
|
+
for v in collections
|
|
41
49
|
]
|
|
42
50
|
except Exception as e:
|
|
43
51
|
logger.error("Failed to parse collection list response", exc_info=True)
|
|
@@ -49,8 +49,6 @@ class RequestResponse(Subscriber):
|
|
|
49
49
|
|
|
50
50
|
id = str(uuid.uuid4())
|
|
51
51
|
|
|
52
|
-
logger.debug(f"Sending request {id}...")
|
|
53
|
-
|
|
54
52
|
q = await self.subscribe(id)
|
|
55
53
|
|
|
56
54
|
try:
|
|
@@ -75,8 +73,6 @@ class RequestResponse(Subscriber):
|
|
|
75
73
|
timeout=timeout
|
|
76
74
|
)
|
|
77
75
|
|
|
78
|
-
logger.debug("Received response")
|
|
79
|
-
|
|
80
76
|
if recipient is None:
|
|
81
77
|
|
|
82
78
|
# If no recipient handler, just return the first
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.9"
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/collection.py
RENAMED
|
@@ -8,43 +8,43 @@ class CollectionManagementRequestTranslator(MessageTranslator):
|
|
|
8
8
|
|
|
9
9
|
def to_pulsar(self, data: Dict[str, Any]) -> CollectionManagementRequest:
|
|
10
10
|
return CollectionManagementRequest(
|
|
11
|
-
operation=data.get("operation"
|
|
12
|
-
user=data.get("user"
|
|
13
|
-
collection=data.get("collection"
|
|
14
|
-
timestamp=data.get("timestamp"
|
|
15
|
-
name=data.get("name"
|
|
16
|
-
description=data.get("description"
|
|
17
|
-
tags=data.get("tags"
|
|
18
|
-
created_at=data.get("created_at"
|
|
19
|
-
updated_at=data.get("updated_at"
|
|
20
|
-
tag_filter=data.get("tag_filter"
|
|
21
|
-
limit=data.get("limit"
|
|
11
|
+
operation=data.get("operation"),
|
|
12
|
+
user=data.get("user"),
|
|
13
|
+
collection=data.get("collection"),
|
|
14
|
+
timestamp=data.get("timestamp"),
|
|
15
|
+
name=data.get("name"),
|
|
16
|
+
description=data.get("description"),
|
|
17
|
+
tags=data.get("tags"),
|
|
18
|
+
created_at=data.get("created_at"),
|
|
19
|
+
updated_at=data.get("updated_at"),
|
|
20
|
+
tag_filter=data.get("tag_filter"),
|
|
21
|
+
limit=data.get("limit")
|
|
22
22
|
)
|
|
23
23
|
|
|
24
24
|
def from_pulsar(self, obj: CollectionManagementRequest) -> Dict[str, Any]:
|
|
25
25
|
result = {}
|
|
26
26
|
|
|
27
|
-
if obj.operation:
|
|
27
|
+
if obj.operation is not None:
|
|
28
28
|
result["operation"] = obj.operation
|
|
29
|
-
if obj.user:
|
|
29
|
+
if obj.user is not None:
|
|
30
30
|
result["user"] = obj.user
|
|
31
|
-
if obj.collection:
|
|
31
|
+
if obj.collection is not None:
|
|
32
32
|
result["collection"] = obj.collection
|
|
33
|
-
if obj.timestamp:
|
|
33
|
+
if obj.timestamp is not None:
|
|
34
34
|
result["timestamp"] = obj.timestamp
|
|
35
|
-
if obj.name:
|
|
35
|
+
if obj.name is not None:
|
|
36
36
|
result["name"] = obj.name
|
|
37
|
-
if obj.description:
|
|
37
|
+
if obj.description is not None:
|
|
38
38
|
result["description"] = obj.description
|
|
39
|
-
if obj.tags:
|
|
39
|
+
if obj.tags is not None:
|
|
40
40
|
result["tags"] = list(obj.tags)
|
|
41
|
-
if obj.created_at:
|
|
41
|
+
if obj.created_at is not None:
|
|
42
42
|
result["created_at"] = obj.created_at
|
|
43
|
-
if obj.updated_at:
|
|
43
|
+
if obj.updated_at is not None:
|
|
44
44
|
result["updated_at"] = obj.updated_at
|
|
45
|
-
if obj.tag_filter:
|
|
45
|
+
if obj.tag_filter is not None:
|
|
46
46
|
result["tag_filter"] = list(obj.tag_filter)
|
|
47
|
-
if obj.limit:
|
|
47
|
+
if obj.limit is not None:
|
|
48
48
|
result["limit"] = obj.limit
|
|
49
49
|
|
|
50
50
|
return result
|
|
@@ -54,13 +54,14 @@ class CollectionManagementResponseTranslator(MessageTranslator):
|
|
|
54
54
|
"""Translator for CollectionManagementResponse schema objects"""
|
|
55
55
|
|
|
56
56
|
def to_pulsar(self, data: Dict[str, Any]) -> CollectionManagementResponse:
|
|
57
|
+
|
|
57
58
|
# Handle error
|
|
58
59
|
error = None
|
|
59
60
|
if "error" in data and data["error"]:
|
|
60
61
|
error_data = data["error"]
|
|
61
62
|
error = Error(
|
|
62
|
-
type=error_data.get("type"
|
|
63
|
-
message=error_data.get("message"
|
|
63
|
+
type=error_data.get("type"),
|
|
64
|
+
message=error_data.get("message")
|
|
64
65
|
)
|
|
65
66
|
|
|
66
67
|
# Handle collections array
|
|
@@ -68,35 +69,34 @@ class CollectionManagementResponseTranslator(MessageTranslator):
|
|
|
68
69
|
if "collections" in data:
|
|
69
70
|
for coll_data in data["collections"]:
|
|
70
71
|
collections.append(CollectionMetadata(
|
|
71
|
-
user=coll_data.get("user"
|
|
72
|
-
collection=coll_data.get("collection"
|
|
73
|
-
name=coll_data.get("name"
|
|
74
|
-
description=coll_data.get("description"
|
|
75
|
-
tags=coll_data.get("tags"
|
|
76
|
-
created_at=coll_data.get("created_at"
|
|
77
|
-
updated_at=coll_data.get("updated_at"
|
|
72
|
+
user=coll_data.get("user"),
|
|
73
|
+
collection=coll_data.get("collection"),
|
|
74
|
+
name=coll_data.get("name"),
|
|
75
|
+
description=coll_data.get("description"),
|
|
76
|
+
tags=coll_data.get("tags"),
|
|
77
|
+
created_at=coll_data.get("created_at"),
|
|
78
|
+
updated_at=coll_data.get("updated_at")
|
|
78
79
|
))
|
|
79
80
|
|
|
80
81
|
return CollectionManagementResponse(
|
|
81
|
-
success=data.get("success", ""),
|
|
82
82
|
error=error,
|
|
83
|
-
timestamp=data.get("timestamp"
|
|
83
|
+
timestamp=data.get("timestamp"),
|
|
84
84
|
collections=collections
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
def from_pulsar(self, obj: CollectionManagementResponse) -> Dict[str, Any]:
|
|
88
88
|
result = {}
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if obj.error:
|
|
90
|
+
print("COLLECTIONMGMT", obj, flush=True)
|
|
91
|
+
|
|
92
|
+
if obj.error is not None:
|
|
93
93
|
result["error"] = {
|
|
94
94
|
"type": obj.error.type,
|
|
95
95
|
"message": obj.error.message
|
|
96
96
|
}
|
|
97
|
-
if obj.timestamp:
|
|
97
|
+
if obj.timestamp is not None:
|
|
98
98
|
result["timestamp"] = obj.timestamp
|
|
99
|
-
if obj.collections:
|
|
99
|
+
if obj.collections is not None:
|
|
100
100
|
result["collections"] = []
|
|
101
101
|
for coll in obj.collections:
|
|
102
102
|
result["collections"].append({
|
|
@@ -109,4 +109,6 @@ class CollectionManagementResponseTranslator(MessageTranslator):
|
|
|
109
109
|
"updated_at": coll.updated_at
|
|
110
110
|
})
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
print("RESULT IS", result, flush=True)
|
|
113
|
+
|
|
114
|
+
return result
|
|
@@ -42,8 +42,7 @@ class CollectionManagementRequest(Record):
|
|
|
42
42
|
|
|
43
43
|
class CollectionManagementResponse(Record):
|
|
44
44
|
"""Response for collection management operations"""
|
|
45
|
-
|
|
46
|
-
error = Error() # Only populated if success is "false"
|
|
45
|
+
error = Error() # Only populated if there's an error
|
|
47
46
|
timestamp = String() # ISO timestamp
|
|
48
47
|
collections = Array(CollectionMetadata())
|
|
49
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-base
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.9
|
|
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.7"
|
|
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.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_client.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_query_service.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/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.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_query_service.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/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
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/document_embeddings_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/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.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/diagnosis.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/document_loading.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/knowledge.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/metadata.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/nlp_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/objects_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/primitives.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/retrieval.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/structured_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/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
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/structured_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|