h-ai-brain 0.0.8__py3-none-any.whl → 0.0.9__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/priority_queue_service.py +2 -6
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/METADATA +1 -1
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/RECORD +7 -7
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/WHEEL +0 -0
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/licenses/LICENSE +0 -0
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/licenses/NOTICE.txt +0 -0
- {h_ai_brain-0.0.8.dist-info → h_ai_brain-0.0.9.dist-info}/top_level.txt +0 -0
@@ -17,13 +17,9 @@ class PriorityQueueService:
|
|
17
17
|
self.repository.add_item(queue_name, item)
|
18
18
|
return item
|
19
19
|
|
20
|
-
def get_next_item(self, queue_name: str) -> Optional[QueueItem]:
|
20
|
+
def get_next_item(self, queue_name: str, block: bool = True, timeout: float = 30.0) -> Optional[QueueItem]:
|
21
21
|
"""Get and remove the highest priority item from the queue"""
|
22
|
-
return self.repository.get_highest_priority_item(queue_name)
|
23
|
-
|
24
|
-
def get_items(self, queue_name: str, limit: int = 10) -> List[QueueItem]:
|
25
|
-
"""Get multiple items from the queue in priority order without removing them"""
|
26
|
-
return self.repository.get_items(queue_name, limit)
|
22
|
+
return self.repository.get_highest_priority_item(queue_name, block=block, timeout=timeout)
|
27
23
|
|
28
24
|
def get_queue_length(self, queue_name: str) -> int:
|
29
25
|
"""Get the number of items in the queue"""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
h_ai/__init__.py,sha256=bmHMDoui52Q73UvXdHslQ3w_LubmhRuKRlrjOYyCP8c,153
|
2
2
|
h_ai/application/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
h_ai/application/hai_service.py,sha256=ZSbDLP8oCBliLpbhpKOf7Xv6cWDsLCSeDeurn207FsA,3005
|
4
|
-
h_ai/application/priority_queue_service.py,sha256=
|
4
|
+
h_ai/application/priority_queue_service.py,sha256=QzPOPDV-_KXTConRpuHmzFFe9HF8HLGPkX_Ael7Hs9g,1304
|
5
5
|
h_ai/application/web_docs_service.py,sha256=YiPBfPyjlloDq6CIOP0u7F1jNBK-elYRU8xl4qJ1oVc,1652
|
6
6
|
h_ai/application/system_prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
h_ai/application/system_prompts/roles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -48,9 +48,9 @@ h_ai/infrastructure/playwright/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
48
48
|
h_ai/infrastructure/playwright/playwright_web_content_fetcher.py,sha256=FVwcK6hv_6aE4fYlJapLHyxNHsztQkKaulklHabyrEc,2684
|
49
49
|
h_ai/infrastructure/priorityqueue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
50
|
h_ai/infrastructure/priorityqueue/in_memory_priority_queue_repository.py,sha256=zxnrbzoLfiKQMB28dI1bPe0qUtvIDG8OEFcTQL_UeFg,3886
|
51
|
-
h_ai_brain-0.0.
|
52
|
-
h_ai_brain-0.0.
|
53
|
-
h_ai_brain-0.0.
|
54
|
-
h_ai_brain-0.0.
|
55
|
-
h_ai_brain-0.0.
|
56
|
-
h_ai_brain-0.0.
|
51
|
+
h_ai_brain-0.0.9.dist-info/licenses/LICENSE,sha256=SbvpEU5JIU3yzMMkyzrI0dGqHDoJR_lMKGdl6GZHsy4,11558
|
52
|
+
h_ai_brain-0.0.9.dist-info/licenses/NOTICE.txt,sha256=vxeIKUiGqAePLvDW4AVm3Xh-3BcsvMtCMn1tbsr9zsE,668
|
53
|
+
h_ai_brain-0.0.9.dist-info/METADATA,sha256=mjj0vnc-r1oeLMoJF_dkXWnKUeOGu1IJrlcwTZ_1TII,735
|
54
|
+
h_ai_brain-0.0.9.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
55
|
+
h_ai_brain-0.0.9.dist-info/top_level.txt,sha256=3MChDBWvDJV4cEHuZhzeODxQ4ewtw-arOuyaDOc6sIo,5
|
56
|
+
h_ai_brain-0.0.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|