zrb 1.13.0__py3-none-any.whl → 1.13.2__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/task/llm/prompt.py
CHANGED
@@ -66,15 +66,17 @@ def get_special_instruction_prompt(
|
|
66
66
|
|
67
67
|
def get_modes(
|
68
68
|
ctx: AnyContext,
|
69
|
-
modes_attr:
|
69
|
+
modes_attr: StrListAttr | None,
|
70
70
|
render_modes: bool,
|
71
71
|
) -> str:
|
72
72
|
"""Gets the modes, prioritizing task-specific, then default."""
|
73
73
|
raw_modes = get_str_list_attr(
|
74
74
|
ctx,
|
75
|
-
modes_attr,
|
75
|
+
[] if modes_attr is None else modes_attr,
|
76
76
|
auto_render=render_modes,
|
77
77
|
)
|
78
|
+
if raw_modes is None:
|
79
|
+
raw_modes = []
|
78
80
|
modes = [mode.strip() for mode in raw_modes if mode.strip() != ""]
|
79
81
|
if len(modes) > 0:
|
80
82
|
return modes
|
@@ -83,7 +85,7 @@ def get_modes(
|
|
83
85
|
|
84
86
|
def get_workflow_prompt(
|
85
87
|
ctx: AnyContext,
|
86
|
-
modes_attr:
|
88
|
+
modes_attr: StrListAttr | None,
|
87
89
|
render_modes: bool,
|
88
90
|
) -> str:
|
89
91
|
modes = get_modes(ctx, modes_attr, render_modes)
|
@@ -356,7 +356,7 @@ zrb/task/llm/default_workflow/researching.md,sha256=KD-aYHFHir6Ti-4FsBBtGwiI0seS
|
|
356
356
|
zrb/task/llm/error.py,sha256=QR-nIohS6pBpC_16cWR-fw7Mevo1sNYAiXMBsh_CJDE,4157
|
357
357
|
zrb/task/llm/history_summarization.py,sha256=_0RmzIeJdJA3KvtdTdKnd2Ga7_7x8C1J2PM0oSn-IYw,8000
|
358
358
|
zrb/task/llm/print_node.py,sha256=mwdqsO2IVf5rDz-jdH9HXz6MFGCWrZ4Pv2xbUBtoNgc,4179
|
359
|
-
zrb/task/llm/prompt.py,sha256=
|
359
|
+
zrb/task/llm/prompt.py,sha256=pHYuo4cLzuH9VYk2-PAyxng_l1ItXVZl0llZDQcbnWA,9748
|
360
360
|
zrb/task/llm/tool_wrapper.py,sha256=jfKMAtTzm--HnF6TppOrbkDVsuTOIFRpowQqgwqd-7s,6756
|
361
361
|
zrb/task/llm/typing.py,sha256=c8VAuPBw_4A3DxfYdydkgedaP-LU61W9_wj3m3CAX1E,58
|
362
362
|
zrb/task/llm_task.py,sha256=jVuVeN2ylcPkycUiaTpavkkd1tBLbvcVsjMNN5FMHnk,13536
|
@@ -406,7 +406,7 @@ zrb/util/todo.py,sha256=r9_KYF2-hLKMNjsp6AFK9zivykMrywd-kJ4bCwfdafI,19323
|
|
406
406
|
zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
|
407
407
|
zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
408
408
|
zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
|
409
|
-
zrb-1.13.
|
410
|
-
zrb-1.13.
|
411
|
-
zrb-1.13.
|
412
|
-
zrb-1.13.
|
409
|
+
zrb-1.13.2.dist-info/METADATA,sha256=30wKEc_dkXx1skqWznEZDe59G_KUemig65pUUvskxHc,9777
|
410
|
+
zrb-1.13.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
411
|
+
zrb-1.13.2.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
|
412
|
+
zrb-1.13.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|