This commit is contained in:
@@ -352,7 +352,7 @@ The module allows you to dynamically reference context values for resources crea
|
||||
|
||||
| name | description | type | required | default |
|
||||
|---|---|:---:|:---:|:---:|
|
||||
| [agent_engine_config](variables.tf#L17) | The agent configuration. | <code title="object({ agent_framework = string class_methods = optional(list(any), []) container_concurrency = optional(number) environment_variables = optional(map(string), {}) max_instances = optional(number) min_instances = optional(number) python_version = optional(string, "3.13") resource_limits = optional(object({ cpu = string memory = string })) secret_environment_variables = optional(map(object({ secret_id = string version = optional(string, "latest") })), {}) })">object({…})</code> | ✓ | |
|
||||
| [agent_engine_config](variables.tf#L17) | The agent configuration. | <code title="object({ agent_framework = string class_methods = optional(string) container_concurrency = optional(number) environment_variables = optional(map(string), {}) max_instances = optional(number) min_instances = optional(number) python_version = optional(string, "3.13") resource_limits = optional(object({ cpu = string memory = string })) secret_environment_variables = optional(map(object({ secret_id = string version = optional(string, "latest") })), {}) })">object({…})</code> | ✓ | |
|
||||
| [name](variables.tf#L122) | The name of the agent. | <code>string</code> | ✓ | |
|
||||
| [project_id](variables.tf#L141) | The id of the project where to deploy the agent. | <code>string</code> | ✓ | |
|
||||
| [region](variables.tf#L147) | The region where to deploy the agent. | <code>string</code> | ✓ | |
|
||||
|
||||
@@ -36,9 +36,9 @@ resource "google_vertex_ai_reasoning_engine" "managed" {
|
||||
spec {
|
||||
agent_framework = var.agent_engine_config.agent_framework
|
||||
class_methods = (
|
||||
length(var.agent_engine_config.class_methods) > 0
|
||||
? jsonencode(var.agent_engine_config.class_methods)
|
||||
: null
|
||||
var.agent_engine_config.class_methods == null
|
||||
? null
|
||||
: var.agent_engine_config.class_methods
|
||||
)
|
||||
service_account = local.service_account_email
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ resource "google_vertex_ai_reasoning_engine" "unmanaged" {
|
||||
spec {
|
||||
agent_framework = var.agent_engine_config.agent_framework
|
||||
class_methods = (
|
||||
length(var.agent_engine_config.class_methods) > 0
|
||||
? jsonencode(var.agent_engine_config.class_methods)
|
||||
: null
|
||||
var.agent_engine_config.class_methods == null
|
||||
? null
|
||||
: var.agent_engine_config.class_methods
|
||||
)
|
||||
service_account = local.service_account_email
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2025 Google LLC
|
||||
* Copyright 2026 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2025 Google LLC
|
||||
* Copyright 2026 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -19,7 +19,7 @@ variable "agent_engine_config" {
|
||||
type = object({
|
||||
# Add validation once API stabilizes
|
||||
agent_framework = string
|
||||
class_methods = optional(list(any), [])
|
||||
class_methods = optional(string)
|
||||
container_concurrency = optional(number)
|
||||
environment_variables = optional(map(string), {})
|
||||
max_instances = optional(number)
|
||||
|
||||
Reference in New Issue
Block a user