eval-studio-client 1.3.0a1__py3-none-any.whl → 1.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. eval_studio_client/api/__init__.py +3 -0
  2. eval_studio_client/api/api/__init__.py +1 -0
  3. eval_studio_client/api/api/h2_ogpte_collection_service_api.py +304 -0
  4. eval_studio_client/api/api/test_lab_service_api.py +18 -1
  5. eval_studio_client/api/docs/AdversarialInputsServiceTestAdversarialInputsRobustnessRequest.md +2 -0
  6. eval_studio_client/api/docs/H2OGPTeCollectionServiceApi.md +77 -0
  7. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +2 -0
  8. eval_studio_client/api/docs/TestLabServiceApi.md +4 -2
  9. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +1 -0
  10. eval_studio_client/api/docs/V1CreateEvaluationRequest.md +1 -0
  11. eval_studio_client/api/docs/V1DeleteWorkflowCollectionsRequest.md +30 -0
  12. eval_studio_client/api/docs/V1DeleteWorkflowCollectionsResponse.md +29 -0
  13. eval_studio_client/api/docs/V1TestLab.md +1 -0
  14. eval_studio_client/api/models/__init__.py +2 -0
  15. eval_studio_client/api/models/adversarial_inputs_service_test_adversarial_inputs_robustness_request.py +14 -2
  16. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +7 -3
  17. eval_studio_client/api/models/test_service_generate_test_cases_request.py +5 -3
  18. eval_studio_client/api/models/v1_create_evaluation_request.py +4 -2
  19. eval_studio_client/api/models/v1_delete_workflow_collections_request.py +97 -0
  20. eval_studio_client/api/models/v1_delete_workflow_collections_response.py +87 -0
  21. eval_studio_client/api/models/v1_test_lab.py +5 -2
  22. eval_studio_client/api/test/test_adversarial_inputs_service_test_adversarial_inputs_robustness_request.py +26 -1
  23. eval_studio_client/api/test/test_h2_ogpte_collection_service_api.py +38 -0
  24. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +3 -1
  25. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +2 -1
  26. eval_studio_client/api/test/test_v1_create_evaluation_request.py +2 -1
  27. eval_studio_client/api/test/test_v1_create_test_lab_response.py +2 -1
  28. eval_studio_client/api/test/test_v1_delete_workflow_collections_request.py +108 -0
  29. eval_studio_client/api/test/test_v1_delete_workflow_collections_response.py +53 -0
  30. eval_studio_client/api/test/test_v1_find_test_lab_response.py +2 -1
  31. eval_studio_client/api/test/test_v1_test_lab.py +2 -1
  32. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +107 -0
  33. {eval_studio_client-1.3.0a1.dist-info → eval_studio_client-1.3.1.dist-info}/METADATA +2 -2
  34. {eval_studio_client-1.3.0a1.dist-info → eval_studio_client-1.3.1.dist-info}/RECORD +35 -26
  35. {eval_studio_client-1.3.0a1.dist-info → eval_studio_client-1.3.1.dist-info}/WHEEL +0 -0
@@ -24,6 +24,7 @@ from eval_studio_client.api.api.dashboard_test_case_annotation_service_api impor
24
24
  from eval_studio_client.api.api.document_service_api import DocumentServiceApi
25
25
  from eval_studio_client.api.api.evaluation_service_api import EvaluationServiceApi
26
26
  from eval_studio_client.api.api.evaluator_service_api import EvaluatorServiceApi
27
+ from eval_studio_client.api.api.h2_ogpte_collection_service_api import H2OGPTeCollectionServiceApi
27
28
  from eval_studio_client.api.api.human_calibration_service_api import HumanCalibrationServiceApi
28
29
  from eval_studio_client.api.api.info_service_api import InfoServiceApi
29
30
  from eval_studio_client.api.api.leaderboard_report_service_api import LeaderboardReportServiceApi
@@ -176,6 +177,8 @@ from eval_studio_client.api.models.v1_delete_leaderboard_response import V1Delet
176
177
  from eval_studio_client.api.models.v1_delete_model_response import V1DeleteModelResponse
177
178
  from eval_studio_client.api.models.v1_delete_test_case_response import V1DeleteTestCaseResponse
