agenta 0.55.2__py3-none-any.whl → 0.56.1__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.

Potentially problematic release.


This version of agenta might be problematic. Click here for more details.

@@ -52,8 +52,6 @@ class Link(BaseModel):
52
52
 
53
53
 
54
54
  class Tracing(metaclass=Singleton):
55
- VERSION = "0.1.0"
56
-
57
55
  Status = Status
58
56
  StatusCode = StatusCode
59
57
 
agenta/sdk/types.py CHANGED
@@ -21,13 +21,19 @@ def MCField( # pylint: disable=invalid-name
21
21
  default: str,
22
22
  choices: Union[List[str], Dict[str, List[str]]],
23
23
  ) -> Field:
24
- field = Field(default=default, description="ID of the model to use")
24
+ # Pydantic 2.12+ no longer allows post-creation mutation of field properties
25
25
  if isinstance(choices, dict):
26
- field.json_schema_extra = {"choices": choices, "x-parameter": "grouped_choice"}
26
+ json_extra = {"choices": choices, "x-parameter": "grouped_choice"}
27
27
  elif isinstance(choices, list):
28
- field.json_schema_extra = {"choices": choices, "x-parameter": "choice"}
29
-
30
- return field
28
+ json_extra = {"choices": choices, "x-parameter": "choice"}
29
+ else:
30
+ json_extra = {}
31
+
32
+ return Field(
33
+ default=default,
34
+ description="ID of the model to use",
35
+ json_schema_extra=json_extra,
36
+ )
31
37
 
32
38
 
33
39
  class LLMTokenUsage(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenta
3
- Version: 0.55.2
3
+ Version: 0.56.1
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Keywords: LLMOps,LLM,evaluation,prompt engineering
6
6
  Author: Mahmoud Mabrouk
@@ -18,18 +18,18 @@ Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Topic :: Software Development :: Libraries
19
19
  Requires-Dist: decorator (>=5.2.1,<6.0.0)
20
20
  Requires-Dist: fastapi (>=0.116.0,<0.117.0)
21
- Requires-Dist: h11 (>=0.16.0)
22
- Requires-Dist: httpx (>=0.28.0)
21
+ Requires-Dist: h11 (>=0.16.0,<0.17.0)
22
+ Requires-Dist: httpx (>=0.28.0,<0.29.0)
23
23
  Requires-Dist: huggingface-hub (<0.31.0)
24
24
  Requires-Dist: importlib-metadata (>=8.0.0,<9.0)
25
25
  Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
26
26
  Requires-Dist: litellm (==1.76.0)
27
- Requires-Dist: openai (>=1.100.0)
27
+ Requires-Dist: openai (>=1.106.0,<2.0.0)
28
28
  Requires-Dist: opentelemetry-api (>=1.27.0,<2.0.0)
29
29
  Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.27.0,<2.0.0)
30
30
  Requires-Dist: opentelemetry-instrumentation (>=0.56b0)
31
31
  Requires-Dist: opentelemetry-sdk (>=1.27.0,<2.0.0)
32
- Requires-Dist: pydantic (>=2)
32
+ Requires-Dist: pydantic (>=2,<3)
33
33
  Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
34
34
  Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
35
35
  Requires-Dist: starlette (>=0.47.0,<0.48.0)
@@ -348,8 +348,8 @@ agenta/sdk/tracing/inline.py,sha256=y2S_MGGqmXgyUgbkNNyrb8_X-QtGuDy8JwxlwWibIx8,
348
348
  agenta/sdk/tracing/processors.py,sha256=ZE6baO2U3ER73rckvXhdbNmLgs3jn6le7iAUQc6osbY,5141
349
349
  agenta/sdk/tracing/propagation.py,sha256=EeOqDMqnh_MoEhGd1do_vy_tQBYUcoC8kpLqVoZeqg0,2561
350
350
  agenta/sdk/tracing/spans.py,sha256=nqUOjjirBxB8Eacv8Qj4Ra_6rknGi3lbJdNyKmk5ODQ,3707
351
- agenta/sdk/tracing/tracing.py,sha256=eqQLcvgmR6Tz0WSwLCERkGKiLzsKfDyR_ah-Tyz1qGE,9256
352
- agenta/sdk/types.py,sha256=0-_eR7BZjLZRHmo6HSTsfOhNFmbX_a6GfigqaM7dFX4,21883
351
+ agenta/sdk/tracing/tracing.py,sha256=mHsmlp19PKJsd80JPqsvpHsNX_rr9rQz-Fepv4PNqz8,9233
352
+ agenta/sdk/types.py,sha256=SaFXHuySHgdoP2ueKPgZCq8_Jhkq8e1FY5A7QaVFPYE,22015
353
353
  agenta/sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
354
354
  agenta/sdk/utils/cache.py,sha256=q6SYVzHW9RCwtZ7z4Ue3uMwXroroLlko5AvQ1MouvFM,1429
355
355
  agenta/sdk/utils/constants.py,sha256=zW3R4rjXOo2L5lz6q84l_zYuOM9u4mpPRHw_B1Dr_hI,67
@@ -366,6 +366,6 @@ agenta/sdk/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
366
366
  agenta/sdk/workflows/registry.py,sha256=4FRSeU4njMmP6xFCIteF5f_W6NVlqFTx1AM7hsaGAQk,975
367
367
  agenta/sdk/workflows/types.py,sha256=SjYeT8FWVgwaIIC8sI3fRjKERLEA_oxuBGvYSaFqNg8,11720
368
368
  agenta/sdk/workflows/utils.py,sha256=ILfY8DSBWLrdWIuKg6mq7rANwKiiY6sxEeFiBFhjLYM,413
369
- agenta-0.55.2.dist-info/METADATA,sha256=F4CxQ7yq6_tI1nf7jtCDi0P_5d4T5-Z1ezsNMPubWTI,31727
370
- agenta-0.55.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
371
- agenta-0.55.2.dist-info/RECORD,,
369
+ agenta-0.56.1.dist-info/METADATA,sha256=1Rq5J7bPddrmALkGH_8k9M5rRElnzpRP-3PbGP3G3nw,31753
370
+ agenta-0.56.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
371
+ agenta-0.56.1.dist-info/RECORD,,