langroid 0.31.1__py3-none-any.whl → 0.31.3__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/task.py CHANGED
@@ -1826,12 +1826,6 @@ class Task:
1826
1826
  and (result.content in USER_QUIT_STRINGS or done_result)
1827
1827
  and result.metadata.sender == Entity.USER
1828
1828
  )
1829
- if self._level == 0 and self._user_can_respond() and self.only_user_quits_root:
1830
- # for top-level task, only user can quit out
1831
- return (user_quit, StatusCode.USER_QUIT if user_quit else StatusCode.OK)
1832
-
1833
- if self.is_done:
1834
- return (True, StatusCode.DONE)
1835
1829
 
1836
1830
  if self.n_stalled_steps >= self.max_stalled_steps:
1837
1831
  # we are stuck, so bail to avoid infinite loop
@@ -1859,6 +1853,14 @@ class Task:
1859
1853
  return (True, StatusCode.MAX_TOKENS)
1860
1854
  except Exception:
1861
1855
  pass
1856
+
1857
+ if self._level == 0 and self._user_can_respond() and self.only_user_quits_root:
1858
+ # for top-level task, only user can quit out
1859
+ return (user_quit, StatusCode.USER_QUIT if user_quit else StatusCode.OK)
1860
+
1861
+ if self.is_done:
1862
+ return (True, StatusCode.DONE)
1863
+
1862
1864
  final = (
1863
1865
  # no valid response from any entity/agent in current turn
1864
1866
  result is None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langroid
3
- Version: 0.31.1
3
+ Version: 0.31.3
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  License: MIT
6
6
  Author: Prasad Chalasani
@@ -45,7 +45,7 @@ Requires-Dist: cerebras-cloud-sdk (>=1.1.0,<2.0.0)
45
45
  Requires-Dist: chainlit (>=1.3.2,<2.0.0) ; extra == "all" or extra == "chainlit"
46
46
  Requires-Dist: chromadb (>=0.4.21,<=0.4.23) ; extra == "vecdbs" or extra == "all" or extra == "chromadb"
47
47
  Requires-Dist: colorlog (>=6.7.0,<7.0.0)
48
- Requires-Dist: docstring-parser (>=0.15,<0.16)
48
+ Requires-Dist: docstring-parser (>=0.16,<0.17)
49
49
  Requires-Dist: duckduckgo-search (>=6.0.0,<7.0.0)
50
50
  Requires-Dist: faker (>=18.9.0,<19.0.0)
51
51
  Requires-Dist: fakeredis (>=2.12.1,<3.0.0)
@@ -50,7 +50,7 @@ langroid/agent/special/sql/utils/system_message.py,sha256=qKLHkvQWRQodTtPLPxr1GS
50
50
  langroid/agent/special/sql/utils/tools.py,sha256=ovCePzq5cmbqw0vsVPBzxdZpUcSUIfTiDSMGXustZW8,1749
51
51
  langroid/agent/special/table_chat_agent.py,sha256=d9v2wsblaRx7oMnKhLV7uO_ujvk9gh59pSGvBXyeyNc,9659
52
52
  langroid/agent/structured_message.py,sha256=y7pud1EgRNeTFZlJmBkLmwME3yQJ_IYik-Xds9kdZbY,282
53
- langroid/agent/task.py,sha256=_iQTpjPIR1OGF0lq-ZFzQ92f_OmdIFmv7LlhoUA1QB8,89729
53
+ langroid/agent/task.py,sha256=jAPoifZqGwiunDBlz0c-pOHYXKXlhhpYXxZJGNz9kkk,89731
54
54
  langroid/agent/tool_message.py,sha256=HDW_FVQXvZAHI61CtOYNuZet0qlK_WwOnjSYd1g81eo,14742
55
55
  langroid/agent/tools/__init__.py,sha256=IMgCte-_ZIvCkozGQmvMqxIw7_nKLKzD78ccJL1bnQU,804
56
56
  langroid/agent/tools/duckduckgo_search_tool.py,sha256=NhsCaGZkdv28nja7yveAhSK_w6l_Ftym8agbrdzqgfo,1935
@@ -155,8 +155,8 @@ langroid/vector_store/meilisearch.py,sha256=6frB7GFWeWmeKzRfLZIvzRjllniZ1cYj3Hmh
155
155
  langroid/vector_store/momento.py,sha256=UNHGT6jXuQtqY9f6MdqGU14bVnS0zHgIJUa30ULpUJo,10474
156
156
  langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
157
157
  langroid/vector_store/qdrantdb.py,sha256=v7mCsijc2GdRJyil-yFaUVAX4SX5D75mD3vzlpjCMuo,17393
158
- pyproject.toml,sha256=4LnvkHuotknbr-AsiwehYqKmmVSs_Xi7bYBbOf0E6X0,7525
159
- langroid-0.31.1.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
160
- langroid-0.31.1.dist-info/METADATA,sha256=g593rbues9sKvoTGX88_zLbVE5DqIxvo-ZkmamSnJt8,58250
161
- langroid-0.31.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
162
- langroid-0.31.1.dist-info/RECORD,,
158
+ pyproject.toml,sha256=JrFkZ_N6bpaZki0eTQcBGhaY6WS0l3fc-fvsepT1WtA,7525
159
+ langroid-0.31.3.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
160
+ langroid-0.31.3.dist-info/METADATA,sha256=G-Y0UMCtjvcNeV8l3aHBQvXGuurDMe8qNC-rX5geazg,58250
161
+ langroid-0.31.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
162
+ langroid-0.31.3.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "langroid"
3
- version = "0.31.1"
3
+ version = "0.31.3"
4
4
  description = "Harness LLMs with Multi-Agent Programming"
5
5
  authors = ["Prasad Chalasani <pchalasani@gmail.com>"]
6
6
  readme = "README.md"
@@ -76,7 +76,7 @@ rank-bm25 = "^0.2.2"
76
76
  thefuzz = "^0.20.0"
77
77
 
78
78
  jinja2 = "^3.1.2"
79
- docstring-parser = "^0.15"
79
+ docstring-parser = "^0.16"
80
80
 
81
81
  aiohttp = "^3.9.1"
82
82
  grpcio = "^1.62.1"