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
@@ -17,6 +17,9 @@
17
17
  {
18
18
  "name": "EvaluatorService"
19
19
  },
20
+ {
21
+ "name": "HumanCalibrationService"
22
+ },
20
23
  {
21
24
  "name": "InfoService"
22
25
  },
@@ -41,6 +44,9 @@
41
44
  {
42
45
  "name": "PromptGenerationService"
43
46
  },
47
+ {
48
+ "name": "PromptLibraryService"
49
+ },
44
50
  {
45
51
  "name": "TestCaseService"
46
52
  },
@@ -55,6 +61,15 @@
55
61
  },
56
62
  {
57
63
  "name": "WhoAmIService"
64
+ },
65
+ {
66
+ "name": "WorkflowEdgeService"
67
+ },
68
+ {
69
+ "name": "WorkflowNodeService"
70
+ },
71
+ {
72
+ "name": "WorkflowService"
58
73
  }
59
74
  ],
60
75
  "consumes": [
@@ -1506,11 +1521,247 @@
1506
1521
  }
1507
1522
  }
1508
1523
  },
1524
+ "parameters": [
1525
+ {
1526
+ "name": "defaultH2ogpteModel.name",
1527
+ "description": "Output only. Name of the Model resource. e.g.: \"models/\u003cUUID\u003e\"",
1528
+ "in": "query",
1529
+ "required": false,
1530
+ "type": "string"
1531
+ },
1532
+ {
1533
+ "name": "defaultH2ogpteModel.createTime",
1534
+ "description": "Output only. Timestamp when the Model was created.",
1535
+ "in": "query",
1536
+ "required": false,
1537
+ "type": "string",
1538
+ "format": "date-time"
1539
+ },
1540
+ {
1541
+ "name": "defaultH2ogpteModel.creator",
1542
+ "description": "Output only. Name of the user or service that requested creation of the Model.",
1543
+ "in": "query",
1544
+ "required": false,
1545
+ "type": "string"
1546
+ },
1547
+ {
1548
+ "name": "defaultH2ogpteModel.updateTime",
1549
+ "description": "Output only. Optional. Timestamp when the Model was last updated.",
1550
+ "in": "query",
1551
+ "required": false,
1552
+ "type": "string",
1553
+ "format": "date-time"
1554
+ },
1555
+ {
1556
+ "name": "defaultH2ogpteModel.updater",
1557
+ "description": "Output only. Optional. Name of the user or service that requested update of the Model.",
1558
+ "in": "query",
1559
+ "required": false,
1560
+ "type": "string"
1561
+ },
1562
+ {
1563
+ "name": "defaultH2ogpteModel.deleteTime",
1564
+ "description": "Output only. Optional. Set when the Model is deleted. When set Model should be considered as\ndeleted.",
1565
+ "in": "query",
1566
+ "required": false,
1567
+ "type": "string",
1568
+ "format": "date-time"
1569
+ },
1570
+ {
1571
+ "name": "defaultH2ogpteModel.deleter",
1572
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Model.",
1573
+ "in": "query",
1574
+ "required": false,
1575
+ "type": "string"
1576
+ },
1577
+ {
1578
+ "name": "defaultH2ogpteModel.displayName",
1579
+ "description": "Human readable name of the Model.",
1580
+ "in": "query",
1581
+ "required": false,
1582
+ "type": "string"
1583
+ },
1584
+ {
1585
+ "name": "defaultH2ogpteModel.description",
1586
+ "description": "Optional. Arbitrary description of the Model.",
1587
+ "in": "query",
1588
+ "required": false,
1589
+ "type": "string"
1590
+ },
1591
+ {
1592
+ "name": "defaultH2ogpteModel.url",
1593
+ "description": "Optional. Immutable. Absolute URL to the Model.",
1594
+ "in": "query",
1595
+ "required": false,
1596
+ "type": "string"
1597
+ },
1598
+ {
1599
+ "name": "defaultH2ogpteModel.apiKey",
1600
+ "description": "Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public\nclients (front-end). Set only for internal (server-to-worker) communication.",
1601
+ "in": "query",
1602
+ "required": false,
1603
+ "type": "string"
1604
+ },
1605
+ {
1606
+ "name": "defaultH2ogpteModel.type",
1607
+ "description": "Immutable. Type of this Model.\n\n - MODEL_TYPE_UNSPECIFIED: Unspecified type.\n - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG.\n - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG.\n - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM.\n - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM.\n - MODEL_TYPE_OPENAI_CHAT: OpenAI chat.\n - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat.\n - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat.\n - MODEL_TYPE_H2OLLMOPS: H2O LLMOps.\n - MODEL_TYPE_OLLAMA: Ollama.\n - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock.",
1608
+ "in": "query",
1609
+ "required": false,
1610
+ "type": "string",
1611
+ "enum": [
1612
+ "MODEL_TYPE_UNSPECIFIED",
1613
+ "MODEL_TYPE_H2OGPTE_RAG",
1614
+ "MODEL_TYPE_OPENAI_RAG",
1615
+ "MODEL_TYPE_H2OGPTE_LLM",
1616
+ "MODEL_TYPE_H2OGPT_LLM",
1617
+ "MODEL_TYPE_OPENAI_CHAT",
1618
+ "MODEL_TYPE_AZURE_OPENAI_CHAT",
1619
+ "MODEL_TYPE_OPENAI_API_CHAT",
1620
+ "MODEL_TYPE_H2OLLMOPS",
1621
+ "MODEL_TYPE_OLLAMA",
1622
+ "MODEL_TYPE_AMAZON_BEDROCK"
1623
+ ],
1624
+ "default": "MODEL_TYPE_UNSPECIFIED"
1625
+ },
1626
+ {
1627
+ "name": "defaultH2ogpteModel.parameters",
1628
+ "description": "Optional. Model specific parameters in JSON format.",
1629
+ "in": "query",
1630
+ "required": false,
1631
+ "type": "string"
1632
+ },
1633
+ {
1634
+ "name": "defaultH2ogpteModel.demo",
1635
+ "description": "Output only. Whether the Model is a demo resource or not. Demo resources are read only.",
1636
+ "in": "query",
1637
+ "required": false,
1638
+ "type": "boolean"
1639
+ }
1640
+ ],
1509
1641
  "tags": [
1510
1642
  "PerturbatorService"
1511
1643
  ]
1512
1644
  }
1513
1645
  },
1646
+ "/v1/promptLibraryItems": {
1647
+ "get": {
1648
+ "operationId": "PromptLibraryService_ListPromptLibraryItems",
1649
+ "responses": {
1650
+ "200": {
1651
+ "description": "A successful response.",
1652
+ "schema": {
1653
+ "$ref": "#/definitions/v1ListPromptLibraryItemsResponse"
1654
+ }
1655
+ },
1656
+ "default": {
1657
+ "description": "An unexpected error response.",
1658
+ "schema": {
1659
+ "$ref": "#/definitions/rpcStatus"
1660
+ }
1661
+ }
1662
+ },
1663
+ "parameters": [
1664
+ {
1665
+ "name": "filterByCategories",
1666
+ "description": "Optional. Filter by categories.",
1667
+ "in": "query",
1668
+ "required": false,
1669
+ "type": "array",
1670
+ "items": {
1671
+ "type": "string"
1672
+ },
1673
+ "collectionFormat": "multi"
1674
+ },
1675
+ {
1676
+ "name": "filterByPurposes",
1677
+ "description": "Optional. Filter by purposes.",
1678
+ "in": "query",
1679
+ "required": false,
1680
+ "type": "array",
1681
+ "items": {
1682
+ "type": "string"
1683
+ },
1684
+ "collectionFormat": "multi"
1685
+ },
1686
+ {
1687
+ "name": "filterByEvaluates",
1688
+ "description": "Optional. Filter by evaluates.",
1689
+ "in": "query",
1690
+ "required": false,
1691
+ "type": "array",
1692
+ "items": {
1693
+ "type": "string"
1694
+ },
1695
+ "collectionFormat": "multi"
1696
+ },
1697
+ {
1698
+ "name": "filterByOrigin",
1699
+ "description": "Optional. Filter by origin.",
1700
+ "in": "query",
1701
+ "required": false,
1702
+ "type": "string"
1703
+ },
1704
+ {
1705
+ "name": "filterByTestCaseCount",
1706
+ "description": "Optional. Filter by test case count.",
1707
+ "in": "query",
1708
+ "required": false,
1709
+ "type": "integer",
1710
+ "format": "int64"
1711
+ },
1712
+ {
1713
+ "name": "filterByTestCount",
1714
+ "description": "Optional. Filter by test count.",
1715
+ "in": "query",
1716
+ "required": false,
1717
+ "type": "integer",
1718
+ "format": "int64"
1719
+ },
1720
+ {
1721
+ "name": "filterByFts",
1722
+ "description": "Optional. Filter by FTS.",
1723
+ "in": "query",
1724
+ "required": false,
1725
+ "type": "string"
1726
+ }
1727
+ ],
1728
+ "tags": [
1729
+ "PromptLibraryService"
1730
+ ]
1731
+ }
1732
+ },
1733
+ "/v1/promptLibraryItems:importTestCases": {
1734
+ "post": {
1735
+ "operationId": "PromptLibraryService_ImportTestCases",
1736
+ "responses": {
1737
+ "200": {
1738
+ "description": "A successful response.",
1739
+ "schema": {
1740
+ "$ref": "#/definitions/v1Operation"
1741
+ }
1742
+ },
1743
+ "default": {
1744
+ "description": "An unexpected error response.",
1745
+ "schema": {
1746
+ "$ref": "#/definitions/rpcStatus"
1747
+ }
1748
+ }
1749
+ },
1750
+ "parameters": [
1751
+ {
1752
+ "name": "body",
1753
+ "in": "body",
1754
+ "required": true,
1755
+ "schema": {
1756
+ "$ref": "#/definitions/v1ImportTestCasesRequest"
1757
+ }
1758
+ }
1759
+ ],
1760
+ "tags": [
1761
+ "PromptLibraryService"
1762
+ ]
1763
+ }
1764
+ },
1514
1765
  "/v1/testClasses": {
1515
1766
  "get": {
1516
1767
  "operationId": "TestClassService_ListTestClasses",
@@ -1884,14 +2135,15 @@
1884
2135
  ]
1885
2136
  }
1886
2137
  },
