eval-studio-client 1.0.1__py3-none-any.whl → 1.0.3__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.
- eval_studio_client/api/__init__.py +0 -43
- eval_studio_client/api/api/__init__.py +0 -5
- eval_studio_client/api/api/perturbator_service_api.py +1 -268
- eval_studio_client/api/api/test_service_api.py +0 -568
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +0 -1
- eval_studio_client/api/docs/PerturbatorServiceApi.md +3 -33
- eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -2
- eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +0 -1
- eval_studio_client/api/docs/TestServiceApi.md +0 -140
- eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +0 -1
- eval_studio_client/api/docs/TestServicePerturbTestRequest.md +0 -1
- eval_studio_client/api/docs/V1CreateEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1ImportEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1TestCase.md +0 -1
- eval_studio_client/api/models/__init__.py +0 -38
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +2 -8
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -5
- eval_studio_client/api/models/required_the_test_case_to_update.py +2 -6
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +2 -4
- eval_studio_client/api/models/test_service_perturb_test_request.py +2 -4
- eval_studio_client/api/models/v1_create_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_import_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_test_case.py +2 -6
- eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +2 -20
- eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +1 -4
- eval_studio_client/api/test/test_required_the_test_case_to_update.py +1 -4
- eval_studio_client/api/test/test_test_service_api.py +0 -12
- eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +1 -4
- eval_studio_client/api/test/test_test_service_perturb_test_request.py +1 -4
- eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_create_evaluation_request.py +2 -20
- eval_studio_client/api/test/test_v1_create_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_delete_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_evaluation_test.py +1 -4
- eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +1 -4
- eval_studio_client/api/test/test_v1_get_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_import_evaluation_request.py +1 -16
- eval_studio_client/api/test/test_v1_list_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_test_case.py +1 -4
- eval_studio_client/api/test/test_v1_update_test_case_response.py +1 -4
- eval_studio_client/client.py +11 -9
- eval_studio_client/dashboards.py +0 -29
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +32 -1903
- eval_studio_client/leaderboards.py +0 -123
- eval_studio_client/models.py +42 -3
- eval_studio_client/test_labs.py +21 -49
- eval_studio_client/tests.py +1 -188
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/METADATA +3 -2
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/RECORD +50 -179
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/WHEEL +1 -1
- eval_studio_client/api/api/human_calibration_service_api.py +0 -304
- eval_studio_client/api/api/prompt_library_service_api.py +0 -669
- eval_studio_client/api/api/workflow_edge_service_api.py +0 -296
- eval_studio_client/api/api/workflow_node_service_api.py +0 -1634
- eval_studio_client/api/api/workflow_service_api.py +0 -1609
- eval_studio_client/api/docs/HumanCalibrationServiceApi.md +0 -77
- eval_studio_client/api/docs/PromptLibraryServiceApi.md +0 -155
- eval_studio_client/api/docs/ProtobufNullValue.md +0 -12
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +0 -44
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +0 -44
- eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +0 -32
- eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +0 -35
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +0 -29
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +0 -29
- eval_studio_client/api/docs/V1CreateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1EstimateThresholdRequest.md +0 -33
- eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +0 -30
- eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1GetWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesRequest.md +0 -33
- eval_studio_client/api/docs/V1LabeledTestCase.md +0 -31
- eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1PromptLibraryItem.md +0 -42
- eval_studio_client/api/docs/V1TestSuiteEvaluates.md +0 -11
- eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1Workflow.md +0 -46
- eval_studio_client/api/docs/V1WorkflowEdge.md +0 -40
- eval_studio_client/api/docs/V1WorkflowEdgeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNode.md +0 -46
- eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +0 -40
- eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +0 -29
- eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +0 -30
- eval_studio_client/api/docs/V1WorkflowNodeStatus.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeView.md +0 -12
- eval_studio_client/api/docs/V1WorkflowType.md +0 -12
- eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +0 -76
- eval_studio_client/api/docs/WorkflowNodeServiceApi.md +0 -423
- eval_studio_client/api/docs/WorkflowServiceApi.md +0 -417
- eval_studio_client/api/models/protobuf_null_value.py +0 -36
- eval_studio_client/api/models/required_the_updated_workflow.py +0 -152
- eval_studio_client/api/models/required_the_updated_workflow_node.py +0 -152
- eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +0 -93
- eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +0 -99
- eval_studio_client/api/models/v1_batch_delete_workflows_request.py +0 -87
- eval_studio_client/api/models/v1_batch_delete_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +0 -95
- eval_studio_client/api/models/v1_create_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_estimate_threshold_request.py +0 -103
- eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +0 -89
- eval_studio_client/api/models/v1_get_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_get_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_request.py +0 -95
- eval_studio_client/api/models/v1_labeled_test_case.py +0 -91
- eval_studio_client/api/models/v1_list_prompt_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_test_case_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_process_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_prompt_library_item.py +0 -129
- eval_studio_client/api/models/v1_test_suite_evaluates.py +0 -39
- eval_studio_client/api/models/v1_update_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_update_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_workflow.py +0 -156
- eval_studio_client/api/models/v1_workflow_edge.py +0 -123
- eval_studio_client/api/models/v1_workflow_edge_type.py +0 -37
- eval_studio_client/api/models/v1_workflow_node.py +0 -156
- eval_studio_client/api/models/v1_workflow_node_artifact.py +0 -122
- eval_studio_client/api/models/v1_workflow_node_artifacts.py +0 -97
- eval_studio_client/api/models/v1_workflow_node_attributes.py +0 -87
- eval_studio_client/api/models/v1_workflow_node_status.py +0 -40
- eval_studio_client/api/models/v1_workflow_node_type.py +0 -41
- eval_studio_client/api/models/v1_workflow_node_view.py +0 -38
- eval_studio_client/api/models/v1_workflow_type.py +0 -37
- eval_studio_client/api/test/test_human_calibration_service_api.py +0 -38
- eval_studio_client/api/test/test_prompt_library_service_api.py +0 -43
- eval_studio_client/api/test/test_protobuf_null_value.py +0 -33
- eval_studio_client/api/test/test_required_the_updated_workflow.py +0 -88
- eval_studio_client/api/test/test_required_the_updated_workflow_node.py +0 -80
- eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +0 -56
- eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +0 -63
- eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +0 -53
- eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +0 -64
- eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +0 -84
- eval_studio_client/api/test/test_v1_create_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_delete_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_estimate_threshold_request.py +0 -60
- eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +0 -56
- eval_studio_client/api/test/test_v1_get_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_get_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +0 -71
- eval_studio_client/api/test/test_v1_import_test_cases_request.py +0 -57
- eval_studio_client/api/test/test_v1_labeled_test_case.py +0 -53
- eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_process_workflow_node_response.py +0 -71
- eval_studio_client/api/test/test_v1_prompt_library_item.py +0 -68
- eval_studio_client/api/test/test_v1_test_suite_evaluates.py +0 -33
- eval_studio_client/api/test/test_v1_update_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_update_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_workflow.py +0 -89
- eval_studio_client/api/test/test_v1_workflow_edge.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_edge_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node.py +0 -81
- eval_studio_client/api/test/test_v1_workflow_node_artifact.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +0 -64
- eval_studio_client/api/test/test_v1_workflow_node_attributes.py +0 -51
- eval_studio_client/api/test/test_v1_workflow_node_status.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_view.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_type.py +0 -33
- eval_studio_client/api/test/test_workflow_edge_service_api.py +0 -38
- eval_studio_client/api/test/test_workflow_node_service_api.py +0 -73
- eval_studio_client/api/test/test_workflow_service_api.py +0 -73
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# V1WorkflowNodeAttributes
|
|
2
|
-
|
|
3
|
-
WorkflowNodeAttributes represents additional attributes of a WorkflowNode.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**can_delete** | **bool** | Whether the WorkflowNode can be deleted. | [optional]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```python
|
|
14
|
-
from eval_studio_client.api.models.v1_workflow_node_attributes import V1WorkflowNodeAttributes
|
|
15
|
-
|
|
16
|
-
# TODO update the JSON string below
|
|
17
|
-
json = "{}"
|
|
18
|
-
# create an instance of V1WorkflowNodeAttributes from a JSON string
|
|
19
|
-
v1_workflow_node_attributes_instance = V1WorkflowNodeAttributes.from_json(json)
|
|
20
|
-
# print the JSON string representation of the object
|
|
21
|
-
print(V1WorkflowNodeAttributes.to_json())
|
|
22
|
-
|
|
23
|
-
# convert the object into a dict
|
|
24
|
-
v1_workflow_node_attributes_dict = v1_workflow_node_attributes_instance.to_dict()
|
|
25
|
-
# create an instance of V1WorkflowNodeAttributes from a dict
|
|
26
|
-
v1_workflow_node_attributes_from_dict = V1WorkflowNodeAttributes.from_dict(v1_workflow_node_attributes_dict)
|
|
27
|
-
```
|
|
28
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
29
|
-
|
|
30
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# V1WorkflowNodeStatus
|
|
2
|
-
|
|
3
|
-
WorkflowNodeStatus represents the status of a WorkflowNode. - WORKFLOW_NODE_STATUS_UNSPECIFIED: Unspecified status. - WORKFLOW_NODE_STATUS_PENDING: WorkflowNode is pending. - WORKFLOW_NODE_STATUS_RUNNING: WorkflowNode is running. - WORKFLOW_NODE_STATUS_COMPLETED: WorkflowNode is completed successfully. - WORKFLOW_NODE_STATUS_FAILED: WorkflowNode failed.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
|
-
|
|
12
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# V1WorkflowNodeType
|
|
2
|
-
|
|
3
|
-
WorkflowNodeType represents the type of a WorkflowNode.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
|
-
|
|
12
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# V1WorkflowNodeView
|
|
2
|
-
|
|
3
|
-
WorkflowNodeView specifies the level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
|
-
|
|
12
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# V1WorkflowType
|
|
2
|
-
|
|
3
|
-
WorkflowType represents the type of a Workflow.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
|
-
|
|
12
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# eval_studio_client.api.WorkflowEdgeServiceApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**workflow_edge_service_batch_get_workflow_edges**](WorkflowEdgeServiceApi.md#workflow_edge_service_batch_get_workflow_edges) | **GET** /v1/workflows/*/edges:batchGet | Retrieves all WorkflowEdges with the specified resource names. If any of the WorkflowEdges do not exist an error is returned. The order of resource names in the request and the returned WorkflowEdges might differ.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# **workflow_edge_service_batch_get_workflow_edges**
|
|
11
|
-
> V1BatchGetWorkflowEdgesResponse workflow_edge_service_batch_get_workflow_edges(names=names)
|
|
12
|
-
|
|
13
|
-
Retrieves all WorkflowEdges with the specified resource names. If any of the WorkflowEdges do not exist an error is returned. The order of resource names in the request and the returned WorkflowEdges might differ.
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```python
|
|
19
|
-
import eval_studio_client.api
|
|
20
|
-
from eval_studio_client.api.models.v1_batch_get_workflow_edges_response import V1BatchGetWorkflowEdgesResponse
|
|
21
|
-
from eval_studio_client.api.rest import ApiException
|
|
22
|
-
from pprint import pprint
|
|
23
|
-
|
|
24
|
-
# Defining the host is optional and defaults to http://localhost
|
|
25
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
26
|
-
configuration = eval_studio_client.api.Configuration(
|
|
27
|
-
host = "http://localhost"
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# Enter a context with an instance of the API client
|
|
32
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
33
|
-
# Create an instance of the API class
|
|
34
|
-
api_instance = eval_studio_client.api.WorkflowEdgeServiceApi(api_client)
|
|
35
|
-
names = ['names_example'] # List[str] | Required. The resource names of the WorkflowEdges to retrieve. Maximum 1000 items. (optional)
|
|
36
|
-
|
|
37
|
-
try:
|
|
38
|
-
# Retrieves all WorkflowEdges with the specified resource names. If any of the WorkflowEdges do not exist an error is returned. The order of resource names in the request and the returned WorkflowEdges might differ.
|
|
39
|
-
api_response = api_instance.workflow_edge_service_batch_get_workflow_edges(names=names)
|
|
40
|
-
print("The response of WorkflowEdgeServiceApi->workflow_edge_service_batch_get_workflow_edges:\n")
|
|
41
|
-
pprint(api_response)
|
|
42
|
-
except Exception as e:
|
|
43
|
-
print("Exception when calling WorkflowEdgeServiceApi->workflow_edge_service_batch_get_workflow_edges: %s\n" % e)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Name | Type | Description | Notes
|
|
52
|
-
------------- | ------------- | ------------- | -------------
|
|
53
|
-
**names** | [**List[str]**](str.md)| Required. The resource names of the WorkflowEdges to retrieve. Maximum 1000 items. | [optional]
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
[**V1BatchGetWorkflowEdgesResponse**](V1BatchGetWorkflowEdgesResponse.md)
|
|
58
|
-
|
|
59
|
-
### Authorization
|
|
60
|
-
|
|
61
|
-
No authorization required
|
|
62
|
-
|
|
63
|
-
### HTTP request headers
|
|
64
|
-
|
|
65
|
-
- **Content-Type**: Not defined
|
|
66
|
-
- **Accept**: application/json
|
|
67
|
-
|
|
68
|
-
### HTTP response details
|
|
69
|
-
|
|
70
|
-
| Status code | Description | Response headers |
|
|
71
|
-
|-------------|-------------|------------------|
|
|
72
|
-
**200** | A successful response. | - |
|
|
73
|
-
**0** | An unexpected error response. | - |
|
|
74
|
-
|
|
75
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
|
-
|
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
# eval_studio_client.api.WorkflowNodeServiceApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**workflow_node_service_batch_get_workflow_nodes**](WorkflowNodeServiceApi.md#workflow_node_service_batch_get_workflow_nodes) | **GET** /v1/workflows/*/nodes:batchGet | BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
|
|
8
|
-
[**workflow_node_service_delete_workflow_node**](WorkflowNodeServiceApi.md#workflow_node_service_delete_workflow_node) | **DELETE** /v1/{name_7} | DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned.
|
|
9
|
-
[**workflow_node_service_get_workflow_node**](WorkflowNodeServiceApi.md#workflow_node_service_get_workflow_node) | **GET** /v1/{name_10} | GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
|
|
10
|
-
[**workflow_node_service_get_workflow_node_prerequisites**](WorkflowNodeServiceApi.md#workflow_node_service_get_workflow_node_prerequisites) | **GET** /v1/{name}:getPrerequisites | GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
|
|
11
|
-
[**workflow_node_service_process_workflow_node**](WorkflowNodeServiceApi.md#workflow_node_service_process_workflow_node) | **POST** /v1/{name}:process | ProcessWorkflowNode processes a WorkflowNode.
|
|
12
|
-
[**workflow_node_service_update_workflow_node**](WorkflowNodeServiceApi.md#workflow_node_service_update_workflow_node) | **PATCH** /v1/{node.name} | UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
# **workflow_node_service_batch_get_workflow_nodes**
|
|
16
|
-
> V1BatchGetWorkflowNodesResponse workflow_node_service_batch_get_workflow_nodes(names=names, view=view)
|
|
17
|
-
|
|
18
|
-
BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
|
|
19
|
-
|
|
20
|
-
### Example
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```python
|
|
24
|
-
import eval_studio_client.api
|
|
25
|
-
from eval_studio_client.api.models.v1_batch_get_workflow_nodes_response import V1BatchGetWorkflowNodesResponse
|
|
26
|
-
from eval_studio_client.api.rest import ApiException
|
|
27
|
-
from pprint import pprint
|
|
28
|
-
|
|
29
|
-
# Defining the host is optional and defaults to http://localhost
|
|
30
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
31
|
-
configuration = eval_studio_client.api.Configuration(
|
|
32
|
-
host = "http://localhost"
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# Enter a context with an instance of the API client
|
|
37
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
38
|
-
# Create an instance of the API class
|
|
39
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
40
|
-
names = ['names_example'] # List[str] | Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items. (optional)
|
|
41
|
-
view = 'WORKFLOW_NODE_VIEW_UNSPECIFIED' # str | Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields. (optional) (default to 'WORKFLOW_NODE_VIEW_UNSPECIFIED')
|
|
42
|
-
|
|
43
|
-
try:
|
|
44
|
-
# BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
|
|
45
|
-
api_response = api_instance.workflow_node_service_batch_get_workflow_nodes(names=names, view=view)
|
|
46
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_batch_get_workflow_nodes:\n")
|
|
47
|
-
pprint(api_response)
|
|
48
|
-
except Exception as e:
|
|
49
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_batch_get_workflow_nodes: %s\n" % e)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### Parameters
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Name | Type | Description | Notes
|
|
58
|
-
------------- | ------------- | ------------- | -------------
|
|
59
|
-
**names** | [**List[str]**](str.md)| Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items. | [optional]
|
|
60
|
-
**view** | **str**| Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields. | [optional] [default to 'WORKFLOW_NODE_VIEW_UNSPECIFIED']
|
|
61
|
-
|
|
62
|
-
### Return type
|
|
63
|
-
|
|
64
|
-
[**V1BatchGetWorkflowNodesResponse**](V1BatchGetWorkflowNodesResponse.md)
|
|
65
|
-
|
|
66
|
-
### Authorization
|
|
67
|
-
|
|
68
|
-
No authorization required
|
|
69
|
-
|
|
70
|
-
### HTTP request headers
|
|
71
|
-
|
|
72
|
-
- **Content-Type**: Not defined
|
|
73
|
-
- **Accept**: application/json
|
|
74
|
-
|
|
75
|
-
### HTTP response details
|
|
76
|
-
|
|
77
|
-
| Status code | Description | Response headers |
|
|
78
|
-
|-------------|-------------|------------------|
|
|
79
|
-
**200** | A successful response. | - |
|
|
80
|
-
**0** | An unexpected error response. | - |
|
|
81
|
-
|
|
82
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
83
|
-
|
|
84
|
-
# **workflow_node_service_delete_workflow_node**
|
|
85
|
-
> V1DeleteWorkflowNodeResponse workflow_node_service_delete_workflow_node(name_7)
|
|
86
|
-
|
|
87
|
-
DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned.
|
|
88
|
-
|
|
89
|
-
### Example
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
```python
|
|
93
|
-
import eval_studio_client.api
|
|
94
|
-
from eval_studio_client.api.models.v1_delete_workflow_node_response import V1DeleteWorkflowNodeResponse
|
|
95
|
-
from eval_studio_client.api.rest import ApiException
|
|
96
|
-
from pprint import pprint
|
|
97
|
-
|
|
98
|
-
# Defining the host is optional and defaults to http://localhost
|
|
99
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
100
|
-
configuration = eval_studio_client.api.Configuration(
|
|
101
|
-
host = "http://localhost"
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# Enter a context with an instance of the API client
|
|
106
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
107
|
-
# Create an instance of the API class
|
|
108
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
109
|
-
name_7 = 'name_7_example' # str | Required. The name of the WorkflowNode to delete.
|
|
110
|
-
|
|
111
|
-
try:
|
|
112
|
-
# DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned.
|
|
113
|
-
api_response = api_instance.workflow_node_service_delete_workflow_node(name_7)
|
|
114
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_delete_workflow_node:\n")
|
|
115
|
-
pprint(api_response)
|
|
116
|
-
except Exception as e:
|
|
117
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_delete_workflow_node: %s\n" % e)
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Parameters
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Name | Type | Description | Notes
|
|
126
|
-
------------- | ------------- | ------------- | -------------
|
|
127
|
-
**name_7** | **str**| Required. The name of the WorkflowNode to delete. |
|
|
128
|
-
|
|
129
|
-
### Return type
|
|
130
|
-
|
|
131
|
-
[**V1DeleteWorkflowNodeResponse**](V1DeleteWorkflowNodeResponse.md)
|
|
132
|
-
|
|
133
|
-
### Authorization
|
|
134
|
-
|
|
135
|
-
No authorization required
|
|
136
|
-
|
|
137
|
-
### HTTP request headers
|
|
138
|
-
|
|
139
|
-
- **Content-Type**: Not defined
|
|
140
|
-
- **Accept**: application/json
|
|
141
|
-
|
|
142
|
-
### HTTP response details
|
|
143
|
-
|
|
144
|
-
| Status code | Description | Response headers |
|
|
145
|
-
|-------------|-------------|------------------|
|
|
146
|
-
**200** | A successful response. | - |
|
|
147
|
-
**0** | An unexpected error response. | - |
|
|
148
|
-
|
|
149
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
150
|
-
|
|
151
|
-
# **workflow_node_service_get_workflow_node**
|
|
152
|
-
> V1GetWorkflowNodeResponse workflow_node_service_get_workflow_node(name_10, view=view)
|
|
153
|
-
|
|
154
|
-
GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
|
|
155
|
-
|
|
156
|
-
### Example
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
```python
|
|
160
|
-
import eval_studio_client.api
|
|
161
|
-
from eval_studio_client.api.models.v1_get_workflow_node_response import V1GetWorkflowNodeResponse
|
|
162
|
-
from eval_studio_client.api.rest import ApiException
|
|
163
|
-
from pprint import pprint
|
|
164
|
-
|
|
165
|
-
# Defining the host is optional and defaults to http://localhost
|
|
166
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
167
|
-
configuration = eval_studio_client.api.Configuration(
|
|
168
|
-
host = "http://localhost"
|
|
169
|
-
)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
# Enter a context with an instance of the API client
|
|
173
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
174
|
-
# Create an instance of the API class
|
|
175
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
176
|
-
name_10 = 'name_10_example' # str | Required. The name of the WorkflowNode to retrieve.
|
|
177
|
-
view = 'WORKFLOW_NODE_VIEW_UNSPECIFIED' # str | Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields. (optional) (default to 'WORKFLOW_NODE_VIEW_UNSPECIFIED')
|
|
178
|
-
|
|
179
|
-
try:
|
|
180
|
-
# GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
|
|
181
|
-
api_response = api_instance.workflow_node_service_get_workflow_node(name_10, view=view)
|
|
182
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_get_workflow_node:\n")
|
|
183
|
-
pprint(api_response)
|
|
184
|
-
except Exception as e:
|
|
185
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_get_workflow_node: %s\n" % e)
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
### Parameters
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
Name | Type | Description | Notes
|
|
194
|
-
------------- | ------------- | ------------- | -------------
|
|
195
|
-
**name_10** | **str**| Required. The name of the WorkflowNode to retrieve. |
|
|
196
|
-
**view** | **str**| Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields. | [optional] [default to 'WORKFLOW_NODE_VIEW_UNSPECIFIED']
|
|
197
|
-
|
|
198
|
-
### Return type
|
|
199
|
-
|
|
200
|
-
[**V1GetWorkflowNodeResponse**](V1GetWorkflowNodeResponse.md)
|
|
201
|
-
|
|
202
|
-
### Authorization
|
|
203
|
-
|
|
204
|
-
No authorization required
|
|
205
|
-
|
|
206
|
-
### HTTP request headers
|
|
207
|
-
|
|
208
|
-
- **Content-Type**: Not defined
|
|
209
|
-
- **Accept**: application/json
|
|
210
|
-
|
|
211
|
-
### HTTP response details
|
|
212
|
-
|
|
213
|
-
| Status code | Description | Response headers |
|
|
214
|
-
|-------------|-------------|------------------|
|
|
215
|
-
**200** | A successful response. | - |
|
|
216
|
-
**0** | An unexpected error response. | - |
|
|
217
|
-
|
|
218
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
219
|
-
|
|
220
|
-
# **workflow_node_service_get_workflow_node_prerequisites**
|
|
221
|
-
> V1GetWorkflowNodePrerequisitesResponse workflow_node_service_get_workflow_node_prerequisites(name)
|
|
222
|
-
|
|
223
|
-
GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
|
|
224
|
-
|
|
225
|
-
### Example
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
```python
|
|
229
|
-
import eval_studio_client.api
|
|
230
|
-
from eval_studio_client.api.models.v1_get_workflow_node_prerequisites_response import V1GetWorkflowNodePrerequisitesResponse
|
|
231
|
-
from eval_studio_client.api.rest import ApiException
|
|
232
|
-
from pprint import pprint
|
|
233
|
-
|
|
234
|
-
# Defining the host is optional and defaults to http://localhost
|
|
235
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
236
|
-
configuration = eval_studio_client.api.Configuration(
|
|
237
|
-
host = "http://localhost"
|
|
238
|
-
)
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
# Enter a context with an instance of the API client
|
|
242
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
243
|
-
# Create an instance of the API class
|
|
244
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
245
|
-
name = 'name_example' # str | Required. The name of the WorkflowNode to retrieve the prerequisites for.
|
|
246
|
-
|
|
247
|
-
try:
|
|
248
|
-
# GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
|
|
249
|
-
api_response = api_instance.workflow_node_service_get_workflow_node_prerequisites(name)
|
|
250
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_get_workflow_node_prerequisites:\n")
|
|
251
|
-
pprint(api_response)
|
|
252
|
-
except Exception as e:
|
|
253
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_get_workflow_node_prerequisites: %s\n" % e)
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
### Parameters
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
Name | Type | Description | Notes
|
|
262
|
-
------------- | ------------- | ------------- | -------------
|
|
263
|
-
**name** | **str**| Required. The name of the WorkflowNode to retrieve the prerequisites for. |
|
|
264
|
-
|
|
265
|
-
### Return type
|
|
266
|
-
|
|
267
|
-
[**V1GetWorkflowNodePrerequisitesResponse**](V1GetWorkflowNodePrerequisitesResponse.md)
|
|
268
|
-
|
|
269
|
-
### Authorization
|
|
270
|
-
|
|
271
|
-
No authorization required
|
|
272
|
-
|
|
273
|
-
### HTTP request headers
|
|
274
|
-
|
|
275
|
-
- **Content-Type**: Not defined
|
|
276
|
-
- **Accept**: application/json
|
|
277
|
-
|
|
278
|
-
### HTTP response details
|
|
279
|
-
|
|
280
|
-
| Status code | Description | Response headers |
|
|
281
|
-
|-------------|-------------|------------------|
|
|
282
|
-
**200** | A successful response. | - |
|
|
283
|
-
**0** | An unexpected error response. | - |
|
|
284
|
-
|
|
285
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
286
|
-
|
|
287
|
-
# **workflow_node_service_process_workflow_node**
|
|
288
|
-
> V1ProcessWorkflowNodeResponse workflow_node_service_process_workflow_node(name)
|
|
289
|
-
|
|
290
|
-
ProcessWorkflowNode processes a WorkflowNode.
|
|
291
|
-
|
|
292
|
-
### Example
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
```python
|
|
296
|
-
import eval_studio_client.api
|
|
297
|
-
from eval_studio_client.api.models.v1_process_workflow_node_response import V1ProcessWorkflowNodeResponse
|
|
298
|
-
from eval_studio_client.api.rest import ApiException
|
|
299
|
-
from pprint import pprint
|
|
300
|
-
|
|
301
|
-
# Defining the host is optional and defaults to http://localhost
|
|
302
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
303
|
-
configuration = eval_studio_client.api.Configuration(
|
|
304
|
-
host = "http://localhost"
|
|
305
|
-
)
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
# Enter a context with an instance of the API client
|
|
309
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
310
|
-
# Create an instance of the API class
|
|
311
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
312
|
-
name = 'name_example' # str | Required. The name of the WorkflowNode to process.
|
|
313
|
-
|
|
314
|
-
try:
|
|
315
|
-
# ProcessWorkflowNode processes a WorkflowNode.
|
|
316
|
-
api_response = api_instance.workflow_node_service_process_workflow_node(name)
|
|
317
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_process_workflow_node:\n")
|
|
318
|
-
pprint(api_response)
|
|
319
|
-
except Exception as e:
|
|
320
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_process_workflow_node: %s\n" % e)
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
### Parameters
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
Name | Type | Description | Notes
|
|
329
|
-
------------- | ------------- | ------------- | -------------
|
|
330
|
-
**name** | **str**| Required. The name of the WorkflowNode to process. |
|
|
331
|
-
|
|
332
|
-
### Return type
|
|
333
|
-
|
|
334
|
-
[**V1ProcessWorkflowNodeResponse**](V1ProcessWorkflowNodeResponse.md)
|
|
335
|
-
|
|
336
|
-
### Authorization
|
|
337
|
-
|
|
338
|
-
No authorization required
|
|
339
|
-
|
|
340
|
-
### HTTP request headers
|
|
341
|
-
|
|
342
|
-
- **Content-Type**: Not defined
|
|
343
|
-
- **Accept**: application/json
|
|
344
|
-
|
|
345
|
-
### HTTP response details
|
|
346
|
-
|
|
347
|
-
| Status code | Description | Response headers |
|
|
348
|
-
|-------------|-------------|------------------|
|
|
349
|
-
**200** | A successful response. | - |
|
|
350
|
-
**0** | An unexpected error response. | - |
|
|
351
|
-
|
|
352
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
353
|
-
|
|
354
|
-
# **workflow_node_service_update_workflow_node**
|
|
355
|
-
> V1UpdateWorkflowNodeResponse workflow_node_service_update_workflow_node(node_name, node)
|
|
356
|
-
|
|
357
|
-
UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
|
|
358
|
-
|
|
359
|
-
### Example
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
```python
|
|
363
|
-
import eval_studio_client.api
|
|
364
|
-
from eval_studio_client.api.models.required_the_updated_workflow_node import RequiredTheUpdatedWorkflowNode
|
|
365
|
-
from eval_studio_client.api.models.v1_update_workflow_node_response import V1UpdateWorkflowNodeResponse
|
|
366
|
-
from eval_studio_client.api.rest import ApiException
|
|
367
|
-
from pprint import pprint
|
|
368
|
-
|
|
369
|
-
# Defining the host is optional and defaults to http://localhost
|
|
370
|
-
# See configuration.py for a list of all supported configuration parameters.
|
|
371
|
-
configuration = eval_studio_client.api.Configuration(
|
|
372
|
-
host = "http://localhost"
|
|
373
|
-
)
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
# Enter a context with an instance of the API client
|
|
377
|
-
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
378
|
-
# Create an instance of the API class
|
|
379
|
-
api_instance = eval_studio_client.api.WorkflowNodeServiceApi(api_client)
|
|
380
|
-
node_name = 'node_name_example' # str | Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`.
|
|
381
|
-
node = eval_studio_client.api.RequiredTheUpdatedWorkflowNode() # RequiredTheUpdatedWorkflowNode | Required. The updated WorkflowNode.
|
|
382
|
-
|
|
383
|
-
try:
|
|
384
|
-
# UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
|
|
385
|
-
api_response = api_instance.workflow_node_service_update_workflow_node(node_name, node)
|
|
386
|
-
print("The response of WorkflowNodeServiceApi->workflow_node_service_update_workflow_node:\n")
|
|
387
|
-
pprint(api_response)
|
|
388
|
-
except Exception as e:
|
|
389
|
-
print("Exception when calling WorkflowNodeServiceApi->workflow_node_service_update_workflow_node: %s\n" % e)
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
### Parameters
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
Name | Type | Description | Notes
|
|
398
|
-
------------- | ------------- | ------------- | -------------
|
|
399
|
-
**node_name** | **str**| Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`. |
|
|
400
|
-
**node** | [**RequiredTheUpdatedWorkflowNode**](RequiredTheUpdatedWorkflowNode.md)| Required. The updated WorkflowNode. |
|
|
401
|
-
|
|
402
|
-
### Return type
|
|
403
|
-
|
|
404
|
-
[**V1UpdateWorkflowNodeResponse**](V1UpdateWorkflowNodeResponse.md)
|
|
405
|
-
|
|
406
|
-
### Authorization
|
|
407
|
-
|
|
408
|
-
No authorization required
|
|
409
|
-
|
|
410
|
-
### HTTP request headers
|
|
411
|
-
|
|
412
|
-
- **Content-Type**: application/json
|
|
413
|
-
- **Accept**: application/json
|
|
414
|
-
|
|
415
|
-
### HTTP response details
|
|
416
|
-
|
|
417
|
-
| Status code | Description | Response headers |
|
|
418
|
-
|-------------|-------------|------------------|
|
|
419
|
-
**200** | A successful response. | - |
|
|
420
|
-
**0** | An unexpected error response. | - |
|
|
421
|
-
|
|
422
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
423
|
-
|