178
179
  from eval_studio_client.api.models.v1_delete_test_response import V1DeleteTestResponse
180
+ from eval_studio_client.api.models.v1_delete_workflow_collections_request import V1DeleteWorkflowCollectionsRequest
181
+ from eval_studio_client.api.models.v1_delete_workflow_collections_response import V1DeleteWorkflowCollectionsResponse
179
182
  from eval_studio_client.api.models.v1_delete_workflow_edge_response import V1DeleteWorkflowEdgeResponse
180
183
  from eval_studio_client.api.models.v1_delete_workflow_node_response import V1DeleteWorkflowNodeResponse
181
184
  from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse
@@ -8,6 +8,7 @@ from eval_studio_client.api.api.dashboard_test_case_annotation_service_api impor
8
8
  from eval_studio_client.api.api.document_service_api import DocumentServiceApi
9
9
  from eval_studio_client.api.api.evaluation_service_api import EvaluationServiceApi
10
10
  from eval_studio_client.api.api.evaluator_service_api import EvaluatorServiceApi
11
+ from eval_studio_client.api.api.h2_ogpte_collection_service_api import H2OGPTeCollectionServiceApi
11
12
  from eval_studio_client.api.api.human_calibration_service_api import HumanCalibrationServiceApi
12
13
  from eval_studio_client.api.api.info_service_api import InfoServiceApi
13
14
  from eval_studio_client.api.api.leaderboard_report_service_api import LeaderboardReportServiceApi
