eval-studio-client 1.0.0a1__py3-none-any.whl → 1.0.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 (180) hide show
  1. eval_studio_client/api/__init__.py +43 -0
  2. eval_studio_client/api/api/__init__.py +5 -0
  3. eval_studio_client/api/api/human_calibration_service_api.py +304 -0
  4. eval_studio_client/api/api/perturbator_service_api.py +268 -1
  5. eval_studio_client/api/api/prompt_library_service_api.py +669 -0
  6. eval_studio_client/api/api/test_service_api.py +568 -0
  7. eval_studio_client/api/api/workflow_edge_service_api.py +296 -0
  8. eval_studio_client/api/api/workflow_node_service_api.py +1634 -0
  9. eval_studio_client/api/api/workflow_service_api.py +1609 -0
  10. eval_studio_client/api/docs/HumanCalibrationServiceApi.md +77 -0
  11. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -0
  12. eval_studio_client/api/docs/PerturbatorServiceApi.md +33 -3
  13. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +2 -1
  14. eval_studio_client/api/docs/PromptLibraryServiceApi.md +155 -0
  15. eval_studio_client/api/docs/ProtobufNullValue.md +12 -0
  16. eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +1 -0
  17. eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +44 -0
  18. eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +44 -0
  19. eval_studio_client/api/docs/TestServiceApi.md +140 -0
  20. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +1 -0
  21. eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +32 -0
  22. eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +35 -0
  23. eval_studio_client/api/docs/TestServicePerturbTestRequest.md +1 -0
  24. eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +29 -0
  25. eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +29 -0
  26. eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +29 -0
  27. eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +29 -0
  28. eval_studio_client/api/docs/V1CreateEvaluationRequest.md +1 -0
  29. eval_studio_client/api/docs/V1CreateWorkflowResponse.md +29 -0
  30. eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +29 -0
  31. eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +29 -0
  32. eval_studio_client/api/docs/V1EstimateThresholdRequest.md +33 -0
  33. eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +30 -0
  34. eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +29 -0
  35. eval_studio_client/api/docs/V1GetWorkflowResponse.md +29 -0
  36. eval_studio_client/api/docs/V1ImportEvaluationRequest.md +1 -0
  37. eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +29 -0
  38. eval_studio_client/api/docs/V1ImportTestCasesRequest.md +33 -0
  39. eval_studio_client/api/docs/V1LabeledTestCase.md +31 -0
  40. eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +29 -0
  41. eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +29 -0
  42. eval_studio_client/api/docs/V1ListWorkflowsResponse.md +29 -0
  43. eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +29 -0
  44. eval_studio_client/api/docs/V1PromptLibraryItem.md +42 -0
  45. eval_studio_client/api/docs/V1TestCase.md +1 -0
  46. eval_studio_client/api/docs/V1TestSuiteEvaluates.md +11 -0
  47. eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +29 -0
  48. eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +29 -0
  49. eval_studio_client/api/docs/V1Workflow.md +46 -0
  50. eval_studio_client/api/docs/V1WorkflowEdge.md +40 -0
  51. eval_studio_client/api/docs/V1WorkflowEdgeType.md +12 -0
  52. eval_studio_client/api/docs/V1WorkflowNode.md +46 -0
  53. eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +40 -0
  54. eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +29 -0
  55. eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +30 -0
  56. eval_studio_client/api/docs/V1WorkflowNodeStatus.md +12 -0
  57. eval_studio_client/api/docs/V1WorkflowNodeType.md +12 -0
  58. eval_studio_client/api/docs/V1WorkflowNodeView.md +12 -0
  59. eval_studio_client/api/docs/V1WorkflowType.md +12 -0
  60. eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +76 -0
  61. eval_studio_client/api/docs/WorkflowNodeServiceApi.md +423 -0
  62. eval_studio_client/api/docs/WorkflowServiceApi.md +417 -0
  63. eval_studio_client/api/models/__init__.py +38 -0
  64. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +8 -2
  65. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +5 -3
  66. eval_studio_client/api/models/protobuf_null_value.py +36 -0
  67. eval_studio_client/api/models/required_the_test_case_to_update.py +6 -2
  68. eval_studio_client/api/models/required_the_updated_workflow.py +152 -0
  69. eval_studio_client/api/models/required_the_updated_workflow_node.py +152 -0
  70. eval_studio_client/api/models/test_service_generate_test_cases_request.py +4 -2
  71. eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +93 -0
  72. eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +99 -0
  73. eval_studio_client/api/models/test_service_perturb_test_request.py +4 -2
  74. eval_studio_client/api/models/v1_batch_delete_workflows_request.py +87 -0
  75. eval_studio_client/api/models/v1_batch_delete_workflows_response.py +95 -0
  76. eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +95 -0
  77. eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +95 -0
  78. eval_studio_client/api/models/v1_create_evaluation_request.py +7 -2
  79. eval_studio_client/api/models/v1_create_workflow_response.py +91 -0
  80. eval_studio_client/api/models/v1_delete_workflow_node_response.py +91 -0
  81. eval_studio_client/api/models/v1_delete_workflow_response.py +91 -0
  82. eval_studio_client/api/models/v1_estimate_threshold_request.py +103 -0
  83. eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +89 -0
  84. eval_studio_client/api/models/v1_get_workflow_node_response.py +91 -0
  85. eval_studio_client/api/models/v1_get_workflow_response.py +91 -0
  86. eval_studio_client/api/models/v1_import_evaluation_request.py +7 -2
  87. eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +91 -0
  88. eval_studio_client/api/models/v1_import_test_cases_request.py +95 -0
  89. eval_studio_client/api/models/v1_labeled_test_case.py +91 -0
  90. eval_studio_client/api/models/v1_list_prompt_library_items_response.py +95 -0
  91. eval_studio_client/api/models/v1_list_test_case_library_items_response.py +95 -0
  92. eval_studio_client/api/models/v1_list_workflows_response.py +95 -0
  93. eval_studio_client/api/models/v1_process_workflow_node_response.py +91 -0
  94. eval_studio_client/api/models/v1_prompt_library_item.py +129 -0
  95. eval_studio_client/api/models/v1_test_case.py +6 -2
  96. eval_studio_client/api/models/v1_test_suite_evaluates.py +39 -0
  97. eval_studio_client/api/models/v1_update_workflow_node_response.py +91 -0
  98. eval_studio_client/api/models/v1_update_workflow_response.py +91 -0
  99. eval_studio_client/api/models/v1_workflow.py +156 -0
  100. eval_studio_client/api/models/v1_workflow_edge.py +123 -0
  101. eval_studio_client/api/models/v1_workflow_edge_type.py +37 -0
  102. eval_studio_client/api/models/v1_workflow_node.py +156 -0
  103. eval_studio_client/api/models/v1_workflow_node_artifact.py +122 -0
  104. eval_studio_client/api/models/v1_workflow_node_artifacts.py +97 -0
  105. eval_studio_client/api/models/v1_workflow_node_attributes.py +87 -0
  106. eval_studio_client/api/models/v1_workflow_node_status.py +40 -0
  107. eval_studio_client/api/models/v1_workflow_node_type.py +41 -0
  108. eval_studio_client/api/models/v1_workflow_node_view.py +38 -0
  109. eval_studio_client/api/models/v1_workflow_type.py +37 -0
  110. eval_studio_client/api/test/test_human_calibration_service_api.py +38 -0
  111. eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +20 -2
  112. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +4 -1
  113. eval_studio_client/api/test/test_prompt_library_service_api.py +43 -0
  114. eval_studio_client/api/test/test_protobuf_null_value.py +33 -0
  115. eval_studio_client/api/test/test_required_the_test_case_to_update.py +4 -1
  116. eval_studio_client/api/test/test_required_the_updated_workflow.py +88 -0
  117. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +80 -0
  118. eval_studio_client/api/test/test_test_service_api.py +12 -0
  119. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +4 -1
  120. eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +56 -0
  121. eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +63 -0
  122. eval_studio_client/api/test/test_test_service_perturb_test_request.py +4 -1
  123. eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +4 -1
  124. eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +53 -0
  125. eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +92 -0
  126. eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +64 -0
  127. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +84 -0
  128. eval_studio_client/api/test/test_v1_create_evaluation_request.py +20 -2
  129. eval_studio_client/api/test/test_v1_create_test_case_response.py +4 -1
  130. eval_studio_client/api/test/test_v1_create_workflow_response.py +90 -0
  131. eval_studio_client/api/test/test_v1_delete_test_case_response.py +4 -1
  132. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +82 -0
  133. eval_studio_client/api/test/test_v1_delete_workflow_response.py +90 -0
  134. eval_studio_client/api/test/test_v1_estimate_threshold_request.py +60 -0
  135. eval_studio_client/api/test/test_v1_evaluation_test.py +4 -1
  136. eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +4 -1
  137. eval_studio_client/api/test/test_v1_get_test_case_response.py +4 -1
  138. eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +56 -0
  139. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +82 -0
  140. eval_studio_client/api/test/test_v1_get_workflow_response.py +90 -0
  141. eval_studio_client/api/test/test_v1_import_evaluation_request.py +16 -1
  142. eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +71 -0
  143. eval_studio_client/api/test/test_v1_import_test_cases_request.py +57 -0
  144. eval_studio_client/api/test/test_v1_labeled_test_case.py +53 -0
  145. eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +71 -0
  146. eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +71 -0
  147. eval_studio_client/api/test/test_v1_list_test_cases_response.py +4 -1
  148. eval_studio_client/api/test/test_v1_list_workflows_response.py +92 -0
  149. eval_studio_client/api/test/test_v1_process_workflow_node_response.py +71 -0
  150. eval_studio_client/api/test/test_v1_prompt_library_item.py +68 -0
  151. eval_studio_client/api/test/test_v1_test_case.py +4 -1
  152. eval_studio_client/api/test/test_v1_test_suite_evaluates.py +33 -0
  153. eval_studio_client/api/test/test_v1_update_test_case_response.py +4 -1
  154. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +82 -0
  155. eval_studio_client/api/test/test_v1_update_workflow_response.py +90 -0
  156. eval_studio_client/api/test/test_v1_workflow.py +89 -0
  157. eval_studio_client/api/test/test_v1_workflow_edge.py +61 -0
  158. eval_studio_client/api/test/test_v1_workflow_edge_type.py +33 -0
  159. eval_studio_client/api/test/test_v1_workflow_node.py +81 -0
  160. eval_studio_client/api/test/test_v1_workflow_node_artifact.py +61 -0
  161. eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +64 -0
  162. eval_studio_client/api/test/test_v1_workflow_node_attributes.py +51 -0
  163. eval_studio_client/api/test/test_v1_workflow_node_status.py +33 -0
  164. eval_studio_client/api/test/test_v1_workflow_node_type.py +33 -0
  165. eval_studio_client/api/test/test_v1_workflow_node_view.py +33 -0
  166. eval_studio_client/api/test/test_v1_workflow_type.py +33 -0
  167. eval_studio_client/api/test/test_workflow_edge_service_api.py +38 -0
  168. eval_studio_client/api/test/test_workflow_node_service_api.py +73 -0
  169. eval_studio_client/api/test/test_workflow_service_api.py +73 -0
  170. eval_studio_client/client.py +7 -0
  171. eval_studio_client/dashboards.py +66 -18
  172. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +2665 -794
  173. eval_studio_client/leaderboards.py +125 -0
  174. eval_studio_client/models.py +3 -42
  175. eval_studio_client/test_labs.py +49 -21
  176. eval_studio_client/tests.py +221 -51
  177. eval_studio_client/utils.py +26 -0
  178. {eval_studio_client-1.0.0a1.dist-info → eval_studio_client-1.0.1.dist-info}/METADATA +1 -2
  179. {eval_studio_client-1.0.0a1.dist-info → eval_studio_client-1.0.1.dist-info}/RECORD +180 -50
  180. {eval_studio_client-1.0.0a1.dist-info → eval_studio_client-1.0.1.dist-info}/WHEEL +1 -1
