You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertexai/_genai/types/common.py
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,17 @@ class JobState(_common.CaseInSensitiveEnum):
203
203
"""The job is partially succeeded, some results may be missing due to errors."""
204
204
205
205
206
+
class IdentityType(_common.CaseInSensitiveEnum):
207
+
"""The identity type to use for the Reasoning Engine. If not specified, the `service_account` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used."""
"""Default value. Use a custom service account if the `service_account` field is set, otherwise use the default Vertex AI Reasoning Engine Service Agent in the project. Same behavior as SERVICE_ACCOUNT."""
211
+
SERVICE_ACCOUNT = "SERVICE_ACCOUNT"
212
+
"""Use a custom service account if the `service_account` field is set, otherwise use the default Vertex AI Reasoning Engine Service Agent in the project."""
213
+
AGENT_IDENTITY = "AGENT_IDENTITY"
214
+
"""Use Agent Identity. The `service_account` field must not be set."""
215
+
216
+
206
217
class AgentServerMode(_common.CaseInSensitiveEnum):
207
218
"""The agent server mode."""
208
219
@@ -4731,6 +4742,14 @@ class ReasoningEngineSpec(_common.BaseModel):
4731
4742
default=None,
4732
4743
description="""Optional. The specification of a Reasoning Engine deployment.""",
4733
4744
)
4745
+
effective_identity: Optional[str] = Field(
4746
+
default=None,
4747
+
description="""Output only. The identity to use for the Reasoning Engine. It can contain one of the following values: * service-{project}@gcp-sa-aiplatform-re.googleapis.com (for SERVICE_AGENT identity type) * {name}@{project}.gserviceaccount.com (for SERVICE_ACCOUNT identity type) * agents.global.{org}.system.id.goog/resources/aiplatform/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} (for AGENT_IDENTITY identity type)""",
4748
+
)
4749
+
identity_type: Optional[IdentityType] = Field(
4750
+
default=None,
4751
+
description="""Optional. The identity type to use for the Reasoning Engine. If not specified, the `service_account` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used.""",
description="""Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. The `deployment_source` field should not be set if `package_spec` is specified.""",
@@ -4757,6 +4776,12 @@ class ReasoningEngineSpecDict(TypedDict, total=False):
"""Optional. The specification of a Reasoning Engine deployment."""
4759
4778
4779
+
effective_identity: Optional[str]
4780
+
"""Output only. The identity to use for the Reasoning Engine. It can contain one of the following values: * service-{project}@gcp-sa-aiplatform-re.googleapis.com (for SERVICE_AGENT identity type) * {name}@{project}.gserviceaccount.com (for SERVICE_ACCOUNT identity type) * agents.global.{org}.system.id.goog/resources/aiplatform/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} (for AGENT_IDENTITY identity type)"""
4781
+
4782
+
identity_type: Optional[IdentityType]
4783
+
"""Optional. The identity type to use for the Reasoning Engine. If not specified, the `service_account` field will be used if set, otherwise the default Vertex AI Reasoning Engine Service Agent in the project will be used."""
"""Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. The `deployment_source` field should not be set if `package_spec` is specified."""
4762
4787
@@ -12866,6 +12891,9 @@ class AgentEngineConfig(_common.BaseModel):
12866
12891
12867
12892
If not specified, the default Reasoning Engine P6SA service agent will be used.""",
12868
12893
)
12894
+
identity_type: Optional[IdentityType] = Field(
12895
+
default=None, description="""The identity type to use for the Agent Engine."""
0 commit comments