Skip to content

Commit 5514f37

Browse files
shawn-yang-googlecopybara-github
authored andcommitted
feat: Support Python 3.14 for reasoning engine.
PiperOrigin-RevId: 853820058
1 parent 1c3b451 commit 5514f37

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
@@ -5622,12 +5622,14 @@ class CreateAgentEngineConfig(_common.BaseModel):
56225622
- If `source_packages` is specified, the agent framework will
56235623
default to "custom".""",
56245624
)
5625-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
5626-
default=None,
5627-
description="""The Python version to be used for the Agent Engine.
5625+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
5626+
Field(
5627+
default=None,
5628+
description="""The Python version to be used for the Agent Engine.
56285629
If not specified, it will use the current Python version of the environment.
5629-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
5630+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
56305631
""",
5632+
)
56315633
)
56325634
build_options: Optional[dict[str, list[str]]] = Field(
56335635
default=None,
@@ -5755,10 +5757,10 @@ class CreateAgentEngineConfigDict(TypedDict, total=False):
57555757
- If `source_packages` is specified, the agent framework will
57565758
default to "custom"."""
57575759

5758-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
5760+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
57595761
"""The Python version to be used for the Agent Engine.
57605762
If not specified, it will use the current Python version of the environment.
5761-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
5763+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
57625764
"""
57635765

57645766
build_options: Optional[dict[str, list[str]]]
@@ -6393,12 +6395,14 @@ class UpdateAgentEngineConfig(_common.BaseModel):
63936395
- If `source_packages` is specified, the agent framework will
63946396
default to "custom".""",
63956397
)
6396-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
6397-
default=None,
6398-
description="""The Python version to be used for the Agent Engine.
6398+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
6399+
Field(
6400+
default=None,
6401+
description="""The Python version to be used for the Agent Engine.
63996402
If not specified, it will use the current Python version of the environment.
6400-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
6403+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
64016404
""",
6405+
)
64026406
)
64036407
build_options: Optional[dict[str, list[str]]] = Field(
64046408
default=None,
@@ -6531,10 +6535,10 @@ class UpdateAgentEngineConfigDict(TypedDict, total=False):
65316535
- If `source_packages` is specified, the agent framework will
65326536
default to "custom"."""
65336537

6534-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
6538+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
65356539
"""The Python version to be used for the Agent Engine.
65366540
If not specified, it will use the current Python version of the environment.
6537-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
6541+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
65386542
"""
65396543

65406544
build_options: Optional[dict[str, list[str]]]
@@ -13730,12 +13734,14 @@ class AgentEngineConfig(_common.BaseModel):
1373013734
- If `source_packages` is specified, the agent framework will
1373113735
default to "custom".""",
1373213736
)
13733-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]] = Field(
13734-
default=None,
13735-
description="""The Python version to be used for the Agent Engine.
13737+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
13738+
Field(
13739+
default=None,
13740+
description="""The Python version to be used for the Agent Engine.
1373613741
If not specified, it will use the current Python version of the environment.
13737-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
13742+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
1373813743
""",
13744+
)
1373913745
)
1374013746
build_options: Optional[dict[str, list[str]]] = Field(
1374113747
default=None,
@@ -13895,10 +13901,10 @@ class AgentEngineConfigDict(TypedDict, total=False):
1389513901
- If `source_packages` is specified, the agent framework will
1389613902
default to "custom"."""
1389713903

13898-
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13"]]
13904+
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
1389913905
"""The Python version to be used for the Agent Engine.
1390013906
If not specified, it will use the current Python version of the environment.
13901-
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13".
13907+
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
1390213908
"""
1390313909

1390413910
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)