zrb 1.15.4__py3-none-any.whl → 1.15.5__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.
@@ -88,7 +88,7 @@ async def summarize_history(
88
88
  conversation_history: ConversationHistory,
89
89
  rate_limitter: LLMRateLimiter | None = None,
90
90
  retries: int = 3,
91
- ) -> str:
91
+ ) -> ConversationHistory:
92
92
  """Runs an LLM call to update the conversation summary."""
93
93
  from pydantic_ai import Agent
94
94
 
@@ -111,6 +111,8 @@ def _create_wrapper(
111
111
  if not approval:
112
112
  raise ValueError(f"User disapproving: {reason}")
113
113
  return await run_async(func(*args, **kwargs))
114
+ except KeyboardInterrupt as e:
115
+ raise e
114
116
  except Exception as e:
115
117
  error_model = ToolExecutionError(
116
118
  tool_name=func.__name__,
@@ -198,9 +200,10 @@ def _get_func_call_str(func: Callable, args: list[Any], kwargs: dict[str, Any])
198
200
 
199
201
 
200
202
  def _truncate_arg(arg: str, length: int = 19) -> str:
201
- if len(arg) > length:
202
- return f"{arg[:length-4]} ..."
203
- return arg
203
+ normalized_arg = arg.replace("\n", "\\n")
204
+ if len(normalized_arg) > length:
205
+ return f"{normalized_arg[:length-4]} ..."
206
+ return normalized_arg
204
207
 
205
208
 
206
209
  async def _read_line():
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: zrb
3
- Version: 1.15.4
3
+ Version: 1.15.5
4
4
  Summary: Your Automation Powerhouse
5
- Home-page: https://github.com/state-alchemists/zrb
6
5
  License: AGPL-3.0-or-later
7
6
  Keywords: Automation,Task Runner,Code Generator,Monorepo,Low Code
8
7
  Author: Go Frendi Gunawan
@@ -13,28 +12,28 @@ Classifier: Programming Language :: Python :: 3
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
16
  Provides-Extra: all
17
17
  Provides-Extra: playwright
18
18
  Provides-Extra: rag
19
- Requires-Dist: beautifulsoup4 (>=4.13.3,<5.0.0)
20
- Requires-Dist: black (>=25.1.0,<25.2.0)
19
+ Requires-Dist: beautifulsoup4 (>=4.13.4,<5.0.0)
20
+ Requires-Dist: black (>=25.1.0,<26.0.0)
21
21
  Requires-Dist: chromadb (>=0.6.3,<0.7.0) ; extra == "rag" or extra == "all"
22
22
  Requires-Dist: fastapi[standard] (>=0.116.1,<0.117.0)
23
- Requires-Dist: isort (>=6.0.1,<6.1.0)
24
- Requires-Dist: libcst (>=1.7.0,<2.0.0)
23
+ Requires-Dist: isort (>=6.0.1,<7.0.0)
24
+ Requires-Dist: libcst (>=1.8.2,<2.0.0)
25
25
  Requires-Dist: markdownify (>=1.2.0,<2.0.0)
26
- Requires-Dist: openai (>=1.99.7)
27
- Requires-Dist: pdfplumber (>=0.11.6,<0.12.0)
28
- Requires-Dist: playwright (>=1.53.0,<2.0.0) ; extra == "playwright" or extra == "all"
26
+ Requires-Dist: pdfplumber (>=0.11.7,<0.12.0)
27
+ Requires-Dist: playwright (>=1.54.0,<2.0.0) ; extra == "playwright" or extra == "all"
29
28
  Requires-Dist: psutil (>=7.0.0,<8.0.0)
30
- Requires-Dist: pydantic-ai-slim[anthropic,bedrock,cli,cohere,google,groq,huggingface,mcp,mistral,openai,vertexai] (>=0.7.0,<0.8.0)
31
- Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
29
+ Requires-Dist: pydantic-ai-slim[anthropic,bedrock,cli,cohere,google,groq,huggingface,mcp,mistral,openai,vertexai] (>=0.7.4,<0.8.0)
32
30
  Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
33
- Requires-Dist: python-jose[cryptography] (>=3.4.0,<4.0.0)
31
+ Requires-Dist: python-jose[cryptography] (>=3.5.0,<4.0.0)
34
32
  Requires-Dist: requests (>=2.32.4,<3.0.0)
35
33
  Requires-Dist: tiktoken (>=0.8.0,<0.9.0)
36
34
  Requires-Dist: ulid-py (>=1.1.0,<2.0.0)
37
35
  Project-URL: Documentation, https://github.com/state-alchemists/zrb
36
+ Project-URL: Homepage, https://github.com/state-alchemists/zrb
38
37
  Project-URL: Repository, https://github.com/state-alchemists/zrb
39
38
  Description-Content-Type: text/markdown
40
39
 
@@ -354,10 +354,10 @@ zrb/task/llm/default_workflow/coding.md,sha256=2uythvPsnBpYfIhiIH1cCinQXX0i0yUqs
354
354
  zrb/task/llm/default_workflow/copywriting.md,sha256=xSO7GeDolwGxiuz6kXsK2GKGpwp8UgtG0yRqTmill_s,1999
355
355
  zrb/task/llm/default_workflow/researching.md,sha256=KD-aYHFHir6Ti-4FsBBtGwiI0seSVgleYbKJZi_POXA,2139
356
356
  zrb/task/llm/error.py,sha256=QR-nIohS6pBpC_16cWR-fw7Mevo1sNYAiXMBsh_CJDE,4157
357
- zrb/task/llm/history_summarization.py,sha256=xSHVoVOJ_4Da2fycWyKm8dBCIbjfAFU_rDC7u6XhKow,8093
357
+ zrb/task/llm/history_summarization.py,sha256=uW8JxCPks0RjTmCsr8AzrVnqenw4vi_WyVprOqMgAOk,8109
358
358
  zrb/task/llm/print_node.py,sha256=Sd8ovTO6KKI9hllZf5TxRXog7QGCne1A1E83jnrH_kg,6526
359
359
  zrb/task/llm/prompt.py,sha256=FGXWYHecWtrNNkPnjg-uhnkqp7fYt8V91-AjFM_5fpA,11550
360
- zrb/task/llm/tool_wrapper.py,sha256=4gdBrtjdwBzhBD1y41vzujPGFEY3q5OmHb_E-y62dHI,9393
360
+ zrb/task/llm/tool_wrapper.py,sha256=76h5fcPL3hlXlwYk2aqLqyKPJO1rABUGkBEAGAnWyfQ,9531
361
361
  zrb/task/llm/typing.py,sha256=c8VAuPBw_4A3DxfYdydkgedaP-LU61W9_wj3m3CAX1E,58
362
362
  zrb/task/llm_task.py,sha256=aweruBmC09RCKNGmiwLo7WVSttCUH2h2RkSfgUGvRFo,14450
363
363
  zrb/task/make_task.py,sha256=PD3b_aYazthS8LHeJsLAhwKDEgdurQZpymJDKeN60u0,2265
@@ -407,7 +407,7 @@ zrb/util/todo.py,sha256=r9_KYF2-hLKMNjsp6AFK9zivykMrywd-kJ4bCwfdafI,19323
407
407
  zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
408
408
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
409
409
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
410
- zrb-1.15.4.dist-info/METADATA,sha256=LdpREgmZtxq9meZWfPZ6ivABI_531S6agnMVFP7jaME,9744
411
- zrb-1.15.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
412
- zrb-1.15.4.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
413
- zrb-1.15.4.dist-info/RECORD,,
410
+ zrb-1.15.5.dist-info/METADATA,sha256=NkG_9a5y03ASTFHhYSwdi1ksrh0I1aA9fXI1y871PXI,9735
411
+ zrb-1.15.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
412
+ zrb-1.15.5.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
413
+ zrb-1.15.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any