@@ -0,0 +1,304 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from eval_studio_client.api.models.v1_delete_workflow_collections_request import V1DeleteWorkflowCollectionsRequest
20
+ from eval_studio_client.api.models.v1_delete_workflow_collections_response import V1DeleteWorkflowCollectionsResponse
21
+
22
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
23
+ from eval_studio_client.api.api_response import ApiResponse
24
+ from eval_studio_client.api.rest import RESTResponseType
25
+
26
+
27
+ class H2OGPTeCollectionServiceApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def h2_ogpte_collection_service_delete_workflow_collections(
42
+ self,
43
+ body: V1DeleteWorkflowCollectionsRequest,
44
+ _request_timeout: Union[
45
+ None,
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Tuple[
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Annotated[StrictFloat, Field(gt=0)]
50
+ ]
51
+ ] = None,
52
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
+ _content_type: Optional[StrictStr] = None,
54
+ _headers: Optional[Dict[StrictStr, Any]] = None,
55
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
+ ) -> V1DeleteWorkflowCollectionsResponse:
57
+ """DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
58
+
59
+
60
+ :param body: (required)
61
+ :type body: V1DeleteWorkflowCollectionsRequest
62
+ :param _request_timeout: timeout setting for this request. If one
63
+ number provided, it will be total request
64
+ timeout. It can also be a pair (tuple) of
65
+ (connection, read) timeouts.
66
+ :type _request_timeout: int, tuple(int, int), optional
67
+ :param _request_auth: set to override the auth_settings for an a single
68
+ request; this effectively ignores the
69
+ authentication in the spec for a single request.
70
+ :type _request_auth: dict, optional
71
+ :param _content_type: force content-type for the request.
72
+ :type _content_type: str, Optional
73
+ :param _headers: set to override the headers for a single
74
+ request; this effectively ignores the headers
75
+ in the spec for a single request.
76
+ :type _headers: dict, optional
77
+ :param _host_index: set to override the host_index for a single
78
+ request; this effectively ignores the host_index
79
+ in the spec for a single request.
80
+ :type _host_index: int, optional
81
+ :return: Returns the result object.
82
+ """ # noqa: E501
83
+
84
+ _param = self._h2_ogpte_collection_service_delete_workflow_collections_serialize(
85
+ body=body,
86
+ _request_auth=_request_auth,
87
+ _content_type=_content_type,
88
+ _headers=_headers,
89
+ _host_index=_host_index
90
+ )
91
+
92
+ _response_types_map: Dict[str, Optional[str]] = {
93
+ '200': "V1DeleteWorkflowCollectionsResponse",
94
+ }
95
+ response_data = self.api_client.call_api(
96
+ *_param,
97
+ _request_timeout=_request_timeout
98
+ )
99
+ response_data.read()
100
+ return self.api_client.response_deserialize(
101
+ response_data=response_data,
102
+ response_types_map=_response_types_map,
103
+ ).data
104
+
105
+
106
+ @validate_call
107
+ def h2_ogpte_collection_service_delete_workflow_collections_with_http_info(
108
+ self,
109
+ body: V1DeleteWorkflowCollectionsRequest,
110
+ _request_timeout: Union[
111
+ None,
112
+ Annotated[StrictFloat, Field(gt=0)],
113
+ Tuple[
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Annotated[StrictFloat, Field(gt=0)]
116
+ ]
117
+ ] = None,
118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
119
+ _content_type: Optional[StrictStr] = None,
120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
122
+ ) -> ApiResponse[V1DeleteWorkflowCollectionsResponse]:
123
+ """DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
124
+
125
+
126
+ :param body: (required)
127
+ :type body: V1DeleteWorkflowCollectionsRequest
128
+ :param _request_timeout: timeout setting for this request. If one
129
+ number provided, it will be total request
130
+ timeout. It can also be a pair (tuple) of
131
+ (connection, read) timeouts.
132
+ :type _request_timeout: int, tuple(int, int), optional
133
+ :param _request_auth: set to override the auth_settings for an a single
134
+ request; this effectively ignores the
135
+ authentication in the spec for a single request.
136
+ :type _request_auth: dict, optional
137
+ :param _content_type: force content-type for the request.
138
+ :type _content_type: str, Optional
139
+ :param _headers: set to override the headers for a single
140
+ request; this effectively ignores the headers
141
+ in the spec for a single request.
142
+ :type _headers: dict, optional
143
+ :param _host_index: set to override the host_index for a single
144
+ request; this effectively ignores the host_index
145
+ in the spec for a single request.
146
+ :type _host_index: int, optional
147
+ :return: Returns the result object.
148
+ """ # noqa: E501
149
+
150
+ _param = self._h2_ogpte_collection_service_delete_workflow_collections_serialize(
151
+ body=body,
152
+ _request_auth=_request_auth,
153
+ _content_type=_content_type,
154
+ _headers=_headers,
155
+ _host_index=_host_index
156
+ )
157
+
158
+ _response_types_map: Dict[str, Optional[str]] = {
159
+ '200': "V1DeleteWorkflowCollectionsResponse",
160
+ }
161
+ response_data = self.api_client.call_api(
162
+ *_param,
163
+ _request_timeout=_request_timeout
164
+ )
165
+ response_data.read()
166
+ return self.api_client.response_deserialize(
167
+ response_data=response_data,
168
+ response_types_map=_response_types_map,
169
+ )
170
+
171
+
172
+ @validate_call
173
+ def h2_ogpte_collection_service_delete_workflow_collections_without_preload_content(
174
+ self,
175
+ body: V1DeleteWorkflowCollectionsRequest,
176
+ _request_timeout: Union[
177
+ None,
178
+ Annotated[StrictFloat, Field(gt=0)],
179
+ Tuple[
180
+ Annotated[StrictFloat, Field(gt=0)],
181
+ Annotated[StrictFloat, Field(gt=0)]
182
+ ]
183
+ ] = None,
184
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
185
+ _content_type: Optional[StrictStr] = None,
186
+ _headers: Optional[Dict[StrictStr, Any]] = None,
187
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
188
+ ) -> RESTResponseType:
189
+ """DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
190
+
191
+
192
+ :param body: (required)
193
+ :type body: V1DeleteWorkflowCollectionsRequest
194
+ :param _request_timeout: timeout setting for this request. If one
195
+ number provided, it will be total request
196
+ timeout. It can also be a pair (tuple) of
197
+ (connection, read) timeouts.
198
+ :type _request_timeout: int, tuple(int, int), optional
199
+ :param _request_auth: set to override the auth_settings for an a single
200
+ request; this effectively ignores the
201
+ authentication in the spec for a single request.
202
+ :type _request_auth: dict, optional
203
+ :param _content_type: force content-type for the request.
204
+ :type _content_type: str, Optional
205
+ :param _headers: set to override the headers for a single
206
+ request; this effectively ignores the headers
207
+ in the spec for a single request.
208
+ :type _headers: dict, optional
209
+ :param _host_index: set to override the host_index for a single
210
+ request; this effectively ignores the host_index
211
+ in the spec for a single request.
212
+ :type _host_index: int, optional
213
+ :return: Returns the result object.
214
+ """ # noqa: E501
215
+
216
+ _param = self._h2_ogpte_collection_service_delete_workflow_collections_serialize(
217
+ body=body,
218
+ _request_auth=_request_auth,
219
+ _content_type=_content_type,
220
+ _headers=_headers,
221
+ _host_index=_host_index
222
+ )
223
+
224
+ _response_types_map: Dict[str, Optional[str]] = {
225
+ '200': "V1DeleteWorkflowCollectionsResponse",
226
+ }
227
+ response_data = self.api_client.call_api(
228
+ *_param,
229
+ _request_timeout=_request_timeout
230
+ )
231
+ return response_data.response
232
+
233
+
234
+ def _h2_ogpte_collection_service_delete_workflow_collections_serialize(
235
+ self,
236
+ body,
237
+ _request_auth,
238
+ _content_type,
239
+ _headers,
240
+ _host_index,
241
+ ) -> RequestSerialized:
242
+
243
+ _host = None
244
+
245
+ _collection_formats: Dict[str, str] = {
246
+ }
247
+
248
+ _path_params: Dict[str, str] = {}
249
+ _query_params: List[Tuple[str, str]] = []
250
+ _header_params: Dict[str, Optional[str]] = _headers or {}
251
+ _form_params: List[Tuple[str, str]] = []
252
+ _files: Dict[str, Union[str, bytes]] = {}
253
+ _body_params: Optional[bytes] = None
254
+
255
+ # process the path parameters
256
+ # process the query parameters
257
+ # process the header parameters
258
+ # process the form parameters
259
+ # process the body parameter
260
+ if body is not None:
261
+ _body_params = body
262
+
263
+
264
+ # set the HTTP header `Accept`
265
+ _header_params['Accept'] = self.api_client.select_header_accept(
266
+ [
267
+ 'application/json'
268
+ ]
269
+ )
270
+
271
+ # set the HTTP header `Content-Type`
272
+ if _content_type:
273
+ _header_params['Content-Type'] = _content_type
274
+ else:
275
+ _default_content_type = (
276
+ self.api_client.select_header_content_type(
277
+ [
278
+ 'application/json'
279
+ ]
280
+ )
281
+ )
282
+ if _default_content_type is not None:
283
+ _header_params['Content-Type'] = _default_content_type
284
+
285
+ # authentication setting
286
+ _auth_settings: List[str] = [
287
+ ]
288
+
289
+ return self.api_client.param_serialize(
290
+ method='POST',
291
+ resource_path='/v1:deleteWorkflowCollections',
292
+ path_params=_path_params,
293
+ query_params=_query_params,
294
+ header_params=_header_params,
295
+ body=_body_params,
296
+ post_params=_form_params,
297
+ files=_files,
298
+ auth_settings=_auth_settings,
299
+ collection_formats=_collection_formats,
300
+ _host=_host,
301
+ _request_auth=_request_auth
302
+ )
303
+
304
+
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictStr
19
+ from pydantic import Field, StrictStr, field_validator
20
20
  from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from eval_studio_client.api.models.v1_create_test_lab_response import V1CreateTestLabResponse
