zrb 1.8.5__py3-none-any.whl → 1.8.7__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.
@@ -4,6 +4,7 @@ from zrb.builtin.llm.history import read_chat_conversation, write_chat_conversat
4
4
  from zrb.builtin.llm.input import PreviousSessionInput
5
5
  from zrb.builtin.llm.tool.api import get_current_location, get_current_weather
6
6
  from zrb.builtin.llm.tool.cli import run_shell_command
7
+ from zrb.builtin.llm.tool.code import analyze_repo
7
8
  from zrb.builtin.llm.tool.file import (
8
9
  analyze_file,
9
10
  apply_diff,
@@ -132,6 +133,7 @@ if CFG.LLM_ALLOW_ACCESS_LOCAL_FILE:
132
133
  search_files,
133
134
  apply_diff,
134
135
  analyze_file,
136
+ analyze_repo,
135
137
  )
136
138
 
137
139
  if CFG.LLM_ALLOW_ACCESS_SHELL:
zrb/config.py CHANGED
@@ -245,17 +245,17 @@ class Config:
245
245
  @property
246
246
  def LLM_MAX_TOKENS_PER_MINUTE(self) -> int:
247
247
  """Maximum number of LLM tokens allowed per minute."""
248
- return int(os.getenv("LLM_MAX_TOKENS_PER_MINUTE", "120000"))
248
+ return int(os.getenv("ZRB_LLM_MAX_TOKENS_PER_MINUTE", "120000"))
249
249
 
250
250
  @property
251
251
  def LLM_MAX_TOKENS_PER_REQUEST(self) -> int:
252
252
  """Maximum number of tokens allowed per individual LLM request."""
253
- return int(os.getenv("LLM_MAX_TOKENS_PER_REQUEST", "4096"))
253
+ return int(os.getenv("ZRB_LLM_MAX_TOKENS_PER_REQUEST", "30000"))
254
254
 
255
255
  @property
256
256
  def LLM_THROTTLE_SLEEP(self) -> float:
257
257
  """Number of seconds to sleep when throttling is required."""
258
- return float(os.getenv("LLM_THROTTLE_SLEEP", "1.0"))
258
+ return float(os.getenv("ZRB_LLM_THROTTLE_SLEEP", "1.0"))
259
259
 
260
260
  @property
261
261
  def LLM_CONTEXT_ENRICHMENT_PROMPT(self) -> str | None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zrb
3
- Version: 1.8.5
3
+ Version: 1.8.7
4
4
  Summary: Your Automation Powerhouse
5
5
  Home-page: https://github.com/state-alchemists/zrb
6
6
  License: AGPL-3.0-or-later
@@ -26,7 +26,7 @@ Requires-Dist: openai (>=1.76.0,<2.0.0) ; extra == "rag" or extra == "all"
26
26
  Requires-Dist: pdfplumber (>=0.11.6,<0.12.0) ; extra == "rag" or extra == "all"
27
27
  Requires-Dist: playwright (>=1.51.0,<2.0.0) ; extra == "playwright" or extra == "all"
28
28
  Requires-Dist: psutil (>=7.0.0,<8.0.0)
29
- Requires-Dist: pydantic-ai (>=0.2.7,<0.3.0)
29
+ Requires-Dist: pydantic-ai (>=0.2.18,<0.3.0)
30
30
  Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
31
31
  Requires-Dist: python-dotenv (>=1.1.0,<2.0.0)
32
32
  Requires-Dist: python-jose[cryptography] (>=3.4.0,<4.0.0)
@@ -12,7 +12,7 @@ zrb/builtin/jwt.py,sha256=3M5uaQhJZbKQLjTUft1OwPz_JxtmK-xtkjxWjciOQho,2859
12
12
  zrb/builtin/llm/chat_session.py,sha256=ot2ss6yA4qIINg0nl3KJYnLag8H0eB9ggAgRGEUkZdE,6639
13
13
  zrb/builtin/llm/history.py,sha256=cnkOyO43uiMQ9cEvmqk-pPoCk1zCAH_fwAqSgBtsjzY,3079
14
14
  zrb/builtin/llm/input.py,sha256=Nw-26uTWp2QhUgKJcP_IMHmtk-b542CCSQ_vCOjhvhM,877
15
- zrb/builtin/llm/llm_ask.py,sha256=TIHpZFofbehJO1LXbsi4O84kHF85Xfqjev6UkI1RiL0,4367
15
+ zrb/builtin/llm/llm_ask.py,sha256=zXvXh4a2OPfvA3s4ZWVWafItLHRjDmaXoqsSHJXJxY4,4440
16
16
  zrb/builtin/llm/previous-session.js,sha256=xMKZvJoAbrwiyHS0OoPrWuaKxWYLoyR5sguePIoCjTY,816
17
17
  zrb/builtin/llm/tool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  zrb/builtin/llm/tool/api.py,sha256=yR9I0ZsI96OeQl9pgwORMASVuXsAL0a89D_iPS4C8Dc,1699
@@ -217,7 +217,7 @@ zrb/callback/callback.py,sha256=PFhCqzfxdk6IAthmXcZ13DokT62xtBzJr_ciLw6I8Zg,4030
217
217
  zrb/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  zrb/cmd/cmd_result.py,sha256=L8bQJzWCpcYexIxHBNsXj2pT3BtLmWex0iJSMkvimOA,597
219
219
  zrb/cmd/cmd_val.py,sha256=7Doowyg6BK3ISSGBLt-PmlhzaEkBjWWm51cED6fAUOQ,1014
220
- zrb/config.py,sha256=FsDU_SyX3NL9xX3sMvaGflKjRyNm8k-x5OYSfR6dcFw,10211
220
+ zrb/config.py,sha256=WoTdpAxjoBhBlTYFAqSVqDCnsoMupfM-nwnE-260NW0,10224
221
221
  zrb/content_transformer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
222
222
  zrb/content_transformer/any_content_transformer.py,sha256=v8ZUbcix1GGeDQwB6OKX_1TjpY__ksxWVeqibwa_iZA,850
223
223
  zrb/content_transformer/content_transformer.py,sha256=STl77wW-I69QaGzCXjvkppngYFLufow8ybPLSyAvlHs,2404
@@ -390,7 +390,7 @@ zrb/util/string/name.py,sha256=SXEfxJ1-tDOzHqmSV8kvepRVyMqs2XdV_vyoh_9XUu0,1584
390
390
  zrb/util/todo.py,sha256=VGISej2KQZERpornK-8X7bysp4JydMrMUTnG8B0-liI,20708
391
391
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
392
392
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
393
- zrb-1.8.5.dist-info/METADATA,sha256=R27kDs_HVlzKm-rSSnkk4XVbPI_dIehXERaiZgGGL_M,9760
394
- zrb-1.8.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
395
- zrb-1.8.5.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
396
- zrb-1.8.5.dist-info/RECORD,,
393
+ zrb-1.8.7.dist-info/METADATA,sha256=7CUSxvuCF-0V2KMxxbwCWozNqEfbjb1iJmxsVKOVTjo,9761
394
+ zrb-1.8.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
395
+ zrb-1.8.7.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
396
+ zrb-1.8.7.dist-info/RECORD,,
File without changes