@@ -0,0 +1,417 @@
1
+ # eval_studio_client.api.WorkflowServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**workflow_service_batch_delete_workflows**](WorkflowServiceApi.md#workflow_service_batch_delete_workflows) | **POST** /v1/workflows:batchDelete | BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
8
+ [**workflow_service_create_workflow**](WorkflowServiceApi.md#workflow_service_create_workflow) | **POST** /v1/workflows | CreateWorkflow creates a Workflow.
9
+ [**workflow_service_delete_workflow**](WorkflowServiceApi.md#workflow_service_delete_workflow) | **DELETE** /v1/{name_8} | DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
10
+ [**workflow_service_get_workflow**](WorkflowServiceApi.md#workflow_service_get_workflow) | **GET** /v1/{name_11} | GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
11
+ [**workflow_service_list_workflows**](WorkflowServiceApi.md#workflow_service_list_workflows) | **GET** /v1/workflows | ListWorkflows lists Workflows.
12
+ [**workflow_service_update_workflow**](WorkflowServiceApi.md#workflow_service_update_workflow) | **PATCH** /v1/{workflow.name} | UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
13
+
14
+
15
+ # **workflow_service_batch_delete_workflows**
16
+ > V1BatchDeleteWorkflowsResponse workflow_service_batch_delete_workflows(body)
17
+
18
+ BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
19
+
20
+ ### Example
21
+
22
+
23
+ ```python
24
+ import eval_studio_client.api
25
+ from eval_studio_client.api.models.v1_batch_delete_workflows_request import V1BatchDeleteWorkflowsRequest
26
+ from eval_studio_client.api.models.v1_batch_delete_workflows_response import V1BatchDeleteWorkflowsResponse
27
+ from eval_studio_client.api.rest import ApiException
28
+ from pprint import pprint
29
+
30
+ # Defining the host is optional and defaults to http://localhost
31
+ # See configuration.py for a list of all supported configuration parameters.
32
+ configuration = eval_studio_client.api.Configuration(
33
+ host = "http://localhost"
34
+ )
35
+
36
+
37
+ # Enter a context with an instance of the API client
38
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
39
+ # Create an instance of the API class
40
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
41
+ body = eval_studio_client.api.V1BatchDeleteWorkflowsRequest() # V1BatchDeleteWorkflowsRequest |
42
+
43
+ try:
44
+ # BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
45
+ api_response = api_instance.workflow_service_batch_delete_workflows(body)
46
+ print("The response of WorkflowServiceApi->workflow_service_batch_delete_workflows:\n")
47
+ pprint(api_response)
48
+ except Exception as e:
49
+ print("Exception when calling WorkflowServiceApi->workflow_service_batch_delete_workflows: %s\n" % e)
50
+ ```
51
+
52
+
53
+
54
+ ### Parameters
55
+
56
+
57
+ Name | Type | Description | Notes
58
+ ------------- | ------------- | ------------- | -------------
59
+ **body** | [**V1BatchDeleteWorkflowsRequest**](V1BatchDeleteWorkflowsRequest.md)| |
60
+
61
+ ### Return type
62
+
63
+ [**V1BatchDeleteWorkflowsResponse**](V1BatchDeleteWorkflowsResponse.md)
64
+
65
+ ### Authorization
66
+
67
+ No authorization required
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: application/json
72
+ - **Accept**: application/json
73
+
74
+ ### HTTP response details
75
+
76
+ | Status code | Description | Response headers |
77
+ |-------------|-------------|------------------|
78
+ **200** | A successful response. | - |
79
+ **0** | An unexpected error response. | - |
80
+
81
+ [[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)
82
+
83
+ # **workflow_service_create_workflow**
84
+ > V1CreateWorkflowResponse workflow_service_create_workflow(workflow)
85
+
86
+ CreateWorkflow creates a Workflow.
87
+
88
+ ### Example
89
+
90
+
91
+ ```python
92
+ import eval_studio_client.api
93
+ from eval_studio_client.api.models.v1_create_workflow_response import V1CreateWorkflowResponse
94
+ from eval_studio_client.api.models.v1_workflow import V1Workflow
95
+ from eval_studio_client.api.rest import ApiException
96
+ from pprint import pprint
97
+
98
+ # Defining the host is optional and defaults to http://localhost
99
+ # See configuration.py for a list of all supported configuration parameters.
100
+ configuration = eval_studio_client.api.Configuration(
101
+ host = "http://localhost"
102
+ )
103
+
104
+
105
+ # Enter a context with an instance of the API client
106
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
107
+ # Create an instance of the API class
108
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
109
+ workflow = eval_studio_client.api.V1Workflow() # V1Workflow | Required. The Workflow to create.
110
+
111
+ try:
112
+ # CreateWorkflow creates a Workflow.
113
+ api_response = api_instance.workflow_service_create_workflow(workflow)
114
+ print("The response of WorkflowServiceApi->workflow_service_create_workflow:\n")
115
+ pprint(api_response)
116
+ except Exception as e:
117
+ print("Exception when calling WorkflowServiceApi->workflow_service_create_workflow: %s\n" % e)
118
+ ```
119
+
120
+
121
+
122
+ ### Parameters
123
+
124
+
125
+ Name | Type | Description | Notes
126
+ ------------- | ------------- | ------------- | -------------
127
+ **workflow** | [**V1Workflow**](V1Workflow.md)| Required. The Workflow to create. |
128
+
129
+ ### Return type
130
+
131
+ [**V1CreateWorkflowResponse**](V1CreateWorkflowResponse.md)
132
+
133
+ ### Authorization
134
+
135
+ No authorization required
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: application/json
140
+ - **Accept**: application/json
141
+
142
+ ### HTTP response details
143
+
144
+ | Status code | Description | Response headers |
145
+ |-------------|-------------|------------------|
146
+ **200** | A successful response. | - |
147
+ **0** | An unexpected error response. | - |
148
+
149
+ [[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)
150
+
151
+ # **workflow_service_delete_workflow**
152
+ > V1DeleteWorkflowResponse workflow_service_delete_workflow(name_8)
153
+
154
+ DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
155
+
156
+ ### Example
157
+
158
+
159
+ ```python
160
+ import eval_studio_client.api
161
+ from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse
162
+ from eval_studio_client.api.rest import ApiException
163
+ from pprint import pprint
164
+
165
+ # Defining the host is optional and defaults to http://localhost
166
+ # See configuration.py for a list of all supported configuration parameters.
167
+ configuration = eval_studio_client.api.Configuration(
168
+ host = "http://localhost"
169
+ )
170
+
171
+
172
+ # Enter a context with an instance of the API client
173
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
174
+ # Create an instance of the API class
175
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
176
+ name_8 = 'name_8_example' # str | Required. The name of the Workflow to delete.
177
+
178
+ try:
179
+ # DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
180
+ api_response = api_instance.workflow_service_delete_workflow(name_8)
181
+ print("The response of WorkflowServiceApi->workflow_service_delete_workflow:\n")
182
+ pprint(api_response)
183
+ except Exception as e:
184
+ print("Exception when calling WorkflowServiceApi->workflow_service_delete_workflow: %s\n" % e)
185
+ ```
186
+
187
+
188
+
189
+ ### Parameters
190
+
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **name_8** | **str**| Required. The name of the Workflow to delete. |
195
+
196
+ ### Return type
197
+
198
+ [**V1DeleteWorkflowResponse**](V1DeleteWorkflowResponse.md)
199
+
200
+ ### Authorization
201
+
202
+ No authorization required
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: application/json
208
+
209
+ ### HTTP response details
210
+
211
+ | Status code | Description | Response headers |
212
+ |-------------|-------------|------------------|
213
+ **200** | A successful response. | - |
214
+ **0** | An unexpected error response. | - |
215
+
216
+ [[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)
217
+
218
+ # **workflow_service_get_workflow**
219
+ > V1GetWorkflowResponse workflow_service_get_workflow(name_11)
220
+
221
+ GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
222
+
223
+ ### Example
224
+
225
+
226
+ ```python
227
+ import eval_studio_client.api
228
+ from eval_studio_client.api.models.v1_get_workflow_response import V1GetWorkflowResponse
229
+ from eval_studio_client.api.rest import ApiException
230
+ from pprint import pprint
231
+
232
+ # Defining the host is optional and defaults to http://localhost
233
+ # See configuration.py for a list of all supported configuration parameters.
234
+ configuration = eval_studio_client.api.Configuration(
235
+ host = "http://localhost"
236
+ )
237
+
238
+
239
+ # Enter a context with an instance of the API client
240
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
241
+ # Create an instance of the API class
242
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
243
+ name_11 = 'name_11_example' # str | Required. The name of the Workflow to retrieve.
244
+
245
+ try:
246
+ # GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
247
+ api_response = api_instance.workflow_service_get_workflow(name_11)
248
+ print("The response of WorkflowServiceApi->workflow_service_get_workflow:\n")
249
+ pprint(api_response)
250
+ except Exception as e:
251
+ print("Exception when calling WorkflowServiceApi->workflow_service_get_workflow: %s\n" % e)
252
+ ```
253
+
254
+
255
+
256
+ ### Parameters
257
+
258
+
259
+ Name | Type | Description | Notes
260
+ ------------- | ------------- | ------------- | -------------
261
+ **name_11** | **str**| Required. The name of the Workflow to retrieve. |
262
+
263
+ ### Return type
264
+
265
+ [**V1GetWorkflowResponse**](V1GetWorkflowResponse.md)
266
+
267
+ ### Authorization
268
+
269
+ No authorization required
270
+
271
+ ### HTTP request headers
272
+
273
+ - **Content-Type**: Not defined
274
+ - **Accept**: application/json
275
+
276
+ ### HTTP response details
277
+
278
+ | Status code | Description | Response headers |
279
+ |-------------|-------------|------------------|
280
+ **200** | A successful response. | - |
281
+ **0** | An unexpected error response. | - |
282
+
283
+ [[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)
284
+
285
+ # **workflow_service_list_workflows**
286
+ > V1ListWorkflowsResponse workflow_service_list_workflows()
287
+
288
+ ListWorkflows lists Workflows.
289
+
290
+ ### Example
291
+
292
+
293
+ ```python
294
+ import eval_studio_client.api
295
+ from eval_studio_client.api.models.v1_list_workflows_response import V1ListWorkflowsResponse
296
+ from eval_studio_client.api.rest import ApiException
297
+ from pprint import pprint
298
+
299
+ # Defining the host is optional and defaults to http://localhost
300
+ # See configuration.py for a list of all supported configuration parameters.
301
+ configuration = eval_studio_client.api.Configuration(
302
+ host = "http://localhost"
303
+ )
304
+
305
+
306
+ # Enter a context with an instance of the API client
307
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
308
+ # Create an instance of the API class
309
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
310
+
311
+ try:
312
+ # ListWorkflows lists Workflows.
313
+ api_response = api_instance.workflow_service_list_workflows()
314
+ print("The response of WorkflowServiceApi->workflow_service_list_workflows:\n")
315
+ pprint(api_response)
316
+ except Exception as e:
317
+ print("Exception when calling WorkflowServiceApi->workflow_service_list_workflows: %s\n" % e)
318
+ ```
319
+
320
+
321
+
322
+ ### Parameters
323
+
324
+ This endpoint does not need any parameter.
325
+
326
+ ### Return type
327
+
328
+ [**V1ListWorkflowsResponse**](V1ListWorkflowsResponse.md)
329
+
330
+ ### Authorization
331
+
332
+ No authorization required
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: Not defined
337
+ - **Accept**: application/json
338
+
339
+ ### HTTP response details
340
+
341
+ | Status code | Description | Response headers |
342
+ |-------------|-------------|------------------|
343
+ **200** | A successful response. | - |
344
+ **0** | An unexpected error response. | - |
345
+
346
+ [[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)
347
+
348
+ # **workflow_service_update_workflow**
349
+ > V1UpdateWorkflowResponse workflow_service_update_workflow(workflow_name, workflow)
350
+
351
+ UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
352
+
353
+ ### Example
354
+
355
+
356
+ ```python
357
+ import eval_studio_client.api
358
+ from eval_studio_client.api.models.required_the_updated_workflow import RequiredTheUpdatedWorkflow
359
+ from eval_studio_client.api.models.v1_update_workflow_response import V1UpdateWorkflowResponse
360
+ from eval_studio_client.api.rest import ApiException
361
+ from pprint import pprint
362
+
363
+ # Defining the host is optional and defaults to http://localhost
364
+ # See configuration.py for a list of all supported configuration parameters.
365
+ configuration = eval_studio_client.api.Configuration(
366
+ host = "http://localhost"
367
+ )
368
+
369
+
370
+ # Enter a context with an instance of the API client
371
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
372
+ # Create an instance of the API class
373
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
374
+ workflow_name = 'workflow_name_example' # str | Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.
375
+ workflow = eval_studio_client.api.RequiredTheUpdatedWorkflow() # RequiredTheUpdatedWorkflow | Required. The updated Workflow.
376
+
377
+ try:
378
+ # UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
379
+ api_response = api_instance.workflow_service_update_workflow(workflow_name, workflow)
380
+ print("The response of WorkflowServiceApi->workflow_service_update_workflow:\n")
381
+ pprint(api_response)
382
+ except Exception as e:
383
+ print("Exception when calling WorkflowServiceApi->workflow_service_update_workflow: %s\n" % e)
384
+ ```
385
+
386
+
387
+
388
+ ### Parameters
389
+
390
+
391
+ Name | Type | Description | Notes
392
+ ------------- | ------------- | ------------- | -------------
393
+ **workflow_name** | **str**| Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`. |
394
+ **workflow** | [**RequiredTheUpdatedWorkflow**](RequiredTheUpdatedWorkflow.md)| Required. The updated Workflow. |
395
+
396
+ ### Return type
397
+
398
+ [**V1UpdateWorkflowResponse**](V1UpdateWorkflowResponse.md)
399
+
400
+ ### Authorization
401
+
402
+ No authorization required
403
+
404
+ ### HTTP request headers
405
+
406
+ - **Content-Type**: application/json
407
+ - **Accept**: application/json
408
+
409
+ ### HTTP response details
410
+
411
+ | Status code | Description | Response headers |
412
+ |-------------|-------------|------------------|
413
+ **200** | A successful response. | - |
414
+ **0** | An unexpected error response. | - |
415
+
416
+ [[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)
417
+
@@ -17,6 +17,7 @@
17
17
  from eval_studio_client.api.models.perturbation_service_create_perturbation_request import PerturbationServiceCreatePerturbationRequest
18
18
  from eval_studio_client.api.models.prompt_generation_service_auto_generate_prompts_request import PromptGenerationServiceAutoGeneratePromptsRequest
19
19
  from eval_studio_client.api.models.protobuf_any import ProtobufAny
20
+ from eval_studio_client.api.models.protobuf_null_value import ProtobufNullValue
20
21
  from eval_studio_client.api.models.required_the_dashboard_to_update import RequiredTheDashboardToUpdate
21
22
  from eval_studio_client.api.models.required_the_document_to_update import RequiredTheDocumentToUpdate
22
23
  from eval_studio_client.api.models.required_the_leaderboard_to_update import RequiredTheLeaderboardToUpdate
@@ -25,9 +26,13 @@ from eval_studio_client.api.models.required_the_operation_to_finalize import Req
25
26
  from eval_studio_client.api.models.required_the_operation_to_update import RequiredTheOperationToUpdate
26
27
  from eval_studio_client.api.models.required_the_test_case_to_update import RequiredTheTestCaseToUpdate
27
28
  from eval_studio_client.api.models.required_the_test_to_update import RequiredTheTestToUpdate
29
+ from eval_studio_client.api.models.required_the_updated_workflow import RequiredTheUpdatedWorkflow
30
+ from eval_studio_client.api.models.required_the_updated_workflow_node import RequiredTheUpdatedWorkflowNode
28
31
  from eval_studio_client.api.models.rpc_status import RpcStatus
29
32
  from eval_studio_client.api.models.test_case_service_batch_delete_test_cases_request import TestCaseServiceBatchDeleteTestCasesRequest
30
33
  from eval_studio_client.api.models.test_service_generate_test_cases_request import TestServiceGenerateTestCasesRequest
34
+ from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
35
+ from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
31
36
  from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
32
37
  from eval_studio_client.api.models.v1_batch_create_leaderboards_request import V1BatchCreateLeaderboardsRequest
33
38
  from eval_studio_client.api.models.v1_batch_create_leaderboards_response import V1BatchCreateLeaderboardsResponse
@@ -44,12 +49,16 @@ from eval_studio_client.api.models.v1_batch_delete_models_response import V1Batc
44
49
  from eval_studio_client.api.models.v1_batch_delete_test_cases_response import V1BatchDeleteTestCasesResponse
45
50
  from eval_studio_client.api.models.v1_batch_delete_tests_request import V1BatchDeleteTestsRequest
46
51
  from eval_studio_client.api.models.v1_batch_delete_tests_response import V1BatchDeleteTestsResponse
52
+ from eval_studio_client.api.models.v1_batch_delete_workflows_request import V1BatchDeleteWorkflowsRequest
53
+ from eval_studio_client.api.models.v1_batch_delete_workflows_response import V1BatchDeleteWorkflowsResponse
47
54
  from eval_studio_client.api.models.v1_batch_get_dashboards_response import V1BatchGetDashboardsResponse
48
55
  from eval_studio_client.api.models.v1_batch_get_documents_response import V1BatchGetDocumentsResponse
49
56
  from eval_studio_client.api.models.v1_batch_get_leaderboards_response import V1BatchGetLeaderboardsResponse
50
57
  from eval_studio_client.api.models.v1_batch_get_models_response import V1BatchGetModelsResponse
51
58
  from eval_studio_client.api.models.v1_batch_get_operations_response import V1BatchGetOperationsResponse
52
59
  from eval_studio_client.api.models.v1_batch_get_tests_response import V1BatchGetTestsResponse
60
+ from eval_studio_client.api.models.v1_batch_get_workflow_edges_response import V1BatchGetWorkflowEdgesResponse
61
+ from eval_studio_client.api.models.v1_batch_get_workflow_nodes_response import V1BatchGetWorkflowNodesResponse
53
62
  from eval_studio_client.api.models.v1_batch_import_leaderboard_request import V1BatchImportLeaderboardRequest
54
63
  from eval_studio_client.api.models.v1_batch_import_leaderboard_response import V1BatchImportLeaderboardResponse
55
64
  from eval_studio_client.api.models.v1_batch_import_tests_request import V1BatchImportTestsRequest
@@ -68,6 +77,7 @@ from eval_studio_client.api.models.v1_create_perturbation_response import V1Crea
68
77
  from eval_studio_client.api.models.v1_create_test_case_response import V1CreateTestCaseResponse
69
78
  from eval_studio_client.api.models.v1_create_test_lab_response import V1CreateTestLabResponse
70
79
  from eval_studio_client.api.models.v1_create_test_response import V1CreateTestResponse
80
+ from eval_studio_client.api.models.v1_create_workflow_response import V1CreateWorkflowResponse
71
81
  from eval_studio_client.api.models.v1_dashboard import V1Dashboard
72
82
  from eval_studio_client.api.models.v1_dashboard_status import V1DashboardStatus
73
83
  from eval_studio_client.api.models.v1_delete_dashboard_response import V1DeleteDashboardResponse
@@ -77,7 +87,10 @@ from eval_studio_client.api.models.v1_delete_leaderboard_response import V1Delet
77
87
  from eval_studio_client.api.models.v1_delete_model_response import V1DeleteModelResponse
78
88
  from eval_studio_client.api.models.v1_delete_test_case_response import V1DeleteTestCaseResponse
79
89
  from eval_studio_client.api.models.v1_delete_test_response import V1DeleteTestResponse
90
+ from eval_studio_client.api.models.v1_delete_workflow_node_response import V1DeleteWorkflowNodeResponse
91
+ from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse
80
92
  from eval_studio_client.api.models.v1_document import V1Document
93
+ from eval_studio_client.api.models.v1_estimate_threshold_request import V1EstimateThresholdRequest
81
94
  from eval_studio_client.api.models.v1_evaluation_test import V1EvaluationTest
82
95
  from eval_studio_client.api.models.v1_evaluator import V1Evaluator
83
96
  from eval_studio_client.api.models.v1_evaluator_param_type import V1EvaluatorParamType
@@ -99,11 +112,17 @@ from eval_studio_client.api.models.v1_get_perturbator_response import V1GetPertu
99
112
  from eval_studio_client.api.models.v1_get_test_case_response import V1GetTestCaseResponse
100
113
  from eval_studio_client.api.models.v1_get_test_class_response import V1GetTestClassResponse
101
114
  from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
115
+ from eval_studio_client.api.models.v1_get_workflow_node_prerequisites_response import V1GetWorkflowNodePrerequisitesResponse
116
+ from eval_studio_client.api.models.v1_get_workflow_node_response import V1GetWorkflowNodeResponse
117
+ from eval_studio_client.api.models.v1_get_workflow_response import V1GetWorkflowResponse
102
118
  from eval_studio_client.api.models.v1_import_evaluation_request import V1ImportEvaluationRequest
103
119
  from eval_studio_client.api.models.v1_import_leaderboard_request import V1ImportLeaderboardRequest
104
120
  from eval_studio_client.api.models.v1_import_leaderboard_response import V1ImportLeaderboardResponse
121
+ from eval_studio_client.api.models.v1_import_test_cases_from_library_response import V1ImportTestCasesFromLibraryResponse
122
+ from eval_studio_client.api.models.v1_import_test_cases_request import V1ImportTestCasesRequest
105
123
  from eval_studio_client.api.models.v1_info import V1Info
106
124
  from eval_studio_client.api.models.v1_insight import V1Insight
125
+ from eval_studio_client.api.models.v1_labeled_test_case import V1LabeledTestCase
107
126
  from eval_studio_client.api.models.v1_leaderboard import V1Leaderboard
108
127
  from eval_studio_client.api.models.v1_leaderboard_status import V1LeaderboardStatus
109
128
  from eval_studio_client.api.models.v1_leaderboard_type import V1LeaderboardType
@@ -122,10 +141,13 @@ from eval_studio_client.api.models.v1_list_most_recent_models_response import V1
122
141
  from eval_studio_client.api.models.v1_list_most_recent_tests_response import V1ListMostRecentTestsResponse
123
142
  from eval_studio_client.api.models.v1_list_operations_response import V1ListOperationsResponse
124
143
  from eval_studio_client.api.models.v1_list_perturbators_response import V1ListPerturbatorsResponse
144
+ from eval_studio_client.api.models.v1_list_prompt_library_items_response import V1ListPromptLibraryItemsResponse
125
145
  from eval_studio_client.api.models.v1_list_rag_collections_response import V1ListRAGCollectionsResponse
146
+ from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
126
147
  from eval_studio_client.api.models.v1_list_test_cases_response import V1ListTestCasesResponse
127
148
  from eval_studio_client.api.models.v1_list_test_classes_response import V1ListTestClassesResponse
128
149
  from eval_studio_client.api.models.v1_list_tests_response import V1ListTestsResponse
150
+ from eval_studio_client.api.models.v1_list_workflows_response import V1ListWorkflowsResponse
129
151
  from eval_studio_client.api.models.v1_model import V1Model
130
152
  from eval_studio_client.api.models.v1_model_type import V1ModelType
131
153
  from eval_studio_client.api.models.v1_operation import V1Operation
@@ -135,6 +157,8 @@ from eval_studio_client.api.models.v1_perturbator import V1Perturbator
135
157
  from eval_studio_client.api.models.v1_perturbator_configuration import V1PerturbatorConfiguration
136
158
  from eval_studio_client.api.models.v1_perturbator_intensity import V1PerturbatorIntensity
137
159
  from eval_studio_client.api.models.v1_problem_and_action import V1ProblemAndAction
160
+ from eval_studio_client.api.models.v1_process_workflow_node_response import V1ProcessWorkflowNodeResponse
161
+ from eval_studio_client.api.models.v1_prompt_library_item import V1PromptLibraryItem
138
162
  from eval_studio_client.api.models.v1_test import V1Test
139
163
  from eval_studio_client.api.models.v1_test_case import V1TestCase
140
164
  from eval_studio_client.api.models.v1_test_case_relationship import V1TestCaseRelationship
@@ -142,6 +166,7 @@ from eval_studio_client.api.models.v1_test_cases_generator import V1TestCasesGen
142
166
  from eval_studio_client.api.models.v1_test_class import V1TestClass
143
167
  from eval_studio_client.api.models.v1_test_class_type import V1TestClassType
144
168
  from eval_studio_client.api.models.v1_test_lab import V1TestLab
169
+ from eval_studio_client.api.models.v1_test_suite_evaluates import V1TestSuiteEvaluates
145
170
  from eval_studio_client.api.models.v1_update_dashboard_response import V1UpdateDashboardResponse
146
171
  from eval_studio_client.api.models.v1_update_document_response import V1UpdateDocumentResponse
147
172
  from eval_studio_client.api.models.v1_update_leaderboard_response import V1UpdateLeaderboardResponse
@@ -149,4 +174,17 @@ from eval_studio_client.api.models.v1_update_model_response import V1UpdateModel
149
174
  from eval_studio_client.api.models.v1_update_operation_response import V1UpdateOperationResponse
150
175
  from eval_studio_client.api.models.v1_update_test_case_response import V1UpdateTestCaseResponse
151
176
  from eval_studio_client.api.models.v1_update_test_response import V1UpdateTestResponse
177
+ from eval_studio_client.api.models.v1_update_workflow_node_response import V1UpdateWorkflowNodeResponse
178
+ from eval_studio_client.api.models.v1_update_workflow_response import V1UpdateWorkflowResponse
152
179
  from eval_studio_client.api.models.v1_who_am_i_response import V1WhoAmIResponse
180
+ from eval_studio_client.api.models.v1_workflow import V1Workflow
181
+ from eval_studio_client.api.models.v1_workflow_edge import V1WorkflowEdge
182
+ from eval_studio_client.api.models.v1_workflow_edge_type import V1WorkflowEdgeType
183
+ from eval_studio_client.api.models.v1_workflow_node import V1WorkflowNode
184
+ from eval_studio_client.api.models.v1_workflow_node_artifact import V1WorkflowNodeArtifact
185
+ from eval_studio_client.api.models.v1_workflow_node_artifacts import V1WorkflowNodeArtifacts
186
+ from eval_studio_client.api.models.v1_workflow_node_attributes import V1WorkflowNodeAttributes
187
+ from eval_studio_client.api.models.v1_workflow_node_status import V1WorkflowNodeStatus
188
+ from eval_studio_client.api.models.v1_workflow_node_type import V1WorkflowNodeType
189
+ from eval_studio_client.api.models.v1_workflow_node_view import V1WorkflowNodeView
190
+ from eval_studio_client.api.models.v1_workflow_type import V1WorkflowType
@@ -19,6 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
+ from eval_studio_client.api.models.v1_model import V1Model
22
23
  from eval_studio_client.api.models.v1_perturbator_configuration import V1PerturbatorConfiguration
23
24
  from eval_studio_client.api.models.v1_test_case import V1TestCase
24
25
  from eval_studio_client.api.models.v1_test_case_relationship import V1TestCaseRelationship
@@ -32,7 +33,8 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
32
33
  perturbator_configurations: Optional[List[V1PerturbatorConfiguration]] = Field(default=None, description="Required. PerturbatorConfiguration to apply to the parent Test.", alias="perturbatorConfigurations")
33
34
  test_cases: Optional[List[V1TestCase]] = Field(default=None, description="Required. List of test cases to perturbate. These are the test cases from the parent test. TODO: breaks https://google.aip.dev/144", alias="testCases")
34
35
  test_case_relationships: Optional[List[V1TestCaseRelationship]] = Field(default=None, description="Optional. List of relationships between test cases.", alias="testCaseRelationships")
35
- __properties: ClassVar[List[str]] = ["perturbatorConfigurations", "testCases", "testCaseRelationships"]
36
+ default_h2ogpte_model: Optional[V1Model] = Field(default=None, alias="defaultH2ogpteModel")
37
+ __properties: ClassVar[List[str]] = ["perturbatorConfigurations", "testCases", "testCaseRelationships", "defaultH2ogpteModel"]
36
38
 
37
39
  model_config = ConfigDict(
38
40
  populate_by_name=True,
@@ -94,6 +96,9 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
94
96
  if _item:
95
97
  _items.append(_item.to_dict())
96
98
  _dict['testCaseRelationships'] = _items
99
+ # override the default output from pydantic by calling `to_dict()` of default_h2ogpte_model
100
+ if self.default_h2ogpte_model:
101
+ _dict['defaultH2ogpteModel'] = self.default_h2ogpte_model.to_dict()
97
102
  return _dict
98
103
 
99
104
  @classmethod
@@ -108,7 +113,8 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
108
113
  _obj = cls.model_validate({
109
114
  "perturbatorConfigurations": [V1PerturbatorConfiguration.from_dict(_item) for _item in obj["perturbatorConfigurations"]] if obj.get("perturbatorConfigurations") is not None else None,
110
115
  "testCases": [V1TestCase.from_dict(_item) for _item in obj["testCases"]] if obj.get("testCases") is not None else None,
111
- "testCaseRelationships": [V1TestCaseRelationship.from_dict(_item) for _item in obj["testCaseRelationships"]] if obj.get("testCaseRelationships") is not None else None
116
+ "testCaseRelationships": [V1TestCaseRelationship.from_dict(_item) for _item in obj["testCaseRelationships"]] if obj.get("testCaseRelationships") is not None else None,
117
+ "defaultH2ogpteModel": V1Model.from_dict(obj["defaultH2ogpteModel"]) if obj.get("defaultH2ogpteModel") is not None else None
112
118
  })
113
119
  return _obj
114
120
 
@@ -33,9 +33,10 @@ class PromptGenerationServiceAutoGeneratePromptsRequest(BaseModel):
33
33
  count: Optional[StrictInt] = Field(default=None, description="Required. The number of TestCases to generate.")
34
34
  base_llm_model: Optional[StrictStr] = Field(default=None, description="Required. Base LLM model to use for generating the prompts.", alias="baseLlmModel")
35
35
  document_urls: Optional[List[StrictStr]] = Field(default=None, description="Optional. The list of document URLs. The document URL might be a managed document URL or a public URL.", alias="documentUrls")
36
- generators: Optional[List[V1TestCasesGenerator]] = Field(default=None, description="Optional. Topics to generate TestCases for. If not specified, all topics are selected.")
36
+ generators: Optional[List[V1TestCasesGenerator]] = Field(default=None, description="Optional. Type of questions to generate TestCases for. If not specified, all types of questions are selected.")
37
37
  h2ogpte_collection_id: Optional[StrictStr] = Field(default=None, description="Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be created.", alias="h2ogpteCollectionId")
38
- __properties: ClassVar[List[str]] = ["operation", "model", "count", "baseLlmModel", "documentUrls", "generators", "h2ogpteCollectionId"]
38
+ topics: Optional[List[StrictStr]] = Field(default=None, description="Optional. Topics to generate questions for. If not specified, use document summarization as topic generation.")
39
+ __properties: ClassVar[List[str]] = ["operation", "model", "count", "baseLlmModel", "documentUrls", "generators", "h2ogpteCollectionId", "topics"]
39
40
 
40
41
  model_config = ConfigDict(
41
42
  populate_by_name=True,
@@ -97,7 +98,8 @@ class PromptGenerationServiceAutoGeneratePromptsRequest(BaseModel):
97
98
  "baseLlmModel": obj.get("baseLlmModel"),
98
99
  "documentUrls": obj.get("documentUrls"),
99
100
  "generators": obj.get("generators"),
100
- "h2ogpteCollectionId": obj.get("h2ogpteCollectionId")
101
+ "h2ogpteCollectionId": obj.get("h2ogpteCollectionId"),
102
+ "topics": obj.get("topics")
101
103
  })
102
104
  return _obj
103
105
 
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/collection.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
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class ProtobufNullValue(str, Enum):
22
+ """
23
+ `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value.
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ NULL_VALUE = 'NULL_VALUE'
30
+
31
+ @classmethod
32
+ def from_json(cls, json_str: str) -> Self:
33
+ """Create an instance of ProtobufNullValue from a JSON string"""
34
+ return cls(json.loads(json_str))
35
+
36
+