zrb 1.6.8__py3-none-any.whl → 1.6.9__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.
- zrb/context/context.py +3 -2
- zrb/runner/web_route/static/resources/session/current-session.js +1 -1
- zrb/task/llm_task.py +1 -1
- {zrb-1.6.8.dist-info → zrb-1.6.9.dist-info}/METADATA +1 -1
- {zrb-1.6.8.dist-info → zrb-1.6.9.dist-info}/RECORD +7 -7
- {zrb-1.6.8.dist-info → zrb-1.6.9.dist-info}/WHEEL +0 -0
- {zrb-1.6.8.dist-info → zrb-1.6.9.dist-info}/entry_points.txt +0 -0
zrb/context/context.py
CHANGED
@@ -89,7 +89,7 @@ class Context(AnyContext):
|
|
89
89
|
return int(self.render(template))
|
90
90
|
|
91
91
|
def render_float(self, template: str | float) -> float:
|
92
|
-
if isinstance(template, float):
|
92
|
+
if isinstance(template, float) or isinstance(template, int):
|
93
93
|
return template
|
94
94
|
return float(self.render(template))
|
95
95
|
|
@@ -107,6 +107,7 @@ class Context(AnyContext):
|
|
107
107
|
if plain:
|
108
108
|
# self.append_to_shared_log(remove_style(message))
|
109
109
|
print(message, sep=sep, end=end, file=file, flush=flush)
|
110
|
+
self.append_to_shared_log(remove_style(f"{message}{end}"))
|
110
111
|
return
|
111
112
|
color = self._color
|
112
113
|
icon = self._icon
|
@@ -120,7 +121,7 @@ class Context(AnyContext):
|
|
120
121
|
now = datetime.datetime.now()
|
121
122
|
formatted_time = now.strftime("%y%m%d %H:%M:%S.%f")[:19] + " "
|
122
123
|
prefix = f"{formatted_time}{attempt_status} {padded_styled_task_name} ⬤ "
|
123
|
-
self.append_to_shared_log(remove_style(f"{prefix} {message}"))
|
124
|
+
self.append_to_shared_log(remove_style(f"{prefix} {message}{end}"))
|
124
125
|
stylized_prefix = stylize(prefix, color=color)
|
125
126
|
print(f"{stylized_prefix} {message}", sep=sep, end=end, file=file, flush=flush)
|
126
127
|
|
@@ -25,7 +25,7 @@ const CURRENT_SESSION = {
|
|
25
25
|
resultTextarea.rows = resultLineCount <= 5 ? resultLineCount : 5;
|
26
26
|
// update text areas
|
27
27
|
resultTextarea.value = data.final_result;
|
28
|
-
logTextarea.value = data.log.join("
|
28
|
+
logTextarea.value = data.log.join("");
|
29
29
|
// logTextarea.scrollTop = logTextarea.scrollHeight;
|
30
30
|
// visualize history
|
31
31
|
this.showCurrentSession(data.task_status, data.finished);
|
zrb/task/llm_task.py
CHANGED
@@ -332,7 +332,7 @@ class LLMTask(BaseTask):
|
|
332
332
|
user_prompt=user_prompt,
|
333
333
|
history_list=history_list,
|
334
334
|
)
|
335
|
-
if agent_run:
|
335
|
+
if agent_run and agent_run.result:
|
336
336
|
new_history_list = json.loads(agent_run.result.all_messages_json())
|
337
337
|
data_to_write = ConversationHistoryData(
|
338
338
|
context=conversation_context, # Save the final context state
|
@@ -223,7 +223,7 @@ zrb/content_transformer/content_transformer.py,sha256=STl77wW-I69QaGzCXjvkppngYF
|
|
223
223
|
zrb/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
224
224
|
zrb/context/any_context.py,sha256=2hgVKbbDwmwrEl1h1L1FaTUjuUYaDd_b7YRGkaorW6Q,6362
|
225
225
|
zrb/context/any_shared_context.py,sha256=p1i9af_CUDz5Mf1h1kBZMAa2AEhf17I3O5IgAcjRLoY,1768
|
226
|
-
zrb/context/context.py,sha256=
|
226
|
+
zrb/context/context.py,sha256=3p43LTTqkcaX00wSBwLFVTyoEdlPnMYMASqnXUxdU_U,6706
|
227
227
|
zrb/context/shared_context.py,sha256=w6cJH41nmhTzYlUrquRMbOexXrXgadfTd5awLnKAq4Q,2801
|
228
228
|
zrb/dot_dict/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
229
|
zrb/dot_dict/dot_dict.py,sha256=ubw_x8I7AOJ59xxtFVJ00VGmq_IYdZP3mUhNlO4nEK0,556
|
@@ -282,7 +282,7 @@ zrb/runner/web_route/static/resources/login/event.js,sha256=1-NxaUwU-X7Tu2RAwVkz
|
|
282
282
|
zrb/runner/web_route/static/resources/logout/event.js,sha256=MfZxrTa2yL49Lbh7cCZDdqsIcf9e1q3W8-WjmZXV5pA,692
|
283
283
|
zrb/runner/web_route/static/resources/pico.min.css,sha256=_Esfkjs_U_igYn-tXBUaK3AEKb7d4l9DlmaOiw9bXfI,82214
|
284
284
|
zrb/runner/web_route/static/resources/session/common-util.js,sha256=t7_s5DXgMyZlT8L8LYZTkzOT6vWVeZvmCKjt-bflQY0,2117
|
285
|
-
zrb/runner/web_route/static/resources/session/current-session.js,sha256=
|
285
|
+
zrb/runner/web_route/static/resources/session/current-session.js,sha256=tzUdK7qJKnMBGlIaMZJIPc2oeL5csk1JTBbjTsjhrFA,7008
|
286
286
|
zrb/runner/web_route/static/resources/session/event.js,sha256=X5OlSHefK0SDB9VkFCRyBKE_Pb7mqM319mW9jRGoDOk,4716
|
287
287
|
zrb/runner/web_route/static/resources/session/past-session.js,sha256=RwGJYKSp75K8NZ-iZP58XppWgdzkiKFaiC5wgcMLxDo,5470
|
288
288
|
zrb/runner/web_route/static/static_route.py,sha256=BxFXIhKqkPtSBVkuf6Uho8yLph_EqDTLTVB0KG2-Pbo,1539
|
@@ -328,7 +328,7 @@ zrb/task/llm/print_node.py,sha256=bpISOUxSH_JBLR-4Nq6-iLrzNWFagrKFX6u8ogYYMw8,43
|
|
328
328
|
zrb/task/llm/prompt.py,sha256=2JG9eey3wbysz4IjcmiNNYRIeffSJkbj_vr0Laxa6wE,3833
|
329
329
|
zrb/task/llm/tool_wrapper.py,sha256=Xygd4VCY3ykjVv63pqlTI16ZG41ySkp683_5VTnL-Zo,6481
|
330
330
|
zrb/task/llm/typing.py,sha256=c8VAuPBw_4A3DxfYdydkgedaP-LU61W9_wj3m3CAX1E,58
|
331
|
-
zrb/task/llm_task.py,sha256=
|
331
|
+
zrb/task/llm_task.py,sha256=OQ-Zp00tldmtB3pH7qugTh85guBB94yh2_o236EpfTg,15537
|
332
332
|
zrb/task/make_task.py,sha256=PD3b_aYazthS8LHeJsLAhwKDEgdurQZpymJDKeN60u0,2265
|
333
333
|
zrb/task/rsync_task.py,sha256=GSL9144bmp6F0EckT6m-2a1xG25AzrrWYzH4k3SVUKM,6370
|
334
334
|
zrb/task/scaffolder.py,sha256=rME18w1HJUHXgi9eTYXx_T2G4JdqDYzBoNOkdOOo5-o,6806
|
@@ -369,7 +369,7 @@ zrb/util/string/name.py,sha256=SXEfxJ1-tDOzHqmSV8kvepRVyMqs2XdV_vyoh_9XUu0,1584
|
|
369
369
|
zrb/util/todo.py,sha256=VGISej2KQZERpornK-8X7bysp4JydMrMUTnG8B0-liI,20708
|
370
370
|
zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
371
371
|
zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
|
372
|
-
zrb-1.6.
|
373
|
-
zrb-1.6.
|
374
|
-
zrb-1.6.
|
375
|
-
zrb-1.6.
|
372
|
+
zrb-1.6.9.dist-info/METADATA,sha256=Df_JAjjx5sOjoHEgD5xSvYBD_H2HL3VljWQI-VFzk-4,8385
|
373
|
+
zrb-1.6.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
374
|
+
zrb-1.6.9.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
|
375
|
+
zrb-1.6.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|