eval-studio-client 1.0.0__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 (179) 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 +29 -0
  172. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +2665 -794
  173. eval_studio_client/leaderboards.py +123 -0
  174. eval_studio_client/models.py +3 -42
  175. eval_studio_client/test_labs.py +49 -21
  176. eval_studio_client/tests.py +188 -1
  177. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/METADATA +1 -2
  178. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/RECORD +179 -50
  179. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/WHEEL +1 -1
@@ -0,0 +1,77 @@
1
+ # eval_studio_client.api.HumanCalibrationServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**human_calibration_service_estimate_threshold**](HumanCalibrationServiceApi.md#human_calibration_service_estimate_threshold) | **POST** /v1:estimateThreshold | EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
8
+
9
+
10
+ # **human_calibration_service_estimate_threshold**
11
+ > V1Operation human_calibration_service_estimate_threshold(body)
12
+
13
+ EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
14
+
15
+ ### Example
16
+
17
+
18
+ ```python
19
+ import eval_studio_client.api
20
+ from eval_studio_client.api.models.v1_estimate_threshold_request import V1EstimateThresholdRequest
21
+ from eval_studio_client.api.models.v1_operation import V1Operation
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.HumanCalibrationServiceApi(api_client)
36
+ body = eval_studio_client.api.V1EstimateThresholdRequest() # V1EstimateThresholdRequest |
37
+
38
+ try:
39
+ # EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
40
+ api_response = api_instance.human_calibration_service_estimate_threshold(body)
41
+ print("The response of HumanCalibrationServiceApi->human_calibration_service_estimate_threshold:\n")
42
+ pprint(api_response)
43
+ except Exception as e:
44
+ print("Exception when calling HumanCalibrationServiceApi->human_calibration_service_estimate_threshold: %s\n" % e)
45
+ ```
46
+
47
+
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **body** | [**V1EstimateThresholdRequest**](V1EstimateThresholdRequest.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**V1Operation**](V1Operation.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
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **perturbator_configurations** | [**List[V1PerturbatorConfiguration]**](V1PerturbatorConfiguration.md) | Required. PerturbatorConfiguration to apply to the parent Test. | [optional]
9
9
  **test_cases** | [**List[V1TestCase]**](V1TestCase.md) | Required. List of test cases to perturbate. These are the test cases from the parent test. TODO: breaks https://google.aip.dev/144 | [optional]
10
10
  **test_case_relationships** | [**List[V1TestCaseRelationship]**](V1TestCaseRelationship.md) | Optional. List of relationships between test cases. | [optional]
11
+ **default_h2ogpte_model** | [**V1Model**](V1Model.md) | | [optional]
11
12
 
12
13
  ## Example
13
14
 
@@ -75,7 +75,7 @@ No authorization required
75
75
  [[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)
76
76
 
77
77
  # **perturbator_service_list_perturbators**
78
- > V1ListPerturbatorsResponse perturbator_service_list_perturbators()
78
+ > V1ListPerturbatorsResponse perturbator_service_list_perturbators(default_h2ogpte_model_name=default_h2ogpte_model_name, default_h2ogpte_model_create_time=default_h2ogpte_model_create_time, default_h2ogpte_model_creator=default_h2ogpte_model_creator, default_h2ogpte_model_update_time=default_h2ogpte_model_update_time, default_h2ogpte_model_updater=default_h2ogpte_model_updater, default_h2ogpte_model_delete_time=default_h2ogpte_model_delete_time, default_h2ogpte_model_deleter=default_h2ogpte_model_deleter, default_h2ogpte_model_display_name=default_h2ogpte_model_display_name, default_h2ogpte_model_description=default_h2ogpte_model_description, default_h2ogpte_model_url=default_h2ogpte_model_url, default_h2ogpte_model_api_key=default_h2ogpte_model_api_key, default_h2ogpte_model_type=default_h2ogpte_model_type, default_h2ogpte_model_parameters=default_h2ogpte_model_parameters, default_h2ogpte_model_demo=default_h2ogpte_model_demo)
79
79
 
80
80
 
81
81
 
@@ -99,9 +99,23 @@ configuration = eval_studio_client.api.Configuration(
99
99
  with eval_studio_client.api.ApiClient(configuration) as api_client:
100
100
  # Create an instance of the API class
101
101
  api_instance = eval_studio_client.api.PerturbatorServiceApi(api_client)
102
+ default_h2ogpte_model_name = 'default_h2ogpte_model_name_example' # str | Output only. Name of the Model resource. e.g.: \"models/<UUID>\" (optional)
103
+ default_h2ogpte_model_create_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Timestamp when the Model was created. (optional)
104
+ default_h2ogpte_model_creator = 'default_h2ogpte_model_creator_example' # str | Output only. Name of the user or service that requested creation of the Model. (optional)
105
+ default_h2ogpte_model_update_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Optional. Timestamp when the Model was last updated. (optional)
106
+ default_h2ogpte_model_updater = 'default_h2ogpte_model_updater_example' # str | Output only. Optional. Name of the user or service that requested update of the Model. (optional)
107
+ default_h2ogpte_model_delete_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Optional. Set when the Model is deleted. When set Model should be considered as deleted. (optional)
108
+ default_h2ogpte_model_deleter = 'default_h2ogpte_model_deleter_example' # str | Output only. Optional. Name of the user or service that requested deletion of the Model. (optional)
109
+ default_h2ogpte_model_display_name = 'default_h2ogpte_model_display_name_example' # str | Human readable name of the Model. (optional)
110
+ default_h2ogpte_model_description = 'default_h2ogpte_model_description_example' # str | Optional. Arbitrary description of the Model. (optional)
111
+ default_h2ogpte_model_url = 'default_h2ogpte_model_url_example' # str | Optional. Immutable. Absolute URL to the Model. (optional)
112
+ default_h2ogpte_model_api_key = 'default_h2ogpte_model_api_key_example' # str | Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public clients (front-end). Set only for internal (server-to-worker) communication. (optional)
113
+ default_h2ogpte_model_type = 'MODEL_TYPE_UNSPECIFIED' # str | Immutable. Type of this Model. - MODEL_TYPE_UNSPECIFIED: Unspecified type. - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG. - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG. - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM. - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM. - MODEL_TYPE_OPENAI_CHAT: OpenAI chat. - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat. - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat. - MODEL_TYPE_H2OLLMOPS: H2O LLMOps. - MODEL_TYPE_OLLAMA: Ollama. - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock. (optional) (default to 'MODEL_TYPE_UNSPECIFIED')
114
+ default_h2ogpte_model_parameters = 'default_h2ogpte_model_parameters_example' # str | Optional. Model specific parameters in JSON format. (optional)
115
+ default_h2ogpte_model_demo = True # bool | Output only. Whether the Model is a demo resource or not. Demo resources are read only. (optional)
102
116
 
103
117
  try:
104
- api_response = api_instance.perturbator_service_list_perturbators()
118
+ api_response = api_instance.perturbator_service_list_perturbators(default_h2ogpte_model_name=default_h2ogpte_model_name, default_h2ogpte_model_create_time=default_h2ogpte_model_create_time, default_h2ogpte_model_creator=default_h2ogpte_model_creator, default_h2ogpte_model_update_time=default_h2ogpte_model_update_time, default_h2ogpte_model_updater=default_h2ogpte_model_updater, default_h2ogpte_model_delete_time=default_h2ogpte_model_delete_time, default_h2ogpte_model_deleter=default_h2ogpte_model_deleter, default_h2ogpte_model_display_name=default_h2ogpte_model_display_name, default_h2ogpte_model_description=default_h2ogpte_model_description, default_h2ogpte_model_url=default_h2ogpte_model_url, default_h2ogpte_model_api_key=default_h2ogpte_model_api_key, default_h2ogpte_model_type=default_h2ogpte_model_type, default_h2ogpte_model_parameters=default_h2ogpte_model_parameters, default_h2ogpte_model_demo=default_h2ogpte_model_demo)
105
119
  print("The response of PerturbatorServiceApi->perturbator_service_list_perturbators:\n")
106
120
  pprint(api_response)
107
121
  except Exception as e:
@@ -112,7 +126,23 @@ with eval_studio_client.api.ApiClient(configuration) as api_client:
112
126
 
113
127
  ### Parameters
114
128
 
115
- This endpoint does not need any parameter.
129
+
130
+ Name | Type | Description | Notes
131
+ ------------- | ------------- | ------------- | -------------
132
+ **default_h2ogpte_model_name** | **str**| Output only. Name of the Model resource. e.g.: \&quot;models/&lt;UUID&gt;\&quot; | [optional]
133
+ **default_h2ogpte_model_create_time** | **datetime**| Output only. Timestamp when the Model was created. | [optional]
134
+ **default_h2ogpte_model_creator** | **str**| Output only. Name of the user or service that requested creation of the Model. | [optional]
135
+ **default_h2ogpte_model_update_time** | **datetime**| Output only. Optional. Timestamp when the Model was last updated. | [optional]
136
+ **default_h2ogpte_model_updater** | **str**| Output only. Optional. Name of the user or service that requested update of the Model. | [optional]
137
+ **default_h2ogpte_model_delete_time** | **datetime**| Output only. Optional. Set when the Model is deleted. When set Model should be considered as deleted. | [optional]
138
+ **default_h2ogpte_model_deleter** | **str**| Output only. Optional. Name of the user or service that requested deletion of the Model. | [optional]
139
+ **default_h2ogpte_model_display_name** | **str**| Human readable name of the Model. | [optional]
140
+ **default_h2ogpte_model_description** | **str**| Optional. Arbitrary description of the Model. | [optional]
141
+ **default_h2ogpte_model_url** | **str**| Optional. Immutable. Absolute URL to the Model. | [optional]
142
+ **default_h2ogpte_model_api_key** | **str**| Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public clients (front-end). Set only for internal (server-to-worker) communication. | [optional]
143
+ **default_h2ogpte_model_type** | **str**| Immutable. Type of this Model. - MODEL_TYPE_UNSPECIFIED: Unspecified type. - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG. - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG. - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM. - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM. - MODEL_TYPE_OPENAI_CHAT: OpenAI chat. - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat. - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat. - MODEL_TYPE_H2OLLMOPS: H2O LLMOps. - MODEL_TYPE_OLLAMA: Ollama. - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock. | [optional] [default to &#39;MODEL_TYPE_UNSPECIFIED&#39;]
144
+ **default_h2ogpte_model_parameters** | **str**| Optional. Model specific parameters in JSON format. | [optional]
145
+ **default_h2ogpte_model_demo** | **bool**| Output only. Whether the Model is a demo resource or not. Demo resources are read only. | [optional]
116
146
 
117
147
  ### Return type
118
148
 
@@ -10,8 +10,9 @@ Name | Type | Description | Notes
10
10
  **count** | **int** | Required. The number of TestCases to generate. | [optional]
11
11
  **base_llm_model** | **str** | Required. Base LLM model to use for generating the prompts. | [optional]
12
12
  **document_urls** | **List[str]** | Optional. The list of document URLs. The document URL might be a managed document URL or a public URL. | [optional]
13
- **generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional. Topics to generate TestCases for. If not specified, all topics are selected. | [optional]
13
+ **generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional. Type of questions to generate TestCases for. If not specified, all types of questions are selected. | [optional]
14
14
  **h2ogpte_collection_id** | **str** | Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be created. | [optional]
15
+ **topics** | **List[str]** | Optional. Topics to generate questions for. If not specified, use document summarization as topic generation. | [optional]
15
16
 
16
17
  ## Example
17
18
 
@@ -0,0 +1,155 @@
1
+ # eval_studio_client.api.PromptLibraryServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**prompt_library_service_import_test_cases**](PromptLibraryServiceApi.md#prompt_library_service_import_test_cases) | **POST** /v1/promptLibraryItems:importTestCases |
8
+ [**prompt_library_service_list_prompt_library_items**](PromptLibraryServiceApi.md#prompt_library_service_list_prompt_library_items) | **GET** /v1/promptLibraryItems |
9
+
10
+
11
+ # **prompt_library_service_import_test_cases**
12
+ > V1Operation prompt_library_service_import_test_cases(body)
13
+
14
+
15
+
16
+ ### Example
17
+
18
+
19
+ ```python
20
+ import eval_studio_client.api
21
+ from eval_studio_client.api.models.v1_import_test_cases_request import V1ImportTestCasesRequest
22
+ from eval_studio_client.api.models.v1_operation import V1Operation
23
+ from eval_studio_client.api.rest import ApiException
24
+ from pprint import pprint
25
+
26
+ # Defining the host is optional and defaults to http://localhost
27
+ # See configuration.py for a list of all supported configuration parameters.
28
+ configuration = eval_studio_client.api.Configuration(
29
+ host = "http://localhost"
30
+ )
31
+
32
+
33
+ # Enter a context with an instance of the API client
34
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
35
+ # Create an instance of the API class
36
+ api_instance = eval_studio_client.api.PromptLibraryServiceApi(api_client)
37
+ body = eval_studio_client.api.V1ImportTestCasesRequest() # V1ImportTestCasesRequest |
38
+
39
+ try:
40
+ api_response = api_instance.prompt_library_service_import_test_cases(body)
41
+ print("The response of PromptLibraryServiceApi->prompt_library_service_import_test_cases:\n")
42
+ pprint(api_response)
43
+ except Exception as e:
44
+ print("Exception when calling PromptLibraryServiceApi->prompt_library_service_import_test_cases: %s\n" % e)
45
+ ```
46
+
47
+
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **body** | [**V1ImportTestCasesRequest**](V1ImportTestCasesRequest.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**V1Operation**](V1Operation.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
+
78
+ # **prompt_library_service_list_prompt_library_items**
79
+ > V1ListPromptLibraryItemsResponse prompt_library_service_list_prompt_library_items(filter_by_categories=filter_by_categories, filter_by_purposes=filter_by_purposes, filter_by_evaluates=filter_by_evaluates, filter_by_origin=filter_by_origin, filter_by_test_case_count=filter_by_test_case_count, filter_by_test_count=filter_by_test_count, filter_by_fts=filter_by_fts)
80
+
81
+
82
+
83
+ ### Example
84
+
85
+
86
+ ```python
87
+ import eval_studio_client.api
88
+ from eval_studio_client.api.models.v1_list_prompt_library_items_response import V1ListPromptLibraryItemsResponse
89
+ from eval_studio_client.api.rest import ApiException
90
+ from pprint import pprint
91
+
92
+ # Defining the host is optional and defaults to http://localhost
93
+ # See configuration.py for a list of all supported configuration parameters.
94
+ configuration = eval_studio_client.api.Configuration(
95
+ host = "http://localhost"
96
+ )
97
+
98
+
99
+ # Enter a context with an instance of the API client
100
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
101
+ # Create an instance of the API class
102
+ api_instance = eval_studio_client.api.PromptLibraryServiceApi(api_client)
103
+ filter_by_categories = ['filter_by_categories_example'] # List[str] | Optional. Filter by categories. (optional)
104
+ filter_by_purposes = ['filter_by_purposes_example'] # List[str] | Optional. Filter by purposes. (optional)
105
+ filter_by_evaluates = ['filter_by_evaluates_example'] # List[str] | Optional. Filter by evaluates. (optional)
106
+ filter_by_origin = 'filter_by_origin_example' # str | Optional. Filter by origin. (optional)
107
+ filter_by_test_case_count = 56 # int | Optional. Filter by test case count. (optional)
108
+ filter_by_test_count = 56 # int | Optional. Filter by test count. (optional)
109
+ filter_by_fts = 'filter_by_fts_example' # str | Optional. Filter by FTS. (optional)
110
+
111
+ try:
112
+ api_response = api_instance.prompt_library_service_list_prompt_library_items(filter_by_categories=filter_by_categories, filter_by_purposes=filter_by_purposes, filter_by_evaluates=filter_by_evaluates, filter_by_origin=filter_by_origin, filter_by_test_case_count=filter_by_test_case_count, filter_by_test_count=filter_by_test_count, filter_by_fts=filter_by_fts)
113
+ print("The response of PromptLibraryServiceApi->prompt_library_service_list_prompt_library_items:\n")
114
+ pprint(api_response)
115
+ except Exception as e:
116
+ print("Exception when calling PromptLibraryServiceApi->prompt_library_service_list_prompt_library_items: %s\n" % e)
117
+ ```
118
+
119
+
120
+
121
+ ### Parameters
122
+
123
+
124
+ Name | Type | Description | Notes
125
+ ------------- | ------------- | ------------- | -------------
126
+ **filter_by_categories** | [**List[str]**](str.md)| Optional. Filter by categories. | [optional]
127
+ **filter_by_purposes** | [**List[str]**](str.md)| Optional. Filter by purposes. | [optional]
128
+ **filter_by_evaluates** | [**List[str]**](str.md)| Optional. Filter by evaluates. | [optional]
129
+ **filter_by_origin** | **str**| Optional. Filter by origin. | [optional]
130
+ **filter_by_test_case_count** | **int**| Optional. Filter by test case count. | [optional]
131
+ **filter_by_test_count** | **int**| Optional. Filter by test count. | [optional]
132
+ **filter_by_fts** | **str**| Optional. Filter by FTS. | [optional]
133
+
134
+ ### Return type
135
+
136
+ [**V1ListPromptLibraryItemsResponse**](V1ListPromptLibraryItemsResponse.md)
137
+
138
+ ### Authorization
139
+
140
+ No authorization required
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: Not defined
145
+ - **Accept**: application/json
146
+
147
+ ### HTTP response details
148
+
149
+ | Status code | Description | Response headers |
150
+ |-------------|-------------|------------------|
151
+ **200** | A successful response. | - |
152
+ **0** | An unexpected error response. | - |
153
+
154
+ [[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)
155
+
@@ -0,0 +1,12 @@
1
+ # ProtobufNullValue
2
+
3
+ `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.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
16
16
  **answer** | **str** | Expected answer text. Model output. | [optional]
17
17
  **constraints** | **List[str]** | Constraints on the model output. | [optional]
18
18
  **condition** | **str** | Optional. Test case output condition, in a form of AIP-160 compliant filter expression. | [optional]
19
+ **perturbed_by** | **List[str]** | Output only. The list of perturbators applied to this test case. | [optional] [readonly]
19
20
 
20
21
  ## Example
21
22
 
@@ -0,0 +1,44 @@
1
+ # RequiredTheUpdatedWorkflow
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **display_name** | **str** | Human-readable name of the Workflow. | [optional]
9
+ **description** | **str** | Optional description of the Workflow. | [optional]
10
+ **create_time** | **datetime** | Output only. Immutable. Creation time of the Workflow. | [optional] [readonly]
11
+ **creator** | **str** | Output only. Immutable. Name of the user or service that requested creation of the Workflow. | [optional] [readonly]
12
+ **update_time** | **datetime** | Output only. Optional. Last update time of the Workflow. | [optional] [readonly]
13
+ **updater** | **str** | Output only. Name of the user or service that requested update of the Workflow. | [optional] [readonly]
14
+ **delete_time** | **datetime** | Output only. Optional. Deletion time of the Workflow. | [optional] [readonly]
15
+ **deleter** | **str** | Output only. Name of the user or service that requested deletion of the Workflow. | [optional] [readonly]
16
+ **type** | [**V1WorkflowType**](V1WorkflowType.md) | | [optional]
17
+ **model** | **str** | Immutable. Resource name of the Model associated with this Workflow. | [optional]
18
+ **nodes** | **List[str]** | Output only. List of the WorkflowNodes in the Workflow. | [optional] [readonly]
19
+ **edges** | **List[str]** | Output only. List of the WorkflowEdges in the Workflow. | [optional] [readonly]
20
+ **outputs** | **Dict[str, object]** | Output only. Optional. Computed outputs of all the WorkflowNodes in the Workflow. | [optional] [readonly]
21
+ **output_artifacts** | [**Dict[str, V1WorkflowNodeArtifacts]**](V1WorkflowNodeArtifacts.md) | Output only. Optional. List of the WorkflowNodeArtifacts produces by all the WorkflowNodes in the Workflow. | [optional] [readonly]
22
+ **llm_model** | **str** | Immutable. LLM Model to use. | [optional]
23
+ **model_parameters** | **str** | Optional. Immutable. Model parameter overrides in JSON format. | [optional]
24
+
25
+ ## Example
26
+
27
+ ```python
28
+ from eval_studio_client.api.models.required_the_updated_workflow import RequiredTheUpdatedWorkflow
29
+
30
+ # TODO update the JSON string below
31
+ json = "{}"
32
+ # create an instance of RequiredTheUpdatedWorkflow from a JSON string
33
+ required_the_updated_workflow_instance = RequiredTheUpdatedWorkflow.from_json(json)
34
+ # print the JSON string representation of the object
35
+ print(RequiredTheUpdatedWorkflow.to_json())
36
+
37
+ # convert the object into a dict
38
+ required_the_updated_workflow_dict = required_the_updated_workflow_instance.to_dict()
39
+ # create an instance of RequiredTheUpdatedWorkflow from a dict
40
+ required_the_updated_workflow_from_dict = RequiredTheUpdatedWorkflow.from_dict(required_the_updated_workflow_dict)
41
+ ```
42
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,44 @@
1
+ # RequiredTheUpdatedWorkflowNode
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **parent** | **str** | Output only. Immutable. Resource name of the parent Workflow in format of &#x60;workflows/{workflow_id}/&#x60;. | [optional] [readonly]
9
+ **display_name** | **str** | Human-readable name of the WorkflowNode. | [optional]
10
+ **description** | **str** | Optional description of the WorkflowNode. | [optional]
11
+ **create_time** | **datetime** | Output only. Immutable. Creation time of the WorkflowNode. | [optional] [readonly]
12
+ **creator** | **str** | Output only. Immutable. Name of the user or service that requested creation of the WorkflowNode. | [optional] [readonly]
13
+ **update_time** | **datetime** | Output only. Optional. Last update time of the WorkflowNode. | [optional] [readonly]
14
+ **updater** | **str** | Output only. Name of the user or service that requested update of the WorkflowNode. | [optional] [readonly]
15
+ **delete_time** | **datetime** | Output only. Optional. Deletion time of the WorkflowNode. | [optional] [readonly]
16
+ **deleter** | **str** | Output only. Name of the user or service that requested deletion of the WorkflowNode. | [optional] [readonly]
17
+ **type** | [**V1WorkflowNodeType**](V1WorkflowNodeType.md) | | [optional]
18
+ **parameters** | **object** | User-given parameters for the WorkflowNode. | [optional]
19
+ **outputs** | **object** | Output only. Computed outputs of the WorkflowNode. | [optional] [readonly]
20
+ **output_artifacts** | [**List[V1WorkflowNodeArtifact]**](V1WorkflowNodeArtifact.md) | Output only. Optional. List of the WorkflowNodeArtifacts produces by the WorkflowNode. | [optional] [readonly]
21
+ **status** | [**V1WorkflowNodeStatus**](V1WorkflowNodeStatus.md) | | [optional]
22
+ **attributes** | [**V1WorkflowNodeAttributes**](V1WorkflowNodeAttributes.md) | | [optional]
23
+ **processed_by_operation** | **str** | Output only. Optional. Resource name of the latest Operation that has processed or is currently processing this WorkflowNode. | [optional] [readonly]
24
+
25
+ ## Example
26
+
27
+ ```python
28
+ from eval_studio_client.api.models.required_the_updated_workflow_node import RequiredTheUpdatedWorkflowNode
29
+
30
+ # TODO update the JSON string below
31
+ json = "{}"
32
+ # create an instance of RequiredTheUpdatedWorkflowNode from a JSON string
33
+ required_the_updated_workflow_node_instance = RequiredTheUpdatedWorkflowNode.from_json(json)
34
+ # print the JSON string representation of the object
35
+ print(RequiredTheUpdatedWorkflowNode.to_json())
36
+
37
+ # convert the object into a dict
38
+ required_the_updated_workflow_node_dict = required_the_updated_workflow_node_instance.to_dict()
39
+ # create an instance of RequiredTheUpdatedWorkflowNode from a dict
40
+ required_the_updated_workflow_node_from_dict = RequiredTheUpdatedWorkflowNode.from_dict(required_the_updated_workflow_node_dict)
41
+ ```
42
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
43
+
44
+
@@ -11,7 +11,9 @@ Method | HTTP request | Description
11
11
  [**test_service_delete_test**](TestServiceApi.md#test_service_delete_test) | **DELETE** /v1/{name_6} |
12
12
  [**test_service_generate_test_cases**](TestServiceApi.md#test_service_generate_test_cases) | **POST** /v1/{name}:generateTestCases |
13
13
  [**test_service_get_test**](TestServiceApi.md#test_service_get_test) | **GET** /v1/{name_9} |
14
+ [**test_service_import_test_cases_from_library**](TestServiceApi.md#test_service_import_test_cases_from_library) | **POST** /v1/{name}:importTestCasesFromLibrary |
14
15
  [**test_service_list_most_recent_tests**](TestServiceApi.md#test_service_list_most_recent_tests) | **GET** /v1/tests:mostRecent |
16
+ [**test_service_list_test_case_library_items**](TestServiceApi.md#test_service_list_test_case_library_items) | **POST** /v1/{name}:listTestCaseLibraryItems |
15
17
  [**test_service_list_tests**](TestServiceApi.md#test_service_list_tests) | **GET** /v1/tests |
16
18
  [**test_service_perturb_test**](TestServiceApi.md#test_service_perturb_test) | **POST** /v1/{name}:perturb |
17
19
  [**test_service_update_test**](TestServiceApi.md#test_service_update_test) | **PATCH** /v1/{test.name} |
@@ -487,6 +489,75 @@ No authorization required
487
489
 
488
490
  [[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)
489
491
 
492
+ # **test_service_import_test_cases_from_library**
493
+ > V1ImportTestCasesFromLibraryResponse test_service_import_test_cases_from_library(name, body)
494
+
495
+
496
+
497
+ ### Example
498
+
499
+
500
+ ```python
501
+ import eval_studio_client.api
502
+ from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
503
+ from eval_studio_client.api.models.v1_import_test_cases_from_library_response import V1ImportTestCasesFromLibraryResponse
504
+ from eval_studio_client.api.rest import ApiException
505
+ from pprint import pprint
506
+
507
+ # Defining the host is optional and defaults to http://localhost
508
+ # See configuration.py for a list of all supported configuration parameters.
509
+ configuration = eval_studio_client.api.Configuration(
510
+ host = "http://localhost"
511
+ )
512
+
513
+
514
+ # Enter a context with an instance of the API client
515
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
516
+ # Create an instance of the API class
517
+ api_instance = eval_studio_client.api.TestServiceApi(api_client)
518
+ name = 'name_example' # str | Required. The Test for which to get TestCases.
519
+ body = eval_studio_client.api.TestServiceImportTestCasesFromLibraryRequest() # TestServiceImportTestCasesFromLibraryRequest |
520
+
521
+ try:
522
+ api_response = api_instance.test_service_import_test_cases_from_library(name, body)
523
+ print("The response of TestServiceApi->test_service_import_test_cases_from_library:\n")
524
+ pprint(api_response)
525
+ except Exception as e:
526
+ print("Exception when calling TestServiceApi->test_service_import_test_cases_from_library: %s\n" % e)
527
+ ```
528
+
529
+
530
+
531
+ ### Parameters
532
+
533
+
534
+ Name | Type | Description | Notes
535
+ ------------- | ------------- | ------------- | -------------
536
+ **name** | **str**| Required. The Test for which to get TestCases. |
537
+ **body** | [**TestServiceImportTestCasesFromLibraryRequest**](TestServiceImportTestCasesFromLibraryRequest.md)| |
538
+
539
+ ### Return type
540
+
541
+ [**V1ImportTestCasesFromLibraryResponse**](V1ImportTestCasesFromLibraryResponse.md)
542
+
543
+ ### Authorization
544
+
545
+ No authorization required
546
+
547
+ ### HTTP request headers
548
+
549
+ - **Content-Type**: application/json
550
+ - **Accept**: application/json
551
+
552
+ ### HTTP response details
553
+
554
+ | Status code | Description | Response headers |
555
+ |-------------|-------------|------------------|
556
+ **200** | A successful response. | - |
557
+ **0** | An unexpected error response. | - |
558
+
559
+ [[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)
560
+
490
561
  # **test_service_list_most_recent_tests**
491
562
  > V1ListMostRecentTestsResponse test_service_list_most_recent_tests(limit=limit)
492
563
 
@@ -553,6 +624,75 @@ No authorization required
553
624
 
554
625
  [[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)
555
626
 
627
+ # **test_service_list_test_case_library_items**
628
+ > V1ListTestCaseLibraryItemsResponse test_service_list_test_case_library_items(name, body)
629
+
630
+
631
+
632
+ ### Example
633
+
634
+
635
+ ```python
636
+ import eval_studio_client.api
637
+ from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
638
+ from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
639
+ from eval_studio_client.api.rest import ApiException
640
+ from pprint import pprint
641
+
642
+ # Defining the host is optional and defaults to http://localhost
643
+ # See configuration.py for a list of all supported configuration parameters.
644
+ configuration = eval_studio_client.api.Configuration(
645
+ host = "http://localhost"
646
+ )
647
+
648
+
649
+ # Enter a context with an instance of the API client
650
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
651
+ # Create an instance of the API class
652
+ api_instance = eval_studio_client.api.TestServiceApi(api_client)
653
+ name = 'name_example' # str | Required. The Test for which to list the items.
654
+ body = eval_studio_client.api.TestServiceListTestCaseLibraryItemsRequest() # TestServiceListTestCaseLibraryItemsRequest |
655
+
656
+ try:
657
+ api_response = api_instance.test_service_list_test_case_library_items(name, body)
658
+ print("The response of TestServiceApi->test_service_list_test_case_library_items:\n")
659
+ pprint(api_response)
660
+ except Exception as e:
661
+ print("Exception when calling TestServiceApi->test_service_list_test_case_library_items: %s\n" % e)
662
+ ```
663
+
664
+
665
+
666
+ ### Parameters
667
+
668
+
669
+ Name | Type | Description | Notes
670
+ ------------- | ------------- | ------------- | -------------
671
+ **name** | **str**| Required. The Test for which to list the items. |
672
+ **body** | [**TestServiceListTestCaseLibraryItemsRequest**](TestServiceListTestCaseLibraryItemsRequest.md)| |
673
+
674
+ ### Return type
675
+
676
+ [**V1ListTestCaseLibraryItemsResponse**](V1ListTestCaseLibraryItemsResponse.md)
677
+
678
+ ### Authorization
679
+
680
+ No authorization required
681
+
682
+ ### HTTP request headers
683
+
684
+ - **Content-Type**: application/json
685
+ - **Accept**: application/json
686
+
687
+ ### HTTP response details
688
+
689
+ | Status code | Description | Response headers |
690
+ |-------------|-------------|------------------|
691
+ **200** | A successful response. | - |
692
+ **0** | An unexpected error response. | - |
693
+
694
+ [[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)
695
+
556
696
  # **test_service_list_tests**
557
697
  > V1ListTestsResponse test_service_list_tests(order_by=order_by)
558
698
 
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **base_llm_model** | **str** | Optional. The base LLM model to use for generating the prompts. Selected automatically if not specified. | [optional]
11
11
  **generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional. Generators to use for generation. If not specified, all generators are selected. | [optional]
12
12
  **h2ogpte_collection_id** | **str** | Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be created. | [optional]
13
+ **topics** | **List[str]** | Optional. Optional. Topics to generate questions for. If not specified, use document summarization as topic generation. | [optional]
13
14
 
14
15
  ## Example
15
16
 
@@ -0,0 +1,32 @@
1
+ # TestServiceImportTestCasesFromLibraryRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **operation** | **str** | Required. The Operation processing this prompt library retrieval process. | [optional]
9
+ **test_suite_url** | **str** | Required. The URL of the library test suite to get TestCases from (sample). | [optional]
10
+ **count** | **int** | Required. The number of TestCases to get from the library. | [optional]
11
+ **test_document_urls** | **List[str]** | Optional. The list of target Test corpus document URLs to skip when returning library TestCases corpus. | [optional]
12
+
13
+ ## Example
14
+
15
+ ```python
16
+ from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
17
+
18
+ # TODO update the JSON string below
19
+ json = "{}"
20
+ # create an instance of TestServiceImportTestCasesFromLibraryRequest from a JSON string
21
+ test_service_import_test_cases_from_library_request_instance = TestServiceImportTestCasesFromLibraryRequest.from_json(json)
22
+ # print the JSON string representation of the object
23
+ print(TestServiceImportTestCasesFromLibraryRequest.to_json())
24
+
25
+ # convert the object into a dict
26
+ test_service_import_test_cases_from_library_request_dict = test_service_import_test_cases_from_library_request_instance.to_dict()
27
+ # create an instance of TestServiceImportTestCasesFromLibraryRequest from a dict
28
+ test_service_import_test_cases_from_library_request_from_dict = TestServiceImportTestCasesFromLibraryRequest.from_dict(test_service_import_test_cases_from_library_request_dict)
29
+ ```
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31
+
32
+