stores 0.1.7.dev4__py3-none-any.whl → 0.1.7.dev5__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.
@@ -340,16 +340,28 @@ def parse_tool_signature(
340
340
  elif signature_dict.get("isgeneratorfunction"):
341
341
 
342
342
  def func_handler(*args, **kwargs):
343
- for value in run_remote_tool(
344
- tool_id=signature_dict["tool_id"],
345
- index_folder=index_folder,
346
- args=args,
347
- kwargs=kwargs,
348
- venv=venv,
349
- env_var=env_var,
350
- stream=True,
351
- ):
352
- yield value
343
+ async def collect():
344
+ async for value in run_remote_tool(
345
+ tool_id=signature_dict["tool_id"],
346
+ index_folder=index_folder,
347
+ args=args,
348
+ kwargs=kwargs,
349
+ venv=venv,
350
+ env_var=env_var,
351
+ stream=True,
352
+ ):
353
+ yield value
354
+
355
+ loop = asyncio.new_event_loop()
356
+ asyncio.set_event_loop(loop)
357
+ agen = collect()
358
+ try:
359
+ while True:
360
+ yield loop.run_until_complete(agen.__anext__())
361
+ except StopAsyncIteration:
362
+ pass
363
+ finally:
364
+ loop.close()
353
365
  elif signature_dict.get("iscoroutinefunction"):
354
366
 
355
367
  async def func_handler(*args, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stores
3
- Version: 0.1.7.dev4
3
+ Version: 0.1.7.dev5
4
4
  Summary: Repository of Python functions and tools for LLMs
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.10
@@ -8,8 +8,8 @@ stores/indexes/base_index.py,sha256=YrEwETZ5eXj3rXK5qxOllRXqFifQoteYdzPAasbvEyg,
8
8
  stores/indexes/index.py,sha256=Cub5mtnYGipHfPR8BexJYRSKfuJmcGPp0B3ou2bGNqs,2901
9
9
  stores/indexes/local_index.py,sha256=Gg9LkEo1L0_NZZYPItsF_-1y6nFP369C3QlPvPyvPx8,3708
10
10
  stores/indexes/remote_index.py,sha256=-GV4l2c7GL6_bcVOQnSK5rzYru237bwC5L6eiO-QFzM,3438
11
- stores/indexes/venv_utils.py,sha256=-6cL9dcW9TVc1rTGHTCFIIrA38FaG8DKElNuwRL9-78,17764
12
- stores-0.1.7.dev4.dist-info/METADATA,sha256=kmOekRAa1E8TGBgejyKqDNuzt3A7XSCCOeytEfwp1_s,3081
13
- stores-0.1.7.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- stores-0.1.7.dev4.dist-info/licenses/LICENSE,sha256=VTidYE7_Dam0Dwyq095EhhDIqi47g03oVpLAHQgKws0,1066
15
- stores-0.1.7.dev4.dist-info/RECORD,,
11
+ stores/indexes/venv_utils.py,sha256=FR-szVJyAPqwFkVonUVKASf1t8bwBmkh6XqzoJeKRkY,18181
12
+ stores-0.1.7.dev5.dist-info/METADATA,sha256=KkRTIDd6PAhB7pwtN0n5HTJmWPHkt7kYRGLWZsxreWs,3081
13
+ stores-0.1.7.dev5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ stores-0.1.7.dev5.dist-info/licenses/LICENSE,sha256=VTidYE7_Dam0Dwyq095EhhDIqi47g03oVpLAHQgKws0,1066
15
+ stores-0.1.7.dev5.dist-info/RECORD,,