eval-studio-client 1.2.2a1__py3-none-any.whl → 1.2.2a2__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/models/adversarial_inputs_service_test_adversarial_inputs_robustness_request.py +5 -5
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +11 -11
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +2 -2
- eval_studio_client/api/models/protobuf_any.py +2 -2
- eval_studio_client/api/models/required_the_dashboard_to_update.py +2 -2
- eval_studio_client/api/models/required_the_document_to_update.py +2 -2
- eval_studio_client/api/models/required_the_leaderboard_to_update.py +8 -8
- eval_studio_client/api/models/required_the_model_to_update.py +2 -2
- eval_studio_client/api/models/required_the_operation_to_finalize.py +2 -2
- eval_studio_client/api/models/required_the_operation_to_update.py +2 -2
- eval_studio_client/api/models/required_the_test_case_to_update.py +2 -2
- eval_studio_client/api/models/required_the_test_to_update.py +2 -2
- eval_studio_client/api/models/required_the_updated_workflow.py +5 -5
- eval_studio_client/api/models/required_the_updated_workflow_node.py +5 -5
- eval_studio_client/api/models/rpc_status.py +5 -5
- eval_studio_client/api/models/test_case_service_batch_delete_test_cases_request.py +2 -2
- eval_studio_client/api/models/test_service_clone_test_request.py +2 -2
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +5 -5
- eval_studio_client/api/models/test_service_grant_test_access_request.py +2 -2
- eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +2 -2
- eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +2 -2
- eval_studio_client/api/models/test_service_perturb_test_in_place_request.py +5 -5
- eval_studio_client/api/models/test_service_perturb_test_request.py +5 -5
- eval_studio_client/api/models/test_service_revoke_test_access_request.py +2 -2
- eval_studio_client/api/models/v1_abort_operation_response.py +2 -2
- eval_studio_client/api/models/v1_batch_create_leaderboards_request.py +5 -5
- eval_studio_client/api/models/v1_batch_create_leaderboards_response.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_dashboards_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_dashboards_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_documents_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_documents_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_evaluators_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_evaluators_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_leaderboards_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_leaderboards_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_models_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_models_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_test_cases_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_tests_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_tests_response.py +5 -5
- eval_studio_client/api/models/v1_batch_delete_workflows_request.py +2 -2
- eval_studio_client/api/models/v1_batch_delete_workflows_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_dashboards_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_documents_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_leaderboards_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_models_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_operations_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_tests_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +5 -5
- eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +5 -5
- eval_studio_client/api/models/v1_batch_import_leaderboard_request.py +2 -2
- eval_studio_client/api/models/v1_batch_import_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_batch_import_tests_request.py +2 -2
- eval_studio_client/api/models/v1_batch_import_tests_response.py +5 -5
- eval_studio_client/api/models/v1_check_base_models_response.py +2 -2
- eval_studio_client/api/models/v1_clone_test_response.py +2 -2
- eval_studio_client/api/models/v1_clone_workflow_response.py +2 -2
- eval_studio_client/api/models/v1_collection_info.py +2 -2
- eval_studio_client/api/models/v1_context.py +2 -2
- eval_studio_client/api/models/v1_create_dashboard_response.py +2 -2
- eval_studio_client/api/models/v1_create_document_response.py +2 -2
- eval_studio_client/api/models/v1_create_evaluation_request.py +5 -5
- eval_studio_client/api/models/v1_create_evaluator_response.py +2 -2
- eval_studio_client/api/models/v1_create_leaderboard_request.py +2 -2
- eval_studio_client/api/models/v1_create_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_create_leaderboard_without_cache_response.py +2 -2
- eval_studio_client/api/models/v1_create_model_response.py +2 -2
- eval_studio_client/api/models/v1_create_perturbation_response.py +2 -2
- eval_studio_client/api/models/v1_create_test_case_response.py +2 -2
- eval_studio_client/api/models/v1_create_test_lab_response.py +2 -2
- eval_studio_client/api/models/v1_create_test_response.py +2 -2
- eval_studio_client/api/models/v1_create_workflow_edge_response.py +2 -2
- eval_studio_client/api/models/v1_create_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_create_workflow_response.py +2 -2
- eval_studio_client/api/models/v1_dashboard.py +2 -2
- eval_studio_client/api/models/v1_delete_dashboard_response.py +2 -2
- eval_studio_client/api/models/v1_delete_document_response.py +2 -2
- eval_studio_client/api/models/v1_delete_evaluator_response.py +2 -2
- eval_studio_client/api/models/v1_delete_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_delete_model_response.py +2 -2
- eval_studio_client/api/models/v1_delete_test_case_response.py +2 -2
- eval_studio_client/api/models/v1_delete_test_response.py +2 -2
- eval_studio_client/api/models/v1_delete_workflow_edge_response.py +2 -2
- eval_studio_client/api/models/v1_delete_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_delete_workflow_response.py +2 -2
- eval_studio_client/api/models/v1_dependency_list.py +5 -5
- eval_studio_client/api/models/v1_document.py +2 -2
- eval_studio_client/api/models/v1_estimate_threshold_request.py +5 -5
- eval_studio_client/api/models/v1_evaluation_test.py +8 -8
- eval_studio_client/api/models/v1_evaluator.py +5 -5
- eval_studio_client/api/models/v1_evaluator_parameter.py +2 -2
- eval_studio_client/api/models/v1_finalize_operation_response.py +2 -2
- eval_studio_client/api/models/v1_find_all_test_cases_by_id_response.py +5 -5
- eval_studio_client/api/models/v1_find_test_lab_response.py +2 -2
- eval_studio_client/api/models/v1_find_workflows_by_collection_id_response.py +5 -5
- eval_studio_client/api/models/v1_generate_test_cases_response.py +2 -2
- eval_studio_client/api/models/v1_get_dashboard_response.py +2 -2
- eval_studio_client/api/models/v1_get_document_response.py +2 -2
- eval_studio_client/api/models/v1_get_evaluator_response.py +2 -2
- eval_studio_client/api/models/v1_get_guardrails_configuration_response.py +2 -2
- eval_studio_client/api/models/v1_get_info_response.py +2 -2
- eval_studio_client/api/models/v1_get_leaderboard_report_response.py +2 -2
- eval_studio_client/api/models/v1_get_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_get_model_response.py +2 -2
- eval_studio_client/api/models/v1_get_operation_progress_by_parent_response.py +2 -2
- eval_studio_client/api/models/v1_get_operation_response.py +2 -2
- eval_studio_client/api/models/v1_get_perturbator_response.py +2 -2
- eval_studio_client/api/models/v1_get_stats_response.py +2 -2
- eval_studio_client/api/models/v1_get_test_case_response.py +2 -2
- eval_studio_client/api/models/v1_get_test_class_response.py +2 -2
- eval_studio_client/api/models/v1_get_test_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_result_report_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +2 -2
- eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +2 -2
- eval_studio_client/api/models/v1_import_evaluation_request.py +2 -2
- eval_studio_client/api/models/v1_import_leaderboard_request.py +2 -2
- eval_studio_client/api/models/v1_import_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +2 -2
- eval_studio_client/api/models/v1_import_test_cases_request.py +2 -2
- eval_studio_client/api/models/v1_info.py +2 -2
- eval_studio_client/api/models/v1_init_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_insight.py +2 -2
- eval_studio_client/api/models/v1_labeled_test_case.py +2 -2
- eval_studio_client/api/models/v1_leaderboard.py +8 -8
- eval_studio_client/api/models/v1_leaderboard_report.py +8 -8
- eval_studio_client/api/models/v1_leaderboard_report_actual_output_data.py +2 -2
- eval_studio_client/api/models/v1_leaderboard_report_actual_output_meta.py +5 -5
- eval_studio_client/api/models/v1_leaderboard_report_evaluator.py +11 -11
- eval_studio_client/api/models/v1_leaderboard_report_evaluator_parameter.py +2 -2
- eval_studio_client/api/models/v1_leaderboard_report_explanation.py +2 -2
- eval_studio_client/api/models/v1_leaderboard_report_metrics_meta_entry.py +2 -2
- eval_studio_client/api/models/v1_leaderboard_report_model.py +2 -2
- eval_studio_client/api/models/v1_leaderboard_report_result.py +11 -11
- eval_studio_client/api/models/v1_leaderboard_report_result_relationship.py +2 -2
- eval_studio_client/api/models/v1_list_base_models_response.py +2 -2
- eval_studio_client/api/models/v1_list_dashboard_access_response.py +5 -5
- eval_studio_client/api/models/v1_list_dashboards_response.py +5 -5
- eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +5 -5
- eval_studio_client/api/models/v1_list_documents_response.py +5 -5
- eval_studio_client/api/models/v1_list_evaluators_response.py +5 -5
- eval_studio_client/api/models/v1_list_leaderboards_response.py +5 -5
- eval_studio_client/api/models/v1_list_llm_models_response.py +2 -2
- eval_studio_client/api/models/v1_list_model_collections_response.py +5 -5
- eval_studio_client/api/models/v1_list_models_response.py +5 -5
- eval_studio_client/api/models/v1_list_most_recent_dashboards_response.py +5 -5
- eval_studio_client/api/models/v1_list_most_recent_leaderboards_response.py +5 -5
- eval_studio_client/api/models/v1_list_most_recent_models_response.py +5 -5
- eval_studio_client/api/models/v1_list_most_recent_tests_response.py +5 -5
- eval_studio_client/api/models/v1_list_operations_response.py +5 -5
- eval_studio_client/api/models/v1_list_perturbators_response.py +5 -5
- eval_studio_client/api/models/v1_list_prompt_library_items_response.py +5 -5
- eval_studio_client/api/models/v1_list_rag_collections_response.py +5 -5
- eval_studio_client/api/models/v1_list_test_access_response.py +5 -5
- eval_studio_client/api/models/v1_list_test_case_library_items_response.py +5 -5
- eval_studio_client/api/models/v1_list_test_case_relationships_response.py +5 -5
- eval_studio_client/api/models/v1_list_test_cases_response.py +5 -5
- eval_studio_client/api/models/v1_list_test_classes_response.py +5 -5
- eval_studio_client/api/models/v1_list_tests_response.py +5 -5
- eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +5 -5
- eval_studio_client/api/models/v1_list_workflow_access_response.py +5 -5
- eval_studio_client/api/models/v1_list_workflow_dependencies_response.py +8 -8
- eval_studio_client/api/models/v1_list_workflows_response.py +5 -5
- eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +5 -5
- eval_studio_client/api/models/v1_metric_score.py +2 -2
- eval_studio_client/api/models/v1_metric_scores.py +5 -5
- eval_studio_client/api/models/v1_model.py +2 -2
- eval_studio_client/api/models/v1_operation.py +2 -2
- eval_studio_client/api/models/v1_operation_progress.py +2 -2
- eval_studio_client/api/models/v1_perturb_test_in_place_response.py +2 -2
- eval_studio_client/api/models/v1_perturb_test_response.py +2 -2
- eval_studio_client/api/models/v1_perturbator.py +2 -2
- eval_studio_client/api/models/v1_perturbator_configuration.py +2 -2
- eval_studio_client/api/models/v1_problem_and_action.py +2 -2
- eval_studio_client/api/models/v1_process_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_prompt_library_item.py +2 -2
- eval_studio_client/api/models/v1_repeated_context.py +5 -5
- eval_studio_client/api/models/v1_repeated_string.py +2 -2
- eval_studio_client/api/models/v1_reset_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_role_binding.py +2 -2
- eval_studio_client/api/models/v1_stats.py +2 -2
- eval_studio_client/api/models/v1_test.py +2 -2
- eval_studio_client/api/models/v1_test_case.py +2 -2
- eval_studio_client/api/models/v1_test_case_relationship.py +2 -2
- eval_studio_client/api/models/v1_test_class.py +2 -2
- eval_studio_client/api/models/v1_test_lab.py +2 -2
- eval_studio_client/api/models/v1_update_dashboard_response.py +2 -2
- eval_studio_client/api/models/v1_update_document_response.py +2 -2
- eval_studio_client/api/models/v1_update_leaderboard_response.py +2 -2
- eval_studio_client/api/models/v1_update_model_response.py +2 -2
- eval_studio_client/api/models/v1_update_operation_response.py +2 -2
- eval_studio_client/api/models/v1_update_test_case_response.py +2 -2
- eval_studio_client/api/models/v1_update_test_response.py +2 -2
- eval_studio_client/api/models/v1_update_workflow_node_response.py +2 -2
- eval_studio_client/api/models/v1_update_workflow_response.py +2 -2
- eval_studio_client/api/models/v1_who_am_i_response.py +2 -2
- eval_studio_client/api/models/v1_workflow.py +5 -5
- eval_studio_client/api/models/v1_workflow_dependency.py +2 -2
- eval_studio_client/api/models/v1_workflow_edge.py +2 -2
- eval_studio_client/api/models/v1_workflow_node.py +5 -5
- eval_studio_client/api/models/v1_workflow_node_artifact.py +2 -2
- eval_studio_client/api/models/v1_workflow_node_artifacts.py +5 -5
- eval_studio_client/api/models/v1_workflow_node_attributes.py +2 -2
- eval_studio_client/api/models/workflow_service_clone_workflow_request.py +2 -2
- eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +2 -2
- eval_studio_client/leaderboards.py +17 -0
- eval_studio_client/models.py +153 -8
- {eval_studio_client-1.2.2a1.dist-info → eval_studio_client-1.2.2a2.dist-info}/METADATA +1 -1
- {eval_studio_client-1.2.2a1.dist-info → eval_studio_client-1.2.2a2.dist-info}/RECORD +213 -213
- {eval_studio_client-1.2.2a1.dist-info → eval_studio_client-1.2.2a2.dist-info}/WHEEL +0 -0
|
@@ -99,9 +99,9 @@ class AdversarialInputsServiceTestAdversarialInputsRobustnessRequest(BaseModel):
|
|
|
99
99
|
# override the default output from pydantic by calling `to_dict()` of each value in baseline_metrics (dict)
|
|
100
100
|
_field_dict = {}
|
|
101
101
|
if self.baseline_metrics:
|
|
102
|
-
for
|
|
103
|
-
if self.baseline_metrics[
|
|
104
|
-
_field_dict[
|
|
102
|
+
for _key_baseline_metrics in self.baseline_metrics:
|
|
103
|
+
if self.baseline_metrics[_key_baseline_metrics]:
|
|
104
|
+
_field_dict[_key_baseline_metrics] = self.baseline_metrics[_key_baseline_metrics].to_dict()
|
|
105
105
|
_dict['baselineMetrics'] = _field_dict
|
|
106
106
|
return _dict
|
|
107
107
|
|
|
@@ -112,7 +112,7 @@ class AdversarialInputsServiceTestAdversarialInputsRobustnessRequest(BaseModel):
|
|
|
112
112
|
return None
|
|
113
113
|
|
|
114
114
|
if not isinstance(obj, dict):
|
|
115
|
-
return cls.model_validate(obj)
|
|
115
|
+
return cls.model_validate(obj, strict=False)
|
|
116
116
|
|
|
117
117
|
_obj = cls.model_validate({
|
|
118
118
|
"operation": obj.get("operation"),
|
|
@@ -137,7 +137,7 @@ class AdversarialInputsServiceTestAdversarialInputsRobustnessRequest(BaseModel):
|
|
|
137
137
|
)
|
|
138
138
|
if obj.get("baselineMetrics") is not None
|
|
139
139
|
else None
|
|
140
|
-
})
|
|
140
|
+
}, strict=False)
|
|
141
141
|
return _obj
|
|
142
142
|
|
|
143
143
|
|
|
@@ -78,23 +78,23 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
|
|
|
78
78
|
# override the default output from pydantic by calling `to_dict()` of each item in perturbator_configurations (list)
|
|
79
79
|
_items = []
|
|
80
80
|
if self.perturbator_configurations:
|
|
81
|
-
for
|
|
82
|
-
if
|
|
83
|
-
_items.append(
|
|
81
|
+
for _item_perturbator_configurations in self.perturbator_configurations:
|
|
82
|
+
if _item_perturbator_configurations:
|
|
83
|
+
_items.append(_item_perturbator_configurations.to_dict())
|
|
84
84
|
_dict['perturbatorConfigurations'] = _items
|
|
85
85
|
# override the default output from pydantic by calling `to_dict()` of each item in test_cases (list)
|
|
86
86
|
_items = []
|
|
87
87
|
if self.test_cases:
|
|
88
|
-
for
|
|
89
|
-
if
|
|
90
|
-
_items.append(
|
|
88
|
+
for _item_test_cases in self.test_cases:
|
|
89
|
+
if _item_test_cases:
|
|
90
|
+
_items.append(_item_test_cases.to_dict())
|
|
91
91
|
_dict['testCases'] = _items
|
|
92
92
|
# override the default output from pydantic by calling `to_dict()` of each item in test_case_relationships (list)
|
|
93
93
|
_items = []
|
|
94
94
|
if self.test_case_relationships:
|
|
95
|
-
for
|
|
96
|
-
if
|
|
97
|
-
_items.append(
|
|
95
|
+
for _item_test_case_relationships in self.test_case_relationships:
|
|
96
|
+
if _item_test_case_relationships:
|
|
97
|
+
_items.append(_item_test_case_relationships.to_dict())
|
|
98
98
|
_dict['testCaseRelationships'] = _items
|
|
99
99
|
# override the default output from pydantic by calling `to_dict()` of default_h2ogpte_model
|
|
100
100
|
if self.default_h2ogpte_model:
|
|
@@ -108,14 +108,14 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
|
|
|
108
108
|
return None
|
|
109
109
|
|
|
110
110
|
if not isinstance(obj, dict):
|
|
111
|
-
return cls.model_validate(obj)
|
|
111
|
+
return cls.model_validate(obj, strict=False)
|
|
112
112
|
|
|
113
113
|
_obj = cls.model_validate({
|
|
114
114
|
"perturbatorConfigurations": [V1PerturbatorConfiguration.from_dict(_item) for _item in obj["perturbatorConfigurations"]] if obj.get("perturbatorConfigurations") is not None else None,
|
|
115
115
|
"testCases": [V1TestCase.from_dict(_item) for _item in obj["testCases"]] if obj.get("testCases") is not None else None,
|
|
116
116
|
"testCaseRelationships": [V1TestCaseRelationship.from_dict(_item) for _item in obj["testCaseRelationships"]] if obj.get("testCaseRelationships") is not None else None,
|
|
117
117
|
"defaultH2ogpteModel": V1Model.from_dict(obj["defaultH2ogpteModel"]) if obj.get("defaultH2ogpteModel") is not None else None
|
|
118
|
-
})
|
|
118
|
+
}, strict=False)
|
|
119
119
|
return _obj
|
|
120
120
|
|
|
121
121
|
|
|
@@ -98,7 +98,7 @@ class PromptGenerationServiceAutoGeneratePromptsRequest(BaseModel):
|
|
|
98
98
|
return None
|
|
99
99
|
|
|
100
100
|
if not isinstance(obj, dict):
|
|
101
|
-
return cls.model_validate(obj)
|
|
101
|
+
return cls.model_validate(obj, strict=False)
|
|
102
102
|
|
|
103
103
|
_obj = cls.model_validate({
|
|
104
104
|
"operation": obj.get("operation"),
|
|
@@ -110,7 +110,7 @@ class PromptGenerationServiceAutoGeneratePromptsRequest(BaseModel):
|
|
|
110
110
|
"generators": obj.get("generators"),
|
|
111
111
|
"h2ogpteCollectionId": obj.get("h2ogpteCollectionId"),
|
|
112
112
|
"topics": obj.get("topics")
|
|
113
|
-
})
|
|
113
|
+
}, strict=False)
|
|
114
114
|
return _obj
|
|
115
115
|
|
|
116
116
|
|
|
@@ -85,11 +85,11 @@ class ProtobufAny(BaseModel):
|
|
|
85
85
|
return None
|
|
86
86
|
|
|
87
87
|
if not isinstance(obj, dict):
|
|
88
|
-
return cls.model_validate(obj)
|
|
88
|
+
return cls.model_validate(obj, strict=False)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
91
|
"@type": obj.get("@type")
|
|
92
|
-
})
|
|
92
|
+
}, strict=False)
|
|
93
93
|
# store additional fields in additional_properties
|
|
94
94
|
for _key in obj.keys():
|
|
95
95
|
if _key not in cls.__properties:
|
|
@@ -108,7 +108,7 @@ class RequiredTheDashboardToUpdate(BaseModel):
|
|
|
108
108
|
return None
|
|
109
109
|
|
|
110
110
|
if not isinstance(obj, dict):
|
|
111
|
-
return cls.model_validate(obj)
|
|
111
|
+
return cls.model_validate(obj, strict=False)
|
|
112
112
|
|
|
113
113
|
_obj = cls.model_validate({
|
|
114
114
|
"createTime": obj.get("createTime"),
|
|
@@ -124,7 +124,7 @@ class RequiredTheDashboardToUpdate(BaseModel):
|
|
|
124
124
|
"createOperation": obj.get("createOperation"),
|
|
125
125
|
"demo": obj.get("demo"),
|
|
126
126
|
"type": obj.get("type")
|
|
127
|
-
})
|
|
127
|
+
}, strict=False)
|
|
128
128
|
return _obj
|
|
129
129
|
|
|
130
130
|
|
|
@@ -98,7 +98,7 @@ class RequiredTheDocumentToUpdate(BaseModel):
|
|
|
98
98
|
return None
|
|
99
99
|
|
|
100
100
|
if not isinstance(obj, dict):
|
|
101
|
-
return cls.model_validate(obj)
|
|
101
|
+
return cls.model_validate(obj, strict=False)
|
|
102
102
|
|
|
103
103
|
_obj = cls.model_validate({
|
|
104
104
|
"createTime": obj.get("createTime"),
|
|
@@ -110,7 +110,7 @@ class RequiredTheDocumentToUpdate(BaseModel):
|
|
|
110
110
|
"displayName": obj.get("displayName"),
|
|
111
111
|
"description": obj.get("description"),
|
|
112
112
|
"url": obj.get("url")
|
|
113
|
-
})
|
|
113
|
+
}, strict=False)
|
|
114
114
|
return _obj
|
|
115
115
|
|
|
116
116
|
|
|
@@ -124,16 +124,16 @@ class RequiredTheLeaderboardToUpdate(BaseModel):
|
|
|
124
124
|
# override the default output from pydantic by calling `to_dict()` of each item in leaderboard_problems (list)
|
|
125
125
|
_items = []
|
|
126
126
|
if self.leaderboard_problems:
|
|
127
|
-
for
|
|
128
|
-
if
|
|
129
|
-
_items.append(
|
|
127
|
+
for _item_leaderboard_problems in self.leaderboard_problems:
|
|
128
|
+
if _item_leaderboard_problems:
|
|
129
|
+
_items.append(_item_leaderboard_problems.to_dict())
|
|
130
130
|
_dict['leaderboardProblems'] = _items
|
|
131
131
|
# override the default output from pydantic by calling `to_dict()` of each item in insights (list)
|
|
132
132
|
_items = []
|
|
133
133
|
if self.insights:
|
|
134
|
-
for
|
|
135
|
-
if
|
|
136
|
-
_items.append(
|
|
134
|
+
for _item_insights in self.insights:
|
|
135
|
+
if _item_insights:
|
|
136
|
+
_items.append(_item_insights.to_dict())
|
|
137
137
|
_dict['insights'] = _items
|
|
138
138
|
return _dict
|
|
139
139
|
|
|
@@ -144,7 +144,7 @@ class RequiredTheLeaderboardToUpdate(BaseModel):
|
|
|
144
144
|
return None
|
|
145
145
|
|
|
146
146
|
if not isinstance(obj, dict):
|
|
147
|
-
return cls.model_validate(obj)
|
|
147
|
+
return cls.model_validate(obj, strict=False)
|
|
148
148
|
|
|
149
149
|
_obj = cls.model_validate({
|
|
150
150
|
"createTime": obj.get("createTime"),
|
|
@@ -172,7 +172,7 @@ class RequiredTheLeaderboardToUpdate(BaseModel):
|
|
|
172
172
|
"type": obj.get("type"),
|
|
173
173
|
"demo": obj.get("demo"),
|
|
174
174
|
"testLab": obj.get("testLab")
|
|
175
|
-
})
|
|
175
|
+
}, strict=False)
|
|
176
176
|
return _obj
|
|
177
177
|
|
|
178
178
|
|
|
@@ -105,7 +105,7 @@ class RequiredTheModelToUpdate(BaseModel):
|
|
|
105
105
|
return None
|
|
106
106
|
|
|
107
107
|
if not isinstance(obj, dict):
|
|
108
|
-
return cls.model_validate(obj)
|
|
108
|
+
return cls.model_validate(obj, strict=False)
|
|
109
109
|
|
|
110
110
|
_obj = cls.model_validate({
|
|
111
111
|
"createTime": obj.get("createTime"),
|
|
@@ -121,7 +121,7 @@ class RequiredTheModelToUpdate(BaseModel):
|
|
|
121
121
|
"type": obj.get("type"),
|
|
122
122
|
"parameters": obj.get("parameters"),
|
|
123
123
|
"demo": obj.get("demo")
|
|
124
|
-
})
|
|
124
|
+
}, strict=False)
|
|
125
125
|
return _obj
|
|
126
126
|
|
|
127
127
|
|
|
@@ -110,7 +110,7 @@ class RequiredTheOperationToFinalize(BaseModel):
|
|
|
110
110
|
return None
|
|
111
111
|
|
|
112
112
|
if not isinstance(obj, dict):
|
|
113
|
-
return cls.model_validate(obj)
|
|
113
|
+
return cls.model_validate(obj, strict=False)
|
|
114
114
|
|
|
115
115
|
_obj = cls.model_validate({
|
|
116
116
|
"createTime": obj.get("createTime"),
|
|
@@ -123,7 +123,7 @@ class RequiredTheOperationToFinalize(BaseModel):
|
|
|
123
123
|
"done": obj.get("done"),
|
|
124
124
|
"error": RpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None,
|
|
125
125
|
"response": ProtobufAny.from_dict(obj["response"]) if obj.get("response") is not None else None
|
|
126
|
-
})
|
|
126
|
+
}, strict=False)
|
|
127
127
|
return _obj
|
|
128
128
|
|
|
129
129
|
|
|
@@ -110,7 +110,7 @@ class RequiredTheOperationToUpdate(BaseModel):
|
|
|
110
110
|
return None
|
|
111
111
|
|
|
112
112
|
if not isinstance(obj, dict):
|
|
113
|
-
return cls.model_validate(obj)
|
|
113
|
+
return cls.model_validate(obj, strict=False)
|
|
114
114
|
|
|
115
115
|
_obj = cls.model_validate({
|
|
116
116
|
"createTime": obj.get("createTime"),
|
|
@@ -123,7 +123,7 @@ class RequiredTheOperationToUpdate(BaseModel):
|
|
|
123
123
|
"done": obj.get("done"),
|
|
124
124
|
"error": RpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None,
|
|
125
125
|
"response": ProtobufAny.from_dict(obj["response"]) if obj.get("response") is not None else None
|
|
126
|
-
})
|
|
126
|
+
}, strict=False)
|
|
127
127
|
return _obj
|
|
128
128
|
|
|
129
129
|
|
|
@@ -108,7 +108,7 @@ class RequiredTheTestCaseToUpdate(BaseModel):
|
|
|
108
108
|
return None
|
|
109
109
|
|
|
110
110
|
if not isinstance(obj, dict):
|
|
111
|
-
return cls.model_validate(obj)
|
|
111
|
+
return cls.model_validate(obj, strict=False)
|
|
112
112
|
|
|
113
113
|
_obj = cls.model_validate({
|
|
114
114
|
"createTime": obj.get("createTime"),
|
|
@@ -125,7 +125,7 @@ class RequiredTheTestCaseToUpdate(BaseModel):
|
|
|
125
125
|
"perturbedBy": obj.get("perturbedBy"),
|
|
126
126
|
"topics": obj.get("topics"),
|
|
127
127
|
"generator": obj.get("generator")
|
|
128
|
-
})
|
|
128
|
+
}, strict=False)
|
|
129
129
|
return _obj
|
|
130
130
|
|
|
131
131
|
|
|
@@ -104,7 +104,7 @@ class RequiredTheTestToUpdate(BaseModel):
|
|
|
104
104
|
return None
|
|
105
105
|
|
|
106
106
|
if not isinstance(obj, dict):
|
|
107
|
-
return cls.model_validate(obj)
|
|
107
|
+
return cls.model_validate(obj, strict=False)
|
|
108
108
|
|
|
109
109
|
_obj = cls.model_validate({
|
|
110
110
|
"createTime": obj.get("createTime"),
|
|
@@ -119,7 +119,7 @@ class RequiredTheTestToUpdate(BaseModel):
|
|
|
119
119
|
"tags": obj.get("tags"),
|
|
120
120
|
"demo": obj.get("demo"),
|
|
121
121
|
"type": obj.get("type")
|
|
122
|
-
})
|
|
122
|
+
}, strict=False)
|
|
123
123
|
return _obj
|
|
124
124
|
|
|
125
125
|
|
|
@@ -114,9 +114,9 @@ class RequiredTheUpdatedWorkflow(BaseModel):
|
|
|
114
114
|
# override the default output from pydantic by calling `to_dict()` of each value in output_artifacts (dict)
|
|
115
115
|
_field_dict = {}
|
|
116
116
|
if self.output_artifacts:
|
|
117
|
-
for
|
|
118
|
-
if self.output_artifacts[
|
|
119
|
-
_field_dict[
|
|
117
|
+
for _key_output_artifacts in self.output_artifacts:
|
|
118
|
+
if self.output_artifacts[_key_output_artifacts]:
|
|
119
|
+
_field_dict[_key_output_artifacts] = self.output_artifacts[_key_output_artifacts].to_dict()
|
|
120
120
|
_dict['outputArtifacts'] = _field_dict
|
|
121
121
|
return _dict
|
|
122
122
|
|
|
@@ -127,7 +127,7 @@ class RequiredTheUpdatedWorkflow(BaseModel):
|
|
|
127
127
|
return None
|
|
128
128
|
|
|
129
129
|
if not isinstance(obj, dict):
|
|
130
|
-
return cls.model_validate(obj)
|
|
130
|
+
return cls.model_validate(obj, strict=False)
|
|
131
131
|
|
|
132
132
|
_obj = cls.model_validate({
|
|
133
133
|
"displayName": obj.get("displayName"),
|
|
@@ -154,7 +154,7 @@ class RequiredTheUpdatedWorkflow(BaseModel):
|
|
|
154
154
|
"document": obj.get("document"),
|
|
155
155
|
"h2ogpteCollection": obj.get("h2ogpteCollection"),
|
|
156
156
|
"clonedFromWorkflow": obj.get("clonedFromWorkflow")
|
|
157
|
-
})
|
|
157
|
+
}, strict=False)
|
|
158
158
|
return _obj
|
|
159
159
|
|
|
160
160
|
|
|
@@ -116,9 +116,9 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
|
|
|
116
116
|
# override the default output from pydantic by calling `to_dict()` of each item in output_artifacts (list)
|
|
117
117
|
_items = []
|
|
118
118
|
if self.output_artifacts:
|
|
119
|
-
for
|
|
120
|
-
if
|
|
121
|
-
_items.append(
|
|
119
|
+
for _item_output_artifacts in self.output_artifacts:
|
|
120
|
+
if _item_output_artifacts:
|
|
121
|
+
_items.append(_item_output_artifacts.to_dict())
|
|
122
122
|
_dict['outputArtifacts'] = _items
|
|
123
123
|
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
124
124
|
if self.attributes:
|
|
@@ -132,7 +132,7 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
|
|
|
132
132
|
return None
|
|
133
133
|
|
|
134
134
|
if not isinstance(obj, dict):
|
|
135
|
-
return cls.model_validate(obj)
|
|
135
|
+
return cls.model_validate(obj, strict=False)
|
|
136
136
|
|
|
137
137
|
_obj = cls.model_validate({
|
|
138
138
|
"parent": obj.get("parent"),
|
|
@@ -153,7 +153,7 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
|
|
|
153
153
|
"processedByOperation": obj.get("processedByOperation"),
|
|
154
154
|
"resultStatus": obj.get("resultStatus"),
|
|
155
155
|
"stale": obj.get("stale")
|
|
156
|
-
})
|
|
156
|
+
}, strict=False)
|
|
157
157
|
return _obj
|
|
158
158
|
|
|
159
159
|
|
|
@@ -74,9 +74,9 @@ class RpcStatus(BaseModel):
|
|
|
74
74
|
# override the default output from pydantic by calling `to_dict()` of each item in details (list)
|
|
75
75
|
_items = []
|
|
76
76
|
if self.details:
|
|
77
|
-
for
|
|
78
|
-
if
|
|
79
|
-
_items.append(
|
|
77
|
+
for _item_details in self.details:
|
|
78
|
+
if _item_details:
|
|
79
|
+
_items.append(_item_details.to_dict())
|
|
80
80
|
_dict['details'] = _items
|
|
81
81
|
return _dict
|
|
82
82
|
|
|
@@ -87,13 +87,13 @@ class RpcStatus(BaseModel):
|
|
|
87
87
|
return None
|
|
88
88
|
|
|
89
89
|
if not isinstance(obj, dict):
|
|
90
|
-
return cls.model_validate(obj)
|
|
90
|
+
return cls.model_validate(obj, strict=False)
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"code": obj.get("code"),
|
|
94
94
|
"message": obj.get("message"),
|
|
95
95
|
"details": [ProtobufAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None
|
|
96
|
-
})
|
|
96
|
+
}, strict=False)
|
|
97
97
|
return _obj
|
|
98
98
|
|
|
99
99
|
|
|
@@ -77,11 +77,11 @@ class TestCaseServiceBatchDeleteTestCasesRequest(BaseModel):
|
|
|
77
77
|
return None
|
|
78
78
|
|
|
79
79
|
if not isinstance(obj, dict):
|
|
80
|
-
return cls.model_validate(obj)
|
|
80
|
+
return cls.model_validate(obj, strict=False)
|
|
81
81
|
|
|
82
82
|
_obj = cls.model_validate({
|
|
83
83
|
"names": obj.get("names")
|
|
84
|
-
})
|
|
84
|
+
}, strict=False)
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
87
87
|
|
|
@@ -78,12 +78,12 @@ class TestServiceCloneTestRequest(BaseModel):
|
|
|
78
78
|
return None
|
|
79
79
|
|
|
80
80
|
if not isinstance(obj, dict):
|
|
81
|
-
return cls.model_validate(obj)
|
|
81
|
+
return cls.model_validate(obj, strict=False)
|
|
82
82
|
|
|
83
83
|
_obj = cls.model_validate({
|
|
84
84
|
"newTestDisplayName": obj.get("newTestDisplayName"),
|
|
85
85
|
"newTestDescription": obj.get("newTestDescription")
|
|
86
|
-
})
|
|
86
|
+
}, strict=False)
|
|
87
87
|
return _obj
|
|
88
88
|
|
|
89
89
|
|
|
@@ -79,9 +79,9 @@ class TestServiceGenerateTestCasesRequest(BaseModel):
|
|
|
79
79
|
# override the default output from pydantic by calling `to_dict()` of each item in chunks (list)
|
|
80
80
|
_items = []
|
|
81
81
|
if self.chunks:
|
|
82
|
-
for
|
|
83
|
-
if
|
|
84
|
-
_items.append(
|
|
82
|
+
for _item_chunks in self.chunks:
|
|
83
|
+
if _item_chunks:
|
|
84
|
+
_items.append(_item_chunks.to_dict())
|
|
85
85
|
_dict['chunks'] = _items
|
|
86
86
|
return _dict
|
|
87
87
|
|
|
@@ -92,7 +92,7 @@ class TestServiceGenerateTestCasesRequest(BaseModel):
|
|
|
92
92
|
return None
|
|
93
93
|
|
|
94
94
|
if not isinstance(obj, dict):
|
|
95
|
-
return cls.model_validate(obj)
|
|
95
|
+
return cls.model_validate(obj, strict=False)
|
|
96
96
|
|
|
97
97
|
_obj = cls.model_validate({
|
|
98
98
|
"count": obj.get("count"),
|
|
@@ -102,7 +102,7 @@ class TestServiceGenerateTestCasesRequest(BaseModel):
|
|
|
102
102
|
"h2ogpteCollectionId": obj.get("h2ogpteCollectionId"),
|
|
103
103
|
"topics": obj.get("topics"),
|
|
104
104
|
"chunks": [V1Context.from_dict(_item) for _item in obj["chunks"]] if obj.get("chunks") is not None else None
|
|
105
|
-
})
|
|
105
|
+
}, strict=False)
|
|
106
106
|
return _obj
|
|
107
107
|
|
|
108
108
|
|
|
@@ -79,12 +79,12 @@ class TestServiceGrantTestAccessRequest(BaseModel):
|
|
|
79
79
|
return None
|
|
80
80
|
|
|
81
81
|
if not isinstance(obj, dict):
|
|
82
|
-
return cls.model_validate(obj)
|
|
82
|
+
return cls.model_validate(obj, strict=False)
|
|
83
83
|
|
|
84
84
|
_obj = cls.model_validate({
|
|
85
85
|
"subject": obj.get("subject"),
|
|
86
86
|
"role": obj.get("role")
|
|
87
|
-
})
|
|
87
|
+
}, strict=False)
|
|
88
88
|
return _obj
|
|
89
89
|
|
|
90
90
|
|
|
@@ -80,14 +80,14 @@ class TestServiceImportTestCasesFromLibraryRequest(BaseModel):
|
|
|
80
80
|
return None
|
|
81
81
|
|
|
82
82
|
if not isinstance(obj, dict):
|
|
83
|
-
return cls.model_validate(obj)
|
|
83
|
+
return cls.model_validate(obj, strict=False)
|
|
84
84
|
|
|
85
85
|
_obj = cls.model_validate({
|
|
86
86
|
"operation": obj.get("operation"),
|
|
87
87
|
"testSuiteUrl": obj.get("testSuiteUrl"),
|
|
88
88
|
"count": obj.get("count"),
|
|
89
89
|
"testDocumentUrls": obj.get("testDocumentUrls")
|
|
90
|
-
})
|
|
90
|
+
}, strict=False)
|
|
91
91
|
return _obj
|
|
92
92
|
|
|
93
93
|
|
|
@@ -83,7 +83,7 @@ class TestServiceListTestCaseLibraryItemsRequest(BaseModel):
|
|
|
83
83
|
return None
|
|
84
84
|
|
|
85
85
|
if not isinstance(obj, dict):
|
|
86
|
-
return cls.model_validate(obj)
|
|
86
|
+
return cls.model_validate(obj, strict=False)
|
|
87
87
|
|
|
88
88
|
_obj = cls.model_validate({
|
|
89
89
|
"filterByCategories": obj.get("filterByCategories"),
|
|
@@ -93,7 +93,7 @@ class TestServiceListTestCaseLibraryItemsRequest(BaseModel):
|
|
|
93
93
|
"filterByTestCaseCount": obj.get("filterByTestCaseCount"),
|
|
94
94
|
"filterByTestCount": obj.get("filterByTestCount"),
|
|
95
95
|
"filterByFts": obj.get("filterByFts")
|
|
96
|
-
})
|
|
96
|
+
}, strict=False)
|
|
97
97
|
return _obj
|
|
98
98
|
|
|
99
99
|
|
|
@@ -73,9 +73,9 @@ class TestServicePerturbTestInPlaceRequest(BaseModel):
|
|
|
73
73
|
# override the default output from pydantic by calling `to_dict()` of each item in perturbator_configurations (list)
|
|
74
74
|
_items = []
|
|
75
75
|
if self.perturbator_configurations:
|
|
76
|
-
for
|
|
77
|
-
if
|
|
78
|
-
_items.append(
|
|
76
|
+
for _item_perturbator_configurations in self.perturbator_configurations:
|
|
77
|
+
if _item_perturbator_configurations:
|
|
78
|
+
_items.append(_item_perturbator_configurations.to_dict())
|
|
79
79
|
_dict['perturbatorConfigurations'] = _items
|
|
80
80
|
return _dict
|
|
81
81
|
|
|
@@ -86,12 +86,12 @@ class TestServicePerturbTestInPlaceRequest(BaseModel):
|
|
|
86
86
|
return None
|
|
87
87
|
|
|
88
88
|
if not isinstance(obj, dict):
|
|
89
|
-
return cls.model_validate(obj)
|
|
89
|
+
return cls.model_validate(obj, strict=False)
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
92
|
"perturbatorConfigurations": [V1PerturbatorConfiguration.from_dict(_item) for _item in obj["perturbatorConfigurations"]] if obj.get("perturbatorConfigurations") is not None else None,
|
|
93
93
|
"testCaseNames": obj.get("testCaseNames")
|
|
94
|
-
})
|
|
94
|
+
}, strict=False)
|
|
95
95
|
return _obj
|
|
96
96
|
|
|
97
97
|
|
|
@@ -75,9 +75,9 @@ class TestServicePerturbTestRequest(BaseModel):
|
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of each item in perturbator_configurations (list)
|
|
76
76
|
_items = []
|
|
77
77
|
if self.perturbator_configurations:
|
|
78
|
-
for
|
|
79
|
-
if
|
|
80
|
-
_items.append(
|
|
78
|
+
for _item_perturbator_configurations in self.perturbator_configurations:
|
|
79
|
+
if _item_perturbator_configurations:
|
|
80
|
+
_items.append(_item_perturbator_configurations.to_dict())
|
|
81
81
|
_dict['perturbatorConfigurations'] = _items
|
|
82
82
|
return _dict
|
|
83
83
|
|
|
@@ -88,14 +88,14 @@ class TestServicePerturbTestRequest(BaseModel):
|
|
|
88
88
|
return None
|
|
89
89
|
|
|
90
90
|
if not isinstance(obj, dict):
|
|
91
|
-
return cls.model_validate(obj)
|
|
91
|
+
return cls.model_validate(obj, strict=False)
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
94
|
"perturbatorConfigurations": [V1PerturbatorConfiguration.from_dict(_item) for _item in obj["perturbatorConfigurations"]] if obj.get("perturbatorConfigurations") is not None else None,
|
|
95
95
|
"newTestDisplayName": obj.get("newTestDisplayName"),
|
|
96
96
|
"newTestDescription": obj.get("newTestDescription"),
|
|
97
97
|
"testCaseNames": obj.get("testCaseNames")
|
|
98
|
-
})
|
|
98
|
+
}, strict=False)
|
|
99
99
|
return _obj
|
|
100
100
|
|
|
101
101
|
|
|
@@ -79,12 +79,12 @@ class TestServiceRevokeTestAccessRequest(BaseModel):
|
|
|
79
79
|
return None
|
|
80
80
|
|
|
81
81
|
if not isinstance(obj, dict):
|
|
82
|
-
return cls.model_validate(obj)
|
|
82
|
+
return cls.model_validate(obj, strict=False)
|
|
83
83
|
|
|
84
84
|
_obj = cls.model_validate({
|
|
85
85
|
"subject": obj.get("subject"),
|
|
86
86
|
"role": obj.get("role")
|
|
87
|
-
})
|
|
87
|
+
}, strict=False)
|
|
88
88
|
return _obj
|
|
89
89
|
|
|
90
90
|
|
|
@@ -81,11 +81,11 @@ class V1AbortOperationResponse(BaseModel):
|
|
|
81
81
|
return None
|
|
82
82
|
|
|
83
83
|
if not isinstance(obj, dict):
|
|
84
|
-
return cls.model_validate(obj)
|
|
84
|
+
return cls.model_validate(obj, strict=False)
|
|
85
85
|
|
|
86
86
|
_obj = cls.model_validate({
|
|
87
87
|
"operation": V1Operation.from_dict(obj["operation"]) if obj.get("operation") is not None else None
|
|
88
|
-
})
|
|
88
|
+
}, strict=False)
|
|
89
89
|
return _obj
|
|
90
90
|
|
|
91
91
|
|
|
@@ -74,9 +74,9 @@ class V1BatchCreateLeaderboardsRequest(BaseModel):
|
|
|
74
74
|
# override the default output from pydantic by calling `to_dict()` of each item in requests (list)
|
|
75
75
|
_items = []
|
|
76
76
|
if self.requests:
|
|
77
|
-
for
|
|
78
|
-
if
|
|
79
|
-
_items.append(
|
|
77
|
+
for _item_requests in self.requests:
|
|
78
|
+
if _item_requests:
|
|
79
|
+
_items.append(_item_requests.to_dict())
|
|
80
80
|
_dict['requests'] = _items
|
|
81
81
|
return _dict
|
|
82
82
|
|
|
@@ -87,13 +87,13 @@ class V1BatchCreateLeaderboardsRequest(BaseModel):
|
|
|
87
87
|
return None
|
|
88
88
|
|
|
89
89
|
if not isinstance(obj, dict):
|
|
90
|
-
return cls.model_validate(obj)
|
|
90
|
+
return cls.model_validate(obj, strict=False)
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"requests": [V1CreateLeaderboardRequest.from_dict(_item) for _item in obj["requests"]] if obj.get("requests") is not None else None,
|
|
94
94
|
"dashboardDisplayName": obj.get("dashboardDisplayName"),
|
|
95
95
|
"dashboardDescription": obj.get("dashboardDescription")
|
|
96
|
-
})
|
|
96
|
+
}, strict=False)
|
|
97
97
|
return _obj
|
|
98
98
|
|
|
99
99
|
|
|
@@ -81,11 +81,11 @@ class V1BatchCreateLeaderboardsResponse(BaseModel):
|
|
|
81
81
|
return None
|
|
82
82
|
|
|
83
83
|
if not isinstance(obj, dict):
|
|
84
|
-
return cls.model_validate(obj)
|
|
84
|
+
return cls.model_validate(obj, strict=False)
|
|
85
85
|
|
|
86
86
|
_obj = cls.model_validate({
|
|
87
87
|
"operation": V1Operation.from_dict(obj["operation"]) if obj.get("operation") is not None else None
|
|
88
|
-
})
|
|
88
|
+
}, strict=False)
|
|
89
89
|
return _obj
|
|
90
90
|
|
|
91
91
|
|
|
@@ -77,11 +77,11 @@ class V1BatchDeleteDashboardsRequest(BaseModel):
|
|
|
77
77
|
return None
|
|
78
78
|
|
|
79
79
|
if not isinstance(obj, dict):
|
|
80
|
-
return cls.model_validate(obj)
|
|
80
|
+
return cls.model_validate(obj, strict=False)
|
|
81
81
|
|
|
82
82
|
_obj = cls.model_validate({
|
|
83
83
|
"names": obj.get("names")
|
|
84
|
-
})
|
|
84
|
+
}, strict=False)
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
87
87
|
|