@@ -316,6 +316,7 @@ class TestLabServiceApi:
316
316
  llm_models: Annotated[Optional[List[StrictStr]], Field(description="The LLM models to find Test Lab for.")] = None,
317
317
  model_parameters: Annotated[Optional[StrictStr], Field(description="The parameters to find Test Lab for.")] = None,
318
318
  h2ogpte_collection: Annotated[Optional[StrictStr], Field(description="The existing collection name in H2OGPTe.")] = None,
319
+ evaluation_type: Annotated[Optional[StrictStr], Field(description="The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.")] = None,
319
320
  _request_timeout: Union[
320
321
  None,
321
322
  Annotated[StrictFloat, Field(gt=0)],
@@ -342,6 +343,8 @@ class TestLabServiceApi:
342
343
  :type model_parameters: str
343
344
  :param h2ogpte_collection: The existing collection name in H2OGPTe.
344
345
  :type h2ogpte_collection: str
346
+ :param evaluation_type: The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.
347
+ :type evaluation_type: str
345
348
  :param _request_timeout: timeout setting for this request. If one
346
349
  number provided, it will be total request
347
350
  timeout. It can also be a pair (tuple) of
@@ -370,6 +373,7 @@ class TestLabServiceApi:
370
373
  llm_models=llm_models,
371
374
  model_parameters=model_parameters,
372
375
  h2ogpte_collection=h2ogpte_collection,
376
+ evaluation_type=evaluation_type,
373
377
  _request_auth=_request_auth,
374
378
  _content_type=_content_type,
375
379
  _headers=_headers,
@@ -398,6 +402,7 @@ class TestLabServiceApi:
398
402
  llm_models: Annotated[Optional[List[StrictStr]], Field(description="The LLM models to find Test Lab for.")] = None,
399
403
  model_parameters: Annotated[Optional[StrictStr], Field(description="The parameters to find Test Lab for.")] = None,
400
404
  h2ogpte_collection: Annotated[Optional[StrictStr], Field(description="The existing collection name in H2OGPTe.")] = None,
405
+ evaluation_type: Annotated[Optional[StrictStr], Field(description="The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.")] = None,
401
406
  _request_timeout: Union[
402
407
  None,
403
408
  Annotated[StrictFloat, Field(gt=0)],
@@ -424,6 +429,8 @@ class TestLabServiceApi:
424
429
  :type model_parameters: str
425
430
  :param h2ogpte_collection: The existing collection name in H2OGPTe.
426
431
  :type h2ogpte_collection: str
432
+ :param evaluation_type: The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.
433
+ :type evaluation_type: str
427
434
  :param _request_timeout: timeout setting for this request. If one
428
435
  number provided, it will be total request
429
436
  timeout. It can also be a pair (tuple) of
@@ -452,6 +459,7 @@ class TestLabServiceApi:
452
459
  llm_models=llm_models,
453
460
  model_parameters=model_parameters,
454
461
  h2ogpte_collection=h2ogpte_collection,
462
+ evaluation_type=evaluation_type,
455
463
  _request_auth=_request_auth,
456
464
  _content_type=_content_type,
457
465
  _headers=_headers,
@@ -480,6 +488,7 @@ class TestLabServiceApi:
480
488
  llm_models: Annotated[Optional[List[StrictStr]], Field(description="The LLM models to find Test Lab for.")] = None,
481
489
  model_parameters: Annotated[Optional[StrictStr], Field(description="The parameters to find Test Lab for.")] = None,
482
490
  h2ogpte_collection: Annotated[Optional[StrictStr], Field(description="The existing collection name in H2OGPTe.")] = None,
491
+ evaluation_type: Annotated[Optional[StrictStr], Field(description="The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.")] = None,
483
492
  _request_timeout: Union[
484
493
  None,
485
494
  Annotated[StrictFloat, Field(gt=0)],
@@ -506,6 +515,8 @@ class TestLabServiceApi:
506
515
  :type model_parameters: str
507
516
  :param h2ogpte_collection: The existing collection name in H2OGPTe.
508
517
  :type h2ogpte_collection: str
518
+ :param evaluation_type: The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools.
519
+ :type evaluation_type: str
509
520
  :param _request_timeout: timeout setting for this request. If one
510
521
  number provided, it will be total request
511
522
  timeout. It can also be a pair (tuple) of
@@ -534,6 +545,7 @@ class TestLabServiceApi:
534
545
  llm_models=llm_models,
535
546
  model_parameters=model_parameters,
536
547
  h2ogpte_collection=h2ogpte_collection,
548
+ evaluation_type=evaluation_type,
537
549
  _request_auth=_request_auth,
538
550
  _content_type=_content_type,
539
551
  _headers=_headers,
@@ -557,6 +569,7 @@ class TestLabServiceApi:
557
569
  llm_models,
558
570
  model_parameters,
559
571
  h2ogpte_collection,
572
+ evaluation_type,
560
573
  _request_auth,
561
574
  _content_type,
562
575
  _headers,
@@ -599,6 +612,10 @@ class TestLabServiceApi:
599
612
 
600
613
  _query_params.append(('h2ogpteCollection', h2ogpte_collection))
601
614
 
615
+ if evaluation_type is not None:
616
+
617
+ _query_params.append(('evaluationType', evaluation_type))
618
+
602
619
  # process the header parameters
603
620
  # process the form parameters
604
621
  # process the body parameter
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
23
23
  **baseline_eval** | **str** | Required. Baseline evaluation name. | [optional]
24
24
  **baseline_metrics** | [**Dict[str, V1MetricScores]**](V1MetricScores.md) | Required. Map of baseline metrics from the evaluator to the average metric scores for the evaluator. | [optional]
25
25
  **all_baseline_metrics_scores** | [**Dict[str, V1AllMetricScores]**](V1AllMetricScores.md) | Required. Map of baseline metric to all and every test case metric score. | [optional]
26
+ **test_cases** | [**List[V1TestCase]**](V1TestCase.md) | Optional. Existing adversarial test cases. If provided, these will be merged with newly generated adversarial test cases (if any) and used for evaluation. | [optional]
27
+ **workflow** | **str** | Optional. Resource name of the parent workflow. | [optional]
26
28
 
27
29
  ## Example
28
30
 
@@ -0,0 +1,77 @@
1
+ # eval_studio_client.api.H2OGPTeCollectionServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**h2_ogpte_collection_service_delete_workflow_collections**](H2OGPTeCollectionServiceApi.md#h2_ogpte_collection_service_delete_workflow_collections) | **POST** /v1:deleteWorkflowCollections | DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
8
+
9
+
10
+ # **h2_ogpte_collection_service_delete_workflow_collections**
11
+ > V1DeleteWorkflowCollectionsResponse h2_ogpte_collection_service_delete_workflow_collections(body)
12
+
13
+ DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
14
+
15
+ ### Example
16
+
17
+
18
+ ```python
19
+ import eval_studio_client.api
20
+ from eval_studio_client.api.models.v1_delete_workflow_collections_request import V1DeleteWorkflowCollectionsRequest
21
+ from eval_studio_client.api.models.v1_delete_workflow_collections_response import V1DeleteWorkflowCollectionsResponse
22
+ from eval_studio_client.api.rest import ApiException
23
+ from pprint import pprint
24
+
25
+ # Defining the host is optional and defaults to http://localhost
26
+ # See configuration.py for a list of all supported configuration parameters.
27
+ configuration = eval_studio_client.api.Configuration(
28
+ host = "http://localhost"
29
+ )
30
+
31
+
32
+ # Enter a context with an instance of the API client
33
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
34
+ # Create an instance of the API class
35
+ api_instance = eval_studio_client.api.H2OGPTeCollectionServiceApi(api_client)
36
+ body = eval_studio_client.api.V1DeleteWorkflowCollectionsRequest() # V1DeleteWorkflowCollectionsRequest |
37
+
38
+ try:
39
+ # DeleteCollection deletes existing managed h2oGPTe collection on the h2oGPTe server.
40
+ api_response = api_instance.h2_ogpte_collection_service_delete_workflow_collections(body)
41
+ print("The response of H2OGPTeCollectionServiceApi->h2_ogpte_collection_service_delete_workflow_collections:\n")
42
+ pprint(api_response)
43
+ except Exception as e:
44
+ print("Exception when calling H2OGPTeCollectionServiceApi->h2_ogpte_collection_service_delete_workflow_collections: %s\n" % e)
45
+ ```
46
+
47
+
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **body** | [**V1DeleteWorkflowCollectionsRequest**](V1DeleteWorkflowCollectionsRequest.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**V1DeleteWorkflowCollectionsResponse**](V1DeleteWorkflowCollectionsResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+ ### HTTP response details
70
+
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ **200** | A successful response. | - |
74
+ **0** | An unexpected error response. | - |
75
+
76
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
77
+
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
14
14
  **generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional. Type of questions to generate TestCases for. If not specified, all types of questions are selected. | [optional]
15
15
  **h2ogpte_collection_id** | **str** | Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be created. | [optional]
16
16
  **topics** | **List[str]** | Optional. Topics to generate questions for. If not specified, use document summarization as topic generation. | [optional]
17
+ **allow_duplicates** | **bool** | Optional. Whether to allow duplicates in the generated TestCases. | [optional]
18
+ **workflow** | **str** | Optional. The workflow resource name to associate with the generated prompts. | [optional]
17
19
 
18
20
  ## Example
19
21
 
@@ -76,7 +76,7 @@ No authorization required
76
76
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
77
77
 
78
78
  # **test_lab_service_find_test_lab**
79
- > V1FindTestLabResponse test_lab_service_find_test_lab(model=model, test_cases=test_cases, llm_models=llm_models, model_parameters=model_parameters, h2ogpte_collection=h2ogpte_collection)
79
+ > V1FindTestLabResponse test_lab_service_find_test_lab(model=model, test_cases=test_cases, llm_models=llm_models, model_parameters=model_parameters, h2ogpte_collection=h2ogpte_collection, evaluation_type=evaluation_type)
80
80
 
81
81
 
82
82
 
@@ -105,9 +105,10 @@ with eval_studio_client.api.ApiClient(configuration) as api_client:
105
105
  llm_models = ['llm_models_example'] # List[str] | The LLM models to find Test Lab for. (optional)
106
106
  model_parameters = 'model_parameters_example' # str | The parameters to find Test Lab for. (optional)
107
107
  h2ogpte_collection = 'h2ogpte_collection_example' # str | The existing collection name in H2OGPTe. (optional)
108
+ evaluation_type = 'EVALUATION_TYPE_UNSPECIFIED' # str | The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools. (optional) (default to 'EVALUATION_TYPE_UNSPECIFIED')
108
109
 
109
110
  try:
110
- api_response = api_instance.test_lab_service_find_test_lab(model=model, test_cases=test_cases, llm_models=llm_models, model_parameters=model_parameters, h2ogpte_collection=h2ogpte_collection)
111
+ api_response = api_instance.test_lab_service_find_test_lab(model=model, test_cases=test_cases, llm_models=llm_models, model_parameters=model_parameters, h2ogpte_collection=h2ogpte_collection, evaluation_type=evaluation_type)
111
112
  print("The response of TestLabServiceApi->test_lab_service_find_test_lab:\n")
112
113
  pprint(api_response)
113
114
  except Exception as e:
@@ -126,6 +127,7 @@ Name | Type | Description | Notes
126
127
  **llm_models** | [**List[str]**](str.md)| The LLM models to find Test Lab for. | [optional]
127
128
  **model_parameters** | **str**| The parameters to find Test Lab for. | [optional]
128
129
  **h2ogpte_collection** | **str**| The existing collection name in H2OGPTe. | [optional]
130
+ **evaluation_type** | **str**| The evaluation type for the Test Lab. - EVALUATION_TYPE_UNSPECIFIED: Unspecified type. - EVALUATION_TYPE_LLM: LLM Evaluation, where evaluated model doesn't retrieve any context. - EVALUATION_TYPE_RAG: RAG Evaluation, where evaluated model retrieves context from a given collection. - EVALUATION_TYPE_AGENT: Agent Evaluation, where evaluated model is an agent that can interact with tools. | [optional] [default to 'EVALUATION_TYPE_UNSPECIFIED']
129
131
 
130
132
  ### Return type
131
133
 
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **h2ogpte_collection_id** | **str** | Optional. ID of the h2oGPTe collection to use. If provided, documents referenced by Test and any specified chunks are ignored. This field is required if Test does not reference any documents and no chunks are provided. If this field is left empty, a temporary collection will be created. | [optional]
13
13
  **topics** | **List[str]** | Optional. Topics to generate questions for. If not specified, use document summarization as topic generation. | [optional]
14
14
  **chunks** | [**List[V1Context]**](V1Context.md) | Optional. The list of chunks to use for generation. If set, the Documents assigned to the Test and h2ogpte_collection_id are ignored. | [optional]
15
+ **allow_duplicates** | **bool** | Optional. Whether to allow duplicates in the generated TestCases. | [optional]
15
16
 
16
17
  ## Example
17
18
 
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
16
16
  **h2ogpte_collection** | **str** | The existing collection name in H2OGPTe. | [optional]
17
17
  **default_h2ogpte_model** | [**V1Model**](V1Model.md) | | [optional]
18
18
  **evaluation_type** | [**V1EvaluationType**](V1EvaluationType.md) | | [optional]
19
+ **workflow** | **str** | Optional. The resource name of the workflow to which the evaluation belongs to. | [optional]
19
20
 
20
21
  ## Example
21
22
 
@@ -0,0 +1,30 @@
1
+ # V1DeleteWorkflowCollectionsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **model** | [**V1Model**](V1Model.md) | | [optional]
9
+ **workflow** | [**V1Workflow**](V1Workflow.md) | | [optional]
10
+
11
+ ## Example
12
+
13
+ ```python
14
+ from eval_studio_client.api.models.v1_delete_workflow_collections_request import V1DeleteWorkflowCollectionsRequest
15
+
16
+ # TODO update the JSON string below
17
+ json = "{}"
18
+ # create an instance of V1DeleteWorkflowCollectionsRequest from a JSON string
19
+ v1_delete_workflow_collections_request_instance = V1DeleteWorkflowCollectionsRequest.from_json(json)
20
+ # print the JSON string representation of the object
21
+ print(V1DeleteWorkflowCollectionsRequest.to_json())
22
+
23
+ # convert the object into a dict
24
+ v1_delete_workflow_collections_request_dict = v1_delete_workflow_collections_request_instance.to_dict()
25
+ # create an instance of V1DeleteWorkflowCollectionsRequest from a dict
26
+ v1_delete_workflow_collections_request_from_dict = V1DeleteWorkflowCollectionsRequest.from_dict(v1_delete_workflow_collections_request_dict)
27
+ ```
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29
+
30
+
@@ -0,0 +1,29 @@
1
+ # V1DeleteWorkflowCollectionsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **collections** | **List[str]** | Output Only. The deleted collections ID. | [optional]
9
+
10
+ ## Example
11
+
12
+ ```python
13
+ from eval_studio_client.api.models.v1_delete_workflow_collections_response import V1DeleteWorkflowCollectionsResponse
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of V1DeleteWorkflowCollectionsResponse from a JSON string
18
+ v1_delete_workflow_collections_response_instance = V1DeleteWorkflowCollectionsResponse.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print(V1DeleteWorkflowCollectionsResponse.to_json())
21
+
22
+ # convert the object into a dict
23
+ v1_delete_workflow_collections_response_dict = v1_delete_workflow_collections_response_instance.to_dict()
24
+ # create an instance of V1DeleteWorkflowCollectionsResponse from a dict
25
+ v1_delete_workflow_collections_response_from_dict = V1DeleteWorkflowCollectionsResponse.from_dict(v1_delete_workflow_collections_response_dict)
26
+ ```
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28
+
29
+
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **llm_models** | **List[str]** | Immutable. List of LLM models used. | [optional]
19
19
  **model_parameters** | **str** | Immutable. Optional. Parameters overrides in JSON format. | [optional]
20
20
  **h2ogpte_collection** | **str** | The existing collection name in H2OGPTe. | [optional]
21
+ **evaluation_type** | [**V1EvaluationType**](V1EvaluationType.md) | | [optional]
21
22
 
22
23
  ## Example
23
24
 
@@ -131,6 +131,8 @@ from eval_studio_client.api.models.v1_delete_leaderboard_response import V1Delet
131
131
  from eval_studio_client.api.models.v1_delete_model_response import V1DeleteModelResponse
132
132
  from eval_studio_client.api.models.v1_delete_test_case_response import V1DeleteTestCaseResponse
133
133
  from eval_studio_client.api.models.v1_delete_test_response import V1DeleteTestResponse
134
+ from eval_studio_client.api.models.v1_delete_workflow_collections_request import V1DeleteWorkflowCollectionsRequest
135
+ from eval_studio_client.api.models.v1_delete_workflow_collections_response import V1DeleteWorkflowCollectionsResponse
134
136
  from eval_studio_client.api.models.v1_delete_workflow_edge_response import V1DeleteWorkflowEdgeResponse
135
137
  from eval_studio_client.api.models.v1_delete_workflow_node_response import V1DeleteWorkflowNodeResponse
136
138
  from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse