langroid 0.1.212__py3-none-any.whl → 0.1.213__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.
langroid/agent/batch.py CHANGED
@@ -26,6 +26,7 @@ def run_batch_tasks(
26
26
  input_map: Callable[[Any], str | ChatDocument] = lambda x: str(x),
27
27
  output_map: Callable[[ChatDocument | None], Any] = lambda x: x,
28
28
  sequential: bool = True,
29
+ turns: int = -1,
29
30
  ) -> List[Any]:
30
31
  """
31
32
  Run copies of `task` async/concurrently one per item in `items` list.
@@ -40,6 +41,7 @@ def run_batch_tasks(
40
41
  to final result
41
42
  sequential (bool): whether to run sequentially
42
43
  (e.g. some APIs such as ooba don't support concurrent requests)
44
+ turns (int): number of turns to run, -1 for infinite
43
45
 
44
46
  Returns:
45
47
  List[Any]: list of final results
@@ -53,7 +55,7 @@ def run_batch_tasks(
53
55
  task_i.agent.llm.set_stream(False)
54
56
  task_i.agent.config.show_stats = False
55
57
 
56
- result = await task_i.run_async(input)
58
+ result = await task_i.run_async(input, turns=turns)
57
59
  return output_map(result)
58
60
 
59
61
  async def _do_all() -> List[Any]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langroid
3
- Version: 0.1.212
3
+ Version: 0.1.213
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  License: MIT
6
6
  Author: Prasad Chalasani
@@ -1,7 +1,7 @@
1
1
  langroid/__init__.py,sha256=qgY-OqzYSWOc6EytQJN9sH2PwDp1UIzP9lXhrYH6aLU,1645
2
2
  langroid/agent/__init__.py,sha256=w2pap-rHrp41gMzdtzur2YY_m62LqQhF2Du-AmoIQi4,752
3
3
  langroid/agent/base.py,sha256=Qr2YJASCWOjIcCjISb_SSSNOEvEw4_Kkl21FZx0aigE,35026
4
- langroid/agent/batch.py,sha256=8zHdM-863pRD3UoCXUPKEQ4Z4iqjkNVD2xXu1WspBak,6464
4
+ langroid/agent/batch.py,sha256=wGDqCwHwz9ABAAzJFHzqPU50LJMgMLTQzH0avZfWiMA,6559
5
5
  langroid/agent/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  langroid/agent/callbacks/chainlit.py,sha256=aYuJ8M4VDHr5oymoXL2bpThM7p6P9L45fgJf3MLdkWo,20997
7
7
  langroid/agent/chat_agent.py,sha256=QCAA56rObVrnKyCdO5pqklUukxkU4aykoUZzZ2tYvU8,38609
@@ -116,7 +116,7 @@ langroid/vector_store/meilisearch.py,sha256=d2huA9P-NoYRuAQ9ZeXJmMKr7ry8u90RUSR2
116
116
  langroid/vector_store/momento.py,sha256=j6Eo6oIDN2fe7lsBOlCXJn3uvvERHHTFL5QJfeREeOM,10044
117
117
  langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
118
118
  langroid/vector_store/qdrantdb.py,sha256=_egbsP9SWBwmI827EDYSSOqfIQSmwNsmJfFTxrLpWYE,13457
119
- langroid-0.1.212.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
120
- langroid-0.1.212.dist-info/METADATA,sha256=2sHk6Efn3z8WFpMqAWSnm3kSJLXJrTQABYyNDqQrr_E,47405
121
- langroid-0.1.212.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
122
- langroid-0.1.212.dist-info/RECORD,,
119
+ langroid-0.1.213.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
120
+ langroid-0.1.213.dist-info/METADATA,sha256=YCmGlc8RtsR_z9LOoNS2mPN49OCvOioG5rRuJps0JRg,47405
121
+ langroid-0.1.213.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
122
+ langroid-0.1.213.dist-info/RECORD,,