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
@@ -205,6 +205,17 @@ class JobState(_common.CaseInSensitiveEnum):
205
205
"""The job is partially succeeded, some results may be missing due to errors."""
206
206
207
207
208
+
class IdentityType(_common.CaseInSensitiveEnum):
209
+
"""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."""
213
+
SERVICE_ACCOUNT = "SERVICE_ACCOUNT"
214
+
"""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."""
215
+
AGENT_IDENTITY = "AGENT_IDENTITY"
216
+
"""Use Agent Identity. The `service_account` field must not be set."""
217
+
218
+
208
219
class AgentServerMode(_common.CaseInSensitiveEnum):
209
220
"""The agent server mode."""
210
221
@@ -4784,6 +4795,14 @@ class ReasoningEngineSpec(_common.BaseModel):
4784
4795
default=None,
4785
4796
description="""Optional. The specification of a Reasoning Engine deployment.""",
4786
4797
)
4798
+
effective_identity: Optional[str] = Field(
4799
+
default=None,
4800
+
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)""",
4801
+
)
4802
+
identity_type: Optional[IdentityType] = Field(
4803
+
default=None,
4804
+
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.""",
@@ -4810,6 +4829,12 @@ class ReasoningEngineSpecDict(TypedDict, total=False):
"""Optional. The specification of a Reasoning Engine deployment."""
4812
4831
4832
+
effective_identity: Optional[str]
4833
+
"""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)"""
4834
+
4835
+
identity_type: Optional[IdentityType]
4836
+
"""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."""
4815
4840
@@ -12905,6 +12930,9 @@ class AgentEngineConfig(_common.BaseModel):
12905
12930
12906
12931
If not specified, the default Reasoning Engine P6SA service agent will be used.""",
12907
12932
)
12933
+
identity_type: Optional[IdentityType] = Field(
12934
+
default=None, description="""The identity type to use for the Agent Engine."""
0 commit comments