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.

Files changed (135) hide show
  1. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/PKG-INFO +1 -1
  2. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/collection.py +9 -1
  3. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/request_response_spec.py +0 -4
  4. trustgraph_base-1.4.9/trustgraph/base_version.py +1 -0
  5. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/collection.py +41 -39
  6. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/collection.py +1 -2
  7. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/PKG-INFO +1 -1
  8. trustgraph_base-1.4.7/trustgraph/base_version.py +0 -1
  9. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/README.md +0 -0
  10. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/pyproject.toml +0 -0
  11. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/setup.cfg +0 -0
  12. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/__init__.py +0 -0
  13. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/api.py +0 -0
  14. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/config.py +0 -0
  15. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/exceptions.py +0 -0
  16. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/flow.py +0 -0
  17. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/knowledge.py +0 -0
  18. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/library.py +0 -0
  19. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/api/types.py +0 -0
  20. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/__init__.py +0 -0
  21. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/agent_client.py +0 -0
  22. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/agent_service.py +0 -0
  23. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/async_processor.py +0 -0
  24. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/cassandra_config.py +0 -0
  25. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/consumer.py +0 -0
  26. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/consumer_spec.py +0 -0
  27. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_client.py +0 -0
  28. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_query_service.py +0 -0
  29. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/document_embeddings_store_service.py +0 -0
  30. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/embeddings_client.py +0 -0
  31. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/embeddings_service.py +0 -0
  32. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/flow.py +0 -0
  33. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/flow_processor.py +0 -0
  34. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_client.py +0 -0
  35. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_query_service.py +0 -0
  36. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_embeddings_store_service.py +0 -0
  37. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/graph_rag_client.py +0 -0
  38. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/llm_service.py +0 -0
  39. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/metrics.py +0 -0
  40. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/producer.py +0 -0
  41. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/producer_spec.py +0 -0
  42. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/prompt_client.py +0 -0
  43. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/publisher.py +0 -0
  44. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/pubsub.py +0 -0
  45. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/setting_spec.py +0 -0
  46. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/spec.py +0 -0
  47. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/structured_query_client.py +0 -0
  48. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/subscriber.py +0 -0
  49. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/subscriber_spec.py +0 -0
  50. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/text_completion_client.py +0 -0
  51. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/tool_client.py +0 -0
  52. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/tool_service.py +0 -0
  53. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_client.py +0 -0
  54. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_query_service.py +0 -0
  55. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/base/triples_store_service.py +0 -0
  56. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/__init__.py +0 -0
  57. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/agent_client.py +0 -0
  58. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/base.py +0 -0
  59. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/config_client.py +0 -0
  60. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/document_embeddings_client.py +0 -0
  61. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/document_rag_client.py +0 -0
  62. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/embeddings_client.py +0 -0
  63. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/graph_embeddings_client.py +0 -0
  64. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/graph_rag_client.py +0 -0
  65. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/llm_client.py +0 -0
  66. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/prompt_client.py +0 -0
  67. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/clients/triples_query_client.py +0 -0
  68. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/exceptions.py +0 -0
  69. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/__init__.py +0 -0
  70. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/defs.py +0 -0
  71. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/document.py +0 -0
  72. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/identifier.py +0 -0
  73. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/organization.py +0 -0
  74. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/knowledge/publication.py +0 -0
  75. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/log_level.py +0 -0
  76. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/__init__.py +0 -0
  77. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/registry.py +0 -0
  78. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/__init__.py +0 -0
  79. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/agent.py +0 -0
  80. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/base.py +0 -0
  81. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/config.py +0 -0
  82. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/diagnosis.py +0 -0
  83. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/document_loading.py +0 -0
  84. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings.py +0 -0
  85. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/embeddings_query.py +0 -0
  86. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/flow.py +0 -0
  87. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/knowledge.py +0 -0
  88. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/library.py +0 -0
  89. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/metadata.py +0 -0
  90. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/nlp_query.py +0 -0
  91. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/objects_query.py +0 -0
  92. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/primitives.py +0 -0
  93. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/prompt.py +0 -0
  94. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/retrieval.py +0 -0
  95. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/structured_query.py +0 -0
  96. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/text_completion.py +0 -0
  97. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/tool.py +0 -0
  98. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/messaging/translators/triples.py +0 -0
  99. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/__init__.py +0 -0
  100. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/field.py +0 -0
  101. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/objects/object.py +0 -0
  102. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/rdf.py +0 -0
  103. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/__init__.py +0 -0
  104. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/__init__.py +0 -0
  105. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/metadata.py +0 -0
  106. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/primitives.py +0 -0
  107. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/core/topic.py +0 -0
  108. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/__init__.py +0 -0
  109. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/document.py +0 -0
  110. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/embeddings.py +0 -0
  111. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/graph.py +0 -0
  112. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/knowledge.py +0 -0
  113. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/nlp.py +0 -0
  114. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/object.py +0 -0
  115. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/rows.py +0 -0
  116. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/knowledge/structured.py +0 -0
  117. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/__init__.py +0 -0
  118. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/agent.py +0 -0
  119. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/config.py +0 -0
  120. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/diagnosis.py +0 -0
  121. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/flow.py +0 -0
  122. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/library.py +0 -0
  123. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/llm.py +0 -0
  124. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/lookup.py +0 -0
  125. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/nlp_query.py +0 -0
  126. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/objects_query.py +0 -0
  127. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/prompt.py +0 -0
  128. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/query.py +0 -0
  129. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/retrieval.py +0 -0
  130. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/storage.py +0 -0
  131. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph/schema/services/structured_query.py +0 -0
  132. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/SOURCES.txt +0 -0
  133. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/dependency_links.txt +0 -0
  134. {trustgraph_base-1.4.7 → trustgraph_base-1.4.9}/trustgraph_base.egg-info/requires.txt +0 -0
  135. {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.7
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 object["collections"]
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"
@@ -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", 50)
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
- if obj.success:
91
- result["success"] = obj.success
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
- return result
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
- success = String() # "true" or "false"
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.7
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"