Skip to content

Commit 3199110

Browse files
yeesiancopybara-github
authored andcommitted
feat: Support Python 3.14 for reasoning engine.
PiperOrigin-RevId: 855820678
1 parent 0705a37 commit 3199110

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

vertexai/_genai/types/common.py

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5648,12 +5648,14 @@ class CreateAgentEngineConfig(_common.BaseModel):
56485648
- If `source_packages` is specified, the agent framework will
56495649
default to "custom".""",
56505650
)
5651-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
5652-
default=None,
5653-
description="""The Python version to be used for the Agent Engine.
5651+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
5652+
Field(
5653+
default=None,
5654+
description="""The Python version to be used for the Agent Engine.
56545655
If not specified, it will use the current Python version of the environment.
5655-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
5656+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
56565657
""",
5658+
)
56575659
)
56585660
build_options: Optional[dict[str, list[str]]] = Field(
56595661
default=None,
@@ -5781,10 +5783,10 @@ class CreateAgentEngineConfigDict(TypedDict, total=False):
57815783
- If `source_packages` is specified, the agent framework will
57825784
default to "custom"."""
57835785

5784-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
5786+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
57855787
"""The Python version to be used for the Agent Engine.
57865788
If not specified, it will use the current Python version of the environment.
5787-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
5789+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
57885790
"""
57895791

57905792
build_options: Optional[dict[str, list[str]]]
@@ -6419,12 +6421,14 @@ class UpdateAgentEngineConfig(_common.BaseModel):
64196421
- If `source_packages` is specified, the agent framework will
64206422
default to "custom".""",
64216423
)
6422-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
6423-
default=None,
6424-
description="""The Python version to be used for the Agent Engine.
6424+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
6425+
Field(
6426+
default=None,
6427+
description="""The Python version to be used for the Agent Engine.
64256428
If not specified, it will use the current Python version of the environment.
6426-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
6429+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
64276430
""",
6431+
)
64286432
)
64296433
build_options: Optional[dict[str, list[str]]] = Field(
64306434
default=None,
@@ -6557,10 +6561,10 @@ class UpdateAgentEngineConfigDict(TypedDict, total=False):
65576561
- If `source_packages` is specified, the agent framework will
65586562
default to "custom"."""
65596563

6560-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
6564+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
65616565
"""The Python version to be used for the Agent Engine.
65626566
If not specified, it will use the current Python version of the environment.
6563-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
6567+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
65646568
"""
65656569

65666570
build_options: Optional[dict[str, list[str]]]
@@ -13913,12 +13917,14 @@ class AgentEngineConfig(_common.BaseModel):
1391313917
- If `source_packages` is specified, the agent framework will
1391413918
default to "custom".""",
1391513919
)
13916-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
13917-
default=None,
13918-
description="""The Python version to be used for the Agent Engine.
13920+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
13921+
Field(
13922+
default=None,
13923+
description="""The Python version to be used for the Agent Engine.
1391913924
If not specified, it will use the current Python version of the environment.
13920-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
13925+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
1392113926
""",
13927+
)
1392213928
)
1392313929
build_options: Optional[dict[str, list[str]]] = Field(
1392413930
default=None,
@@ -14078,10 +14084,10 @@ class AgentEngineConfigDict(TypedDict, total=False):
1407814084
- If `source_packages` is specified, the agent framework will
1407914085
default to "custom"."""
1408014086

14081-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
14087+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
1408214088
"""The Python version to be used for the Agent Engine.
1408314089
If not specified, it will use the current Python version of the environment.
14084-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
14090+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
1408514091
"""
1408614092

1408714093
build_options: Optional[dict[str, list[str]]]

vertexai/agent_engines/_agent_engines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454

5555
_LOGGER = _utils.LOGGER
56-
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13")
56+
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13", "3.14")
5757
_DEFAULT_GCS_DIR_NAME = "agent_engine"
5858
_BLOB_FILENAME = "agent_engine.pkl"
5959
_REQUIREMENTS_FILE = "requirements.txt"

vertexai/reasoning_engines/_reasoning_engines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

5050
_LOGGER = base.Logger(__name__)
51-
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13")
51+
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13", "3.14")
5252
_DEFAULT_GCS_DIR_NAME = "reasoning_engine"
5353
_BLOB_FILENAME = "reasoning_engine.pkl"
5454
_REQUIREMENTS_FILE = "requirements.txt"

0 commit comments

Comments
 (0)