h-ai-brain 0.0.16__py3-none-any.whl → 0.0.17__py3-none-any.whl
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.
- h_ai/application/hai_service.py +7 -1
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/METADATA +1 -1
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/RECORD +7 -7
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/WHEEL +0 -0
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/licenses/LICENSE +0 -0
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/licenses/NOTICE.txt +0 -0
- {h_ai_brain-0.0.16.dist-info → h_ai_brain-0.0.17.dist-info}/top_level.txt +0 -0
h_ai/application/hai_service.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
from h_message_bus import NatsPublisherAdapter
|
2
|
+
from h_message_bus.domain.request_messages.vector_read_metadata_request_message import VectorReadMetaDataRequestMessage
|
3
|
+
from h_message_bus.domain.request_messages.vector_read_metadata_response_message import VectorReadMetaDataResponseMessage
|
2
4
|
|
3
5
|
class HaiService:
|
4
6
|
def __init__(self, nats_publisher_adapter: NatsPublisherAdapter):
|
5
7
|
self.nats_publisher_adapter = nats_publisher_adapter
|
6
8
|
|
7
|
-
|
9
|
+
async def get_knowledgebase_metadata(self) -> VectorReadMetaDataResponseMessage:
|
10
|
+
message = VectorReadMetaDataRequestMessage.create_message()
|
11
|
+
response = await self.nats_publisher_adapter.request(message)
|
12
|
+
metadata_result = VectorReadMetaDataResponseMessage.from_hai_message(response)
|
13
|
+
return metadata_result
|
@@ -1,6 +1,6 @@
|
|
1
1
|
h_ai/__init__.py,sha256=63uVFHPxXmLrZVo2ZPixL2cU4jwf3XTAuwIVGHGkqJI,75
|
2
2
|
h_ai/application/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
h_ai/application/hai_service.py,sha256=
|
3
|
+
h_ai/application/hai_service.py,sha256=UwzM-w2zpSNiCsoba-uClUBRFhMq74uuznkLpt08f5g,794
|
4
4
|
h_ai/application/system_prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
h_ai/application/system_prompts/roles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
h_ai/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -23,9 +23,9 @@ h_ai/infrastructure/llm/ollama/ollama_tool_repository.py,sha256=7UZ-qsgXQUcJFx1q
|
|
23
23
|
h_ai/infrastructure/llm/ollama/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
h_ai/infrastructure/llm/ollama/models/ollama_chat_message.py,sha256=ZIz4PQ3869vI3xAYYufPrxXpacajRDtOI8RDl5Dm9RQ,305
|
25
25
|
h_ai/infrastructure/llm/ollama/models/ollama_chat_session.py,sha256=GZ_ddpbWa8iy6NZq50vokUFVZBiX0WNa81z9-r9RzTY,392
|
26
|
-
h_ai_brain-0.0.
|
27
|
-
h_ai_brain-0.0.
|
28
|
-
h_ai_brain-0.0.
|
29
|
-
h_ai_brain-0.0.
|
30
|
-
h_ai_brain-0.0.
|
31
|
-
h_ai_brain-0.0.
|
26
|
+
h_ai_brain-0.0.17.dist-info/licenses/LICENSE,sha256=SbvpEU5JIU3yzMMkyzrI0dGqHDoJR_lMKGdl6GZHsy4,11558
|
27
|
+
h_ai_brain-0.0.17.dist-info/licenses/NOTICE.txt,sha256=vxeIKUiGqAePLvDW4AVm3Xh-3BcsvMtCMn1tbsr9zsE,668
|
28
|
+
h_ai_brain-0.0.17.dist-info/METADATA,sha256=Dx3oqE6H3-RC4LkAPuZGDjMzttB6pSadgiXv4dNdPLk,536
|
29
|
+
h_ai_brain-0.0.17.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
30
|
+
h_ai_brain-0.0.17.dist-info/top_level.txt,sha256=3MChDBWvDJV4cEHuZhzeODxQ4ewtw-arOuyaDOc6sIo,5
|
31
|
+
h_ai_brain-0.0.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|