agenta 0.56.0__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.
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
|
-
|
|
24
|
+
# Pydantic 2.12+ no longer allows post-creation mutation of field properties
|
|
25
25
|
if isinstance(choices, dict):
|
|
26
|
-
|
|
26
|
+
json_extra = {"choices": choices, "x-parameter": "grouped_choice"}
|
|
27
27
|
elif isinstance(choices, list):
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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):
|
|
@@ -349,7 +349,7 @@ agenta/sdk/tracing/processors.py,sha256=ZE6baO2U3ER73rckvXhdbNmLgs3jn6le7iAUQc6o
|
|
|
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
351
|
agenta/sdk/tracing/tracing.py,sha256=mHsmlp19PKJsd80JPqsvpHsNX_rr9rQz-Fepv4PNqz8,9233
|
|
352
|
-
agenta/sdk/types.py,sha256=
|
|
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.56.
|
|
370
|
-
agenta-0.56.
|
|
371
|
-
agenta-0.56.
|
|
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,,
|
|
File without changes
|