zrb 1.5.14__py3-none-any.whl → 1.5.15__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.
@@ -13,11 +13,9 @@ from zrb.task.llm.typing import ListOfDict
13
13
  from zrb.util.attr import get_bool_attr, get_int_attr
14
14
 
15
15
  if TYPE_CHECKING:
16
- from pydantic_ai import Agent
17
16
  from pydantic_ai.models import Model
18
17
  from pydantic_ai.settings import ModelSettings
19
18
  else:
20
- Agent = Any
21
19
  Model = Any
22
20
  ModelSettings = Any
23
21
 
@@ -41,6 +39,8 @@ async def enrich_context(
41
39
  history_list: ListOfDict,
42
40
  ) -> dict[str, Any]:
43
41
  """Runs an LLM call to extract key info and merge it into the context."""
42
+ from pydantic_ai import Agent
43
+
44
44
  ctx.log_info("Attempting to enrich conversation context...")
45
45
  # Prepare context and history for the enrichment prompt
46
46
  try:
@@ -166,7 +166,6 @@ async def maybe_enrich_context(
166
166
  context_enrichment_threshold_attr,
167
167
  render_context_enrichment_threshold,
168
168
  ):
169
- # Use the enrich_context function now defined in this file
170
169
  return await enrich_context(
171
170
  ctx=ctx,
172
171
  config=EnrichmentConfig(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zrb
3
- Version: 1.5.14
3
+ Version: 1.5.15
4
4
  Summary: Your Automation Powerhouse
5
5
  Home-page: https://github.com/state-alchemists/zrb
6
6
  License: AGPL-3.0-or-later
@@ -314,7 +314,7 @@ zrb/task/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
314
314
  zrb/task/llm/agent.py,sha256=pZAbn0vQOXFkJqnHBo8rfFq3OZD3yePr39jzcRqn43A,5248
315
315
  zrb/task/llm/config.py,sha256=R6mkbm4d5ecN4KjjZaXbqNq9-8bXfdUGl_BML8hUWqY,3205
316
316
  zrb/task/llm/context.py,sha256=s313jXooOp8ht7j2sc3-d8xyW7oWs9bFv4KEyjicwys,3893
317
- zrb/task/llm/context_enrichment.py,sha256=um-uI16HLUQz5GxPwHZefp9dw9x1VcFimv2Fqa9lsB8,6045
317
+ zrb/task/llm/context_enrichment.py,sha256=lLPCtSSdB0jyReB3rk5taNvFPpXMmjDZ_Ro_Fz5GX68,5963
318
318
  zrb/task/llm/error.py,sha256=27DQXSG8SH1-XuvXFdZQKzP39wZDWmd_YnSTz6DJKKI,3690
319
319
  zrb/task/llm/history.py,sha256=LnrJdXLyo2qz-bNCwLorhoqGmgSiPTUU0bzY63w67-E,9257
320
320
  zrb/task/llm/history_summarization.py,sha256=0cWChp4OE_OiaNDhHRWi4rwHKTHsqWLYy3pS5IAIHpQ,6293
@@ -363,7 +363,7 @@ zrb/util/string/name.py,sha256=SXEfxJ1-tDOzHqmSV8kvepRVyMqs2XdV_vyoh_9XUu0,1584
363
363
  zrb/util/todo.py,sha256=VGISej2KQZERpornK-8X7bysp4JydMrMUTnG8B0-liI,20708
364
364
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
365
365
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
366
- zrb-1.5.14.dist-info/METADATA,sha256=pYeLSb24lcrPCcnBfinqz3kM0aEuGFxWv03Ad6Ci1V8,8347
367
- zrb-1.5.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
368
- zrb-1.5.14.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
369
- zrb-1.5.14.dist-info/RECORD,,
366
+ zrb-1.5.15.dist-info/METADATA,sha256=G1B30COaisd9TjKv4-r0FpOwQnU-N5UBk5UEexfN2cQ,8347
367
+ zrb-1.5.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
368
+ zrb-1.5.15.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
369
+ zrb-1.5.15.dist-info/RECORD,,
File without changes