Skip to content

Commit 854efc6

Browse files
committed
Address review comments for OnlineEvaluator
1 parent 2088314 commit 854efc6

6 files changed

Lines changed: 183 additions & 271 deletions

File tree

mmv1/products/vertexai/OnlineEvaluator.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
name: OnlineEvaluator
1515
description: Description
1616
base_url: projects/{{project}}/locations/{{region}}/onlineEvaluators
17+
min_version: beta
1718
self_link: 'projects/{{project}}/locations/{{region}}/onlineEvaluators/{{name}}'
1819
create_url: projects/{{project}}/locations/{{region}}/onlineEvaluators
1920
update_mask: true
@@ -59,31 +60,37 @@ properties:
5960
type: String
6061
description: 'Optional log view that will be used to query logs.
6162
If empty, the `_Default` view will be used.'
63+
immutable: true
6264
- name: openTelemetry
6365
type: NestedObject
6466
description: Configuration for data source following OpenTelemetry.
67+
immutable: true
6568
properties:
6669
- name: semconvVersion
6770
type: String
6871
required: true
6972
description: 'Defines which version OTel Semantic Convention the data follows.
7073
Can be "1.39.0" or newer.'
74+
immutable: true
7175
- name: traceScope
7276
type: NestedObject
7377
description: 'If chosen, the online evaluator will evaluate single traces matching
7478
specified `filter`.'
79+
immutable: true
7580
properties:
7681
- name: filter
7782
type: Array
7883
description: 'A list of predicates to filter traces. Multiple predicates are
7984
combined using AND.
8085
The maximum number of predicates is 10.'
86+
immutable: true
8187
item_type:
8288
type: NestedObject
8389
properties:
8490
- name: duration
8591
type: NestedObject
8692
description: Defines a predicate for filtering based on a numeric value.
93+
immutable: true
8794
properties:
8895
- name: comparisonOperator
8996
type: String
@@ -96,13 +103,16 @@ properties:
96103
NOT_EQUAL
97104
GREATER_OR_EQUAL
98105
GREATER'
106+
immutable: true
99107
- name: value
100108
type: Double
101109
required: true
102110
description: The value to compare against.
111+
immutable: true
103112
- name: totalTokenUsage
104113
type: NestedObject
105114
description: Defines a predicate for filtering based on a numeric value.
115+
immutable: true
106116
properties:
107117
- name: comparisonOperator
108118
type: String
@@ -115,15 +125,18 @@ properties:
115125
NOT_EQUAL
116126
GREATER_OR_EQUAL
117127
GREATER'
128+
immutable: true
118129
- name: value
119130
type: Double
120131
required: true
121132
description: The value to compare against.
133+
immutable: true
122134
- name: traceView
123135
type: String
124136
description: 'Optional trace view that will be used to query traces.
125137
If empty, the `_Default` view will be used.
126138
NOTE: This field is not supported yet and will be ignored if set.'
139+
immutable: true
127140
required: true
128141
immutable: true
129142
- name: config
@@ -181,8 +194,8 @@ properties:
181194
- `multi_turn_task_success_v1`
182195
- `multi_turn_tool_use_quality_v1`
183196
- `multi_turn_trajectory_quality_v1`
184-
custom_expand: 'templates/terraform/custom_expand/vertexai_online_evaluator_metric.go.tmpl'
185-
custom_flatten: 'templates/terraform/custom_flatten/vertexai_online_evaluator_metric.go.tmpl'
197+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
198+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
186199
- name: metricResourceName
187200
type: String
188201
description: Resource name for registered metric.
@@ -224,4 +237,4 @@ examples:
224237
primary_resource_id: 'evaluator'
225238
vars:
226239
evaluator_name: 'my-evaluator'
227-
min_version: beta
240+
engine_name: 'my-engine'

mmv1/templates/terraform/custom_expand/vertexai_online_evaluator_metric.go.tmpl

Lines changed: 0 additions & 14 deletions
This file was deleted.

mmv1/templates/terraform/custom_flatten/vertexai_online_evaluator_metric.go.tmpl

Lines changed: 0 additions & 11 deletions
This file was deleted.

mmv1/templates/terraform/examples/vertex_ai_online_evaluator_basic.tf.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "google_vertex_ai_reasoning_engine" "engine" {
2-
display_name = "integration-test-engine"
2+
display_name = "{{index $.Vars "engine_name"}}"
33
description = "A basic reasoning engine"
44
labels = {
55
"key" = "value"
@@ -8,7 +8,6 @@ resource "google_vertex_ai_reasoning_engine" "engine" {
88
}
99

1010
resource "google_vertex_ai_online_evaluator" "evaluator" {
11-
project = "my-project-name"
1211
region = "us-central1"
1312
display_name = "{{index $.Vars "evaluator_name"}}"
1413

mmv1/third_party/terraform/services/vertexai/resource_vertex_ai_online_evaluator_test.go

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)