langroid 0.1.151__py3-none-any.whl → 0.1.152__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
@@ -140,12 +140,13 @@ class Task:
140
140
  self.step_progress = False # progress in current step?
141
141
  self.n_stalled_steps = 0 # how many consecutive steps with no progress?
142
142
  self.max_stalled_steps = max_stalled_steps
143
- self.done_if_response = [str(r) for r in done_if_response]
144
- self.done_if_no_response = [str(r) for r in done_if_no_response]
143
+ self.done_if_response = [r.value for r in done_if_response]
144
+ self.done_if_no_response = [r.value for r in done_if_no_response]
145
145
  self.is_done = False # is task done (based on response)?
146
146
  self.is_pass_thru = False # is current response a pass-thru?
147
147
  self.task_progress = False # progress in current task (since run or run_async)?
148
148
  self.name = name or agent.config.name
149
+ self.value: str = self.name
149
150
  self.default_human_response = default_human_response
150
151
  self.interactive = interactive
151
152
  self.message_history_idx = -1
@@ -231,8 +232,8 @@ class Task:
231
232
  erase_substeps=self.erase_substeps,
232
233
  allow_null_result=self.allow_null_result,
233
234
  max_stalled_steps=self.max_stalled_steps,
234
- done_if_no_response=[Entity[s] for s in self.done_if_no_response],
235
- done_if_response=[Entity[s] for s in self.done_if_response],
235
+ done_if_no_response=[Entity(s) for s in self.done_if_no_response],
236
+ done_if_response=[Entity(s) for s in self.done_if_response],
236
237
  )
237
238
 
238
239
  def __repr__(self) -> str:
@@ -820,11 +821,11 @@ class Task:
820
821
  )
821
822
  return (
822
823
  (
823
- str(responder) in self.done_if_response
824
+ responder.value in self.done_if_response
824
825
  and not self._is_empty_message(result)
825
826
  )
826
827
  or (
827
- str(responder) in self.done_if_no_response
828
+ responder.value in self.done_if_no_response
828
829
  and self._is_empty_message(result)
829
830
  )
830
831
  or (not self._is_empty_message(result) and response_says_done)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langroid
3
- Version: 0.1.151
3
+ Version: 0.1.152
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  License: MIT
6
6
  Author: Prasad Chalasani
@@ -20,7 +20,7 @@ langroid/agent/special/sql/utils/populate_metadata.py,sha256=zRjw31a1ZXvpx9bcmbt
20
20
  langroid/agent/special/sql/utils/system_message.py,sha256=qKLHkvQWRQodTtPLPxr1GSLUYUFASZU8x-ybV67cB68,1885
21
21
  langroid/agent/special/sql/utils/tools.py,sha256=6uB2424SLtmapui9ggcEr0ZTiB6_dL1-JRGgN8RK9Js,1332
22
22
  langroid/agent/special/table_chat_agent.py,sha256=G7QIhZZmJwbM4d51C4cYTvfvtSKfBX0qKFFisuS2xSg,7807
23
- langroid/agent/task.py,sha256=CXBtt11CK_aY6JfJzzOz8-QF-_t7rrMsQe4dK7MvfZc,43396
23
+ langroid/agent/task.py,sha256=Zqz5NrLRoTMecl4O2icNCSVtB1MBQZmXqBBZfTEif08,43436
24
24
  langroid/agent/tool_message.py,sha256=vyCyHs3-kliKxk9TVjdlhFUHMtkijBzsaF8GvH3FFfA,5988
25
25
  langroid/agent/tools/__init__.py,sha256=6le5y_iPEHwh7Tli_0MtwCGOjy3tPQfAdfDC7WBg2e0,172
26
26
  langroid/agent/tools/extract_tool.py,sha256=u5lL9rKBzaLBOrRyLnTAZ97pQ1uxyLP39XsWMnpaZpw,3789
@@ -97,7 +97,7 @@ langroid/vector_store/meilisearch.py,sha256=d2huA9P-NoYRuAQ9ZeXJmMKr7ry8u90RUSR2
97
97
  langroid/vector_store/momento.py,sha256=j6Eo6oIDN2fe7lsBOlCXJn3uvvERHHTFL5QJfeREeOM,10044
98
98
  langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
99
99
  langroid/vector_store/qdrantdb.py,sha256=qt7Dye6rcgoe0551WzmOxRGIlJfL87D4MX7HdqxuEok,13393
100
- langroid-0.1.151.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
101
- langroid-0.1.151.dist-info/METADATA,sha256=c5PYygH2T40VgQOyXNScwI0E-dj05kuTlrT7z_uRpok,41534
102
- langroid-0.1.151.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
103
- langroid-0.1.151.dist-info/RECORD,,
100
+ langroid-0.1.152.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
101
+ langroid-0.1.152.dist-info/METADATA,sha256=Ss-63ccEK7xHwAIvxuH1NTWl7_frpYEk4ZqVjEsWzr0,41534
102
+ langroid-0.1.152.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
103
+ langroid-0.1.152.dist-info/RECORD,,