Debian Codegraph @

docs/dyn/ces_v1beta.projects.locations.apps.evaluationExpectations.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="ces_v1beta.html">Gemini Enterprise for Customer Experience API</a> . <a href="ces_v1beta.projects.html">projects</a> . <a href="ces_v1beta.projects.locations.html">locations</a> . <a href="ces_v1beta.projects.locations.apps.html">apps</a> . <a href="ces_v1beta.projects.locations.apps.evaluationExpectations.html">evaluationExpectations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, evaluationExpectationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates an evaluation expectation.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes an evaluation expectation.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of the specified evaluation expectation.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all evaluation expectations in the given app.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates an evaluation expectation.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, evaluationExpectationId=None, x__xgafv=None)</code>
106 <pre>Creates an evaluation expectation.
107
108 Args:
109 parent: string, Required. The app to create the evaluation expectation for. Format: `projects/{project}/locations/{location}/apps/{app}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # An evaluation expectation represents a specific criteria to evaluate against.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
115 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
116 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
117 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
118 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
119 },
120 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
121 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
122 &quot;A String&quot;,
123 ],
124 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
125 }
126
127 evaluationExpectationId: string, Optional. The ID to use for the evaluation expectation, which will become the final component of the evaluation expectation&#x27;s resource name. If not provided, a unique ID will be automatically assigned for the evaluation expectation.
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # An evaluation expectation represents a specific criteria to evaluate against.
137 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
138 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
139 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
140 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
141 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
142 },
143 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
144 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
145 &quot;A String&quot;,
146 ],
147 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
148 }</pre>
149 </div>
150
151 <div class="method">
152 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
153 <pre>Deletes an evaluation expectation.
154
155 Args:
156 name: string, Required. The resource name of the evaluation expectation to delete. (required)
157 etag: string, Optional. The current etag of the evaluation expectation. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the evaluation expectation, deletion will be blocked and an ABORTED error will be returned.
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163 Returns:
164 An object of the form:
165
166 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
167 }</pre>
168 </div>
169
170 <div class="method">
171 <code class="details" id="get">get(name, x__xgafv=None)</code>
172 <pre>Gets details of the specified evaluation expectation.
173
174 Args:
175 name: string, Required. The resource name of the evaluation expectation to retrieve. (required)
176 x__xgafv: string, V1 error format.
177 Allowed values
178 1 - v1 error format
179 2 - v2 error format
180
181 Returns:
182 An object of the form:
183
184 { # An evaluation expectation represents a specific criteria to evaluate against.
185 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
186 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
187 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
188 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
189 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
190 },
191 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
192 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
193 &quot;A String&quot;,
194 ],
195 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
196 }</pre>
197 </div>
198
199 <div class="method">
200 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
201 <pre>Lists all evaluation expectations in the given app.
202
203 Args:
204 parent: string, Required. The resource name of the app to list evaluation expectations from. (required)
205 filter: string, Optional. Filter to be applied when listing the evaluation expectations. See https://google.aip.dev/160 for more details.
206 orderBy: string, Optional. Field to sort by. Only &quot;name&quot; and &quot;create_time&quot;, and &quot;update_time&quot; are supported. Time fields are ordered in descending order, and the name field is ordered in ascending order. If not included, &quot;update_time&quot; will be the default. See https://google.aip.dev/132#ordering for more details.
207 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
208 pageToken: string, Optional. The next_page_token value returned from a previous list EvaluationService.ListEvaluationExpectations call.
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214 Returns:
215 An object of the form:
216
217 { # Response message for EvaluationService.ListEvaluationExpectations.
218 &quot;evaluationExpectations&quot;: [ # The list of evaluation expectations.
219 { # An evaluation expectation represents a specific criteria to evaluate against.
220 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
221 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
222 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
223 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
224 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
225 },
226 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
227 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
228 &quot;A String&quot;,
229 ],
230 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
231 },
232 ],
233 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListEvaluationExpectationsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
234 }</pre>
235 </div>
236
237 <div class="method">
238 <code class="details" id="list_next">list_next()</code>
239 <pre>Retrieves the next page of results.
240
241 Args:
242 previous_request: The request for the previous page. (required)
243 previous_response: The response from the request for the previous page. (required)
244
245 Returns:
246 A request object that you can call &#x27;execute()&#x27; on to request the next
247 page. Returns None if there are no more items in the collection.
248 </pre>
249 </div>
250
251 <div class="method">
252 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
253 <pre>Updates an evaluation expectation.
254
255 Args:
256 name: string, Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}` (required)
257 body: object, The request body.
258 The object takes the form of:
259
260 { # An evaluation expectation represents a specific criteria to evaluate against.
261 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
262 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
263 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
264 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
265 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
266 },
267 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
268 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
269 &quot;A String&quot;,
270 ],
271 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
272 }
273
274 updateMask: string, Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
275 x__xgafv: string, V1 error format.
276 Allowed values
277 1 - v1 error format
278 2 - v2 error format
279
280 Returns:
281 An object of the form:
282
283 { # An evaluation expectation represents a specific criteria to evaluate against.
284 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was created.
285 &quot;displayName&quot;: &quot;A String&quot;, # Required. User-defined display name. Must be unique within the app.
286 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
287 &quot;llmCriteria&quot;: { # Configuration for LLM-based evaluation criteria. # Optional. Evaluation criteria based on an LLM prompt.
288 &quot;prompt&quot;: &quot;A String&quot;, # Required. The prompt/instructions provided to the LLM judge.
289 },
290 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
291 &quot;tags&quot;: [ # Optional. User-defined tags for expectations. Can be used to filter expectations.
292 &quot;A String&quot;,
293 ],
294 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the evaluation expectation was last updated.
295 }</pre>
296 </div>
297
298 </body></html>