Skip to content

Commit 274e0ff

Browse files
yeesiancopybara-github
authored andcommitted
feat: add support for container_spec in AgentEngines
PiperOrigin-RevId: 889505366
1 parent 73207d3 commit 274e0ff

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/genai/types/common.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export declare interface DnsPeeringConfig {
216216
targetProject?: string;
217217
}
218218

219-
/** The PSC interface config. */
219+
/** Configuration for PSC-I. */
220220
export declare interface PscInterfaceConfig {
221221
/** Optional. DNS peering configurations. When specified, Vertex AI will attempt to configure DNS peering zones in the tenant project VPC to resolve the specified domains using the target network's Cloud DNS. The user must grant the dns.peer role to the Vertex AI Service Agent on the target project. */
222222
dnsPeeringConfigs?: DnsPeeringConfig[];
@@ -311,9 +311,7 @@ export declare interface ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource
311311
config?: ReasoningEngineSpecSourceCodeSpecDeveloperConnectConfig;
312312
}
313313

314-
/** The image spec for building an image (within a single build step).
315-
316-
It is based on the config file (i.e. Dockerfile) in the source directory. */
314+
/** The image spec for building an image (within a single build step), based on the config file (i.e. Dockerfile) in the source directory. */
317315
export declare interface ReasoningEngineSpecSourceCodeSpecImageSpec {
318316
/** Optional. Build arguments to be used. They will be passed through --build-arg flags. */
319317
buildArgs?: Record<string, string>;
@@ -345,6 +343,12 @@ export declare interface ReasoningEngineSpecSourceCodeSpec {
345343
pythonSpec?: ReasoningEngineSpecSourceCodeSpecPythonSpec;
346344
}
347345

346+
/** Specification for deploying from a container image. */
347+
export declare interface ReasoningEngineSpecContainerSpec {
348+
/** Required. The Artifact Registry Docker image URI (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-image:tag) of the container image that is to be run on each worker replica. */
349+
imageUri?: string;
350+
}
351+
348352
/** The specification of an agent engine. */
349353
export declare interface ReasoningEngineSpec {
350354
/** Optional. The A2A Agent Card for the agent (if available). It follows the specification at https://a2a-protocol.org/latest/specification/#5-agent-discovery-the-agent-card. */
@@ -365,6 +369,8 @@ export declare interface ReasoningEngineSpec {
365369
serviceAccount?: string;
366370
/** Deploy from source code files with a defined entrypoint. */
367371
sourceCodeSpec?: ReasoningEngineSpecSourceCodeSpec;
372+
/** Deploy from a container image with a defined entrypoint and commands. */
373+
containerSpec?: ReasoningEngineSpecContainerSpec;
368374
}
369375

370376
/** The conversation source event for generating memories. */
@@ -483,7 +489,7 @@ export declare interface ReasoningEngineContextSpecMemoryBankConfig {
483489
ttlConfig?: ReasoningEngineContextSpecMemoryBankConfigTtlConfig;
484490
}
485491

486-
/** The configuration for agent engine sub-resources to manage context. */
492+
/** Configuration for how Agent Engine sub-resources should manage context. */
487493
export declare interface ReasoningEngineContextSpec {
488494
/** Optional. Specification for a Memory Bank, which manages memories for the Agent Engine. */
489495
memoryBankConfig?: ReasoningEngineContextSpecMemoryBankConfig;
@@ -2329,6 +2335,8 @@ export declare interface AgentEngineConfig {
23292335
imageSpec?: ReasoningEngineSpecSourceCodeSpecImageSpec;
23302336
/** The agent config source for the Agent Engine. */
23312337
agentConfigSource?: ReasoningEngineSpecSourceCodeSpecAgentConfigSource;
2338+
/** The container spec for the Agent Engine. */
2339+
containerSpec?: ReasoningEngineSpecContainerSpec;
23322340
}
23332341

23342342
/** Config for checking a query job on an agent engine. */

0 commit comments

Comments
 (0)