1887
- "/v1/{dashboard.name}": {
1888
- "patch": {
1889
- "operationId": "DashboardService_UpdateDashboard",
2138
+ "/v1/workflows": {
2139
+ "get": {
2140
+ "summary": "ListWorkflows lists Workflows.",
2141
+ "operationId": "WorkflowService_ListWorkflows",
1890
2142
  "responses": {
1891
2143
  "200": {
1892
2144
  "description": "A successful response.",
1893
2145
  "schema": {
1894
- "$ref": "#/definitions/v1UpdateDashboardResponse"
2146
+ "$ref": "#/definitions/v1ListWorkflowsResponse"
1895
2147
  }
1896
2148
  },
1897
2149
  "default": {
@@ -1901,37 +2153,209 @@
1901
2153
  }
1902
2154
  }
1903
2155
  },
1904
- "parameters": [
1905
- {
1906
- "name": "dashboard.name",
1907
- "description": "Output only. Name of the Dashboard resource. e.g.: \"dashboards/\u003cUUID\u003e\"",
1908
- "in": "path",
1909
- "required": true,
1910
- "type": "string",
1911
- "pattern": "dashboards/[^/]+"
2156
+ "tags": [
2157
+ "WorkflowService"
2158
+ ]
2159
+ },
2160
+ "post": {
2161
+ "summary": "CreateWorkflow creates a Workflow.",
2162
+ "operationId": "WorkflowService_CreateWorkflow",
2163
+ "responses": {
2164
+ "200": {
2165
+ "description": "A successful response.",
2166
+ "schema": {
2167
+ "$ref": "#/definitions/v1CreateWorkflowResponse"
2168
+ }
1912
2169
  },
2170
+ "default": {
2171
+ "description": "An unexpected error response.",
2172
+ "schema": {
2173
+ "$ref": "#/definitions/rpcStatus"
2174
+ }
2175
+ }
2176
+ },
2177
+ "parameters": [
1913
2178
  {
1914
- "name": "dashboard",
1915
- "description": "Required. The Dashboard to update.\n\nThe Dashboard's `name` field is used to identify the Dashboard to update. Format:\ndashboards/{dashboard}",
2179
+ "name": "workflow",
2180
+ "description": "Required. The Workflow to create.",
1916
2181
  "in": "body",
1917
2182
  "required": true,
1918
2183
  "schema": {
1919
- "type": "object",
1920
- "properties": {
1921
- "createTime": {
1922
- "type": "string",
1923
- "format": "date-time",
1924
- "description": "Output only. Timestamp when the Dashboard was created.",
1925
- "readOnly": true
1926
- },
1927
- "creator": {
1928
- "type": "string",
1929
- "description": "Output only. Name of the user or service that requested creation of the Dashboard.",
1930
- "readOnly": true
1931
- },
1932
- "updateTime": {
1933
- "type": "string",
1934
- "format": "date-time",
2184
+ "$ref": "#/definitions/v1Workflow"
2185
+ }
2186
+ }
2187
+ ],
2188
+ "tags": [
2189
+ "WorkflowService"
2190
+ ]
2191
+ }
2192
+ },
2193
+ "/v1/workflows/*/edges:batchGet": {
2194
+ "get": {
2195
+ "summary": "Retrieves all WorkflowEdges with the specified resource names. If any of the WorkflowEdges do\nnot exist an error is returned. The order of resource names in the request and the returned\nWorkflowEdges might differ.",
2196
+ "operationId": "WorkflowEdgeService_BatchGetWorkflowEdges",
2197
+ "responses": {
2198
+ "200": {
2199
+ "description": "A successful response.",
2200
+ "schema": {
2201
+ "$ref": "#/definitions/v1BatchGetWorkflowEdgesResponse"
2202
+ }
2203
+ },
2204
+ "default": {
2205
+ "description": "An unexpected error response.",
2206
+ "schema": {
2207
+ "$ref": "#/definitions/rpcStatus"
2208
+ }
2209
+ }
2210
+ },
2211
+ "parameters": [
2212
+ {
2213
+ "name": "names",
2214
+ "description": "Required. The resource names of the WorkflowEdges to retrieve. Maximum 1000 items.",
2215
+ "in": "query",
2216
+ "required": false,
2217
+ "type": "array",
2218
+ "items": {
2219
+ "type": "string"
2220
+ },
2221
+ "collectionFormat": "multi"
2222
+ }
2223
+ ],
2224
+ "tags": [
2225
+ "WorkflowEdgeService"
2226
+ ]
2227
+ }
2228
+ },
2229
+ "/v1/workflows/*/nodes:batchGet": {
2230
+ "get": {
2231
+ "summary": "BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of\nthe WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without\nerror. The order of resource names in the request and the returned WorkflowNodes might differ.",
2232
+ "operationId": "WorkflowNodeService_BatchGetWorkflowNodes",
2233
+ "responses": {
2234
+ "200": {
2235
+ "description": "A successful response.",
2236
+ "schema": {
2237
+ "$ref": "#/definitions/v1BatchGetWorkflowNodesResponse"
2238
+ }
2239
+ },
2240
+ "default": {
2241
+ "description": "An unexpected error response.",
2242
+ "schema": {
2243
+ "$ref": "#/definitions/rpcStatus"
2244
+ }
2245
+ }
2246
+ },
2247
+ "parameters": [
2248
+ {
2249
+ "name": "names",
2250
+ "description": "Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.",
2251
+ "in": "query",
2252
+ "required": false,
2253
+ "type": "array",
2254
+ "items": {
2255
+ "type": "string"
2256
+ },
2257
+ "collectionFormat": "multi"
2258
+ },
2259
+ {
2260
+ "name": "view",
2261
+ "description": "Optional. The level of detail to include in the response.\n\n - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view.\n - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted.\n - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.",
2262
+ "in": "query",
2263
+ "required": false,
2264
+ "type": "string",
2265
+ "enum": [
2266
+ "WORKFLOW_NODE_VIEW_UNSPECIFIED",
2267
+ "WORKFLOW_NODE_VIEW_BASIC",
2268
+ "WORKFLOW_NODE_VIEW_FULL"
2269
+ ],
2270
+ "default": "WORKFLOW_NODE_VIEW_UNSPECIFIED"
2271
+ }
2272
+ ],
2273
+ "tags": [
2274
+ "WorkflowNodeService"
2275
+ ]
2276
+ }
2277
+ },
2278
+ "/v1/workflows:batchDelete": {
2279
+ "post": {
2280
+ "summary": "BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error\nis returned.",
2281
+ "operationId": "WorkflowService_BatchDeleteWorkflows",
2282
+ "responses": {
2283
+ "200": {
2284
+ "description": "A successful response.",
2285
+ "schema": {
2286
+ "$ref": "#/definitions/v1BatchDeleteWorkflowsResponse"
2287
+ }
2288
+ },
2289
+ "default": {
2290
+ "description": "An unexpected error response.",
2291
+ "schema": {
2292
+ "$ref": "#/definitions/rpcStatus"
2293
+ }
2294
+ }
2295
+ },
2296
+ "parameters": [
2297
+ {
2298
+ "name": "body",
2299
+ "in": "body",
2300
+ "required": true,
2301
+ "schema": {
2302
+ "$ref": "#/definitions/v1BatchDeleteWorkflowsRequest"
2303
+ }
2304
+ }
2305
+ ],
2306
+ "tags": [
2307
+ "WorkflowService"
2308
+ ]
2309
+ }
2310
+ },
2311
+ "/v1/{dashboard.name}": {
2312
+ "patch": {
2313
+ "operationId": "DashboardService_UpdateDashboard",
2314
+ "responses": {
2315
+ "200": {
2316
+ "description": "A successful response.",
2317
+ "schema": {
2318
+ "$ref": "#/definitions/v1UpdateDashboardResponse"
2319
+ }
2320
+ },
2321
+ "default": {
2322
+ "description": "An unexpected error response.",
2323
+ "schema": {
2324
+ "$ref": "#/definitions/rpcStatus"
2325
+ }
2326
+ }
2327
+ },
2328
+ "parameters": [
2329
+ {
2330
+ "name": "dashboard.name",
2331
+ "description": "Output only. Name of the Dashboard resource. e.g.: \"dashboards/\u003cUUID\u003e\"",
2332
+ "in": "path",
2333
+ "required": true,
2334
+ "type": "string",
2335
+ "pattern": "dashboards/[^/]+"
2336
+ },
2337
+ {
2338
+ "name": "dashboard",
2339
+ "description": "Required. The Dashboard to update.\n\nThe Dashboard's `name` field is used to identify the Dashboard to update. Format:\ndashboards/{dashboard}",
2340
+ "in": "body",
2341
+ "required": true,
2342
+ "schema": {
2343
+ "type": "object",
2344
+ "properties": {
2345
+ "createTime": {
2346
+ "type": "string",
2347
+ "format": "date-time",
2348
+ "description": "Output only. Timestamp when the Dashboard was created.",
2349
+ "readOnly": true
2350
+ },
2351
+ "creator": {
2352
+ "type": "string",
2353
+ "description": "Output only. Name of the user or service that requested creation of the Dashboard.",
2354
+ "readOnly": true
2355
+ },
2356
+ "updateTime": {
2357
+ "type": "string",
2358
+ "format": "date-time",
1935
2359
  "description": "Output only. Optional. Timestamp when the Dashboard was last updated.",
1936
2360
  "readOnly": true
1937
2361
  },
@@ -2363,6 +2787,85 @@
2363
2787
  ]
2364
2788
  }
2365
2789
  },
2790
+ "/v1/{name_10}": {
2791
+ "get": {
2792
+ "summary": "GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without\nerror, it has a delete_time and deleter fields set.",
2793
+ "operationId": "WorkflowNodeService_GetWorkflowNode",
2794
+ "responses": {
2795
+ "200": {
2796
+ "description": "A successful response.",
2797
+ "schema": {
2798
+ "$ref": "#/definitions/v1GetWorkflowNodeResponse"
2799
+ }
2800
+ },
2801
+ "default": {
2802
+ "description": "An unexpected error response.",
2803
+ "schema": {
2804
+ "$ref": "#/definitions/rpcStatus"
2805
+ }
2806
+ }
2807
+ },
2808
+ "parameters": [
2809
+ {
2810
+ "name": "name_10",
2811
+ "description": "Required. The name of the WorkflowNode to retrieve.",
2812
+ "in": "path",
2813
+ "required": true,
2814
+ "type": "string",
2815
+ "pattern": "workflows/[^/]+/nodes/[^/]+"
2816
+ },
2817
+ {
2818
+ "name": "view",
2819
+ "description": "Optional. The level of detail to include in the response.\n\n - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view.\n - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted.\n - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.",
2820
+ "in": "query",
2821
+ "required": false,
2822
+ "type": "string",
2823
+ "enum": [
2824
+ "WORKFLOW_NODE_VIEW_UNSPECIFIED",
2825
+ "WORKFLOW_NODE_VIEW_BASIC",
2826
+ "WORKFLOW_NODE_VIEW_FULL"
2827
+ ],
2828
+ "default": "WORKFLOW_NODE_VIEW_UNSPECIFIED"
2829
+ }
2830
+ ],
2831
+ "tags": [
2832
+ "WorkflowNodeService"
2833
+ ]
2834
+ }
2835
+ },
2836
+ "/v1/{name_11}": {
2837
+ "get": {
2838
+ "summary": "GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a\ndelete_time and deleter fields set.",
2839
+ "operationId": "WorkflowService_GetWorkflow",
2840
+ "responses": {
2841
+ "200": {
2842
+ "description": "A successful response.",
2843
+ "schema": {
2844
+ "$ref": "#/definitions/v1GetWorkflowResponse"
2845
+ }
2846
+ },
2847
+ "default": {
2848
+ "description": "An unexpected error response.",
2849
+ "schema": {
2850
+ "$ref": "#/definitions/rpcStatus"
2851
+ }
2852
+ }
2853
+ },
2854
+ "parameters": [
2855
+ {
2856
+ "name": "name_11",
2857
+ "description": "Required. The name of the Workflow to retrieve.",
2858
+ "in": "path",
2859
+ "required": true,
2860
+ "type": "string",
2861
+ "pattern": "workflows/[^/]+"
2862
+ }
2863
+ ],
2864
+ "tags": [
2865
+ "WorkflowService"
2866
+ ]
2867
+ }
2868
+ },
2366
2869
  "/v1/{name_1}": {
2367
2870
  "get": {
2368
2871
  "operationId": "DocumentService_GetDocument",
@@ -2772,6 +3275,37 @@
2772
3275
  "tags": [
2773
3276
  "TestCaseService"
2774
3277
  ]
3278
+ },
3279
+ "delete": {
3280
+ "summary": "DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error\nis returned.",
3281
+ "operationId": "WorkflowNodeService_DeleteWorkflowNode",
3282
+ "responses": {
3283
+ "200": {
3284
+ "description": "A successful response.",
3285
+ "schema": {
3286
+ "$ref": "#/definitions/v1DeleteWorkflowNodeResponse"
3287
+ }
3288
+ },
3289
+ "default": {
3290
+ "description": "An unexpected error response.",
3291
+ "schema": {
3292
+ "$ref": "#/definitions/rpcStatus"
3293
+ }
3294
+ }
3295
+ },
3296
+ "parameters": [
3297
+ {
3298
+ "name": "name_7",
3299
+ "description": "Required. The name of the WorkflowNode to delete.",
3300
+ "in": "path",
3301
+ "required": true,
3302
+ "type": "string",
3303
+ "pattern": "workflows/[^/]+/nodes/[^/]+"
3304
+ }
3305
+ ],
3306
+ "tags": [
3307
+ "WorkflowNodeService"
3308
+ ]
2775
3309
  }
2776
3310
  },
2777
3311
  "/v1/{name_8}": {
@@ -2804,16 +3338,15 @@
2804
3338
  "tags": [
2805
3339
  "TestClassService"
2806
3340
  ]
2807
- }
2808
- },
2809
- "/v1/{name_9}": {
2810
- "get": {
2811
- "operationId": "TestService_GetTest",
3341
+ },
3342
+ "delete": {
3343
+ "summary": "DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.",
3344
+ "operationId": "WorkflowService_DeleteWorkflow",
2812
3345
  "responses": {
2813
3346
  "200": {
2814
3347
  "description": "A successful response.",
2815
3348
  "schema": {
2816
- "$ref": "#/definitions/v1GetTestResponse"
3349
+ "$ref": "#/definitions/v1DeleteWorkflowResponse"
2817
3350
  }
2818
3351
  },
2819
3352
  "default": {
@@ -2825,27 +3358,27 @@
2825
3358
  },
2826
3359
  "parameters": [
2827
3360
  {
2828
- "name": "name_9",
2829
- "description": "Required. The name of the Test to retrieve.",
3361
+ "name": "name_8",
3362
+ "description": "Required. The name of the Workflow to delete.",
2830
3363
  "in": "path",
2831
3364
  "required": true,
2832
3365
  "type": "string",
2833
- "pattern": "tests/[^/]+"
3366
+ "pattern": "workflows/[^/]+"
2834
3367
  }
2835
3368
  ],
2836
3369
  "tags": [
2837
- "TestService"
3370
+ "WorkflowService"
2838
3371
  ]
2839
3372
  }
2840
3373
  },
2841
- "/v1/{name}": {
3374
+ "/v1/{name_9}": {
2842
3375
  "get": {
2843
- "operationId": "DashboardService_GetDashboard",
3376
+ "operationId": "TestService_GetTest",
2844
3377
  "responses": {
2845
3378
  "200": {
2846
3379
  "description": "A successful response.",
2847
3380
  "schema": {
2848
- "$ref": "#/definitions/v1GetDashboardResponse"
3381
+ "$ref": "#/definitions/v1GetTestResponse"
2849
3382
  }
2850
3383
  },
2851
3384
  "default": {
@@ -2857,8 +3390,40 @@
2857
3390
  },
2858
3391
  "parameters": [
2859
3392
  {
2860
- "name": "name",
2861
- "description": "Required. The name of the Dashboard to retrieve.",
3393
+ "name": "name_9",
3394
+ "description": "Required. The name of the Test to retrieve.",
3395
+ "in": "path",
3396
+ "required": true,
3397
+ "type": "string",
3398
+ "pattern": "tests/[^/]+"
3399
+ }
3400
+ ],
3401
+ "tags": [
3402
+ "TestService"
3403
+ ]
3404
+ }
3405
+ },
3406
+ "/v1/{name}": {
3407
+ "get": {
3408
+ "operationId": "DashboardService_GetDashboard",
3409
+ "responses": {
3410
+ "200": {
3411
+ "description": "A successful response.",
3412
+ "schema": {
3413
+ "$ref": "#/definitions/v1GetDashboardResponse"
3414
+ }
3415
+ },
3416
+ "default": {
3417
+ "description": "An unexpected error response.",
3418
+ "schema": {
3419
+ "$ref": "#/definitions/rpcStatus"
3420
+ }
3421
+ }
3422
+ },
3423
+ "parameters": [
3424
+ {
3425
+ "name": "name",
3426
+ "description": "Required. The name of the Dashboard to retrieve.",
2862
3427
  "in": "path",
2863
3428
  "required": true,
2864
3429
  "type": "string",
@@ -2962,11 +3527,18 @@
2962
3527
  "items": {
2963
3528
  "$ref": "#/definitions/v1TestCasesGenerator"
2964
3529
  },
2965
- "description": "Optional. Topics to generate TestCases for. If not specified, all topics are selected."
3530
+ "description": "Optional. Type of questions to generate TestCases for. If not specified, all types of questions are selected."
2966
3531
  },
2967
3532
  "h2ogpteCollectionId": {
2968
3533
  "type": "string",
2969
3534
  "description": "Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be\ncreated."
3535
+ },
3536
+ "topics": {
3537
+ "type": "array",
3538
+ "items": {
3539
+ "type": "string"
3540
+ },
3541
+ "description": "Optional. Topics to generate questions for. If not specified, use document summarization as topic generation."
2970
3542
  }
2971
3543
  }
2972
3544
  }
@@ -3033,6 +3605,13 @@
3033
3605
  "h2ogpteCollectionId": {
3034
3606
  "type": "string",
3035
3607
  "description": "Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be\ncreated."
3608
+ },
3609
+ "topics": {
3610
+ "type": "array",
3611
+ "items": {
3612
+ "type": "string"
3613
+ },
3614
+ "description": "Optional. Optional. Topics to generate questions for. If not specified, use document summarization as topic generation."
3036
3615
  }
3037
3616
  }
3038
3617
  }
@@ -3043,14 +3622,15 @@
3043
3622
  ]
3044
3623
  }
3045
3624
  },
3046
- "/v1/{name}:perturb": {
3047
- "post": {
3048
- "operationId": "TestService_PerturbTest",
3625
+ "/v1/{name}:getPrerequisites": {
3626
+ "get": {
3627
+ "summary": "GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the\nprerequisites of the specified WorkflowNode. The list might be empty. Large data might be\nstored in storage and not returned in the response. It is client's responsibility to retrieve\nthe data from storage using the content handlers. It is intended to be used by the Eval Studio\nWorkers.",
3628
+ "operationId": "WorkflowNodeService_GetWorkflowNodePrerequisites",
3049
3629
  "responses": {
3050
3630
  "200": {
3051
3631
  "description": "A successful response.",
3052
3632
  "schema": {
3053
- "$ref": "#/definitions/v1PerturbTestResponse"
3633
+ "$ref": "#/definitions/v1GetWorkflowNodePrerequisitesResponse"
3054
3634
  }
3055
3635
  },
3056
3636
  "default": {
@@ -3063,52 +3643,26 @@
3063
3643
  "parameters": [
3064
3644
  {
3065
3645
  "name": "name",
3066
- "description": "Required. The name of the Test to perturb.",
3646
+ "description": "Required. The name of the WorkflowNode to retrieve the prerequisites for.",
3067
3647
  "in": "path",
3068
3648
  "required": true,
3069
3649
  "type": "string",
3070
- "pattern": "tests/[^/]+"
3071
- },
3072
- {
3073
- "name": "body",
3074
- "in": "body",
3075
- "required": true,
3076
- "schema": {
3077
- "type": "object",
3078
- "properties": {
3079
- "perturbatorConfigurations": {
3080
- "type": "array",
3081
- "items": {
3082
- "type": "object",
3083
- "$ref": "#/definitions/v1PerturbatorConfiguration"
3084
- },
3085
- "description": "Required. PerturbatorConfigurations to apply to the Test."
3086
- },
3087
- "newTestDisplayName": {
3088
- "type": "string",
3089
- "description": "Required. Name of the newly created test."
3090
- },
3091
- "newTestDescription": {
3092
- "type": "string",
3093
- "description": "Optional. Description of the newly created Test."
3094
- }
3095
- }
3096
- }
3650
+ "pattern": "workflows/[^/]+/nodes/[^/]+"
3097
3651
  }
3098
3652
  ],
3099
3653
  "tags": [
3100
- "TestService"
3654
+ "WorkflowNodeService"
3101
3655
  ]
3102
3656
  }
3103
3657
  },
3104
- "/v1/{operation.name}": {
3105
- "patch": {
3106
- "operationId": "OperationService_UpdateOperation",
3658
+ "/v1/{name}:importTestCasesFromLibrary": {
3659
+ "post": {
3660
+ "operationId": "TestService_ImportTestCasesFromLibrary",
3107
3661
  "responses": {
3108
3662
  "200": {
3109
3663
  "description": "A successful response.",
3110
3664
  "schema": {
3111
- "$ref": "#/definitions/v1UpdateOperationResponse"
3665
+ "$ref": "#/definitions/v1ImportTestCasesFromLibraryResponse"
3112
3666
  }
3113
3667
  },
3114
3668
  "default": {
@@ -3120,89 +3674,57 @@
3120
3674
  },
3121
3675
  "parameters": [
3122
3676
  {
3123
- "name": "operation.name",
3124
- "description": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
3677
+ "name": "name",
3678
+ "description": "Required. The Test for which to get TestCases.",
3125
3679
  "in": "path",
3126
3680
  "required": true,
3127
3681
  "type": "string",
3128
- "pattern": "operations/[^/]+"
3682
+ "pattern": "tests/[^/]+"
3129
3683
  },
3130
3684
  {
3131
- "name": "operation",
3132
- "description": "Required. The Operation to update.\n\nThe Operation's `name` field is used to identify the Operation to update.\nFormat: operations/{operation}",
3685
+ "name": "body",
3133
3686
  "in": "body",
3134
3687
  "required": true,
3135
3688
  "schema": {
3136
3689
  "type": "object",
3137
3690
  "properties": {
3138
- "createTime": {
3139
- "type": "string",
3140
- "format": "date-time",
3141
- "description": "Output only. Timestamp when the Operation was created.",
3142
- "readOnly": true
3143
- },
3144
- "creator": {
3145
- "type": "string",
3146
- "description": "Output only. Name of the user or service that requested creation of the Operation.",
3147
- "readOnly": true
3148
- },
3149
- "updateTime": {
3150
- "type": "string",
3151
- "format": "date-time",
3152
- "description": "Output only. Optional. Timestamp when the Operation was last updated.",
3153
- "readOnly": true
3154
- },
3155
- "updater": {
3156
- "type": "string",
3157
- "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
3158
- "readOnly": true
3159
- },
3160
- "deleteTime": {
3691
+ "operation": {
3161
3692
  "type": "string",
3162
- "format": "date-time",
3163
- "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
3164
- "readOnly": true
3693
+ "description": "Required. The Operation processing this prompt library retrieval process."
3165
3694
  },
3166
- "deleter": {
3695
+ "testSuiteUrl": {
3167
3696
  "type": "string",
3168
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
3169
- "readOnly": true
3170
- },
3171
- "metadata": {
3172
- "$ref": "#/definitions/protobufAny",
3173
- "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
3174
- },
3175
- "done": {
3176
- "type": "boolean",
3177
- "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
3697
+ "description": "Required. The URL of the library test suite to get TestCases from (sample)."
3178
3698
  },
3179
- "error": {
3180
- "$ref": "#/definitions/rpcStatus",
3181
- "description": "The error result of the operation in case of failure or cancellation."
3699
+ "count": {
3700
+ "type": "integer",
3701
+ "format": "int64",
3702
+ "description": "Required. The number of TestCases to get from the library."
3182
3703
  },
3183
- "response": {
3184
- "$ref": "#/definitions/protobufAny",
3185
- "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
3704
+ "testDocumentUrls": {
3705
+ "type": "array",
3706
+ "items": {
3707
+ "type": "string"
3708
+ },
3709
+ "description": "Optional. The list of target Test corpus document URLs to skip when returning library\nTestCases corpus."
3186
3710
  }
3187
- },
3188
- "description": "The Operation's `name` field is used to identify the Operation to update.\nFormat: operations/{operation}",
3189
- "title": "Required. The Operation to update."
3711
+ }
3190
3712
  }
3191
3713
  }
3192
3714
  ],
3193
3715
  "tags": [
3194
- "OperationService"
3716
+ "TestService"
3195
3717
  ]
3196
3718
  }
3197
3719
  },
3198
- "/v1/{operation.name}:finalize": {
3199
- "patch": {
3200
- "operationId": "OperationService_FinalizeOperation",
3720
+ "/v1/{name}:listTestCaseLibraryItems": {
3721
+ "post": {
3722
+ "operationId": "TestService_ListTestCaseLibraryItems",
3201
3723
  "responses": {
3202
3724
  "200": {
3203
3725
  "description": "A successful response.",
3204
3726
  "schema": {
3205
- "$ref": "#/definitions/v1FinalizeOperationResponse"
3727
+ "$ref": "#/definitions/v1ListTestCaseLibraryItemsResponse"
3206
3728
  }
3207
3729
  },
3208
3730
  "default": {
@@ -3214,89 +3736,76 @@
3214
3736
  },
3215
3737
  "parameters": [
3216
3738
  {
3217
- "name": "operation.name",
3218
- "description": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
3739
+ "name": "name",
3740
+ "description": "Required. The Test for which to list the items.",
3219
3741
  "in": "path",
3220
3742
  "required": true,
3221
3743
  "type": "string",
3222
- "pattern": "operations/[^/]+"
3744
+ "pattern": "tests/[^/]+"
3223
3745
  },
3224
3746
  {
3225
- "name": "operation",
3226
- "description": "Required. The Operation to finalize.\n\nThe Operation's `name` field is used to identify the Operation to finalize.\nFormat: operations/{operation}",
3747
+ "name": "body",
3227
3748
  "in": "body",
3228
3749
  "required": true,
3229
3750
  "schema": {
3230
3751
  "type": "object",
3231
3752
  "properties": {
3232
- "createTime": {
3233
- "type": "string",
3234
- "format": "date-time",
3235
- "description": "Output only. Timestamp when the Operation was created.",
3236
- "readOnly": true
3237
- },
3238
- "creator": {
3239
- "type": "string",
3240
- "description": "Output only. Name of the user or service that requested creation of the Operation.",
3241
- "readOnly": true
3242
- },
3243
- "updateTime": {
3244
- "type": "string",
3245
- "format": "date-time",
3246
- "description": "Output only. Optional. Timestamp when the Operation was last updated.",
3247
- "readOnly": true
3753
+ "filterByCategories": {
3754
+ "type": "array",
3755
+ "items": {
3756
+ "type": "string"
3757
+ },
3758
+ "description": "Optional. Filter by categories."
3248
3759
  },
3249
- "updater": {
3250
- "type": "string",
3251
- "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
3252
- "readOnly": true
3760
+ "filterByPurposes": {
3761
+ "type": "array",
3762
+ "items": {
3763
+ "type": "string"
3764
+ },
3765
+ "description": "Optional. Filter by purposes."
3253
3766
  },
3254
- "deleteTime": {
3255
- "type": "string",
3256
- "format": "date-time",
3257
- "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
3258
- "readOnly": true
3767
+ "filterByEvaluates": {
3768
+ "type": "array",
3769
+ "items": {
3770
+ "type": "string"
3771
+ },
3772
+ "description": "Optional. Filter by evaluates."
3259
3773
  },
3260
- "deleter": {
3774
+ "filterByOrigin": {
3261
3775
  "type": "string",
3262
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
3263
- "readOnly": true
3264
- },
3265
- "metadata": {
3266
- "$ref": "#/definitions/protobufAny",
3267
- "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
3776
+ "description": "Optional. Filter by origin."
3268
3777
  },
3269
- "done": {
3270
- "type": "boolean",
3271
- "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
3778
+ "filterByTestCaseCount": {
3779
+ "type": "integer",
3780
+ "format": "int64",
3781
+ "description": "Optional. Filter by test case count."
3272
3782
  },
3273
- "error": {
3274
- "$ref": "#/definitions/rpcStatus",
3275
- "description": "The error result of the operation in case of failure or cancellation."
3783
+ "filterByTestCount": {
3784
+ "type": "integer",
3785
+ "format": "int64",
3786
+ "description": "Optional. Filter by test count."
3276
3787
  },
3277
- "response": {
3278
- "$ref": "#/definitions/protobufAny",
3279
- "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
3788
+ "filterByFts": {
3789
+ "type": "string",
3790
+ "description": "Optional. Filter by FTS."
3280
3791
  }
3281
- },
3282
- "description": "The Operation's `name` field is used to identify the Operation to finalize.\nFormat: operations/{operation}",
3283
- "title": "Required. The Operation to finalize."
3792
+ }
3284
3793
  }
3285
3794
  }
3286
3795
  ],
3287
3796
  "tags": [
3288
- "OperationService"
3797
+ "TestService"
3289
3798
  ]
3290
3799
  }
3291
3800
  },
3292
- "/v1/{parent}/perturbations": {
3801
+ "/v1/{name}:perturb": {
3293
3802
  "post": {
3294
- "operationId": "PerturbationService_CreatePerturbation",
3803
+ "operationId": "TestService_PerturbTest",
3295
3804
  "responses": {
3296
3805
  "200": {
3297
3806
  "description": "A successful response.",
3298
3807
  "schema": {
3299
- "$ref": "#/definitions/v1CreatePerturbationResponse"
3808
+ "$ref": "#/definitions/v1PerturbTestResponse"
3300
3809
  }
3301
3810
  },
3302
3811
  "default": {
@@ -3308,8 +3817,8 @@
3308
3817
  },
3309
3818
  "parameters": [
3310
3819
  {
3311
- "name": "parent",
3312
- "description": "Required. The Test being perturbed.",
3820
+ "name": "name",
3821
+ "description": "Required. The name of the Test to perturb.",
3313
3822
  "in": "path",
3314
3823
  "required": true,
3315
3824
  "type": "string",
@@ -3328,103 +3837,41 @@
3328
3837
  "type": "object",
3329
3838
  "$ref": "#/definitions/v1PerturbatorConfiguration"
3330
3839
  },
3331
- "description": "Required. PerturbatorConfiguration to apply to the parent Test."
3840
+ "description": "Required. PerturbatorConfigurations to apply to the Test."
3332
3841
  },
3333
- "testCases": {
3334
- "type": "array",
3335
- "items": {
3336
- "type": "object",
3337
- "$ref": "#/definitions/v1TestCase"
3338
- },
3339
- "description": "Required. List of test cases to perturbate. These are the test cases from the parent test.\n\nTODO: breaks https://google.aip.dev/144"
3842
+ "newTestDisplayName": {
3843
+ "type": "string",
3844
+ "description": "Required. Name of the newly created test."
3340
3845
  },
3341
- "testCaseRelationships": {
3846
+ "newTestDescription": {
3847
+ "type": "string",
3848
+ "description": "Optional. Description of the newly created Test."
3849
+ },
3850
+ "testCaseNames": {
3342
3851
  "type": "array",
3343
3852
  "items": {
3344
- "type": "object",
3345
- "$ref": "#/definitions/v1TestCaseRelationship"
3853
+ "type": "string"
3346
3854
  },
3347
- "description": "Optional. List of relationships between test cases."
3855
+ "description": "Optional. Perturbation apply only to selected testCases."
3348
3856
  }
3349
3857
  }
3350
3858
  }
3351
3859
  }
3352
3860
  ],
3353
3861
  "tags": [
3354
- "PerturbationService"
3862
+ "TestService"
3355
3863
  ]
3356
3864
  }
3357
3865
  },
3358
- "/v1/{parent}/progresses:getByParent": {
3359
- "get": {
3360
- "operationId": "OperationProgressService_GetOperationProgressByParent",
3361
- "responses": {
3362
- "200": {
3363
- "description": "A successful response.",
3364
- "schema": {
3365
- "$ref": "#/definitions/v1GetOperationProgressByParentResponse"
3366
- }
3367
- },
3368
- "default": {
3369
- "description": "An unexpected error response.",
3370
- "schema": {
3371
- "$ref": "#/definitions/rpcStatus"
3372
- }
3373
- }
3374
- },
3375
- "parameters": [
3376
- {
3377
- "name": "parent",
3378
- "description": "Required. The name of the parent Operation.",
3379
- "in": "path",
3380
- "required": true,
3381
- "type": "string",
3382
- "pattern": "operations/[^/]+"
3383
- }
3384
- ],
3385
- "tags": [
3386
- "OperationProgressService"
3387
- ]
3388
- }
3389
- },
3390
- "/v1/{parent}/testCases": {
3391
- "get": {
3392
- "operationId": "TestCaseService_ListTestCases",
3393
- "responses": {
3394
- "200": {
3395
- "description": "A successful response.",
3396
- "schema": {
3397
- "$ref": "#/definitions/v1ListTestCasesResponse"
3398
- }
3399
- },
3400
- "default": {
3401
- "description": "An unexpected error response.",
3402
- "schema": {
3403
- "$ref": "#/definitions/rpcStatus"
3404
- }
3405
- }
3406
- },
3407
- "parameters": [
3408
- {
3409
- "name": "parent",
3410
- "description": "The parent Test whose TestCases will be listed.\nFormat: tests/\u003cUUID\u003e",
3411
- "in": "path",
3412
- "required": true,
3413
- "type": "string",
3414
- "pattern": "tests/[^/]+"
3415
- }
3416
- ],
3417
- "tags": [
3418
- "TestCaseService"
3419
- ]
3420
- },
3866
+ "/v1/{name}:process": {
3421
3867
  "post": {
3422
- "operationId": "TestCaseService_CreateTestCase",
3868
+ "summary": "ProcessWorkflowNode processes a WorkflowNode.",
3869
+ "operationId": "WorkflowNodeService_ProcessWorkflowNode",
3423
3870
  "responses": {
3424
3871
  "200": {
3425
3872
  "description": "A successful response.",
3426
3873
  "schema": {
3427
- "$ref": "#/definitions/v1CreateTestCaseResponse"
3874
+ "$ref": "#/definitions/v1ProcessWorkflowNodeResponse"
3428
3875
  }
3429
3876
  },
3430
3877
  "default": {
@@ -3436,36 +3883,28 @@
3436
3883
  },
3437
3884
  "parameters": [
3438
3885
  {
3439
- "name": "parent",
3440
- "description": "The parent Test where this TestCase will be created.\nFormat: tests/\u003cUUID\u003e",
3886
+ "name": "name",
3887
+ "description": "Required. The name of the WorkflowNode to process.",
3441
3888
  "in": "path",
3442
3889
  "required": true,
3443
3890
  "type": "string",
3444
- "pattern": "tests/[^/]+"
3445
- },
3446
- {
3447
- "name": "testCase",
3448
- "description": "The TestCase to create.",
3449
- "in": "body",
3450
- "required": true,
3451
- "schema": {
3452
- "$ref": "#/definitions/v1TestCase"
3453
- }
3891
+ "pattern": "workflows/[^/]+/nodes/[^/]+"
3454
3892
  }
3455
3893
  ],
3456
3894
  "tags": [
3457
- "TestCaseService"
3895
+ "WorkflowNodeService"
3458
3896
  ]
3459
3897
  }
3460
3898
  },
3461
- "/v1/{parent}/testCases:batchDelete": {
3462
- "post": {
3463
- "operationId": "TestCaseService_BatchDeleteTestCases",
3899
+ "/v1/{node.name}": {
3900
+ "patch": {
3901
+ "summary": "UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be\nupdated.",
3902
+ "operationId": "WorkflowNodeService_UpdateWorkflowNode",
3464
3903
  "responses": {
3465
3904
  "200": {
3466
3905
  "description": "A successful response.",
3467
3906
  "schema": {
3468
- "$ref": "#/definitions/v1BatchDeleteTestCasesResponse"
3907
+ "$ref": "#/definitions/v1UpdateWorkflowNodeResponse"
3469
3908
  }
3470
3909
  },
3471
3910
  "default": {
@@ -3477,44 +3916,121 @@
3477
3916
  },
3478
3917
  "parameters": [
3479
3918
  {
3480
- "name": "parent",
3481
- "description": "The parent Test whose TestCases will be deleted.\n\nFormat: tests/\u003cUUID\u003e\n\nIf this is set, the parent of all of the TestCases specified in `names` must match this field.",
3919
+ "name": "node.name",
3920
+ "description": "Output only. Immutable. Resource name of the Workflow in format of\n`workflows/{workflow_id}/nodes/{node_id}`.",
3482
3921
  "in": "path",
3483
3922
  "required": true,
3484
3923
  "type": "string",
3485
- "pattern": "tests/[^/]+"
3924
+ "pattern": "workflows/[^/]+/nodes/[^/]+"
3486
3925
  },
3487
3926
  {
3488
- "name": "body",
3927
+ "name": "node",
3928
+ "description": "Required. The updated WorkflowNode.",
3489
3929
  "in": "body",
3490
3930
  "required": true,
3491
3931
  "schema": {
3492
3932
  "type": "object",
3493
3933
  "properties": {
3494
- "names": {
3934
+ "parent": {
3935
+ "type": "string",
3936
+ "description": "Output only. Immutable. Resource name of the parent Workflow in format of\n`workflows/{workflow_id}/`.",
3937
+ "readOnly": true
3938
+ },
3939
+ "displayName": {
3940
+ "type": "string",
3941
+ "description": "Human-readable name of the WorkflowNode."
3942
+ },
3943
+ "description": {
3944
+ "type": "string",
3945
+ "description": "Optional description of the WorkflowNode."
3946
+ },
3947
+ "createTime": {
3948
+ "type": "string",
3949
+ "format": "date-time",
3950
+ "description": "Output only. Immutable. Creation time of the WorkflowNode.",
3951
+ "readOnly": true
3952
+ },
3953
+ "creator": {
3954
+ "type": "string",
3955
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the\nWorkflowNode.",
3956
+ "readOnly": true
3957
+ },
3958
+ "updateTime": {
3959
+ "type": "string",
3960
+ "format": "date-time",
3961
+ "description": "Output only. Optional. Last update time of the WorkflowNode.",
3962
+ "readOnly": true
3963
+ },
3964
+ "updater": {
3965
+ "type": "string",
3966
+ "description": "Output only. Name of the user or service that requested update of the WorkflowNode.",
3967
+ "readOnly": true
3968
+ },
3969
+ "deleteTime": {
3970
+ "type": "string",
3971
+ "format": "date-time",
3972
+ "description": "Output only. Optional. Deletion time of the WorkflowNode.",
3973
+ "readOnly": true
3974
+ },
3975
+ "deleter": {
3976
+ "type": "string",
3977
+ "description": "Output only. Name of the user or service that requested deletion of the WorkflowNode.",
3978
+ "readOnly": true
3979
+ },
3980
+ "type": {
3981
+ "$ref": "#/definitions/v1WorkflowNodeType",
3982
+ "description": "Immutable. Type of the WorkflowNode."
3983
+ },
3984
+ "parameters": {
3985
+ "type": "object",
3986
+ "description": "User-given parameters for the WorkflowNode."
3987
+ },
3988
+ "outputs": {
3989
+ "type": "object",
3990
+ "description": "Output only. Computed outputs of the WorkflowNode.",
3991
+ "readOnly": true
3992
+ },
3993
+ "outputArtifacts": {
3495
3994
  "type": "array",
3496
3995
  "items": {
3497
- "type": "string"
3996
+ "type": "object",
3997
+ "$ref": "#/definitions/v1WorkflowNodeArtifact"
3498
3998
  },
3499
- "description": "The list of TestCase IDs to delete."
3999
+ "description": "Output only. Optional. List of the WorkflowNodeArtifacts produces by the WorkflowNode.",
4000
+ "readOnly": true
4001
+ },
4002
+ "status": {
4003
+ "$ref": "#/definitions/v1WorkflowNodeStatus",
4004
+ "description": "Output only. Status of the WorkflowNode.",
4005
+ "readOnly": true
4006
+ },
4007
+ "attributes": {
4008
+ "$ref": "#/definitions/v1WorkflowNodeAttributes",
4009
+ "description": "Additional attributes/metadata of the WorkflowNode."
4010
+ },
4011
+ "processedByOperation": {
4012
+ "type": "string",
4013
+ "description": "Output only. Optional. Resource name of the latest Operation that has processed or is currently\nprocessing this WorkflowNode.",
4014
+ "readOnly": true
3500
4015
  }
3501
- }
4016
+ },
4017
+ "title": "Required. The updated WorkflowNode."
3502
4018
  }
3503
4019
  }
3504
4020
  ],
3505
4021
  "tags": [
3506
- "TestCaseService"
4022
+ "WorkflowNodeService"
3507
4023
  ]
3508
4024
  }
3509
4025
  },
3510
- "/v1/{test.name}": {
4026
+ "/v1/{operation.name}": {
3511
4027
  "patch": {
3512
- "operationId": "TestService_UpdateTest",
4028
+ "operationId": "OperationService_UpdateOperation",
3513
4029
  "responses": {
3514
4030
  "200": {
3515
4031
  "description": "A successful response.",
3516
4032
  "schema": {
3517
- "$ref": "#/definitions/v1UpdateTestResponse"
4033
+ "$ref": "#/definitions/v1UpdateOperationResponse"
3518
4034
  }
3519
4035
  },
3520
4036
  "default": {
@@ -3526,16 +4042,16 @@
3526
4042
  },
3527
4043
  "parameters": [
3528
4044
  {
3529
- "name": "test.name",
3530
- "description": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e\"",
4045
+ "name": "operation.name",
4046
+ "description": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
3531
4047
  "in": "path",
3532
4048
  "required": true,
3533
4049
  "type": "string",
3534
- "pattern": "tests/[^/]+"
4050
+ "pattern": "operations/[^/]+"
3535
4051
  },
3536
4052
  {
3537
- "name": "test",
3538
- "description": "Required. The Test to update.",
4053
+ "name": "operation",
4054
+ "description": "Required. The Operation to update.\n\nThe Operation's `name` field is used to identify the Operation to update.\nFormat: operations/{operation}",
3539
4055
  "in": "body",
3540
4056
  "required": true,
3541
4057
  "schema": {
@@ -3544,81 +4060,71 @@
3544
4060
  "createTime": {
3545
4061
  "type": "string",
3546
4062
  "format": "date-time",
3547
- "description": "Output only. Timestamp when the Test was created.",
4063
+ "description": "Output only. Timestamp when the Operation was created.",
3548
4064
  "readOnly": true
3549
4065
  },
3550
4066
  "creator": {
3551
4067
  "type": "string",
3552
- "description": "Output only. Name of the user or service that requested creation of the Test.",
4068
+ "description": "Output only. Name of the user or service that requested creation of the Operation.",
3553
4069
  "readOnly": true
3554
4070
  },
3555
4071
  "updateTime": {
3556
4072
  "type": "string",
3557
4073
  "format": "date-time",
3558
- "description": "Output only. Optional. Timestamp when the Test was last updated.",
4074
+ "description": "Output only. Optional. Timestamp when the Operation was last updated.",
3559
4075
  "readOnly": true
3560
4076
  },
3561
4077
  "updater": {
3562
4078
  "type": "string",
3563
- "description": "Output only. Optional. Name of the user or service that requested update of the Test.",
4079
+ "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
3564
4080
  "readOnly": true
3565
4081
  },
3566
4082
  "deleteTime": {
3567
4083
  "type": "string",
3568
4084
  "format": "date-time",
3569
- "description": "Output only. Optional. Set when the Test is deleted. When set, Test should be considered as\ndeleted.",
4085
+ "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
3570
4086
  "readOnly": true
3571
4087
  },
3572
4088
  "deleter": {
3573
4089
  "type": "string",
3574
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Test.",
4090
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
3575
4091
  "readOnly": true
3576
4092
  },
3577
- "displayName": {
3578
- "type": "string",
3579
- "description": "Human readable name of the Test."
3580
- },
3581
- "description": {
3582
- "type": "string",
3583
- "description": "Optional. Arbitrary description of the Test."
4093
+ "metadata": {
4094
+ "$ref": "#/definitions/protobufAny",
4095
+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
3584
4096
  },
3585
- "documents": {
3586
- "type": "array",
3587
- "items": {
3588
- "type": "string"
3589
- },
3590
- "description": "Immutable. Resource names of Documents assigned to the Test."
4097
+ "done": {
4098
+ "type": "boolean",
4099
+ "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
3591
4100
  },
3592
- "tags": {
3593
- "type": "array",
3594
- "items": {
3595
- "type": "string"
3596
- },
3597
- "description": "Tags assigned to the Test."
4101
+ "error": {
4102
+ "$ref": "#/definitions/rpcStatus",
4103
+ "description": "The error result of the operation in case of failure or cancellation."
3598
4104
  },
3599
- "demo": {
3600
- "type": "boolean",
3601
- "description": "Output only. Whether the Test is a demo resource or not. Demo resources are read only.",
3602
- "readOnly": true
4105
+ "response": {
4106
+ "$ref": "#/definitions/protobufAny",
4107
+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
3603
4108
  }
3604
4109
  },
3605
- "title": "Required. The Test to update."
4110
+ "description": "The Operation's `name` field is used to identify the Operation to update.\nFormat: operations/{operation}",
4111
+ "title": "Required. The Operation to update."
3606
4112
  }
3607
4113
  }
3608
4114
  ],
3609
4115
  "tags": [
3610
- "TestService"
4116
+ "OperationService"
3611
4117
  ]
3612
4118
  }
3613
4119
  },
3614
- "/v1/{testCase.name}": {
4120
+ "/v1/{operation.name}:finalize": {
3615
4121
  "patch": {
3616
- "operationId": "TestCaseService_UpdateTestCase",
4122
+ "operationId": "OperationService_FinalizeOperation",
3617
4123
  "responses": {
3618
4124
  "200": {
3619
4125
  "description": "A successful response.",
3620
4126
  "schema": {
3621
- "$ref": "#/definitions/v1UpdateTestCaseResponse"
4127
+ "$ref": "#/definitions/v1FinalizeOperationResponse"
3622
4128
  }
3623
4129
  },
3624
4130
  "default": {
@@ -3630,16 +4136,16 @@
3630
4136
  },
3631
4137
  "parameters": [
3632
4138
  {
3633
- "name": "testCase.name",
3634
- "description": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e/testCases/\u003cUUID\u003e\"",
4139
+ "name": "operation.name",
4140
+ "description": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
3635
4141
  "in": "path",
3636
4142
  "required": true,
3637
4143
  "type": "string",
3638
- "pattern": "tests/[^/]+/testCases/[^/]+"
4144
+ "pattern": "operations/[^/]+"
3639
4145
  },
3640
4146
  {
3641
- "name": "testCase",
3642
- "description": "Required. The TestCase to update.",
4147
+ "name": "operation",
4148
+ "description": "Required. The Operation to finalize.\n\nThe Operation's `name` field is used to identify the Operation to finalize.\nFormat: operations/{operation}",
3643
4149
  "in": "body",
3644
4150
  "required": true,
3645
4151
  "schema": {
@@ -3648,46 +4154,466 @@
3648
4154
  "createTime": {
3649
4155
  "type": "string",
3650
4156
  "format": "date-time",
3651
- "description": "Output only. Timestamp when the Test was created.",
4157
+ "description": "Output only. Timestamp when the Operation was created.",
3652
4158
  "readOnly": true
3653
4159
  },
3654
4160
  "creator": {
3655
4161
  "type": "string",
3656
- "description": "Output only. Name of the user or service that requested creation of the TestCase.",
4162
+ "description": "Output only. Name of the user or service that requested creation of the Operation.",
3657
4163
  "readOnly": true
3658
4164
  },
3659
4165
  "updateTime": {
3660
4166
  "type": "string",
3661
4167
  "format": "date-time",
3662
- "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
4168
+ "description": "Output only. Optional. Timestamp when the Operation was last updated.",
3663
4169
  "readOnly": true
3664
4170
  },
3665
4171
  "updater": {
3666
4172
  "type": "string",
3667
- "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
4173
+ "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
3668
4174
  "readOnly": true
3669
4175
  },
3670
4176
  "deleteTime": {
3671
4177
  "type": "string",
3672
4178
  "format": "date-time",
3673
- "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
4179
+ "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
3674
4180
  "readOnly": true
3675
4181
  },
3676
4182
  "deleter": {
3677
4183
  "type": "string",
3678
- "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
4184
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
3679
4185
  "readOnly": true
3680
4186
  },
3681
- "parent": {
3682
- "type": "string",
3683
- "description": "Parent Test resource name. e.g.: \"tests/\u003cUUID\u003e\"."
4187
+ "metadata": {
4188
+ "$ref": "#/definitions/protobufAny",
4189
+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
3684
4190
  },
3685
- "prompt": {
3686
- "type": "string",
3687
- "description": "Prompt text. Model input."
4191
+ "done": {
4192
+ "type": "boolean",
4193
+ "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
3688
4194
  },
3689
- "answer": {
3690
- "type": "string",
4195
+ "error": {
4196
+ "$ref": "#/definitions/rpcStatus",
4197
+ "description": "The error result of the operation in case of failure or cancellation."
4198
+ },
4199
+ "response": {
4200
+ "$ref": "#/definitions/protobufAny",
4201
+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
4202
+ }
4203
+ },
4204
+ "description": "The Operation's `name` field is used to identify the Operation to finalize.\nFormat: operations/{operation}",
4205
+ "title": "Required. The Operation to finalize."
4206
+ }
4207
+ }
4208
+ ],
4209
+ "tags": [
4210
+ "OperationService"
4211
+ ]
4212
+ }
4213
+ },
4214
+ "/v1/{parent}/perturbations": {
4215
+ "post": {
4216
+ "operationId": "PerturbationService_CreatePerturbation",
4217
+ "responses": {
4218
+ "200": {
4219
+ "description": "A successful response.",
4220
+ "schema": {
4221
+ "$ref": "#/definitions/v1CreatePerturbationResponse"
4222
+ }
4223
+ },
4224
+ "default": {
4225
+ "description": "An unexpected error response.",
4226
+ "schema": {
4227
+ "$ref": "#/definitions/rpcStatus"
4228
+ }
4229
+ }
4230
+ },
4231
+ "parameters": [
4232
+ {
4233
+ "name": "parent",
4234
+ "description": "Required. The Test being perturbed.",
4235
+ "in": "path",
4236
+ "required": true,
4237
+ "type": "string",
4238
+ "pattern": "tests/[^/]+"
4239
+ },
4240
+ {
4241
+ "name": "body",
4242
+ "in": "body",
4243
+ "required": true,
4244
+ "schema": {
4245
+ "type": "object",
4246
+ "properties": {
4247
+ "perturbatorConfigurations": {
4248
+ "type": "array",
4249
+ "items": {
4250
+ "type": "object",
4251
+ "$ref": "#/definitions/v1PerturbatorConfiguration"
4252
+ },
4253
+ "description": "Required. PerturbatorConfiguration to apply to the parent Test."
4254
+ },
4255
+ "testCases": {
4256
+ "type": "array",
4257
+ "items": {
4258
+ "type": "object",
4259
+ "$ref": "#/definitions/v1TestCase"
4260
+ },
4261
+ "description": "Required. List of test cases to perturbate. These are the test cases from the parent test.\n\nTODO: breaks https://google.aip.dev/144"
4262
+ },
4263
+ "testCaseRelationships": {
4264
+ "type": "array",
4265
+ "items": {
4266
+ "type": "object",
4267
+ "$ref": "#/definitions/v1TestCaseRelationship"
4268
+ },
4269
+ "description": "Optional. List of relationships between test cases."
4270
+ },
4271
+ "defaultH2ogpteModel": {
4272
+ "$ref": "#/definitions/v1Model",
4273
+ "description": "Optional. The default h2oGPTe model host."
4274
+ }
4275
+ }
4276
+ }
4277
+ }
4278
+ ],
4279
+ "tags": [
4280
+ "PerturbationService"
4281
+ ]
4282
+ }
4283
+ },
4284
+ "/v1/{parent}/progresses:getByParent": {
4285
+ "get": {
4286
+ "operationId": "OperationProgressService_GetOperationProgressByParent",
4287
+ "responses": {
4288
+ "200": {
4289
+ "description": "A successful response.",
4290
+ "schema": {
4291
+ "$ref": "#/definitions/v1GetOperationProgressByParentResponse"
4292
+ }
4293
+ },
4294
+ "default": {
4295
+ "description": "An unexpected error response.",
4296
+ "schema": {
4297
+ "$ref": "#/definitions/rpcStatus"
4298
+ }
4299
+ }
4300
+ },
4301
+ "parameters": [
4302
+ {
4303
+ "name": "parent",
4304
+ "description": "Required. The name of the parent Operation.",
4305
+ "in": "path",
4306
+ "required": true,
4307
+ "type": "string",
4308
+ "pattern": "operations/[^/]+"
4309
+ }
4310
+ ],
4311
+ "tags": [
4312
+ "OperationProgressService"
4313
+ ]
4314
+ }
4315
+ },
4316
+ "/v1/{parent}/testCases": {
4317
+ "get": {
4318
+ "operationId": "TestCaseService_ListTestCases",
4319
+ "responses": {
4320
+ "200": {
4321
+ "description": "A successful response.",
4322
+ "schema": {
4323
+ "$ref": "#/definitions/v1ListTestCasesResponse"
4324
+ }
4325
+ },
4326
+ "default": {
4327
+ "description": "An unexpected error response.",
4328
+ "schema": {
4329
+ "$ref": "#/definitions/rpcStatus"
4330
+ }
4331
+ }
4332
+ },
4333
+ "parameters": [
4334
+ {
4335
+ "name": "parent",
4336
+ "description": "The parent Test whose TestCases will be listed.\nFormat: tests/\u003cUUID\u003e",
4337
+ "in": "path",
4338
+ "required": true,
4339
+ "type": "string",
4340
+ "pattern": "tests/[^/]+"
4341
+ }
4342
+ ],
4343
+ "tags": [
4344
+ "TestCaseService"
4345
+ ]
4346
+ },
4347
+ "post": {
4348
+ "operationId": "TestCaseService_CreateTestCase",
4349
+ "responses": {
4350
+ "200": {
4351
+ "description": "A successful response.",
4352
+ "schema": {
4353
+ "$ref": "#/definitions/v1CreateTestCaseResponse"
4354
+ }
4355
+ },
4356
+ "default": {
4357
+ "description": "An unexpected error response.",
4358
+ "schema": {
4359
+ "$ref": "#/definitions/rpcStatus"
4360
+ }
4361
+ }
4362
+ },
4363
+ "parameters": [
4364
+ {
4365
+ "name": "parent",
4366
+ "description": "The parent Test where this TestCase will be created.\nFormat: tests/\u003cUUID\u003e",
4367
+ "in": "path",
4368
+ "required": true,
4369
+ "type": "string",
4370
+ "pattern": "tests/[^/]+"
4371
+ },
4372
+ {
4373
+ "name": "testCase",
4374
+ "description": "The TestCase to create.",
4375
+ "in": "body",
4376
+ "required": true,
4377
+ "schema": {
4378
+ "$ref": "#/definitions/v1TestCase"
4379
+ }
4380
+ }
4381
+ ],
4382
+ "tags": [
4383
+ "TestCaseService"
4384
+ ]
4385
+ }
4386
+ },
4387
+ "/v1/{parent}/testCases:batchDelete": {
4388
+ "post": {
4389
+ "operationId": "TestCaseService_BatchDeleteTestCases",
4390
+ "responses": {
4391
+ "200": {
4392
+ "description": "A successful response.",
4393
+ "schema": {
4394
+ "$ref": "#/definitions/v1BatchDeleteTestCasesResponse"
4395
+ }
4396
+ },
4397
+ "default": {
4398
+ "description": "An unexpected error response.",
4399
+ "schema": {
4400
+ "$ref": "#/definitions/rpcStatus"
4401
+ }
4402
+ }
4403
+ },
4404
+ "parameters": [
4405
+ {
4406
+ "name": "parent",
4407
+ "description": "The parent Test whose TestCases will be deleted.\n\nFormat: tests/\u003cUUID\u003e\n\nIf this is set, the parent of all of the TestCases specified in `names` must match this field.",
4408
+ "in": "path",
4409
+ "required": true,
4410
+ "type": "string",
4411
+ "pattern": "tests/[^/]+"
4412
+ },
4413
+ {
4414
+ "name": "body",
4415
+ "in": "body",
4416
+ "required": true,
4417
+ "schema": {
4418
+ "type": "object",
4419
+ "properties": {
4420
+ "names": {
4421
+ "type": "array",
4422
+ "items": {
4423
+ "type": "string"
4424
+ },
4425
+ "description": "The list of TestCase IDs to delete."
4426
+ }
4427
+ }
4428
+ }
4429
+ }
4430
+ ],
4431
+ "tags": [
4432
+ "TestCaseService"
4433
+ ]
4434
+ }
4435
+ },
4436
+ "/v1/{test.name}": {
4437
+ "patch": {
4438
+ "operationId": "TestService_UpdateTest",
4439
+ "responses": {
4440
+ "200": {
4441
+ "description": "A successful response.",
4442
+ "schema": {
4443
+ "$ref": "#/definitions/v1UpdateTestResponse"
4444
+ }
4445
+ },
4446
+ "default": {
4447
+ "description": "An unexpected error response.",
4448
+ "schema": {
4449
+ "$ref": "#/definitions/rpcStatus"
4450
+ }
4451
+ }
4452
+ },
4453
+ "parameters": [
4454
+ {
4455
+ "name": "test.name",
4456
+ "description": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e\"",
4457
+ "in": "path",
4458
+ "required": true,
4459
+ "type": "string",
4460
+ "pattern": "tests/[^/]+"
4461
+ },
4462
+ {
4463
+ "name": "test",
4464
+ "description": "Required. The Test to update.",
4465
+ "in": "body",
4466
+ "required": true,
4467
+ "schema": {
4468
+ "type": "object",
4469
+ "properties": {
4470
+ "createTime": {
4471
+ "type": "string",
4472
+ "format": "date-time",
4473
+ "description": "Output only. Timestamp when the Test was created.",
4474
+ "readOnly": true
4475
+ },
4476
+ "creator": {
4477
+ "type": "string",
4478
+ "description": "Output only. Name of the user or service that requested creation of the Test.",
4479
+ "readOnly": true
4480
+ },
4481
+ "updateTime": {
4482
+ "type": "string",
4483
+ "format": "date-time",
4484
+ "description": "Output only. Optional. Timestamp when the Test was last updated.",
4485
+ "readOnly": true
4486
+ },
4487
+ "updater": {
4488
+ "type": "string",
4489
+ "description": "Output only. Optional. Name of the user or service that requested update of the Test.",
4490
+ "readOnly": true
4491
+ },
4492
+ "deleteTime": {
4493
+ "type": "string",
4494
+ "format": "date-time",
4495
+ "description": "Output only. Optional. Set when the Test is deleted. When set, Test should be considered as\ndeleted.",
4496
+ "readOnly": true
4497
+ },
4498
+ "deleter": {
4499
+ "type": "string",
4500
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Test.",
4501
+ "readOnly": true
4502
+ },
4503
+ "displayName": {
4504
+ "type": "string",
4505
+ "description": "Human readable name of the Test."
4506
+ },
4507
+ "description": {
4508
+ "type": "string",
4509
+ "description": "Optional. Arbitrary description of the Test."
4510
+ },
4511
+ "documents": {
4512
+ "type": "array",
4513
+ "items": {
4514
+ "type": "string"
4515
+ },
4516
+ "description": "Immutable. Resource names of Documents assigned to the Test."
4517
+ },
4518
+ "tags": {
4519
+ "type": "array",
4520
+ "items": {
4521
+ "type": "string"
4522
+ },
4523
+ "description": "Tags assigned to the Test."
4524
+ },
4525
+ "demo": {
4526
+ "type": "boolean",
4527
+ "description": "Output only. Whether the Test is a demo resource or not. Demo resources are read only.",
4528
+ "readOnly": true
4529
+ }
4530
+ },
4531
+ "title": "Required. The Test to update."
4532
+ }
4533
+ }
4534
+ ],
4535
+ "tags": [
4536
+ "TestService"
4537
+ ]
4538
+ }
4539
+ },
4540
+ "/v1/{testCase.name}": {
4541
+ "patch": {
4542
+ "operationId": "TestCaseService_UpdateTestCase",
4543
+ "responses": {
4544
+ "200": {
4545
+ "description": "A successful response.",
4546
+ "schema": {
4547
+ "$ref": "#/definitions/v1UpdateTestCaseResponse"
4548
+ }
4549
+ },
4550
+ "default": {
4551
+ "description": "An unexpected error response.",
4552
+ "schema": {
4553
+ "$ref": "#/definitions/rpcStatus"
4554
+ }
4555
+ }
4556
+ },
4557
+ "parameters": [
4558
+ {
4559
+ "name": "testCase.name",
4560
+ "description": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e/testCases/\u003cUUID\u003e\"",
4561
+ "in": "path",
4562
+ "required": true,
4563
+ "type": "string",
4564
+ "pattern": "tests/[^/]+/testCases/[^/]+"
4565
+ },
4566
+ {
4567
+ "name": "testCase",
4568
+ "description": "Required. The TestCase to update.",
4569
+ "in": "body",
4570
+ "required": true,
4571
+ "schema": {
4572
+ "type": "object",
4573
+ "properties": {
4574
+ "createTime": {
4575
+ "type": "string",
4576
+ "format": "date-time",
4577
+ "description": "Output only. Timestamp when the Test was created.",
4578
+ "readOnly": true
4579
+ },
4580
+ "creator": {
4581
+ "type": "string",
4582
+ "description": "Output only. Name of the user or service that requested creation of the TestCase.",
4583
+ "readOnly": true
4584
+ },
4585
+ "updateTime": {
4586
+ "type": "string",
4587
+ "format": "date-time",
4588
+ "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
4589
+ "readOnly": true
4590
+ },
4591
+ "updater": {
4592
+ "type": "string",
4593
+ "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
4594
+ "readOnly": true
4595
+ },
4596
+ "deleteTime": {
4597
+ "type": "string",
4598
+ "format": "date-time",
4599
+ "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
4600
+ "readOnly": true
4601
+ },
4602
+ "deleter": {
4603
+ "type": "string",
4604
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
4605
+ "readOnly": true
4606
+ },
4607
+ "parent": {
4608
+ "type": "string",
4609
+ "description": "Parent Test resource name. e.g.: \"tests/\u003cUUID\u003e\"."
4610
+ },
4611
+ "prompt": {
4612
+ "type": "string",
4613
+ "description": "Prompt text. Model input."
4614
+ },
4615
+ "answer": {
4616
+ "type": "string",
3691
4617
  "description": "Expected answer text. Model output."
3692
4618
  },
3693
4619
  "constraints": {
@@ -3700,6 +4626,14 @@
3700
4626
  "condition": {
3701
4627
  "type": "string",
3702
4628
  "description": "Optional. Test case output condition, in a form of AIP-160 compliant filter expression."
4629
+ },
4630
+ "perturbedBy": {
4631
+ "type": "array",
4632
+ "items": {
4633
+ "type": "string"
4634
+ },
4635
+ "description": "Output only. The list of perturbators applied to this test case.",
4636
+ "readOnly": true
3703
4637
  }
3704
4638
  },
3705
4639
  "title": "Required. The TestCase to update."
@@ -3710,6 +4644,173 @@
3710
4644
  "TestCaseService"
3711
4645
  ]
3712
4646
  }
4647
+ },
4648
+ "/v1/{workflow.name}": {
4649
+ "patch": {
4650
+ "summary": "UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.",
4651
+ "operationId": "WorkflowService_UpdateWorkflow",
4652
+ "responses": {
4653
+ "200": {
4654
+ "description": "A successful response.",
4655
+ "schema": {
4656
+ "$ref": "#/definitions/v1UpdateWorkflowResponse"
4657
+ }
4658
+ },
4659
+ "default": {
4660
+ "description": "An unexpected error response.",
4661
+ "schema": {
4662
+ "$ref": "#/definitions/rpcStatus"
4663
+ }
4664
+ }
4665
+ },
4666
+ "parameters": [
4667
+ {
4668
+ "name": "workflow.name",
4669
+ "description": "Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.",
4670
+ "in": "path",
4671
+ "required": true,
4672
+ "type": "string",
4673
+ "pattern": "workflows/[^/]+"
4674
+ },
4675
+ {
4676
+ "name": "workflow",
4677
+ "description": "Required. The updated Workflow.",
4678
+ "in": "body",
4679
+ "required": true,
4680
+ "schema": {
4681
+ "type": "object",
4682
+ "properties": {
4683
+ "displayName": {
4684
+ "type": "string",
4685
+ "description": "Human-readable name of the Workflow."
4686
+ },
4687
+ "description": {
4688
+ "type": "string",
4689
+ "description": "Optional description of the Workflow."
4690
+ },
4691
+ "createTime": {
4692
+ "type": "string",
4693
+ "format": "date-time",
4694
+ "description": "Output only. Immutable. Creation time of the Workflow.",
4695
+ "readOnly": true
4696
+ },
4697
+ "creator": {
4698
+ "type": "string",
4699
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the Workflow.",
4700
+ "readOnly": true
4701
+ },
4702
+ "updateTime": {
4703
+ "type": "string",
4704
+ "format": "date-time",
4705
+ "description": "Output only. Optional. Last update time of the Workflow.",
4706
+ "readOnly": true
4707
+ },
4708
+ "updater": {
4709
+ "type": "string",
4710
+ "description": "Output only. Name of the user or service that requested update of the Workflow.",
4711
+ "readOnly": true
4712
+ },
4713
+ "deleteTime": {
4714
+ "type": "string",
4715
+ "format": "date-time",
4716
+ "description": "Output only. Optional. Deletion time of the Workflow.",
4717
+ "readOnly": true
4718
+ },
4719
+ "deleter": {
4720
+ "type": "string",
4721
+ "description": "Output only. Name of the user or service that requested deletion of the Workflow.",
4722
+ "readOnly": true
4723
+ },
4724
+ "type": {
4725
+ "$ref": "#/definitions/v1WorkflowType",
4726
+ "description": "Immutable. Type of the Workflow."
4727
+ },
4728
+ "model": {
4729
+ "type": "string",
4730
+ "description": "Immutable. Resource name of the Model associated with this Workflow."
4731
+ },
4732
+ "nodes": {
4733
+ "type": "array",
4734
+ "items": {
4735
+ "type": "string"
4736
+ },
4737
+ "description": "Output only. List of the WorkflowNodes in the Workflow.",
4738
+ "readOnly": true
4739
+ },
4740
+ "edges": {
4741
+ "type": "array",
4742
+ "items": {
4743
+ "type": "string"
4744
+ },
4745
+ "description": "Output only. List of the WorkflowEdges in the Workflow.",
4746
+ "readOnly": true
4747
+ },
4748
+ "outputs": {
4749
+ "type": "object",
4750
+ "additionalProperties": {
4751
+ "type": "object"
4752
+ },
4753
+ "description": "Output only. Optional. Computed outputs of all the WorkflowNodes in the Workflow.",
4754
+ "readOnly": true
4755
+ },
4756
+ "outputArtifacts": {
4757
+ "type": "object",
4758
+ "additionalProperties": {
4759
+ "$ref": "#/definitions/v1WorkflowNodeArtifacts"
4760
+ },
4761
+ "description": "Output only. Optional. List of the WorkflowNodeArtifacts produces by all the WorkflowNodes in the\nWorkflow.",
4762
+ "readOnly": true
4763
+ },
4764
+ "llmModel": {
4765
+ "type": "string",
4766
+ "description": "Immutable. LLM Model to use."
4767
+ },
4768
+ "modelParameters": {
4769
+ "type": "string",
4770
+ "description": "Optional. Immutable. Model parameter overrides in JSON format."
4771
+ }
4772
+ },
4773
+ "title": "Required. The updated Workflow."
4774
+ }
4775
+ }
4776
+ ],
4777
+ "tags": [
4778
+ "WorkflowService"
4779
+ ]
4780
+ }
4781
+ },
4782
+ "/v1:estimateThreshold": {
4783
+ "post": {
4784
+ "summary": "EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.",
4785
+ "operationId": "HumanCalibrationService_EstimateThreshold",
4786
+ "responses": {
4787
+ "200": {
4788
+ "description": "A successful response.",
4789
+ "schema": {
4790
+ "$ref": "#/definitions/v1Operation"
4791
+ }
4792
+ },
4793
+ "default": {
4794
+ "description": "An unexpected error response.",
4795
+ "schema": {
4796
+ "$ref": "#/definitions/rpcStatus"
4797
+ }
4798
+ }
4799
+ },
4800
+ "parameters": [
4801
+ {
4802
+ "name": "body",
4803
+ "in": "body",
4804
+ "required": true,
4805
+ "schema": {
4806
+ "$ref": "#/definitions/v1EstimateThresholdRequest"
4807
+ }
4808
+ }
4809
+ ],
4810
+ "tags": [
4811
+ "HumanCalibrationService"
4812
+ ]
4813
+ }
3713
4814
  }
3714
4815
  },
3715
4816
  "definitions": {
@@ -3724,6 +4825,14 @@
3724
4825
  "additionalProperties": {},
3725
4826
  "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
3726
4827
  },
4828
+ "protobufNullValue": {
4829
+ "type": "string",
4830
+ "enum": [
4831
+ "NULL_VALUE"
4832
+ ],
4833
+ "default": "NULL_VALUE",
4834
+ "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
4835
+ },
3727
4836
  "rpcStatus": {
3728
4837
  "type": "object",
3729
4838
  "properties": {
@@ -3949,6 +5058,31 @@
3949
5058
  }
3950
5059
  }
3951
5060
  },
5061
+ "v1BatchDeleteWorkflowsRequest": {
5062
+ "type": "object",
5063
+ "properties": {
5064
+ "names": {
5065
+ "type": "array",
5066
+ "items": {
5067
+ "type": "string"
5068
+ },
5069
+ "description": "Required. The names of the Workflows to delete. A maximum of 1000 can be specified."
5070
+ }
5071
+ }
5072
+ },
5073
+ "v1BatchDeleteWorkflowsResponse": {
5074
+ "type": "object",
5075
+ "properties": {
5076
+ "workflows": {
5077
+ "type": "array",
5078
+ "items": {
5079
+ "type": "object",
5080
+ "$ref": "#/definitions/v1Workflow"
5081
+ },
5082
+ "description": "The deleted Workflows."
5083
+ }
5084
+ }
5085
+ },
3952
5086
  "v1BatchGetDashboardsResponse": {
3953
5087
  "type": "object",
3954
5088
  "properties": {
@@ -4027,6 +5161,32 @@
4027
5161
  }
4028
5162
  }
4029
5163
  },
5164
+ "v1BatchGetWorkflowEdgesResponse": {
5165
+ "type": "object",
5166
+ "properties": {
5167
+ "edges": {
5168
+ "type": "array",
5169
+ "items": {
5170
+ "type": "object",
5171
+ "$ref": "#/definitions/v1WorkflowEdge"
5172
+ },
5173
+ "description": "The WorkflowEdges requested."
5174
+ }
5175
+ }
5176
+ },
5177
+ "v1BatchGetWorkflowNodesResponse": {
5178
+ "type": "object",
5179
+ "properties": {
5180
+ "nodes": {
5181
+ "type": "array",
5182
+ "items": {
5183
+ "type": "object",
5184
+ "$ref": "#/definitions/v1WorkflowNode"
5185
+ },
5186
+ "description": "The WorkflowNodes requested."
5187
+ }
5188
+ }
5189
+ },
4030
5190
  "v1BatchImportLeaderboardRequest": {
4031
5191
  "type": "object",
4032
5192
  "properties": {
@@ -4220,6 +5380,10 @@
4220
5380
  "h2ogpteCollection": {
4221
5381
  "type": "string",
4222
5382
  "description": "The existing collection name in H2OGPTe."
5383
+ },
5384
+ "defaultH2ogpteModel": {
5385
+ "$ref": "#/definitions/v1Model",
5386
+ "description": "Optional. The default h2oGPTe model host."
4223
5387
  }
4224
5388
  }
4225
5389
  },
@@ -4304,6 +5468,15 @@
4304
5468
  }
4305
5469
  }
4306
5470
  },
5471
+ "v1CreateWorkflowResponse": {
5472
+ "type": "object",
5473
+ "properties": {
5474
+ "workflow": {
5475
+ "$ref": "#/definitions/v1Workflow",
5476
+ "description": "The Workflow created."
5477
+ }
5478
+ }
5479
+ },
4307
5480
  "v1Dashboard": {
4308
5481
  "type": "object",
4309
5482
  "properties": {
@@ -4451,6 +5624,24 @@
4451
5624
  }
4452
5625
  }
4453
5626
  },
5627
+ "v1DeleteWorkflowNodeResponse": {
5628
+ "type": "object",
5629
+ "properties": {
5630
+ "node": {
5631
+ "$ref": "#/definitions/v1WorkflowNode",
5632
+ "description": "The WorkflowNode that was deleted."
5633
+ }
5634
+ }
5635
+ },
5636
+ "v1DeleteWorkflowResponse": {
5637
+ "type": "object",
5638
+ "properties": {
5639
+ "workflow": {
5640
+ "$ref": "#/definitions/v1Workflow",
5641
+ "description": "The deleted Workflow."
5642
+ }
5643
+ }
5644
+ },
4454
5645
  "v1Document": {
4455
5646
  "type": "object",
4456
5647
  "properties": {
@@ -4506,6 +5697,36 @@
4506
5697
  }
4507
5698
  }
4508
5699
  },
5700
+ "v1EstimateThresholdRequest": {
5701
+ "type": "object",
5702
+ "properties": {
5703
+ "operation": {
5704
+ "type": "string",
5705
+ "description": "Required. The Operation processing the estimation."
5706
+ },
5707
+ "originalThreshold": {
5708
+ "type": "number",
5709
+ "format": "float",
5710
+ "description": "Required. Original threshold."
5711
+ },
5712
+ "evaluator": {
5713
+ "type": "string",
5714
+ "description": "Required. The evaluator resource name."
5715
+ },
5716
+ "metric": {
5717
+ "type": "string",
5718
+ "description": "Optional. The metric name. If no metric is provided, the evaluator's primary metric is used."
5719
+ },
5720
+ "trainSet": {
5721
+ "type": "array",
5722
+ "items": {
5723
+ "type": "object",
5724
+ "$ref": "#/definitions/v1LabeledTestCase"
5725
+ },
5726
+ "description": "Required. Test cases with metric value and labels used for estimating the threshold."
5727
+ }
5728
+ }
5729
+ },
4509
5730
  "v1EvaluationTest": {
4510
5731
  "type": "object",
4511
5732
  "properties": {
@@ -4861,18 +6082,55 @@
4861
6082
  "v1GetTestClassResponse": {
4862
6083
  "type": "object",
4863
6084
  "properties": {
4864
- "testClass": {
4865
- "$ref": "#/definitions/v1TestClass",
4866
- "description": "The requested TestClass."
6085
+ "testClass": {
6086
+ "$ref": "#/definitions/v1TestClass",
6087
+ "description": "The requested TestClass."
6088
+ }
6089
+ }
6090
+ },
6091
+ "v1GetTestResponse": {
6092
+ "type": "object",
6093
+ "properties": {
6094
+ "test": {
6095
+ "$ref": "#/definitions/v1Test",
6096
+ "description": "The requested Test."
6097
+ }
6098
+ }
6099
+ },
6100
+ "v1GetWorkflowNodePrerequisitesResponse": {
6101
+ "type": "object",
6102
+ "properties": {
6103
+ "nodes": {
6104
+ "type": "array",
6105
+ "items": {
6106
+ "type": "string"
6107
+ },
6108
+ "description": "The WorkflowNodes that are the prerequisites of the specified WorkflowNode."
6109
+ },
6110
+ "edges": {
6111
+ "type": "array",
6112
+ "items": {
6113
+ "type": "string"
6114
+ },
6115
+ "description": "The WorkflowEdges that are the prerequisites of the specified WorkflowNode."
6116
+ }
6117
+ }
6118
+ },
6119
+ "v1GetWorkflowNodeResponse": {
6120
+ "type": "object",
6121
+ "properties": {
6122
+ "node": {
6123
+ "$ref": "#/definitions/v1WorkflowNode",
6124
+ "description": "The WorkflowNode requested."
4867
6125
  }
4868
6126
  }
4869
6127
  },
4870
- "v1GetTestResponse": {
6128
+ "v1GetWorkflowResponse": {
4871
6129
  "type": "object",
4872
6130
  "properties": {
4873
- "test": {
4874
- "$ref": "#/definitions/v1Test",
4875
- "description": "The requested Test."
6131
+ "workflow": {
6132
+ "$ref": "#/definitions/v1Workflow",
6133
+ "description": "The Workflow requested."
4876
6134
  }
4877
6135
  }
4878
6136
  },
@@ -4904,6 +6162,10 @@
4904
6162
  "type": "string"
4905
6163
  },
4906
6164
  "description": "Optional. Additional evaluators configuration, for all the evaluators used in the evaluation.\nKey is the evaluator identifier, and the value is a JSON string containing the configuration dictionary."
6165
+ },
6166
+ "defaultH2ogpteModel": {
6167
+ "$ref": "#/definitions/v1Model",
6168
+ "description": "Optional. The default h2oGPTe model host."
4907
6169
  }
4908
6170
  }
4909
6171
  },
@@ -4957,6 +6219,44 @@
4957
6219
  }
4958
6220
  }
4959
6221
  },
6222
+ "v1ImportTestCasesFromLibraryResponse": {
6223
+ "type": "object",
6224
+ "properties": {
6225
+ "operation": {
6226
+ "$ref": "#/definitions/v1Operation",
6227
+ "description": "The Operation handling the prompt generation process."
6228
+ }
6229
+ }
6230
+ },
6231
+ "v1ImportTestCasesRequest": {
6232
+ "type": "object",
6233
+ "properties": {
6234
+ "test": {
6235
+ "type": "string",
6236
+ "description": "Required. The Test for which to get TestCases."
6237
+ },
6238
+ "operation": {
6239
+ "type": "string",
6240
+ "description": "Required. The Operation processing this prompt library retrieval process."
6241
+ },
6242
+ "testSuiteUrl": {
6243
+ "type": "string",
6244
+ "description": "Required. The URL of the library test suite to get TestCases from (sample)."
6245
+ },
6246
+ "count": {
6247
+ "type": "integer",
6248
+ "format": "int64",
6249
+ "description": "Required. The number of TestCases to get from the library."
6250
+ },
6251
+ "testDocumentUrls": {
6252
+ "type": "array",
6253
+ "items": {
6254
+ "type": "string"
6255
+ },
6256
+ "description": "Optional. The list of target Test corpus document URLs which don't have to be\nincluded when returning library TestCases corpus as they are already in the Test."
6257
+ }
6258
+ }
6259
+ },
4960
6260
  "v1Info": {
4961
6261
  "type": "object",
4962
6262
  "properties": {
@@ -5052,6 +6352,24 @@
5052
6352
  },
5053
6353
  "description": "Insight represents additional information about the evaluation."
5054
6354
  },
6355
+ "v1LabeledTestCase": {
6356
+ "type": "object",
6357
+ "properties": {
6358
+ "name": {
6359
+ "type": "string",
6360
+ "description": "Required. The test case resource name."
6361
+ },
6362
+ "metricValue": {
6363
+ "type": "number",
6364
+ "format": "float",
6365
+ "description": "Required. The metric value."
6366
+ },
6367
+ "label": {
6368
+ "type": "boolean",
6369
+ "description": "Required. Human label. True means the test case should be labeled as passed (positive), false means failed (negative)."
6370
+ }
6371
+ }
6372
+ },
5055
6373
  "v1Leaderboard": {
5056
6374
  "type": "object",
5057
6375
  "properties": {
@@ -5374,440 +6692,839 @@
5374
6692
  "v1ListMostRecentTestsResponse": {
5375
6693
  "type": "object",
5376
6694
  "properties": {
5377
- "tests": {
5378
- "type": "array",
5379
- "items": {
5380
- "type": "object",
5381
- "$ref": "#/definitions/v1Test"
5382
- },
5383
- "description": "The list of Tests."
6695
+ "tests": {
6696
+ "type": "array",
6697
+ "items": {
6698
+ "type": "object",
6699
+ "$ref": "#/definitions/v1Test"
6700
+ },
6701
+ "description": "The list of Tests."
6702
+ }
6703
+ }
6704
+ },
6705
+ "v1ListOperationsResponse": {
6706
+ "type": "object",
6707
+ "properties": {
6708
+ "operations": {
6709
+ "type": "array",
6710
+ "items": {
6711
+ "type": "object",
6712
+ "$ref": "#/definitions/v1Operation"
6713
+ },
6714
+ "description": "The list of Operations."
6715
+ }
6716
+ }
6717
+ },
6718
+ "v1ListPerturbatorsResponse": {
6719
+ "type": "object",
6720
+ "properties": {
6721
+ "perturbators": {
6722
+ "type": "array",
6723
+ "items": {
6724
+ "type": "object",
6725
+ "$ref": "#/definitions/v1Perturbator"
6726
+ },
6727
+ "description": "The list of Perturbators."
6728
+ }
6729
+ }
6730
+ },
6731
+ "v1ListPromptLibraryItemsResponse": {
6732
+ "type": "object",
6733
+ "properties": {
6734
+ "promptLibraryItems": {
6735
+ "type": "array",
6736
+ "items": {
6737
+ "type": "object",
6738
+ "$ref": "#/definitions/v1PromptLibraryItem"
6739
+ },
6740
+ "description": "Prompt library items (test suites)."
6741
+ }
6742
+ }
6743
+ },
6744
+ "v1ListRAGCollectionsResponse": {
6745
+ "type": "object",
6746
+ "properties": {
6747
+ "collections": {
6748
+ "type": "array",
6749
+ "items": {
6750
+ "type": "object",
6751
+ "$ref": "#/definitions/v1CollectionInfo"
6752
+ },
6753
+ "description": "Required. List of RAG collections available for evaluation."
6754
+ }
6755
+ }
6756
+ },
6757
+ "v1ListTestCaseLibraryItemsResponse": {
6758
+ "type": "object",
6759
+ "properties": {
6760
+ "promptLibraryItems": {
6761
+ "type": "array",
6762
+ "items": {
6763
+ "type": "object",
6764
+ "$ref": "#/definitions/v1PromptLibraryItem"
6765
+ },
6766
+ "description": "Test suites library items."
6767
+ }
6768
+ }
6769
+ },
6770
+ "v1ListTestCasesResponse": {
6771
+ "type": "object",
6772
+ "properties": {
6773
+ "testCases": {
6774
+ "type": "array",
6775
+ "items": {
6776
+ "type": "object",
6777
+ "$ref": "#/definitions/v1TestCase"
6778
+ },
6779
+ "description": "The list of TestCases."
6780
+ }
6781
+ }
6782
+ },
6783
+ "v1ListTestClassesResponse": {
6784
+ "type": "object",
6785
+ "properties": {
6786
+ "testClasses": {
6787
+ "type": "array",
6788
+ "items": {
6789
+ "type": "object",
6790
+ "$ref": "#/definitions/v1TestClass"
6791
+ },
6792
+ "description": "The TestClasses that match the request."
6793
+ }
6794
+ }
6795
+ },
6796
+ "v1ListTestsResponse": {
6797
+ "type": "object",
6798
+ "properties": {
6799
+ "tests": {
6800
+ "type": "array",
6801
+ "items": {
6802
+ "type": "object",
6803
+ "$ref": "#/definitions/v1Test"
6804
+ },
6805
+ "description": "The Tests that match the request."
6806
+ }
6807
+ }
6808
+ },
6809
+ "v1ListWorkflowsResponse": {
6810
+ "type": "object",
6811
+ "properties": {
6812
+ "workflows": {
6813
+ "type": "array",
6814
+ "items": {
6815
+ "type": "object",
6816
+ "$ref": "#/definitions/v1Workflow"
6817
+ },
6818
+ "description": "The Workflows requested."
6819
+ }
6820
+ }
6821
+ },
6822
+ "v1Model": {
6823
+ "type": "object",
6824
+ "properties": {
6825
+ "name": {
6826
+ "type": "string",
6827
+ "title": "Output only. Name of the Model resource. e.g.: \"models/\u003cUUID\u003e\"",
6828
+ "readOnly": true
6829
+ },
6830
+ "createTime": {
6831
+ "type": "string",
6832
+ "format": "date-time",
6833
+ "description": "Output only. Timestamp when the Model was created.",
6834
+ "readOnly": true
6835
+ },
6836
+ "creator": {
6837
+ "type": "string",
6838
+ "description": "Output only. Name of the user or service that requested creation of the Model.",
6839
+ "readOnly": true
6840
+ },
6841
+ "updateTime": {
6842
+ "type": "string",
6843
+ "format": "date-time",
6844
+ "description": "Output only. Optional. Timestamp when the Model was last updated.",
6845
+ "readOnly": true
6846
+ },
6847
+ "updater": {
6848
+ "type": "string",
6849
+ "description": "Output only. Optional. Name of the user or service that requested update of the Model.",
6850
+ "readOnly": true
6851
+ },
6852
+ "deleteTime": {
6853
+ "type": "string",
6854
+ "format": "date-time",
6855
+ "description": "Output only. Optional. Set when the Model is deleted. When set Model should be considered as\ndeleted.",
6856
+ "readOnly": true
6857
+ },
6858
+ "deleter": {
6859
+ "type": "string",
6860
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Model.",
6861
+ "readOnly": true
6862
+ },
6863
+ "displayName": {
6864
+ "type": "string",
6865
+ "description": "Human readable name of the Model."
6866
+ },
6867
+ "description": {
6868
+ "type": "string",
6869
+ "description": "Optional. Arbitrary description of the Model."
6870
+ },
6871
+ "url": {
6872
+ "type": "string",
6873
+ "description": "Optional. Immutable. Absolute URL to the Model."
6874
+ },
6875
+ "apiKey": {
6876
+ "type": "string",
6877
+ "description": "Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public\nclients (front-end). Set only for internal (server-to-worker) communication."
6878
+ },
6879
+ "type": {
6880
+ "$ref": "#/definitions/v1ModelType",
6881
+ "description": "Immutable. Type of this Model."
6882
+ },
6883
+ "parameters": {
6884
+ "type": "string",
6885
+ "description": "Optional. Model specific parameters in JSON format."
6886
+ },
6887
+ "demo": {
6888
+ "type": "boolean",
6889
+ "description": "Output only. Whether the Model is a demo resource or not. Demo resources are read only.",
6890
+ "readOnly": true
6891
+ }
6892
+ }
6893
+ },
6894
+ "v1ModelType": {
6895
+ "type": "string",
6896
+ "enum": [
6897
+ "MODEL_TYPE_UNSPECIFIED",
6898
+ "MODEL_TYPE_H2OGPTE_RAG",
6899
+ "MODEL_TYPE_OPENAI_RAG",
6900
+ "MODEL_TYPE_H2OGPTE_LLM",
6901
+ "MODEL_TYPE_H2OGPT_LLM",
6902
+ "MODEL_TYPE_OPENAI_CHAT",
6903
+ "MODEL_TYPE_AZURE_OPENAI_CHAT",
6904
+ "MODEL_TYPE_OPENAI_API_CHAT",
6905
+ "MODEL_TYPE_H2OLLMOPS",
6906
+ "MODEL_TYPE_OLLAMA",
6907
+ "MODEL_TYPE_AMAZON_BEDROCK"
6908
+ ],
6909
+ "default": "MODEL_TYPE_UNSPECIFIED",
6910
+ "description": " - MODEL_TYPE_UNSPECIFIED: Unspecified type.\n - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG.\n - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG.\n - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM.\n - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM.\n - MODEL_TYPE_OPENAI_CHAT: OpenAI chat.\n - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat.\n - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat.\n - MODEL_TYPE_H2OLLMOPS: H2O LLMOps.\n - MODEL_TYPE_OLLAMA: Ollama.\n - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock."
6911
+ },
6912
+ "v1Operation": {
6913
+ "type": "object",
6914
+ "properties": {
6915
+ "name": {
6916
+ "type": "string",
6917
+ "title": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
6918
+ "readOnly": true
6919
+ },
6920
+ "createTime": {
6921
+ "type": "string",
6922
+ "format": "date-time",
6923
+ "description": "Output only. Timestamp when the Operation was created.",
6924
+ "readOnly": true
6925
+ },
6926
+ "creator": {
6927
+ "type": "string",
6928
+ "description": "Output only. Name of the user or service that requested creation of the Operation.",
6929
+ "readOnly": true
6930
+ },
6931
+ "updateTime": {
6932
+ "type": "string",
6933
+ "format": "date-time",
6934
+ "description": "Output only. Optional. Timestamp when the Operation was last updated.",
6935
+ "readOnly": true
6936
+ },
6937
+ "updater": {
6938
+ "type": "string",
6939
+ "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
6940
+ "readOnly": true
6941
+ },
6942
+ "deleteTime": {
6943
+ "type": "string",
6944
+ "format": "date-time",
6945
+ "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
6946
+ "readOnly": true
6947
+ },
6948
+ "deleter": {
6949
+ "type": "string",
6950
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
6951
+ "readOnly": true
6952
+ },
6953
+ "metadata": {
6954
+ "$ref": "#/definitions/protobufAny",
6955
+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
6956
+ },
6957
+ "done": {
6958
+ "type": "boolean",
6959
+ "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
6960
+ },
6961
+ "error": {
6962
+ "$ref": "#/definitions/rpcStatus",
6963
+ "description": "The error result of the operation in case of failure or cancellation."
6964
+ },
6965
+ "response": {
6966
+ "$ref": "#/definitions/protobufAny",
6967
+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
5384
6968
  }
5385
- }
6969
+ },
6970
+ "description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
5386
6971
  },
5387
- "v1ListOperationsResponse": {
6972
+ "v1OperationProgress": {
5388
6973
  "type": "object",
5389
6974
  "properties": {
5390
- "operations": {
5391
- "type": "array",
5392
- "items": {
5393
- "type": "object",
5394
- "$ref": "#/definitions/v1Operation"
5395
- },
5396
- "description": "The list of Operations."
6975
+ "name": {
6976
+ "type": "string",
6977
+ "title": "Output only. Name of the prompt resource. e.g.: \"operations/\u003cUUID\u003e/progresses/\u003cUUID\u003e\"",
6978
+ "readOnly": true
6979
+ },
6980
+ "parent": {
6981
+ "type": "string",
6982
+ "description": "Parent Operation resource name. e.g.: \"operations/\u003cUUID\u003e\"."
6983
+ },
6984
+ "progress": {
6985
+ "type": "number",
6986
+ "format": "float",
6987
+ "description": "Output only. Progress in range [0,1].",
6988
+ "readOnly": true
6989
+ },
6990
+ "message": {
6991
+ "type": "string",
6992
+ "description": "Output only. Progress message.",
6993
+ "readOnly": true
5397
6994
  }
5398
6995
  }
5399
6996
  },
5400
- "v1ListPerturbatorsResponse": {
6997
+ "v1PerturbTestResponse": {
5401
6998
  "type": "object",
5402
6999
  "properties": {
5403
- "perturbators": {
5404
- "type": "array",
5405
- "items": {
5406
- "type": "object",
5407
- "$ref": "#/definitions/v1Perturbator"
5408
- },
5409
- "description": "The list of Perturbators."
7000
+ "test": {
7001
+ "$ref": "#/definitions/v1Test",
7002
+ "description": "The perturbed Test."
5410
7003
  }
5411
7004
  }
5412
7005
  },
5413
- "v1ListRAGCollectionsResponse": {
7006
+ "v1Perturbator": {
5414
7007
  "type": "object",
5415
7008
  "properties": {
5416
- "collections": {
7009
+ "name": {
7010
+ "type": "string",
7011
+ "title": "Output only. Name of the Perturbator resource. e.g.: \"perturbators/\u003cUUID\u003e\"",
7012
+ "readOnly": true
7013
+ },
7014
+ "createTime": {
7015
+ "type": "string",
7016
+ "format": "date-time",
7017
+ "description": "Output only. Timestamp when the Perturbator was created.",
7018
+ "readOnly": true
7019
+ },
7020
+ "creator": {
7021
+ "type": "string",
7022
+ "description": "Output only. Name of the user or service that requested creation of the Perturbator.",
7023
+ "readOnly": true
7024
+ },
7025
+ "updateTime": {
7026
+ "type": "string",
7027
+ "format": "date-time",
7028
+ "description": "Output only. Optional. Timestamp when the Perturbator was last updated.",
7029
+ "readOnly": true
7030
+ },
7031
+ "updater": {
7032
+ "type": "string",
7033
+ "description": "Output only. Optional. Name of the user or service that requested update of the Perturbator.",
7034
+ "readOnly": true
7035
+ },
7036
+ "deleteTime": {
7037
+ "type": "string",
7038
+ "format": "date-time",
7039
+ "description": "Output only. Optional. Set when the Perturbator is deleted. When set Perturbator should be considered as\ndeleted.",
7040
+ "readOnly": true
7041
+ },
7042
+ "deleter": {
7043
+ "type": "string",
7044
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Perturbator.",
7045
+ "readOnly": true
7046
+ },
7047
+ "displayName": {
7048
+ "type": "string",
7049
+ "description": "Human readable name of the Perturbator."
7050
+ },
7051
+ "description": {
7052
+ "type": "string",
7053
+ "description": "Optional. Arbitrary description of the Perturbator."
7054
+ },
7055
+ "identifier": {
7056
+ "type": "string",
7057
+ "description": "Well known identifier of the Perturbator implementation."
7058
+ },
7059
+ "tags": {
5417
7060
  "type": "array",
5418
7061
  "items": {
5419
- "type": "object",
5420
- "$ref": "#/definitions/v1CollectionInfo"
7062
+ "type": "string"
5421
7063
  },
5422
- "description": "Required. List of RAG collections available for evaluation."
7064
+ "description": "Optional. Tags or other identifiers of the Perturbator."
5423
7065
  }
5424
7066
  }
5425
7067
  },
5426
- "v1ListTestCasesResponse": {
7068
+ "v1PerturbatorConfiguration": {
5427
7069
  "type": "object",
5428
7070
  "properties": {
5429
- "testCases": {
5430
- "type": "array",
5431
- "items": {
5432
- "type": "object",
5433
- "$ref": "#/definitions/v1TestCase"
5434
- },
5435
- "description": "The list of TestCases."
7071
+ "name": {
7072
+ "type": "string",
7073
+ "title": "Required. The resource name of the perturbator to run, e.g.\n\"perturbators/h2o_sonar.utils.perturbations.CommaPerturbator\""
7074
+ },
7075
+ "intensity": {
7076
+ "$ref": "#/definitions/v1PerturbatorIntensity",
7077
+ "description": "Optional. The intensity of the perturbator, defaults to PERTURBATOR_INTENSITY_MEDIUM."
7078
+ },
7079
+ "params": {
7080
+ "type": "string",
7081
+ "description": "Optional. The parameters to pass to the perturbator."
5436
7082
  }
5437
- }
7083
+ },
7084
+ "description": "PerturbatorConfiguration represents the configuration of a perturbator to use during the\nperturbation process."
5438
7085
  },
5439
- "v1ListTestClassesResponse": {
7086
+ "v1PerturbatorIntensity": {
7087
+ "type": "string",
7088
+ "enum": [
7089
+ "PERTURBATOR_INTENSITY_UNSPECIFIED",
7090
+ "PERTURBATOR_INTENSITY_LOW",
7091
+ "PERTURBATOR_INTENSITY_MEDIUM",
7092
+ "PERTURBATOR_INTENSITY_HIGH"
7093
+ ],
7094
+ "default": "PERTURBATOR_INTENSITY_UNSPECIFIED"
7095
+ },
7096
+ "v1ProblemAndAction": {
5440
7097
  "type": "object",
5441
7098
  "properties": {
5442
- "testClasses": {
7099
+ "description": {
7100
+ "type": "string",
7101
+ "description": "Output only. Problem description.",
7102
+ "readOnly": true
7103
+ },
7104
+ "severity": {
7105
+ "type": "string",
7106
+ "description": "Output only. Problem severity.",
7107
+ "readOnly": true
7108
+ },
7109
+ "problemType": {
7110
+ "type": "string",
7111
+ "description": "Output only. Problem type.",
7112
+ "readOnly": true
7113
+ },
7114
+ "problemAttrs": {
7115
+ "type": "object",
7116
+ "additionalProperties": {
7117
+ "type": "string"
7118
+ },
7119
+ "description": "Output only. Problem attributes.",
7120
+ "readOnly": true
7121
+ },
7122
+ "actionsDescription": {
7123
+ "type": "string",
7124
+ "description": "Output only. Description of actions to mitigate the problem.",
7125
+ "readOnly": true
7126
+ },
7127
+ "explainerId": {
7128
+ "type": "string",
7129
+ "description": "Output only. ID of the explainer which identified the problem.",
7130
+ "readOnly": true
7131
+ },
7132
+ "explainerName": {
7133
+ "type": "string",
7134
+ "description": "Output only. Display name of the explainer which identified the problem.",
7135
+ "readOnly": true
7136
+ },
7137
+ "explanationType": {
7138
+ "type": "string",
7139
+ "description": "Output only. Type of the explanation which can clarify the problem.",
7140
+ "readOnly": true
7141
+ },
7142
+ "explanationName": {
7143
+ "type": "string",
7144
+ "description": "Output only. Name of the explanation which can clarify the problem.",
7145
+ "readOnly": true
7146
+ },
7147
+ "explanationMime": {
7148
+ "type": "string",
7149
+ "description": "Output only. Media type of the explanation which can clarify the problem.",
7150
+ "readOnly": true
7151
+ },
7152
+ "resources": {
5443
7153
  "type": "array",
5444
7154
  "items": {
5445
- "type": "object",
5446
- "$ref": "#/definitions/v1TestClass"
7155
+ "type": "string"
5447
7156
  },
5448
- "description": "The TestClasses that match the request."
7157
+ "description": "Output only. Problem resources.",
7158
+ "readOnly": true
5449
7159
  }
5450
7160
  }
5451
7161
  },
5452
- "v1ListTestsResponse": {
7162
+ "v1ProcessWorkflowNodeResponse": {
5453
7163
  "type": "object",
5454
7164
  "properties": {
5455
- "tests": {
5456
- "type": "array",
5457
- "items": {
5458
- "type": "object",
5459
- "$ref": "#/definitions/v1Test"
5460
- },
5461
- "description": "The Tests that match the request."
7165
+ "operation": {
7166
+ "$ref": "#/definitions/v1Operation",
7167
+ "description": "The operation that processes the WorkflowNode."
5462
7168
  }
5463
7169
  }
5464
7170
  },
5465
- "v1Model": {
7171
+ "v1PromptLibraryItem": {
5466
7172
  "type": "object",
5467
7173
  "properties": {
5468
7174
  "name": {
5469
7175
  "type": "string",
5470
- "title": "Output only. Name of the Model resource. e.g.: \"models/\u003cUUID\u003e\"",
7176
+ "title": "Output only. Name of the item resource. e.g.: \"promptLibraryItem/\u003cUUID\u003e\"",
5471
7177
  "readOnly": true
5472
7178
  },
5473
7179
  "createTime": {
5474
7180
  "type": "string",
5475
7181
  "format": "date-time",
5476
- "description": "Output only. Timestamp when the Model was created.",
7182
+ "description": "Output only. Timestamp when the item was created.",
5477
7183
  "readOnly": true
5478
7184
  },
5479
7185
  "creator": {
5480
7186
  "type": "string",
5481
- "description": "Output only. Name of the user or service that requested creation of the Model.",
7187
+ "description": "Output only. Name of the user or service that requested creation of the item.",
5482
7188
  "readOnly": true
5483
7189
  },
5484
7190
  "updateTime": {
5485
7191
  "type": "string",
5486
7192
  "format": "date-time",
5487
- "description": "Output only. Optional. Timestamp when the Model was last updated.",
7193
+ "description": "Output only. Optional. Timestamp when the item was last updated.",
5488
7194
  "readOnly": true
5489
7195
  },
5490
7196
  "updater": {
5491
7197
  "type": "string",
5492
- "description": "Output only. Optional. Name of the user or service that requested update of the Model.",
7198
+ "description": "Output only. Optional. Name of the user or service that requested update of the item.",
5493
7199
  "readOnly": true
5494
7200
  },
5495
7201
  "deleteTime": {
5496
7202
  "type": "string",
5497
7203
  "format": "date-time",
5498
- "description": "Output only. Optional. Set when the Model is deleted. When set Model should be considered as\ndeleted.",
7204
+ "description": "Output only. Optional. Set when the item is deleted. When set, item should be considered as\ndeleted.",
5499
7205
  "readOnly": true
5500
7206
  },
5501
7207
  "deleter": {
5502
7208
  "type": "string",
5503
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Model.",
7209
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the item.",
5504
7210
  "readOnly": true
5505
7211
  },
5506
7212
  "displayName": {
5507
7213
  "type": "string",
5508
- "description": "Human readable name of the Model."
7214
+ "description": "Human readable name of the item."
5509
7215
  },
5510
7216
  "description": {
5511
7217
  "type": "string",
5512
- "description": "Optional. Arbitrary description of the Model."
7218
+ "description": "Optional. Arbitrary description of the item."
5513
7219
  },
5514
- "url": {
7220
+ "testSuiteUrl": {
5515
7221
  "type": "string",
5516
- "description": "Optional. Immutable. Absolute URL to the Model."
7222
+ "description": "URL of the test suite which is represented by this library item."
5517
7223
  },
5518
- "apiKey": {
5519
- "type": "string",
5520
- "description": "Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public\nclients (front-end). Set only for internal (server-to-worker) communication."
7224
+ "testCount": {
7225
+ "type": "integer",
7226
+ "format": "int64",
7227
+ "description": "Number of tests in the test suite."
5521
7228
  },
5522
- "type": {
5523
- "$ref": "#/definitions/v1ModelType",
5524
- "description": "Immutable. Type of this Model."
7229
+ "testCaseCount": {
7230
+ "type": "integer",
7231
+ "format": "int64",
7232
+ "description": "Number of test cases in the test suite."
5525
7233
  },
5526
- "parameters": {
5527
- "type": "string",
5528
- "description": "Optional. Model specific parameters in JSON format."
7234
+ "evaluates": {
7235
+ "type": "array",
7236
+ "items": {
7237
+ "$ref": "#/definitions/v1TestSuiteEvaluates"
7238
+ },
7239
+ "description": "Types of systems evaluated by this item - like RAG (has corpus), LLM (no corpus) or agents."
5529
7240
  },
5530
- "demo": {
5531
- "type": "boolean",
5532
- "description": "Output only. Whether the Model is a demo resource or not. Demo resources are read only.",
5533
- "readOnly": true
7241
+ "categories": {
7242
+ "type": "array",
7243
+ "items": {
7244
+ "type": "string"
7245
+ },
7246
+ "description": "Categories of test cases in the item - like question_answering or summarization."
5534
7247
  }
5535
7248
  }
5536
7249
  },
5537
- "v1ModelType": {
5538
- "type": "string",
5539
- "enum": [
5540
- "MODEL_TYPE_UNSPECIFIED",
5541
- "MODEL_TYPE_H2OGPTE_RAG",
5542
- "MODEL_TYPE_OPENAI_RAG",
5543
- "MODEL_TYPE_H2OGPTE_LLM",
5544
- "MODEL_TYPE_H2OGPT_LLM",
5545
- "MODEL_TYPE_OPENAI_CHAT",
5546
- "MODEL_TYPE_AZURE_OPENAI_CHAT",
5547
- "MODEL_TYPE_OPENAI_API_CHAT",
5548
- "MODEL_TYPE_H2OLLMOPS",
5549
- "MODEL_TYPE_OLLAMA",
5550
- "MODEL_TYPE_AMAZON_BEDROCK"
5551
- ],
5552
- "default": "MODEL_TYPE_UNSPECIFIED",
5553
- "description": " - MODEL_TYPE_UNSPECIFIED: Unspecified type.\n - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG.\n - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG.\n - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM.\n - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM.\n - MODEL_TYPE_OPENAI_CHAT: OpenAI chat.\n - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat.\n - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat.\n - MODEL_TYPE_H2OLLMOPS: H2O LLMOps.\n - MODEL_TYPE_OLLAMA: Ollama.\n - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock."
5554
- },
5555
- "v1Operation": {
7250
+ "v1Test": {
5556
7251
  "type": "object",
5557
7252
  "properties": {
5558
7253
  "name": {
5559
7254
  "type": "string",
5560
- "title": "Output only. Name of the Operation resource. e.g.: \"operations/\u003cUUID\u003e\"",
7255
+ "title": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e\"",
5561
7256
  "readOnly": true
5562
7257
  },
5563
7258
  "createTime": {
5564
7259
  "type": "string",
5565
7260
  "format": "date-time",
5566
- "description": "Output only. Timestamp when the Operation was created.",
7261
+ "description": "Output only. Timestamp when the Test was created.",
5567
7262
  "readOnly": true
5568
7263
  },
5569
7264
  "creator": {
5570
7265
  "type": "string",
5571
- "description": "Output only. Name of the user or service that requested creation of the Operation.",
7266
+ "description": "Output only. Name of the user or service that requested creation of the Test.",
5572
7267
  "readOnly": true
5573
7268
  },
5574
7269
  "updateTime": {
5575
7270
  "type": "string",
5576
7271
  "format": "date-time",
5577
- "description": "Output only. Optional. Timestamp when the Operation was last updated.",
7272
+ "description": "Output only. Optional. Timestamp when the Test was last updated.",
5578
7273
  "readOnly": true
5579
7274
  },
5580
7275
  "updater": {
5581
7276
  "type": "string",
5582
- "description": "Output only. Optional. Name of the user or service that requested update of the Operation.",
7277
+ "description": "Output only. Optional. Name of the user or service that requested update of the Test.",
5583
7278
  "readOnly": true
5584
7279
  },
5585
7280
  "deleteTime": {
5586
7281
  "type": "string",
5587
7282
  "format": "date-time",
5588
- "description": "Output only. Optional. Set when the Operation is deleted. When set Operation should be\nconsidered as deleted.",
7283
+ "description": "Output only. Optional. Set when the Test is deleted. When set, Test should be considered as\ndeleted.",
5589
7284
  "readOnly": true
5590
7285
  },
5591
7286
  "deleter": {
5592
7287
  "type": "string",
5593
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Operation.",
7288
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the Test.",
5594
7289
  "readOnly": true
5595
7290
  },
5596
- "metadata": {
5597
- "$ref": "#/definitions/protobufAny",
5598
- "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any."
5599
- },
5600
- "done": {
5601
- "type": "boolean",
5602
- "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
5603
- },
5604
- "error": {
5605
- "$ref": "#/definitions/rpcStatus",
5606
- "description": "The error result of the operation in case of failure or cancellation."
5607
- },
5608
- "response": {
5609
- "$ref": "#/definitions/protobufAny",
5610
- "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
5611
- }
5612
- },
5613
- "description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
5614
- },
5615
- "v1OperationProgress": {
5616
- "type": "object",
5617
- "properties": {
5618
- "name": {
7291
+ "displayName": {
5619
7292
  "type": "string",
5620
- "title": "Output only. Name of the prompt resource. e.g.: \"operations/\u003cUUID\u003e/progresses/\u003cUUID\u003e\"",
5621
- "readOnly": true
7293
+ "description": "Human readable name of the Test."
5622
7294
  },
5623
- "parent": {
7295
+ "description": {
5624
7296
  "type": "string",
5625
- "description": "Parent Operation resource name. e.g.: \"operations/\u003cUUID\u003e\"."
7297
+ "description": "Optional. Arbitrary description of the Test."
5626
7298
  },
5627
- "progress": {
5628
- "type": "number",
5629
- "format": "float",
5630
- "description": "Output only. Progress in range [0,1].",
5631
- "readOnly": true
7299
+ "documents": {
7300
+ "type": "array",
7301
+ "items": {
7302
+ "type": "string"
7303
+ },
7304
+ "description": "Immutable. Resource names of Documents assigned to the Test."
5632
7305
  },
5633
- "message": {
5634
- "type": "string",
5635
- "description": "Output only. Progress message.",
7306
+ "tags": {
7307
+ "type": "array",
7308
+ "items": {
7309
+ "type": "string"
7310
+ },
7311
+ "description": "Tags assigned to the Test."
7312
+ },
7313
+ "demo": {
7314
+ "type": "boolean",
7315
+ "description": "Output only. Whether the Test is a demo resource or not. Demo resources are read only.",
5636
7316
  "readOnly": true
5637
7317
  }
5638
7318
  }
5639
7319
  },
5640
- "v1PerturbTestResponse": {
5641
- "type": "object",
5642
- "properties": {
5643
- "test": {
5644
- "$ref": "#/definitions/v1Test",
5645
- "description": "The perturbed Test."
5646
- }
5647
- }
5648
- },
5649
- "v1Perturbator": {
7320
+ "v1TestCase": {
5650
7321
  "type": "object",
5651
7322
  "properties": {
5652
7323
  "name": {
5653
7324
  "type": "string",
5654
- "title": "Output only. Name of the Perturbator resource. e.g.: \"perturbators/\u003cUUID\u003e\"",
7325
+ "title": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e/testCases/\u003cUUID\u003e\"",
5655
7326
  "readOnly": true
5656
7327
  },
5657
7328
  "createTime": {
5658
7329
  "type": "string",
5659
7330
  "format": "date-time",
5660
- "description": "Output only. Timestamp when the Perturbator was created.",
7331
+ "description": "Output only. Timestamp when the Test was created.",
5661
7332
  "readOnly": true
5662
7333
  },
5663
7334
  "creator": {
5664
7335
  "type": "string",
5665
- "description": "Output only. Name of the user or service that requested creation of the Perturbator.",
7336
+ "description": "Output only. Name of the user or service that requested creation of the TestCase.",
5666
7337
  "readOnly": true
5667
7338
  },
5668
7339
  "updateTime": {
5669
7340
  "type": "string",
5670
7341
  "format": "date-time",
5671
- "description": "Output only. Optional. Timestamp when the Perturbator was last updated.",
7342
+ "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
5672
7343
  "readOnly": true
5673
7344
  },
5674
7345
  "updater": {
5675
7346
  "type": "string",
5676
- "description": "Output only. Optional. Name of the user or service that requested update of the Perturbator.",
7347
+ "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
5677
7348
  "readOnly": true
5678
7349
  },
5679
7350
  "deleteTime": {
5680
7351
  "type": "string",
5681
7352
  "format": "date-time",
5682
- "description": "Output only. Optional. Set when the Perturbator is deleted. When set Perturbator should be considered as\ndeleted.",
7353
+ "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
5683
7354
  "readOnly": true
5684
7355
  },
5685
7356
  "deleter": {
5686
7357
  "type": "string",
5687
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Perturbator.",
7358
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
5688
7359
  "readOnly": true
5689
7360
  },
5690
- "displayName": {
7361
+ "parent": {
5691
7362
  "type": "string",
5692
- "description": "Human readable name of the Perturbator."
7363
+ "description": "Parent Test resource name. e.g.: \"tests/\u003cUUID\u003e\"."
5693
7364
  },
5694
- "description": {
7365
+ "prompt": {
5695
7366
  "type": "string",
5696
- "description": "Optional. Arbitrary description of the Perturbator."
7367
+ "description": "Prompt text. Model input."
5697
7368
  },
5698
- "identifier": {
7369
+ "answer": {
5699
7370
  "type": "string",
5700
- "description": "Well known identifier of the Perturbator implementation."
7371
+ "description": "Expected answer text. Model output."
5701
7372
  },
5702
- "tags": {
7373
+ "constraints": {
5703
7374
  "type": "array",
5704
7375
  "items": {
5705
7376
  "type": "string"
5706
7377
  },
5707
- "description": "Optional. Tags or other identifiers of the Perturbator."
7378
+ "description": "Constraints on the model output."
7379
+ },
7380
+ "condition": {
7381
+ "type": "string",
7382
+ "description": "Optional. Test case output condition, in a form of AIP-160 compliant filter expression."
7383
+ },
7384
+ "perturbedBy": {
7385
+ "type": "array",
7386
+ "items": {
7387
+ "type": "string"
7388
+ },
7389
+ "description": "Output only. The list of perturbators applied to this test case.",
7390
+ "readOnly": true
5708
7391
  }
5709
7392
  }
5710
7393
  },
5711
- "v1PerturbatorConfiguration": {
7394
+ "v1TestCaseRelationship": {
5712
7395
  "type": "object",
5713
7396
  "properties": {
5714
- "name": {
7397
+ "source": {
5715
7398
  "type": "string",
5716
- "title": "Required. The resource name of the perturbator to run, e.g.\n\"perturbators/h2o_sonar.utils.perturbations.CommaPerturbator\""
7399
+ "description": "Required. Source test case."
5717
7400
  },
5718
- "intensity": {
5719
- "$ref": "#/definitions/v1PerturbatorIntensity",
5720
- "description": "Optional. The intensity of the perturbator, defaults to PERTURBATOR_INTENSITY_MEDIUM."
7401
+ "target": {
7402
+ "type": "string",
7403
+ "description": "Required. Target test case."
5721
7404
  },
5722
- "params": {
7405
+ "type": {
5723
7406
  "type": "string",
5724
- "description": "Optional. The parameters to pass to the perturbator."
7407
+ "description": "Required. Type of the relationship."
5725
7408
  }
5726
- },
5727
- "description": "PerturbatorConfiguration represents the configuration of a perturbator to use during the\nperturbation process."
7409
+ }
5728
7410
  },
5729
- "v1PerturbatorIntensity": {
7411
+ "v1TestCasesGenerator": {
5730
7412
  "type": "string",
5731
7413
  "enum": [
5732
- "PERTURBATOR_INTENSITY_UNSPECIFIED",
5733
- "PERTURBATOR_INTENSITY_LOW",
5734
- "PERTURBATOR_INTENSITY_MEDIUM",
5735
- "PERTURBATOR_INTENSITY_HIGH"
7414
+ "TEST_CASES_GENERATOR_UNSPECIFIED",
7415
+ "TEST_CASES_GENERATOR_SIMPLE_FACTUAL_QUESTIONS",
7416
+ "TEST_CASES_GENERATOR_MULTI_HOP_QUESTIONS",
7417
+ "TEST_CASES_GENERATOR_INFERENCE_QUESTIONS",
7418
+ "TEST_CASES_GENERATOR_NUMERICAL_REASONING_QUESTIONS",
7419
+ "TEST_CASES_GENERATOR_AMBIGUITY_HANDLING_QUESTIONS",
7420
+ "TEST_CASES_GENERATOR_NEGATION_AND_CONTRADICTION_QUESTIONS",
7421
+ "TEST_CASES_GENERATOR_TEMPORAL_REASONING_QUESTIONS",
7422
+ "TEST_CASES_GENERATOR_OUT_OF_SCOPE_QUESTIONS",
7423
+ "TEST_CASES_GENERATOR_YES_OR_NO_QUESTIONS",
7424
+ "TEST_CASES_GENERATOR_MULTIPLE_CHOICE_QUESTIONS",
7425
+ "TEST_CASES_GENERATOR_DEMOGRAPHIC_REPRESENTATION_QUESTIONS",
7426
+ "TEST_CASES_GENERATOR_SENTIMENT_VARIATION_QUESTIONS",
7427
+ "TEST_CASES_GENERATOR_IRRELEVANT_INFORMATION_QUESTIONS",
7428
+ "TEST_CASES_GENERATOR_DELIBERATELY_MISLEADING_QUESTIONS"
5736
7429
  ],
5737
- "default": "PERTURBATOR_INTENSITY_UNSPECIFIED"
7430
+ "default": "TEST_CASES_GENERATOR_UNSPECIFIED"
5738
7431
  },
5739
- "v1ProblemAndAction": {
7432
+ "v1TestClass": {
5740
7433
  "type": "object",
5741
7434
  "properties": {
5742
- "description": {
7435
+ "name": {
5743
7436
  "type": "string",
5744
- "description": "Output only. Problem description.",
7437
+ "title": "Output only. Name of the prompt resource. e.g.: \"testClasses/\u003cUUID\u003e\"",
5745
7438
  "readOnly": true
5746
7439
  },
5747
- "severity": {
7440
+ "createTime": {
5748
7441
  "type": "string",
5749
- "description": "Output only. Problem severity.",
7442
+ "format": "date-time",
7443
+ "description": "Output only. Timestamp when the TestClass was created.",
5750
7444
  "readOnly": true
5751
7445
  },
5752
- "problemType": {
7446
+ "creator": {
5753
7447
  "type": "string",
5754
- "description": "Output only. Problem type.",
5755
- "readOnly": true
5756
- },
5757
- "problemAttrs": {
5758
- "type": "object",
5759
- "additionalProperties": {
5760
- "type": "string"
5761
- },
5762
- "description": "Output only. Problem attributes.",
7448
+ "description": "Output only. Name of the user or service that requested creation of the TestClass.",
5763
7449
  "readOnly": true
5764
7450
  },
5765
- "actionsDescription": {
7451
+ "updateTime": {
5766
7452
  "type": "string",
5767
- "description": "Output only. Description of actions to mitigate the problem.",
7453
+ "format": "date-time",
7454
+ "description": "Output only. Optional. Timestamp when the TestClass was last updated.",
5768
7455
  "readOnly": true
5769
7456
  },
5770
- "explainerId": {
7457
+ "updater": {
5771
7458
  "type": "string",
5772
- "description": "Output only. ID of the explainer which identified the problem.",
7459
+ "description": "Output only. Optional. Name of the user or service that requested update of the TestClass.",
5773
7460
  "readOnly": true
5774
7461
  },
5775
- "explainerName": {
7462
+ "deleteTime": {
5776
7463
  "type": "string",
5777
- "description": "Output only. Display name of the explainer which identified the problem.",
7464
+ "format": "date-time",
7465
+ "description": "Output only. Optional. Set when the TestClass is deleted. When set, TestClass should be\nconsidered as deleted.",
5778
7466
  "readOnly": true
5779
7467
  },
5780
- "explanationType": {
7468
+ "deleter": {
5781
7469
  "type": "string",
5782
- "description": "Output only. Type of the explanation which can clarify the problem.",
7470
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the TestClass.",
5783
7471
  "readOnly": true
5784
7472
  },
5785
- "explanationName": {
7473
+ "displayName": {
5786
7474
  "type": "string",
5787
- "description": "Output only. Name of the explanation which can clarify the problem.",
5788
- "readOnly": true
7475
+ "description": "Human readable name of the TestClass."
5789
7476
  },
5790
- "explanationMime": {
7477
+ "description": {
5791
7478
  "type": "string",
5792
- "description": "Output only. Media type of the explanation which can clarify the problem.",
5793
- "readOnly": true
7479
+ "description": "Optional. Arbitrary description of the TestClass."
5794
7480
  },
5795
- "resources": {
7481
+ "evaluators": {
5796
7482
  "type": "array",
5797
7483
  "items": {
5798
7484
  "type": "string"
5799
7485
  },
5800
- "description": "Output only. Problem resources.",
5801
- "readOnly": true
7486
+ "description": "List of evaluators that are part of the TestClass."
7487
+ },
7488
+ "recommendedTests": {
7489
+ "type": "array",
7490
+ "items": {
7491
+ "type": "string"
7492
+ },
7493
+ "description": "List of recommended Tests that are part of the TestClass."
7494
+ },
7495
+ "testClassType": {
7496
+ "$ref": "#/definitions/v1TestClassType",
7497
+ "description": "Type of the TestClass."
7498
+ },
7499
+ "tags": {
7500
+ "type": "array",
7501
+ "items": {
7502
+ "type": "string"
7503
+ },
7504
+ "description": "List of tags. Can contain any string, some examples are \"SR 11-7\", \"NIST\", etc."
5802
7505
  }
5803
7506
  }
5804
7507
  },
5805
- "v1Test": {
7508
+ "v1TestClassType": {
7509
+ "type": "string",
7510
+ "enum": [
7511
+ "TEST_CLASS_TYPE_UNSPECIFIED",
7512
+ "TEST_CLASS_TYPE_STANDARD",
7513
+ "TEST_CLASS_TYPE_ROLE",
7514
+ "TEST_CLASS_TYPE_PROBLEM",
7515
+ "TEST_CLASS_TYPE_PURPOSE",
7516
+ "TEST_CLASS_TYPE_METHOD",
7517
+ "TEST_CLASS_TYPE_METHOD_TYPE"
7518
+ ],
7519
+ "default": "TEST_CLASS_TYPE_UNSPECIFIED",
7520
+ "description": " - TEST_CLASS_TYPE_UNSPECIFIED: Unspecified TestClass type.\n - TEST_CLASS_TYPE_STANDARD: TestClass type corresponding to a certain standard.\n - TEST_CLASS_TYPE_ROLE: TestClass type corresponding to a certain role.\n - TEST_CLASS_TYPE_PROBLEM: TestClass type corresponding to a certain problem.\n - TEST_CLASS_TYPE_PURPOSE: TestClass type corresponding to a certain purpose.\n - TEST_CLASS_TYPE_METHOD: TestClass type corresponding to a certain method.\n - TEST_CLASS_TYPE_METHOD_TYPE: TestClass type corresponding to a certain method type."
7521
+ },
7522
+ "v1TestLab": {
5806
7523
  "type": "object",
5807
7524
  "properties": {
5808
7525
  "name": {
5809
7526
  "type": "string",
5810
- "title": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e\"",
7527
+ "title": "Output only. Name of the prompt resource. e.g.: \"testLabs/\u003cUUID\u003e\"",
5811
7528
  "readOnly": true
5812
7529
  },
5813
7530
  "createTime": {
@@ -5818,407 +7535,561 @@
5818
7535
  },
5819
7536
  "creator": {
5820
7537
  "type": "string",
5821
- "description": "Output only. Name of the user or service that requested creation of the Test.",
7538
+ "description": "Output only. Name of the user or service that requested creation of the TestCase.",
5822
7539
  "readOnly": true
5823
7540
  },
5824
7541
  "updateTime": {
5825
7542
  "type": "string",
5826
7543
  "format": "date-time",
5827
- "description": "Output only. Optional. Timestamp when the Test was last updated.",
7544
+ "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
5828
7545
  "readOnly": true
5829
7546
  },
5830
7547
  "updater": {
5831
7548
  "type": "string",
5832
- "description": "Output only. Optional. Name of the user or service that requested update of the Test.",
7549
+ "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
5833
7550
  "readOnly": true
5834
7551
  },
5835
7552
  "deleteTime": {
5836
7553
  "type": "string",
5837
7554
  "format": "date-time",
5838
- "description": "Output only. Optional. Set when the Test is deleted. When set, Test should be considered as\ndeleted.",
7555
+ "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
5839
7556
  "readOnly": true
5840
7557
  },
5841
7558
  "deleter": {
5842
7559
  "type": "string",
5843
- "description": "Output only. Optional. Name of the user or service that requested deletion of the Test.",
7560
+ "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
5844
7561
  "readOnly": true
5845
7562
  },
5846
- "displayName": {
5847
- "type": "string",
5848
- "description": "Human readable name of the Test."
5849
- },
5850
- "description": {
7563
+ "model": {
5851
7564
  "type": "string",
5852
- "description": "Optional. Arbitrary description of the Test."
7565
+ "description": "Immutable. Model used in this test lab."
5853
7566
  },
5854
- "documents": {
7567
+ "testCases": {
5855
7568
  "type": "array",
5856
7569
  "items": {
5857
7570
  "type": "string"
5858
7571
  },
5859
- "description": "Immutable. Resource names of Documents assigned to the Test."
7572
+ "description": "Immutable. Test cases used in this test lab."
5860
7573
  },
5861
- "tags": {
7574
+ "content": {
7575
+ "type": "string",
7576
+ "format": "byte",
7577
+ "description": "Immutable. Raw content of the Test Lab."
7578
+ },
7579
+ "llmModels": {
5862
7580
  "type": "array",
5863
7581
  "items": {
5864
7582
  "type": "string"
5865
7583
  },
5866
- "description": "Tags assigned to the Test."
7584
+ "description": "Immutable. List of LLM models used."
5867
7585
  },
5868
- "demo": {
5869
- "type": "boolean",
5870
- "description": "Output only. Whether the Test is a demo resource or not. Demo resources are read only.",
5871
- "readOnly": true
7586
+ "modelParameters": {
7587
+ "type": "string",
7588
+ "description": "Immutable. Optional. Parameters overrides in JSON format."
7589
+ },
7590
+ "h2ogpteCollection": {
7591
+ "type": "string",
7592
+ "description": "The existing collection name in H2OGPTe."
5872
7593
  }
5873
7594
  }
5874
7595
  },
5875
- "v1TestCase": {
7596
+ "v1TestSuiteEvaluates": {
7597
+ "type": "string",
7598
+ "enum": [
7599
+ "TEST_SUITE_EVALUATES_UNSPECIFIED",
7600
+ "TEST_SUITE_EVALUATES_RAG",
7601
+ "TEST_SUITE_EVALUATES_LLM",
7602
+ "TEST_SUITE_EVALUATES_AGENT"
7603
+ ],
7604
+ "default": "TEST_SUITE_EVALUATES_UNSPECIFIED"
7605
+ },
7606
+ "v1UpdateDashboardResponse": {
7607
+ "type": "object",
7608
+ "properties": {
7609
+ "dashboard": {
7610
+ "$ref": "#/definitions/v1Dashboard",
7611
+ "description": "The updated Dashboard."
7612
+ }
7613
+ }
7614
+ },
7615
+ "v1UpdateDocumentResponse": {
7616
+ "type": "object",
7617
+ "properties": {
7618
+ "document": {
7619
+ "$ref": "#/definitions/v1Document",
7620
+ "description": "The deleted Document."
7621
+ }
7622
+ }
7623
+ },
7624
+ "v1UpdateLeaderboardResponse": {
7625
+ "type": "object",
7626
+ "properties": {
7627
+ "leaderboard": {
7628
+ "$ref": "#/definitions/v1Leaderboard",
7629
+ "description": "The updated Leaderboard."
7630
+ }
7631
+ }
7632
+ },
7633
+ "v1UpdateModelResponse": {
7634
+ "type": "object",
7635
+ "properties": {
7636
+ "model": {
7637
+ "$ref": "#/definitions/v1Model",
7638
+ "description": "The updated Model."
7639
+ }
7640
+ }
7641
+ },
7642
+ "v1UpdateOperationResponse": {
7643
+ "type": "object",
7644
+ "properties": {
7645
+ "operation": {
7646
+ "$ref": "#/definitions/v1Operation",
7647
+ "description": "The updated Operation."
7648
+ }
7649
+ }
7650
+ },
7651
+ "v1UpdateTestCaseResponse": {
7652
+ "type": "object",
7653
+ "properties": {
7654
+ "testCase": {
7655
+ "$ref": "#/definitions/v1TestCase",
7656
+ "description": "The updated TestCase."
7657
+ }
7658
+ }
7659
+ },
7660
+ "v1UpdateTestResponse": {
7661
+ "type": "object",
7662
+ "properties": {
7663
+ "test": {
7664
+ "$ref": "#/definitions/v1Test",
7665
+ "description": "The updated Test."
7666
+ }
7667
+ }
7668
+ },
7669
+ "v1UpdateWorkflowNodeResponse": {
7670
+ "type": "object",
7671
+ "properties": {
7672
+ "node": {
7673
+ "$ref": "#/definitions/v1WorkflowNode",
7674
+ "description": "The updated WorkflowNode."
7675
+ }
7676
+ }
7677
+ },
7678
+ "v1UpdateWorkflowResponse": {
7679
+ "type": "object",
7680
+ "properties": {
7681
+ "workflow": {
7682
+ "$ref": "#/definitions/v1Workflow",
7683
+ "description": "The Workflow updated."
7684
+ }
7685
+ }
7686
+ },
7687
+ "v1WhoAmIResponse": {
7688
+ "type": "object",
7689
+ "properties": {
7690
+ "sub": {
7691
+ "type": "string",
7692
+ "description": "The caller's identity."
7693
+ },
7694
+ "preferredUsername": {
7695
+ "type": "string",
7696
+ "description": "The caller's preferred username. Might be empty."
7697
+ },
7698
+ "email": {
7699
+ "type": "string",
7700
+ "description": "The caller's email address. Might be empty."
7701
+ }
7702
+ }
7703
+ },
7704
+ "v1Workflow": {
5876
7705
  "type": "object",
5877
7706
  "properties": {
5878
7707
  "name": {
5879
7708
  "type": "string",
5880
- "title": "Output only. Name of the prompt resource. e.g.: \"tests/\u003cUUID\u003e/testCases/\u003cUUID\u003e\"",
7709
+ "description": "Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.",
5881
7710
  "readOnly": true
5882
7711
  },
7712
+ "displayName": {
7713
+ "type": "string",
7714
+ "description": "Human-readable name of the Workflow."
7715
+ },
7716
+ "description": {
7717
+ "type": "string",
7718
+ "description": "Optional description of the Workflow."
7719
+ },
5883
7720
  "createTime": {
5884
7721
  "type": "string",
5885
7722
  "format": "date-time",
5886
- "description": "Output only. Timestamp when the Test was created.",
7723
+ "description": "Output only. Immutable. Creation time of the Workflow.",
5887
7724
  "readOnly": true
5888
7725
  },
5889
7726
  "creator": {
5890
7727
  "type": "string",
5891
- "description": "Output only. Name of the user or service that requested creation of the TestCase.",
7728
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the Workflow.",
5892
7729
  "readOnly": true
5893
7730
  },
5894
7731
  "updateTime": {
5895
7732
  "type": "string",
5896
7733
  "format": "date-time",
5897
- "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
7734
+ "description": "Output only. Optional. Last update time of the Workflow.",
5898
7735
  "readOnly": true
5899
7736
  },
5900
7737
  "updater": {
5901
7738
  "type": "string",
5902
- "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
7739
+ "description": "Output only. Name of the user or service that requested update of the Workflow.",
5903
7740
  "readOnly": true
5904
7741
  },
5905
7742
  "deleteTime": {
5906
7743
  "type": "string",
5907
7744
  "format": "date-time",
5908
- "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
7745
+ "description": "Output only. Optional. Deletion time of the Workflow.",
5909
7746
  "readOnly": true
5910
7747
  },
5911
7748
  "deleter": {
5912
7749
  "type": "string",
5913
- "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
7750
+ "description": "Output only. Name of the user or service that requested deletion of the Workflow.",
5914
7751
  "readOnly": true
5915
7752
  },
5916
- "parent": {
5917
- "type": "string",
5918
- "description": "Parent Test resource name. e.g.: \"tests/\u003cUUID\u003e\"."
7753
+ "type": {
7754
+ "$ref": "#/definitions/v1WorkflowType",
7755
+ "description": "Immutable. Type of the Workflow."
5919
7756
  },
5920
- "prompt": {
7757
+ "model": {
5921
7758
  "type": "string",
5922
- "description": "Prompt text. Model input."
7759
+ "description": "Immutable. Resource name of the Model associated with this Workflow."
5923
7760
  },
5924
- "answer": {
5925
- "type": "string",
5926
- "description": "Expected answer text. Model output."
7761
+ "nodes": {
7762
+ "type": "array",
7763
+ "items": {
7764
+ "type": "string"
7765
+ },
7766
+ "description": "Output only. List of the WorkflowNodes in the Workflow.",
7767
+ "readOnly": true
5927
7768
  },
5928
- "constraints": {
7769
+ "edges": {
5929
7770
  "type": "array",
5930
7771
  "items": {
5931
7772
  "type": "string"
5932
7773
  },
5933
- "description": "Constraints on the model output."
7774
+ "description": "Output only. List of the WorkflowEdges in the Workflow.",
7775
+ "readOnly": true
5934
7776
  },
5935
- "condition": {
5936
- "type": "string",
5937
- "description": "Optional. Test case output condition, in a form of AIP-160 compliant filter expression."
5938
- }
5939
- }
5940
- },
5941
- "v1TestCaseRelationship": {
5942
- "type": "object",
5943
- "properties": {
5944
- "source": {
5945
- "type": "string",
5946
- "description": "Required. Source test case."
7777
+ "outputs": {
7778
+ "type": "object",
7779
+ "additionalProperties": {
7780
+ "type": "object"
7781
+ },
7782
+ "description": "Output only. Optional. Computed outputs of all the WorkflowNodes in the Workflow.",
7783
+ "readOnly": true
5947
7784
  },
5948
- "target": {
7785
+ "outputArtifacts": {
7786
+ "type": "object",
7787
+ "additionalProperties": {
7788
+ "$ref": "#/definitions/v1WorkflowNodeArtifacts"
7789
+ },
7790
+ "description": "Output only. Optional. List of the WorkflowNodeArtifacts produces by all the WorkflowNodes in the\nWorkflow.",
7791
+ "readOnly": true
7792
+ },
7793
+ "llmModel": {
5949
7794
  "type": "string",
5950
- "description": "Required. Target test case."
7795
+ "description": "Immutable. LLM Model to use."
5951
7796
  },
5952
- "type": {
7797
+ "modelParameters": {
5953
7798
  "type": "string",
5954
- "description": "Required. Type of the relationship."
7799
+ "description": "Optional. Immutable. Model parameter overrides in JSON format."
5955
7800
  }
5956
- }
5957
- },
5958
- "v1TestCasesGenerator": {
5959
- "type": "string",
5960
- "enum": [
5961
- "TEST_CASES_GENERATOR_UNSPECIFIED",
5962
- "TEST_CASES_GENERATOR_SIMPLE_FACTUAL_QUESTIONS",
5963
- "TEST_CASES_GENERATOR_MULTI_HOP_QUESTIONS",
5964
- "TEST_CASES_GENERATOR_INFERENCE_QUESTIONS",
5965
- "TEST_CASES_GENERATOR_NUMERICAL_REASONING_QUESTIONS",
5966
- "TEST_CASES_GENERATOR_AMBIGUITY_HANDLING_QUESTIONS",
5967
- "TEST_CASES_GENERATOR_NEGATION_AND_CONTRADICTION_QUESTIONS",
5968
- "TEST_CASES_GENERATOR_TEMPORAL_REASONING_QUESTIONS",
5969
- "TEST_CASES_GENERATOR_OUT_OF_SCOPE_QUESTIONS",
5970
- "TEST_CASES_GENERATOR_YES_OR_NO_QUESTIONS",
5971
- "TEST_CASES_GENERATOR_MULTIPLE_CHOICE_QUESTIONS",
5972
- "TEST_CASES_GENERATOR_DEMOGRAPHIC_REPRESENTATION_QUESTIONS",
5973
- "TEST_CASES_GENERATOR_SENTIMENT_VARIATION_QUESTIONS",
5974
- "TEST_CASES_GENERATOR_IRRELEVANT_INFORMATION_QUESTIONS",
5975
- "TEST_CASES_GENERATOR_DELIBERATELY_MISLEADING_QUESTIONS"
5976
- ],
5977
- "default": "TEST_CASES_GENERATOR_UNSPECIFIED"
7801
+ },
7802
+ "description": "Workflow represents a workflow in Eval Studio. It consists of WorkflowNodes and WorkflowEdges."
5978
7803
  },
5979
- "v1TestClass": {
7804
+ "v1WorkflowEdge": {
5980
7805
  "type": "object",
5981
7806
  "properties": {
5982
7807
  "name": {
5983
7808
  "type": "string",
5984
- "title": "Output only. Name of the prompt resource. e.g.: \"testClasses/\u003cUUID\u003e\"",
7809
+ "description": "Resource name of the Workflow in format of `workflow/{workflow_id}/edges/{edge_id}`."
7810
+ },
7811
+ "parent": {
7812
+ "type": "string",
7813
+ "description": "Output only. Immutable. Resource name of the parent Workflow in format of\n`workflow/{workflow_id}`.",
5985
7814
  "readOnly": true
5986
7815
  },
5987
7816
  "createTime": {
5988
7817
  "type": "string",
5989
7818
  "format": "date-time",
5990
- "description": "Output only. Timestamp when the TestClass was created.",
7819
+ "description": "Output only. Immutable. Creation time of the WorkflowEdge.",
5991
7820
  "readOnly": true
5992
7821
  },
5993
7822
  "creator": {
5994
7823
  "type": "string",
5995
- "description": "Output only. Name of the user or service that requested creation of the TestClass.",
7824
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the\nWorkflowEdge.",
5996
7825
  "readOnly": true
5997
7826
  },
5998
7827
  "updateTime": {
5999
7828
  "type": "string",
6000
7829
  "format": "date-time",
6001
- "description": "Output only. Optional. Timestamp when the TestClass was last updated.",
7830
+ "description": "Output only. Optional. Last update time of the WorkflowEdge.",
6002
7831
  "readOnly": true
6003
7832
  },
6004
7833
  "updater": {
6005
7834
  "type": "string",
6006
- "description": "Output only. Optional. Name of the user or service that requested update of the TestClass.",
7835
+ "description": "Output only. Name of the user or service that requested update of the WorkflowEdge.",
6007
7836
  "readOnly": true
6008
7837
  },
6009
7838
  "deleteTime": {
6010
7839
  "type": "string",
6011
7840
  "format": "date-time",
6012
- "description": "Output only. Optional. Set when the TestClass is deleted. When set, TestClass should be\nconsidered as deleted.",
7841
+ "description": "Output only. Optional. Deletion time of the WorkflowEdge.",
6013
7842
  "readOnly": true
6014
7843
  },
6015
7844
  "deleter": {
6016
7845
  "type": "string",
6017
- "description": "Output only. Optional. Name of the user or service that requested deletion of the TestClass.",
7846
+ "description": "Output only. Name of the user or service that requested deletion of the WorkflowEdge.",
6018
7847
  "readOnly": true
6019
7848
  },
6020
- "displayName": {
6021
- "type": "string",
6022
- "description": "Human readable name of the TestClass."
7849
+ "type": {
7850
+ "$ref": "#/definitions/v1WorkflowEdgeType",
7851
+ "description": "Type of the WorkflowEdge."
6023
7852
  },
6024
- "description": {
7853
+ "from": {
6025
7854
  "type": "string",
6026
- "description": "Optional. Arbitrary description of the TestClass."
6027
- },
6028
- "evaluators": {
6029
- "type": "array",
6030
- "items": {
6031
- "type": "string"
6032
- },
6033
- "description": "List of evaluators that are part of the TestClass."
6034
- },
6035
- "recommendedTests": {
6036
- "type": "array",
6037
- "items": {
6038
- "type": "string"
6039
- },
6040
- "description": "List of recommended Tests that are part of the TestClass."
7855
+ "description": "Resource name of the source WorkflowNode in format of `workflow/{workflow_id}/nodes/{node_id}`."
6041
7856
  },
6042
- "testClassType": {
6043
- "$ref": "#/definitions/v1TestClassType",
6044
- "description": "Type of the TestClass."
6045
- },
6046
- "tags": {
6047
- "type": "array",
6048
- "items": {
6049
- "type": "string"
6050
- },
6051
- "description": "List of tags. Can contain any string, some examples are \"SR 11-7\", \"NIST\", etc."
7857
+ "to": {
7858
+ "type": "string",
7859
+ "description": "Resource name of the target WorkflowNode in format of `workflow/{workflow_id}/nodes/{node_id}`."
6052
7860
  }
6053
- }
7861
+ },
7862
+ "description": "WorkflowEdge represents an oriented edge between two WorkflowNodes in an Eval Studio Workflow."
6054
7863
  },
6055
- "v1TestClassType": {
7864
+ "v1WorkflowEdgeType": {
6056
7865
  "type": "string",
6057
7866
  "enum": [
6058
- "TEST_CLASS_TYPE_UNSPECIFIED",
6059
- "TEST_CLASS_TYPE_STANDARD",
6060
- "TEST_CLASS_TYPE_ROLE",
6061
- "TEST_CLASS_TYPE_PROBLEM",
6062
- "TEST_CLASS_TYPE_PURPOSE",
6063
- "TEST_CLASS_TYPE_METHOD",
6064
- "TEST_CLASS_TYPE_METHOD_TYPE"
7867
+ "WORKFLOW_EDGE_TYPE_UNSPECIFIED",
7868
+ "WORKFLOW_EDGE_TYPE_SIMPLE"
6065
7869
  ],
6066
- "default": "TEST_CLASS_TYPE_UNSPECIFIED",
6067
- "description": " - TEST_CLASS_TYPE_UNSPECIFIED: Unspecified TestClass type.\n - TEST_CLASS_TYPE_STANDARD: TestClass type corresponding to a certain standard.\n - TEST_CLASS_TYPE_ROLE: TestClass type corresponding to a certain role.\n - TEST_CLASS_TYPE_PROBLEM: TestClass type corresponding to a certain problem.\n - TEST_CLASS_TYPE_PURPOSE: TestClass type corresponding to a certain purpose.\n - TEST_CLASS_TYPE_METHOD: TestClass type corresponding to a certain method.\n - TEST_CLASS_TYPE_METHOD_TYPE: TestClass type corresponding to a certain method type."
7870
+ "default": "WORKFLOW_EDGE_TYPE_UNSPECIFIED",
7871
+ "description": "WorkflowEdgeType represents the type of a WorkflowEdge.\n\n - WORKFLOW_EDGE_TYPE_UNSPECIFIED: Unspecified type.\n - WORKFLOW_EDGE_TYPE_SIMPLE: Simple edge without any conditions."
6068
7872
  },
6069
- "v1TestLab": {
7873
+ "v1WorkflowNode": {
6070
7874
  "type": "object",
6071
7875
  "properties": {
6072
7876
  "name": {
6073
7877
  "type": "string",
6074
- "title": "Output only. Name of the prompt resource. e.g.: \"testLabs/\u003cUUID\u003e\"",
7878
+ "description": "Output only. Immutable. Resource name of the Workflow in format of\n`workflows/{workflow_id}/nodes/{node_id}`.",
7879
+ "readOnly": true
7880
+ },
7881
+ "parent": {
7882
+ "type": "string",
7883
+ "description": "Output only. Immutable. Resource name of the parent Workflow in format of\n`workflows/{workflow_id}/`.",
6075
7884
  "readOnly": true
6076
7885
  },
7886
+ "displayName": {
7887
+ "type": "string",
7888
+ "description": "Human-readable name of the WorkflowNode."
7889
+ },
7890
+ "description": {
7891
+ "type": "string",
7892
+ "description": "Optional description of the WorkflowNode."
7893
+ },
6077
7894
  "createTime": {
6078
7895
  "type": "string",
6079
7896
  "format": "date-time",
6080
- "description": "Output only. Timestamp when the Test was created.",
7897
+ "description": "Output only. Immutable. Creation time of the WorkflowNode.",
6081
7898
  "readOnly": true
6082
7899
  },
6083
7900
  "creator": {
6084
7901
  "type": "string",
6085
- "description": "Output only. Name of the user or service that requested creation of the TestCase.",
7902
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the\nWorkflowNode.",
6086
7903
  "readOnly": true
6087
7904
  },
6088
7905
  "updateTime": {
6089
7906
  "type": "string",
6090
7907
  "format": "date-time",
6091
- "description": "Output only. Optional. Timestamp when the TestCase was last updated.",
7908
+ "description": "Output only. Optional. Last update time of the WorkflowNode.",
6092
7909
  "readOnly": true
6093
7910
  },
6094
7911
  "updater": {
6095
7912
  "type": "string",
6096
- "description": "Output only. Optional. Name of the user or service that requested update of the TestCase.",
7913
+ "description": "Output only. Name of the user or service that requested update of the WorkflowNode.",
6097
7914
  "readOnly": true
6098
7915
  },
6099
7916
  "deleteTime": {
6100
7917
  "type": "string",
6101
7918
  "format": "date-time",
6102
- "description": "Output only. Optional. Set when the TestCase is deleted. When set TestCase should be considered\nas deleted.",
7919
+ "description": "Output only. Optional. Deletion time of the WorkflowNode.",
6103
7920
  "readOnly": true
6104
7921
  },
6105
7922
  "deleter": {
6106
7923
  "type": "string",
6107
- "description": "Output only. Optional. Name of the user or service that requested deletion of the TestCase.",
7924
+ "description": "Output only. Name of the user or service that requested deletion of the WorkflowNode.",
6108
7925
  "readOnly": true
6109
7926
  },
6110
- "model": {
6111
- "type": "string",
6112
- "description": "Immutable. Model used in this test lab."
7927
+ "type": {
7928
+ "$ref": "#/definitions/v1WorkflowNodeType",
7929
+ "description": "Immutable. Type of the WorkflowNode."
6113
7930
  },
6114
- "testCases": {
6115
- "type": "array",
6116
- "items": {
6117
- "type": "string"
6118
- },
6119
- "description": "Immutable. Test cases used in this test lab."
7931
+ "parameters": {
7932
+ "type": "object",
7933
+ "description": "User-given parameters for the WorkflowNode."
6120
7934
  },
6121
- "content": {
6122
- "type": "string",
6123
- "format": "byte",
6124
- "description": "Immutable. Raw content of the Test Lab."
7935
+ "outputs": {
7936
+ "type": "object",
7937
+ "description": "Output only. Computed outputs of the WorkflowNode.",
7938
+ "readOnly": true
6125
7939
  },
6126
- "llmModels": {
7940
+ "outputArtifacts": {
6127
7941
  "type": "array",
6128
7942
  "items": {
6129
- "type": "string"
7943
+ "type": "object",
7944
+ "$ref": "#/definitions/v1WorkflowNodeArtifact"
6130
7945
  },
6131
- "description": "Immutable. List of LLM models used."
7946
+ "description": "Output only. Optional. List of the WorkflowNodeArtifacts produces by the WorkflowNode.",
7947
+ "readOnly": true
6132
7948
  },
6133
- "modelParameters": {
6134
- "type": "string",
6135
- "description": "Immutable. Optional. Parameters overrides in JSON format."
7949
+ "status": {
7950
+ "$ref": "#/definitions/v1WorkflowNodeStatus",
7951
+ "description": "Output only. Status of the WorkflowNode.",
7952
+ "readOnly": true
6136
7953
  },
6137
- "h2ogpteCollection": {
7954
+ "attributes": {
7955
+ "$ref": "#/definitions/v1WorkflowNodeAttributes",
7956
+ "description": "Additional attributes/metadata of the WorkflowNode."
7957
+ },
7958
+ "processedByOperation": {
6138
7959
  "type": "string",
6139
- "description": "The existing collection name in H2OGPTe."
6140
- }
6141
- }
6142
- },
6143
- "v1UpdateDashboardResponse": {
6144
- "type": "object",
6145
- "properties": {
6146
- "dashboard": {
6147
- "$ref": "#/definitions/v1Dashboard",
6148
- "description": "The updated Dashboard."
7960
+ "description": "Output only. Optional. Resource name of the latest Operation that has processed or is currently\nprocessing this WorkflowNode.",
7961
+ "readOnly": true
6149
7962
  }
6150
- }
7963
+ },
7964
+ "description": "WorkflowNode represents a node in an Eval Studio Workflow."
6151
7965
  },
6152
- "v1UpdateDocumentResponse": {
7966
+ "v1WorkflowNodeArtifact": {
6153
7967
  "type": "object",
6154
7968
  "properties": {
6155
- "document": {
6156
- "$ref": "#/definitions/v1Document",
6157
- "description": "The deleted Document."
7969
+ "name": {
7970
+ "type": "string",
7971
+ "description": "Resource name of the Workflow in format of\n`workflows/{workflow_id}/nodes/{node_id}/artifacts/{artifact_id}`."
7972
+ },
7973
+ "parent": {
7974
+ "type": "string",
7975
+ "description": "Output only. Immutable. Resource name of the parent WorkflowNode in format of\n`workflows/{workflow_id}/nodes/{node_id}`.",
7976
+ "readOnly": true
7977
+ },
7978
+ "displayName": {
7979
+ "type": "string",
7980
+ "description": "Human-readable name of the WorkflowNodeArtifact."
7981
+ },
7982
+ "description": {
7983
+ "type": "string",
7984
+ "description": "Optional description of the WorkflowNodeArtifact."
7985
+ },
7986
+ "createTime": {
7987
+ "type": "string",
7988
+ "format": "date-time",
7989
+ "description": "Output only. Immutable. Creation time of the WorkflowNodeArtifact.",
7990
+ "readOnly": true
7991
+ },
7992
+ "creator": {
7993
+ "type": "string",
7994
+ "description": "Output only. Immutable. Name of the user or service that requested creation of the\nWorkflowNodeArtifact.",
7995
+ "readOnly": true
7996
+ },
7997
+ "updateTime": {
7998
+ "type": "string",
7999
+ "format": "date-time",
8000
+ "description": "Output only. Optional. Last update time of the WorkflowNodeArtifact.",
8001
+ "readOnly": true
8002
+ },
8003
+ "updater": {
8004
+ "type": "string",
8005
+ "description": "Output only. Name of the user or service that requested update of the WorkflowNodeArtifact.",
8006
+ "readOnly": true
8007
+ },
8008
+ "deleteTime": {
8009
+ "type": "string",
8010
+ "format": "date-time",
8011
+ "description": "Output only. Optional. Deletion time of the WorkflowNodeArtifact.",
8012
+ "readOnly": true
8013
+ },
8014
+ "deleter": {
8015
+ "type": "string",
8016
+ "description": "Output only. Name of the user or service that requested deletion of the WorkflowNodeArtifact.",
8017
+ "readOnly": true
8018
+ },
8019
+ "mimeType": {
8020
+ "type": "string",
8021
+ "description": "Optional MIME type of the WorkflowNodeArtifact."
6158
8022
  }
6159
- }
8023
+ },
8024
+ "description": "WorkflowNodeArtifact represents an artifact produced/consumed by a WorkflowNode."
6160
8025
  },
6161
- "v1UpdateLeaderboardResponse": {
8026
+ "v1WorkflowNodeArtifacts": {
6162
8027
  "type": "object",
6163
8028
  "properties": {
6164
- "leaderboard": {
6165
- "$ref": "#/definitions/v1Leaderboard",
6166
- "description": "The updated Leaderboard."
8029
+ "artifacts": {
8030
+ "type": "array",
8031
+ "items": {
8032
+ "type": "object",
8033
+ "$ref": "#/definitions/v1WorkflowNodeArtifact"
8034
+ },
8035
+ "description": "Output only. List of the WorkflowNodeArtifacts produced by the WorkflowNode.",
8036
+ "readOnly": true
6167
8037
  }
6168
8038
  }
6169
8039
  },
6170
- "v1UpdateModelResponse": {
8040
+ "v1WorkflowNodeAttributes": {
6171
8041
  "type": "object",
6172
8042
  "properties": {
6173
- "model": {
6174
- "$ref": "#/definitions/v1Model",
6175
- "description": "The updated Model."
8043
+ "canDelete": {
8044
+ "type": "boolean",
8045
+ "description": "Whether the WorkflowNode can be deleted."
6176
8046
  }
6177
- }
8047
+ },
8048
+ "description": "WorkflowNodeAttributes represents additional attributes of a WorkflowNode."
6178
8049
  },
6179
- "v1UpdateOperationResponse": {
6180
- "type": "object",
6181
- "properties": {
6182
- "operation": {
6183
- "$ref": "#/definitions/v1Operation",
6184
- "description": "The updated Operation."
6185
- }
6186
- }
8050
+ "v1WorkflowNodeStatus": {
8051
+ "type": "string",
8052
+ "enum": [
8053
+ "WORKFLOW_NODE_STATUS_UNSPECIFIED",
8054
+ "WORKFLOW_NODE_STATUS_PENDING",
8055
+ "WORKFLOW_NODE_STATUS_RUNNING",
8056
+ "WORKFLOW_NODE_STATUS_COMPLETED",
8057
+ "WORKFLOW_NODE_STATUS_FAILED"
8058
+ ],
8059
+ "default": "WORKFLOW_NODE_STATUS_UNSPECIFIED",
8060
+ "description": "WorkflowNodeStatus represents the status of a WorkflowNode.\n\n - WORKFLOW_NODE_STATUS_UNSPECIFIED: Unspecified status.\n - WORKFLOW_NODE_STATUS_PENDING: WorkflowNode is pending.\n - WORKFLOW_NODE_STATUS_RUNNING: WorkflowNode is running.\n - WORKFLOW_NODE_STATUS_COMPLETED: WorkflowNode is completed successfully.\n - WORKFLOW_NODE_STATUS_FAILED: WorkflowNode failed."
6187
8061
  },
6188
- "v1UpdateTestCaseResponse": {
6189
- "type": "object",
6190
- "properties": {
6191
- "testCase": {
6192
- "$ref": "#/definitions/v1TestCase",
6193
- "description": "The updated TestCase."
6194
- }
6195
- }
8062
+ "v1WorkflowNodeType": {
8063
+ "type": "string",
8064
+ "enum": [
8065
+ "WORKFLOW_NODE_TYPE_UNSPECIFIED",
8066
+ "WORKFLOW_NODE_TYPE_TOPIC_MODELLING",
8067
+ "WORKFLOW_NODE_TYPE_TEST_GENERATION",
8068
+ "WORKFLOW_NODE_TYPE_PERTURBATION",
8069
+ "WORKFLOW_NODE_TYPE_AUTOMATED_EVALUATION",
8070
+ "WORKFLOW_NODE_TYPE_HUMAN_EVALUATION"
8071
+ ],
8072
+ "default": "WORKFLOW_NODE_TYPE_UNSPECIFIED",
8073
+ "description": "WorkflowNodeType represents the type of a WorkflowNode."
6196
8074
  },
6197
- "v1UpdateTestResponse": {
6198
- "type": "object",
6199
- "properties": {
6200
- "test": {
6201
- "$ref": "#/definitions/v1Test",
6202
- "description": "The updated Test."
6203
- }
6204
- }
8075
+ "v1WorkflowNodeView": {
8076
+ "type": "string",
8077
+ "enum": [
8078
+ "WORKFLOW_NODE_VIEW_UNSPECIFIED",
8079
+ "WORKFLOW_NODE_VIEW_BASIC",
8080
+ "WORKFLOW_NODE_VIEW_FULL"
8081
+ ],
8082
+ "default": "WORKFLOW_NODE_VIEW_UNSPECIFIED",
8083
+ "description": "WorkflowNodeView specifies the level of detail to include in the response.\n\n - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view.\n - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted.\n - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields."
6205
8084
  },
6206
- "v1WhoAmIResponse": {
6207
- "type": "object",
6208
- "properties": {
6209
- "sub": {
6210
- "type": "string",
6211
- "description": "The caller's identity."
6212
- },
6213
- "preferredUsername": {
6214
- "type": "string",
6215
- "description": "The caller's preferred username. Might be empty."
6216
- },
6217
- "email": {
6218
- "type": "string",
6219
- "description": "The caller's email address. Might be empty."
6220
- }
6221
- }
8085
+ "v1WorkflowType": {
8086
+ "type": "string",
8087
+ "enum": [
8088
+ "WORKFLOW_TYPE_UNSPECIFIED",
8089
+ "WORKFLOW_TYPE_MRM"
8090
+ ],
8091
+ "default": "WORKFLOW_TYPE_UNSPECIFIED",
8092
+ "description": "WorkflowType represents the type of a Workflow."
6222
8093
  }
6223
8094
  }
6224
8095
  }