langroid 0.31.2__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 +8 -6
- {langroid-0.31.2.dist-info → langroid-0.31.3.dist-info}/METADATA +1 -1
- {langroid-0.31.2.dist-info → langroid-0.31.3.dist-info}/RECORD +6 -6
- pyproject.toml +1 -1
- {langroid-0.31.2.dist-info → langroid-0.31.3.dist-info}/LICENSE +0 -0
- {langroid-0.31.2.dist-info → langroid-0.31.3.dist-info}/WHEEL +0 -0
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
|
@@ -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=
|
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=
|
159
|
-
langroid-0.31.
|
160
|
-
langroid-0.31.
|
161
|
-
langroid-0.31.
|
162
|
-
langroid-0.31.
|
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
File without changes
|
File without changes
|