GeezerVison is showing github.com — feat: Add the service account option for the agent engine · googleapis/python-aiplatform@407eb67
File treeExpand file treeCollapse file tree Open diff view settings tests/unit/vertexai/genai
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: tests/unit/vertexai/genai/test_agent_engines.py +77Lines changed: 77 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -484,6 +484,7 @@ def register_operations(self) -> Dict[str, List[str]]: | 484 | 484 | "version": "TEST_SECRET_VERSION_1", | 485 | 485 | }, | 486 | 486 | } | | 487 | +_TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT = "test-custom-service-account" | 487 | 488 | _TEST_AGENT_ENGINE_SPEC = _genai_types.ReasoningEngineSpecDict( | 488 | 489 | agent_framework=_TEST_AGENT_ENGINE_FRAMEWORK, | 489 | 490 | class_methods=[_TEST_AGENT_ENGINE_CLASS_METHOD_1], | @@ -508,6 +509,7 @@ def register_operations(self) -> Dict[str, List[str]]: | 508 | 509 | dependency_files_gcs_uri=_TEST_AGENT_ENGINE_DEPENDENCY_FILES_GCS_URI, | 509 | 510 | requirements_gcs_uri=_TEST_AGENT_ENGINE_REQUIREMENTS_GCS_URI, | 510 | 511 | ), | | 512 | + service_account=_TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT, | 511 | 513 | ) | 512 | 514 | _TEST_AGENT_ENGINE_STREAM_QUERY_RESPONSE = [{"output": "hello"}, {"output": "world"}] | 513 | 515 | _TEST_AGENT_ENGINE_OPERATION_SCHEMAS = [] | @@ -1255,6 +1257,7 @@ def test_create_agent_engine_with_env_vars_dict( | 1255 | 1257 | gcs_dir_name=None, | 1256 | 1258 | extra_packages=[_TEST_AGENT_ENGINE_EXTRA_PACKAGE_PATH], | 1257 | 1259 | env_vars=_TEST_AGENT_ENGINE_ENV_VARS_INPUT, | | 1260 | + service_account=None, | 1258 | 1261 | context_spec=None, | 1259 | 1262 | ) | 1260 | 1263 | request_mock.assert_called_with( | @@ -1276,6 +1279,80 @@ def test_create_agent_engine_with_env_vars_dict( | 1276 | 1279 | None, | 1277 | 1280 | ) | 1278 | 1281 |
| | 1282 | + @mock.patch.object(agent_engines.AgentEngines, "_create_config") | | 1283 | + @mock.patch.object(agent_engines.AgentEngines, "_await_operation") | | 1284 | + def test_create_agent_engine_with_custom_service_account( | | 1285 | + self, | | 1286 | + mock_await_operation, | | 1287 | + mock_create_config, | | 1288 | + ): | | 1289 | + mock_create_config.return_value = { | | 1290 | + "display_name": _TEST_AGENT_ENGINE_DISPLAY_NAME, | | 1291 | + "description": _TEST_AGENT_ENGINE_DESCRIPTION, | | 1292 | + "spec": { | | 1293 | + "package_spec": { | | 1294 | + "python_version": _TEST_PYTHON_VERSION, | | 1295 | + "pickle_object_gcs_uri": _TEST_AGENT_ENGINE_GCS_URI, | | 1296 | + "requirements_gcs_uri": _TEST_AGENT_ENGINE_REQUIREMENTS_GCS_URI, | | 1297 | + }, | | 1298 | + "class_methods": [_TEST_AGENT_ENGINE_CLASS_METHOD_1], | | 1299 | + "service_account": _TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT, | | 1300 | + "agent_framework": _TEST_AGENT_ENGINE_FRAMEWORK, | | 1301 | + }, | | 1302 | + } | | 1303 | + mock_await_operation.return_value = _genai_types.AgentEngineOperation( | | 1304 | + response=_genai_types.ReasoningEngine( | | 1305 | + name=_TEST_AGENT_ENGINE_RESOURCE_NAME, | | 1306 | + spec=_TEST_AGENT_ENGINE_SPEC, | | 1307 | + ) | | 1308 | + ) | | 1309 | + with mock.patch.object( | | 1310 | + self.client.agent_engines._api_client, "request" | | 1311 | + ) as request_mock: | | 1312 | + request_mock.return_value = genai_types.HttpResponse(body="") | | 1313 | + self.client.agent_engines.create( | | 1314 | + agent_engine=self.test_agent, | | 1315 | + config=_genai_types.AgentEngineConfig( | | 1316 | + display_name=_TEST_AGENT_ENGINE_DISPLAY_NAME, | | 1317 | + requirements=_TEST_AGENT_ENGINE_REQUIREMENTS, | | 1318 | + extra_packages=[_TEST_AGENT_ENGINE_EXTRA_PACKAGE_PATH], | | 1319 | + staging_bucket=_TEST_STAGING_BUCKET, | | 1320 | + service_account=_TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT, | | 1321 | + ), | | 1322 | + ) | | 1323 | + mock_create_config.assert_called_with( | | 1324 | + mode="create", | | 1325 | + agent_engine=self.test_agent, | | 1326 | + staging_bucket=_TEST_STAGING_BUCKET, | | 1327 | + requirements=_TEST_AGENT_ENGINE_REQUIREMENTS, | | 1328 | + display_name=_TEST_AGENT_ENGINE_DISPLAY_NAME, | | 1329 | + description=None, | | 1330 | + gcs_dir_name=None, | | 1331 | + extra_packages=[_TEST_AGENT_ENGINE_EXTRA_PACKAGE_PATH], | | 1332 | + env_vars=None, | | 1333 | + service_account=_TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT, | | 1334 | + context_spec=None, | | 1335 | + ) | | 1336 | + request_mock.assert_called_with( | | 1337 | + "post", | | 1338 | + "reasoningEngines", | | 1339 | + { | | 1340 | + "displayName": _TEST_AGENT_ENGINE_DISPLAY_NAME, | | 1341 | + "description": _TEST_AGENT_ENGINE_DESCRIPTION, | | 1342 | + "spec": { | | 1343 | + "agentFramework": _TEST_AGENT_ENGINE_FRAMEWORK, | | 1344 | + "classMethods": [_TEST_AGENT_ENGINE_CLASS_METHOD_1], | | 1345 | + "packageSpec": { | | 1346 | + "pickle_object_gcs_uri": _TEST_AGENT_ENGINE_GCS_URI, | | 1347 | + "python_version": _TEST_PYTHON_VERSION, | | 1348 | + "requirements_gcs_uri": _TEST_AGENT_ENGINE_REQUIREMENTS_GCS_URI, | | 1349 | + }, | | 1350 | + "serviceAccount": _TEST_AGENT_ENGINE_CUSTOM_SERVICE_ACCOUNT, | | 1351 | + }, | | 1352 | + }, | | 1353 | + None, | | 1354 | + ) | | 1355 | + | 1279 | 1356 | @pytest.mark.usefixtures("caplog") | 1280 | 1357 | @mock.patch.object(_agent_engines_utils, "_prepare") | 1281 | 1358 | @mock.patch.object(agent_engines.AgentEngines, "_await_operation") | |
Collapse file Copy file name to clipboardExpand all lines: vertexai/_genai/agent_engines.py +28Lines changed: 28 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -60,6 +60,13 @@ def _ReasoningEngineSpec_to_vertex( | 60 | 60 | if getv(from_object, ["package_spec"]) is not None: | 61 | 61 | setv(to_object, ["packageSpec"], getv(from_object, ["package_spec"])) | 62 | 62 |
| | 63 | + if getv(from_object, ["service_account"]) is not None: | | 64 | + setv( | | 65 | + to_object, | | 66 | + ["serviceAccount"], | | 67 | + getv(from_object, ["service_account"]), | | 68 | + ) | | 69 | + | 63 | 70 | return to_object | 64 | 71 |
| 65 | 72 |
| @@ -861,6 +868,13 @@ def _ReasoningEngine_from_vertex( | 861 | 868 | if getv(from_object, ["displayName"]) is not None: | 862 | 869 | setv(to_object, ["display_name"], getv(from_object, ["displayName"])) | 863 | 870 |
| | 871 | + if getv(from_object, ["encryptionSpec"]) is not None: | | 872 | + setv( | | 873 | + to_object, | | 874 | + ["encryption_spec"], | | 875 | + getv(from_object, ["encryptionSpec"]), | | 876 | + ) | | 877 | + | 864 | 878 | if getv(from_object, ["etag"]) is not None: | 865 | 879 | setv(to_object, ["etag"], getv(from_object, ["etag"])) | 866 | 880 |
| @@ -970,12 +984,18 @@ def _Session_from_vertex( | 970 | 984 | if getv(from_object, ["displayName"]) is not None: | 971 | 985 | setv(to_object, ["display_name"], getv(from_object, ["displayName"])) | 972 | 986 |
| | 987 | + if getv(from_object, ["expireTime"]) is not None: | | 988 | + setv(to_object, ["expire_time"], getv(from_object, ["expireTime"])) | | 989 | + | 973 | 990 | if getv(from_object, ["name"]) is not None: | 974 | 991 | setv(to_object, ["name"], getv(from_object, ["name"])) | 975 | 992 |
| 976 | 993 | if getv(from_object, ["sessionState"]) is not None: | 977 | 994 | setv(to_object, ["session_state"], getv(from_object, ["sessionState"])) | 978 | 995 |
| | 996 | + if getv(from_object, ["ttl"]) is not None: | | 997 | + setv(to_object, ["ttl"], getv(from_object, ["ttl"])) | | 998 | + | 979 | 999 | if getv(from_object, ["updateTime"]) is not None: | 980 | 1000 | setv(to_object, ["update_time"], getv(from_object, ["updateTime"])) | 981 | 1001 |
| @@ -2721,6 +2741,7 @@ def create( | 2721 | 2741 | gcs_dir_name=config.gcs_dir_name, | 2722 | 2742 | extra_packages=config.extra_packages, | 2723 | 2743 | env_vars=config.env_vars, | | 2744 | + service_account=config.service_account, | 2724 | 2745 | context_spec=context_spec, | 2725 | 2746 | ) | 2726 | 2747 | operation = self._create(config=api_config) | @@ -2768,6 +2789,7 @@ def _create_config( | 2768 | 2789 | gcs_dir_name: Optional[str] = None, | 2769 | 2790 | extra_packages: Optional[Sequence[str]] = None, | 2770 | 2791 | env_vars: Optional[dict[str, Union[str, Any]]] = None, | | 2792 | + service_account: Optional[str] = None, | 2771 | 2793 | context_spec: Optional[types.ReasoningEngineContextSpecDict] = None, | 2772 | 2794 | ) -> types.UpdateAgentEngineConfigDict: | 2773 | 2795 | import sys | @@ -2860,6 +2882,9 @@ def _create_config( | 2860 | 2882 | ) = self._generate_deployment_spec_or_raise(env_vars=env_vars) | 2861 | 2883 | update_masks.extend(deployment_update_masks) | 2862 | 2884 | agent_engine_spec["deployment_spec"] = deployment_spec | | 2885 | + if service_account is not None: | | 2886 | + agent_engine_spec["service_account"] = service_account | | 2887 | + update_masks.append("spec.service_account") | 2863 | 2888 | class_methods = _agent_engines_utils._generate_class_methods_spec_or_raise( | 2864 | 2889 | agent_engine=agent_engine, | 2865 | 2890 | operations=_agent_engines_utils._get_registered_operations( | @@ -3072,6 +3097,7 @@ def update( | 3072 | 3097 | gcs_dir_name=config.gcs_dir_name, | 3073 | 3098 | extra_packages=config.extra_packages, | 3074 | 3099 | env_vars=config.env_vars, | | 3100 | + service_account=config.service_account, | 3075 | 3101 | context_spec=context_spec, | 3076 | 3102 | ) | 3077 | 3103 | operation = self._update(name=name, config=api_config) | @@ -3128,6 +3154,8 @@ def _stream_query( | 3128 | 3154 | ): | 3129 | 3155 | yield response | 3130 | 3156 |
| | 3157 | + # TODO: b/436704146 - Replace with generated methods | | 3158 | + # TODO: b/437129724 - Add replay test for async stream query | 3131 | 3159 | async def _async_stream_query( | 3132 | 3160 | self, | 3133 | 3161 | *, | |
Collapse file Copy file name to clipboardExpand all lines: vertexai/_genai/types.py +52-4Lines changed: 52 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -170,6 +170,8 @@ class AcceleratorType(_common.CaseInSensitiveEnum): | 170 | 170 | """Nvidia H200 141Gb GPU.""" | 171 | 171 | NVIDIA_B200 = "NVIDIA_B200" | 172 | 172 | """Nvidia B200 GPU.""" | | 173 | + NVIDIA_GB200 = "NVIDIA_GB200" | | 174 | + """Nvidia GB200 GPU.""" | 173 | 175 | TPU_V2 = "TPU_V2" | 174 | 176 | """TPU v2.""" | 175 | 177 | TPU_V3 = "TPU_V3" | @@ -2406,6 +2408,10 @@ class VideoMetadata(_common.BaseModel): | 2406 | 2408 | end_offset: Optional[str] = Field( | 2407 | 2409 | default=None, description="""Optional. The end offset of the video.""" | 2408 | 2410 | ) | | 2411 | + fps: Optional[float] = Field( | | 2412 | + default=None, | | 2413 | + description="""Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].""", | | 2414 | + ) | 2409 | 2415 | start_offset: Optional[str] = Field( | 2410 | 2416 | default=None, description="""Optional. The start offset of the video.""" | 2411 | 2417 | ) | @@ -2417,6 +2423,9 @@ class VideoMetadataDict(TypedDict, total=False): | 2417 | 2423 | end_offset: Optional[str] | 2418 | 2424 | """Optional. The end offset of the video.""" | 2419 | 2425 |
| | 2426 | + fps: Optional[float] | | 2427 | + """Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].""" | | 2428 | + | 2420 | 2429 | start_offset: Optional[str] | 2421 | 2430 | """Optional. The start offset of the video.""" | 2422 | 2431 |
| @@ -3518,6 +3527,10 @@ class ReasoningEngineSpec(_common.BaseModel): | 3518 | 3527 | default=None, | 3519 | 3528 | 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.""", | 3520 | 3529 | ) | | 3530 | + service_account: Optional[str] = Field( | | 3531 | + default=None, | | 3532 | + description="""Optional. The service account that the Reasoning Engine artifact runs as. It should have "roles/storage.objectViewer" for reading the user project's Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used.""", | | 3533 | + ) | 3521 | 3534 |
| 3522 | 3535 |
| 3523 | 3536 | class ReasoningEngineSpecDict(TypedDict, total=False): | @@ -3535,6 +3548,9 @@ class ReasoningEngineSpecDict(TypedDict, total=False): | 3535 | 3548 | package_spec: Optional[ReasoningEngineSpecPackageSpecDict] | 3536 | 3549 | """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.""" | 3537 | 3550 |
| | 3551 | + service_account: Optional[str] | | 3552 | + """Optional. The service account that the Reasoning Engine artifact runs as. It should have "roles/storage.objectViewer" for reading the user project's Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used.""" | | 3553 | + | 3538 | 3554 |
| 3539 | 3555 | ReasoningEngineSpecOrDict = Union[ReasoningEngineSpec, ReasoningEngineSpecDict] | 3540 | 3556 |
| @@ -3544,7 +3560,7 @@ class ReasoningEngineContextSpecMemoryBankConfigGenerationConfig(_common.BaseMod | 3544 | 3560 |
| 3545 | 3561 | model: Optional[str] = Field( | 3546 | 3562 | default=None, | 3547 | | - description="""Required. The model used to generate memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`.""", | | 3563 | + description="""Required. The model used to generate memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}`.""", | 3548 | 3564 | ) | 3549 | 3565 |
| 3550 | 3566 |
| @@ -3554,7 +3570,7 @@ class ReasoningEngineContextSpecMemoryBankConfigGenerationConfigDict( | 3554 | 3570 | """Configuration for how to generate memories.""" | 3555 | 3571 |
| 3556 | 3572 | model: Optional[str] | 3557 | | - """Required. The model used to generate memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`.""" | | 3573 | + """Required. The model used to generate memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}`.""" | 3558 | 3574 |
| 3559 | 3575 |
| 3560 | 3576 | ReasoningEngineContextSpecMemoryBankConfigGenerationConfigOrDict = Union[ | @@ -3570,7 +3586,7 @@ class ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfig( | 3570 | 3586 |
| 3571 | 3587 | embedding_model: Optional[str] = Field( | 3572 | 3588 | default=None, | 3573 | | - description="""Required. The model used to generate embeddings to lookup similar memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`.""", | | 3589 | + description="""Required. The model used to generate embeddings to lookup similar memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}`.""", | 3574 | 3590 | ) | 3575 | 3591 |
| 3576 | 3592 |
| @@ -3580,7 +3596,7 @@ class ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfigDict( | 3580 | 3596 | """Configuration for how to perform similarity search on memories.""" | 3581 | 3597 |
| 3582 | 3598 | embedding_model: Optional[str] | 3583 | | - """Required. The model used to generate embeddings to lookup similar memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`.""" | | 3599 | + """Required. The model used to generate embeddings to lookup similar memories. Format: `projects/{project}/locations/{location}/publishers/google/models/{model}`.""" | 3584 | 3600 |
| 3585 | 3601 |
| 3586 | 3602 | ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfigOrDict = Union[ | @@ -3739,6 +3755,10 @@ class ReasoningEngine(_common.BaseModel): | 3739 | 3755 | default=None, | 3740 | 3756 | description="""Required. The display name of the ReasoningEngine.""", | 3741 | 3757 | ) | | 3758 | + encryption_spec: Optional[EncryptionSpec] = Field( | | 3759 | + default=None, | | 3760 | + description="""Customer-managed encryption key spec for a ReasoningEngine. If set, this ReasoningEngine and all sub-resources of this ReasoningEngine will be secured by this key.""", | | 3761 | + ) | 3742 | 3762 | etag: Optional[str] = Field( | 3743 | 3763 | default=None, | 3744 | 3764 | description="""Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.""", | @@ -3772,6 +3792,9 @@ class ReasoningEngineDict(TypedDict, total=False): | 3772 | 3792 | display_name: Optional[str] | 3773 | 3793 | """Required. The display name of the ReasoningEngine.""" | 3774 | 3794 |
| | 3795 | + encryption_spec: Optional[EncryptionSpecDict] | | 3796 | + """Customer-managed encryption key spec for a ReasoningEngine. If set, this ReasoningEngine and all sub-resources of this ReasoningEngine will be secured by this key.""" | | 3797 | + | 3775 | 3798 | etag: Optional[str] | 3776 | 3799 | """Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.""" | 3777 | 3800 |
| @@ -4117,6 +4140,10 @@ class Session(_common.BaseModel): | 4117 | 4140 | default=None, | 4118 | 4141 | description="""Optional. The display name of the session.""", | 4119 | 4142 | ) | | 4143 | + expire_time: Optional[datetime.datetime] = Field( | | 4144 | + default=None, | | 4145 | + description="""Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input.""", | | 4146 | + ) | 4120 | 4147 | name: Optional[str] = Field( | 4121 | 4148 | default=None, | 4122 | 4149 | description="""Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.""", | @@ -4125,6 +4152,10 @@ class Session(_common.BaseModel): | 4125 | 4152 | default=None, | 4126 | 4153 | description="""Optional. Session specific memory which stores key conversation points.""", | 4127 | 4154 | ) | | 4155 | + ttl: Optional[str] = Field( | | 4156 | + default=None, | | 4157 | + description="""Optional. Input only. The TTL for this session.""", | | 4158 | + ) | 4128 | 4159 | update_time: Optional[datetime.datetime] = Field( | 4129 | 4160 | default=None, | 4130 | 4161 | description="""Output only. Timestamp when the session was updated.""", | @@ -4144,12 +4175,18 @@ class SessionDict(TypedDict, total=False): | 4144 | 4175 | display_name: Optional[str] | 4145 | 4176 | """Optional. The display name of the session.""" | 4146 | 4177 |
| | 4178 | + expire_time: Optional[datetime.datetime] | | 4179 | + """Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input.""" | | 4180 | + | 4147 | 4181 | name: Optional[str] | 4148 | 4182 | """Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.""" | 4149 | 4183 |
| 4150 | 4184 | session_state: Optional[dict[str, Any]] | 4151 | 4185 | """Optional. Session specific memory which stores key conversation points.""" | 4152 | 4186 |
| | 4187 | + ttl: Optional[str] | | 4188 | + """Optional. Input only. The TTL for this session.""" | | 4189 | + | 4153 | 4190 | update_time: Optional[datetime.datetime] | 4154 | 4191 | """Output only. Timestamp when the session was updated.""" | 4155 | 4192 |
| @@ -7523,6 +7560,12 @@ class AgentEngineConfig(_common.BaseModel): | 7523 | 7560 | If it is a dictionary, the keys are the environment variable names, and | 7524 | 7561 | the values are the corresponding values.""", | 7525 | 7562 | ) | | 7563 | + service_account: Optional[str] = Field( | | 7564 | + default=None, | | 7565 | + description="""The service account to be used for the Agent Engine. | | 7566 | +
| | 7567 | + If not specified, the default Reasoning Engine P6SA service agent will be used.""", | | 7568 | + ) | 7526 | 7569 | context_spec: Optional[ReasoningEngineContextSpec] = Field( | 7527 | 7570 | default=None, | 7528 | 7571 | description="""The context spec to be used for the Agent Engine.""", | @@ -7570,6 +7613,11 @@ class AgentEngineConfigDict(TypedDict, total=False): | 7570 | 7613 | If it is a dictionary, the keys are the environment variable names, and | 7571 | 7614 | the values are the corresponding values.""" | 7572 | 7615 |
| | 7616 | + service_account: Optional[str] | | 7617 | + """The service account to be used for the Agent Engine. | | 7618 | +
| | 7619 | + If not specified, the default Reasoning Engine P6SA service agent will be used.""" | | 7620 | + | 7573 | 7621 | context_spec: Optional[ReasoningEngineContextSpecDict] | 7574 | 7622 | """The context spec to be used for the Agent Engine.""" | 7575 | 7623 |
| |
|