Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "api"
version = "0.56.0"
version = "0.56.1"
description = "Agenta API"
authors = [
{ name = "Mahmoud Mabrouk", email = "mahmoud@agenta.ai" },
Expand Down
16 changes: 11 additions & 5 deletions sdk/agenta/sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ def MCField( # pylint: disable=invalid-name
default: str,
choices: Union[List[str], Dict[str, List[str]]],
) -> Field:
field = Field(default=default, description="ID of the model to use")
# Pydantic 2.12+ no longer allows post-creation mutation of field properties
if isinstance(choices, dict):
field.json_schema_extra = {"choices": choices, "x-parameter": "grouped_choice"}
json_extra = {"choices": choices, "x-parameter": "grouped_choice"}
elif isinstance(choices, list):
field.json_schema_extra = {"choices": choices, "x-parameter": "choice"}

return field
json_extra = {"choices": choices, "x-parameter": "choice"}
else:
json_extra = {}

return Field(
default=default,
description="ID of the model to use",
json_schema_extra=json_extra,
)


class LLMTokenUsage(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "agenta"
version = "0.56.0"
version = "0.56.1"
description = "The SDK for agenta is an open-source LLMOps platform."
readme = "README.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion web/oss/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agenta/oss",
"version": "0.56.0",
"version": "0.56.1",
"private": true,
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agenta-web",
"version": "0.56.0",
"version": "0.56.1",
"workspaces": [
"ee",
"oss",
Expand Down