@@ -5118,6 +5118,34 @@ class ReasoningEngineSpecSourceCodeSpecPythonSpecDict(TypedDict, total=False):
51185118]
51195119
51205120
5121+ class ReasoningEngineSpecSourceCodeSpecImageSpec(_common.BaseModel):
5122+ """The image spec for building an image (within a single build step).
5123+
5124+ It is based on the config file (i.e. Dockerfile) in the source directory.
5125+ """
5126+
5127+ build_args: Optional[dict[str, str]] = Field(
5128+ default=None,
5129+ description="""Optional. Build arguments to be used. They will be passed through --build-arg flags.""",
5130+ )
5131+
5132+
5133+ class ReasoningEngineSpecSourceCodeSpecImageSpecDict(TypedDict, total=False):
5134+ """The image spec for building an image (within a single build step).
5135+
5136+ It is based on the config file (i.e. Dockerfile) in the source directory.
5137+ """
5138+
5139+ build_args: Optional[dict[str, str]]
5140+ """Optional. Build arguments to be used. They will be passed through --build-arg flags."""
5141+
5142+
5143+ ReasoningEngineSpecSourceCodeSpecImageSpecOrDict = Union[
5144+ ReasoningEngineSpecSourceCodeSpecImageSpec,
5145+ ReasoningEngineSpecSourceCodeSpecImageSpecDict,
5146+ ]
5147+
5148+
51215149class ReasoningEngineSpecSourceCodeSpec(_common.BaseModel):
51225150 """Specification for deploying from source code."""
51235151
@@ -5133,6 +5161,10 @@ class ReasoningEngineSpecSourceCodeSpec(_common.BaseModel):
51335161 python_spec: Optional[ReasoningEngineSpecSourceCodeSpecPythonSpec] = Field(
51345162 default=None, description="""Configuration for a Python application."""
51355163 )
5164+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpec] = Field(
5165+ default=None,
5166+ description="""Optional. Configuration for building an image with custom config file.""",
5167+ )
51365168
51375169
51385170class ReasoningEngineSpecSourceCodeSpecDict(TypedDict, total=False):
@@ -5149,6 +5181,9 @@ class ReasoningEngineSpecSourceCodeSpecDict(TypedDict, total=False):
51495181 python_spec: Optional[ReasoningEngineSpecSourceCodeSpecPythonSpecDict]
51505182 """Configuration for a Python application."""
51515183
5184+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpecDict]
5185+ """Optional. Configuration for building an image with custom config file."""
5186+
51525187
51535188ReasoningEngineSpecSourceCodeSpecOrDict = Union[
51545189 ReasoningEngineSpecSourceCodeSpec, ReasoningEngineSpecSourceCodeSpecDict
@@ -14004,6 +14039,9 @@ class AgentEngineConfig(_common.BaseModel):
1400414039 subdirectory and the path must be added to `extra_packages`.
1400514040 """,
1400614041 )
14042+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpec] = Field(
14043+ default=None, description="""The image spec for the Agent Engine."""
14044+ )
1400714045
1400814046
1400914047class AgentEngineConfigDict(TypedDict, total=False):
@@ -14167,6 +14205,9 @@ class AgentEngineConfigDict(TypedDict, total=False):
1416714205 subdirectory and the path must be added to `extra_packages`.
1416814206 """
1416914207
14208+ image_spec: Optional[ReasoningEngineSpecSourceCodeSpecImageSpecDict]
14209+ """The image spec for the Agent Engine."""
14210+
1417014211
1417114212AgentEngineConfigOrDict = Union[AgentEngineConfig, AgentEngineConfigDict]
1417214213
0 commit comments