langwatch-scenario 0.6.0__py3-none-any.whl → 0.7.2__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.
- {langwatch_scenario-0.6.0.dist-info → langwatch_scenario-0.7.2.dist-info}/METADATA +145 -41
- langwatch_scenario-0.7.2.dist-info/RECORD +237 -0
- scenario/__init__.py +1 -4
- scenario/{events → _events}/__init__.py +9 -11
- scenario/_events/event_bus.py +185 -0
- scenario/{events → _events}/event_reporter.py +1 -1
- scenario/{events → _events}/events.py +20 -27
- scenario/_events/messages.py +58 -0
- scenario/{events → _events}/utils.py +43 -32
- scenario/_generated/langwatch_api_client/README.md +139 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/__init__.py +13 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/__init__.py +1 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/__init__.py +1 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/delete_api_annotations_id.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/delete_api_prompts_by_id.py +218 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/delete_api_scenario_events.py +183 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_annotations.py +136 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_annotations_id.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_annotations_trace_id.py +160 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_dataset_by_slug_or_id.py +229 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_prompts.py +188 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_prompts_by_id.py +218 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_prompts_by_id_versions.py +218 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/get_api_trace_id.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/patch_api_annotations_id.py +178 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_annotations_trace_id.py +178 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_dataset_by_slug_entries.py +108 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_prompts.py +187 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_prompts_by_id_versions.py +241 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_scenario_events.py +229 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_trace_id_share.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/post_api_trace_id_unshare.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/default/put_api_prompts_by_id.py +241 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/traces/__init__.py +1 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/api/traces/post_api_trace_search.py +168 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/client.py +268 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/errors.py +16 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/__init__.py +455 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/annotation.py +131 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/dataset_post_entries.py +74 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/dataset_post_entries_entries_item.py +44 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_annotations_id_response_200.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_200.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_404.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_prompts_by_id_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_scenario_events_response_200.py +81 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_scenario_events_response_400.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_scenario_events_response_401.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/delete_api_scenario_events_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/error.py +67 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/evaluation.py +164 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/evaluation_timestamps.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_200.py +75 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_200_data_item.py +109 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_200_data_item_entry.py +44 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_400.py +78 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_401.py +78 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_404.py +78 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_422.py +67 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_dataset_by_slug_or_id_response_500.py +78 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200.py +172 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_messages_item.py +69 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_response_format_type_0.py +81 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_response_format_type_0_json_schema.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_response_format_type_0_json_schema_schema.py +44 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_200_response_format_type_0_type.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_404.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data.py +204 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_demonstrations.py +101 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_demonstrations_columns_item.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_demonstrations_columns_item_type.py +18 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_demonstrations_rows_item.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_inputs_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_inputs_item_type.py +16 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_messages_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_outputs_item.py +98 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_outputs_item_json_schema.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_outputs_item_type.py +11 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_200_config_data_prompting_technique.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_404.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_by_id_versions_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item.py +172 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_messages_item.py +69 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_response_format_type_0.py +81 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_response_format_type_0_json_schema.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_response_format_type_0_json_schema_schema.py +44 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_200_item_response_format_type_0_type.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_prompts_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200.py +249 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_error_type_0.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_evaluations_item.py +152 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_evaluations_item_error.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_evaluations_item_timestamps.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_input.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_metadata.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_metrics.py +95 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_output.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item.py +271 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_error_type_0.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_input.py +90 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_input_value_item.py +69 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_metrics.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_output.py +89 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_output_value_item.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_params.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_spans_item_timestamps.py +95 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/get_api_trace_id_response_200_timestamps.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/input_.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/metadata.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/metrics.py +115 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/output.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/pagination.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/patch_api_annotations_id_body.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/patch_api_annotations_id_response_200.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_annotations_trace_id_body.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_body.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body.py +147 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data.py +207 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_demonstrations.py +106 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_demonstrations_columns_item.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_demonstrations_columns_item_type.py +18 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_demonstrations_rows_item.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_inputs_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_inputs_item_type.py +16 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_messages_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_outputs_item.py +98 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_outputs_item_json_schema.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_outputs_item_type.py +11 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_body_config_data_prompting_technique.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200.py +155 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data.py +206 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_demonstrations.py +101 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_demonstrations_columns_item.py +79 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_demonstrations_columns_item_type.py +18 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_demonstrations_rows_item.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_inputs_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_inputs_item_type.py +16 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_messages_item.py +71 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_outputs_item.py +98 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_outputs_item_json_schema.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_outputs_item_type.py +11 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_200_config_data_prompting_technique.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_404.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_by_id_versions_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200.py +172 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_messages_item.py +69 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_messages_item_role.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_response_format_type_0.py +81 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_response_format_type_0_json_schema.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_response_format_type_0_json_schema_schema.py +44 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_200_response_format_type_0_type.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_prompts_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_0.py +127 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_0_metadata.py +68 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_1.py +164 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_1_results_type_0.py +98 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_1_results_type_0_verdict.py +10 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_1_status.py +13 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2.py +245 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_0.py +88 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_1.py +88 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_2.py +120 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_2_tool_calls_item.py +87 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_2_tool_calls_item_function.py +67 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_3.py +88 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_body_type_2_messages_item_type_4.py +85 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_response_201.py +81 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_response_400.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_response_401.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_scenario_events_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_trace_id_share_response_200.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/post_api_trace_id_unshare_response_200.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_body.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_200.py +75 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_400.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_400_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_401.py +61 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_401_error.py +8 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_404.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/put_api_prompts_by_id_response_500.py +59 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/search_request.py +133 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/search_request_filters.py +51 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/search_response.py +93 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/timestamps.py +77 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/models/trace.py +225 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/py.typed +1 -0
- scenario/_generated/langwatch_api_client/lang_watch_api_client/types.py +46 -0
- scenario/_generated/langwatch_api_client/pyproject.toml +27 -0
- scenario/_utils/__init__.py +1 -1
- scenario/_utils/message_conversion.py +2 -2
- scenario/judge_agent.py +6 -1
- scenario/pytest_plugin.py +4 -4
- scenario/scenario_executor.py +196 -223
- scenario/types.py +5 -2
- langwatch_scenario-0.6.0.dist-info/RECORD +0 -27
- scenario/events/event_bus.py +0 -175
- scenario/events/messages.py +0 -84
- {langwatch_scenario-0.6.0.dist-info → langwatch_scenario-0.7.2.dist-info}/WHEEL +0 -0
- {langwatch_scenario-0.6.0.dist-info → langwatch_scenario-0.7.2.dist-info}/entry_points.txt +0 -0
- {langwatch_scenario-0.6.0.dist-info → langwatch_scenario-0.7.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import Any, TypeVar
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
T = TypeVar("T", bound="Error")
|
8
|
+
|
9
|
+
|
10
|
+
@_attrs_define
|
11
|
+
class Error:
|
12
|
+
"""
|
13
|
+
Attributes:
|
14
|
+
error (int):
|
15
|
+
message (str):
|
16
|
+
"""
|
17
|
+
|
18
|
+
error: int
|
19
|
+
message: str
|
20
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
21
|
+
|
22
|
+
def to_dict(self) -> dict[str, Any]:
|
23
|
+
error = self.error
|
24
|
+
|
25
|
+
message = self.message
|
26
|
+
|
27
|
+
field_dict: dict[str, Any] = {}
|
28
|
+
field_dict.update(self.additional_properties)
|
29
|
+
field_dict.update(
|
30
|
+
{
|
31
|
+
"error": error,
|
32
|
+
"message": message,
|
33
|
+
}
|
34
|
+
)
|
35
|
+
|
36
|
+
return field_dict
|
37
|
+
|
38
|
+
@classmethod
|
39
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
40
|
+
d = dict(src_dict)
|
41
|
+
error = d.pop("error")
|
42
|
+
|
43
|
+
message = d.pop("message")
|
44
|
+
|
45
|
+
error = cls(
|
46
|
+
error=error,
|
47
|
+
message=message,
|
48
|
+
)
|
49
|
+
|
50
|
+
error.additional_properties = d
|
51
|
+
return error
|
52
|
+
|
53
|
+
@property
|
54
|
+
def additional_keys(self) -> list[str]:
|
55
|
+
return list(self.additional_properties.keys())
|
56
|
+
|
57
|
+
def __getitem__(self, key: str) -> Any:
|
58
|
+
return self.additional_properties[key]
|
59
|
+
|
60
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
61
|
+
self.additional_properties[key] = value
|
62
|
+
|
63
|
+
def __delitem__(self, key: str) -> None:
|
64
|
+
del self.additional_properties[key]
|
65
|
+
|
66
|
+
def __contains__(self, key: str) -> bool:
|
67
|
+
return key in self.additional_properties
|
@@ -0,0 +1,164 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
from ..types import UNSET, Unset
|
8
|
+
|
9
|
+
if TYPE_CHECKING:
|
10
|
+
from ..models.evaluation_timestamps import EvaluationTimestamps
|
11
|
+
|
12
|
+
|
13
|
+
T = TypeVar("T", bound="Evaluation")
|
14
|
+
|
15
|
+
|
16
|
+
@_attrs_define
|
17
|
+
class Evaluation:
|
18
|
+
"""
|
19
|
+
Attributes:
|
20
|
+
evaluation_id (Union[Unset, str]):
|
21
|
+
score (Union[Unset, float]):
|
22
|
+
timestamps (Union[Unset, EvaluationTimestamps]):
|
23
|
+
evaluator_id (Union[Unset, str]):
|
24
|
+
name (Union[Unset, str]):
|
25
|
+
details (Union[Unset, str]):
|
26
|
+
passed (Union[Unset, bool]):
|
27
|
+
label (Union[None, Unset, str]):
|
28
|
+
type_ (Union[Unset, str]):
|
29
|
+
status (Union[Unset, str]):
|
30
|
+
"""
|
31
|
+
|
32
|
+
evaluation_id: Union[Unset, str] = UNSET
|
33
|
+
score: Union[Unset, float] = UNSET
|
34
|
+
timestamps: Union[Unset, "EvaluationTimestamps"] = UNSET
|
35
|
+
evaluator_id: Union[Unset, str] = UNSET
|
36
|
+
name: Union[Unset, str] = UNSET
|
37
|
+
details: Union[Unset, str] = UNSET
|
38
|
+
passed: Union[Unset, bool] = UNSET
|
39
|
+
label: Union[None, Unset, str] = UNSET
|
40
|
+
type_: Union[Unset, str] = UNSET
|
41
|
+
status: Union[Unset, str] = UNSET
|
42
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
43
|
+
|
44
|
+
def to_dict(self) -> dict[str, Any]:
|
45
|
+
evaluation_id = self.evaluation_id
|
46
|
+
|
47
|
+
score = self.score
|
48
|
+
|
49
|
+
timestamps: Union[Unset, dict[str, Any]] = UNSET
|
50
|
+
if not isinstance(self.timestamps, Unset):
|
51
|
+
timestamps = self.timestamps.to_dict()
|
52
|
+
|
53
|
+
evaluator_id = self.evaluator_id
|
54
|
+
|
55
|
+
name = self.name
|
56
|
+
|
57
|
+
details = self.details
|
58
|
+
|
59
|
+
passed = self.passed
|
60
|
+
|
61
|
+
label: Union[None, Unset, str]
|
62
|
+
if isinstance(self.label, Unset):
|
63
|
+
label = UNSET
|
64
|
+
else:
|
65
|
+
label = self.label
|
66
|
+
|
67
|
+
type_ = self.type_
|
68
|
+
|
69
|
+
status = self.status
|
70
|
+
|
71
|
+
field_dict: dict[str, Any] = {}
|
72
|
+
field_dict.update(self.additional_properties)
|
73
|
+
field_dict.update({})
|
74
|
+
if evaluation_id is not UNSET:
|
75
|
+
field_dict["evaluation_id"] = evaluation_id
|
76
|
+
if score is not UNSET:
|
77
|
+
field_dict["score"] = score
|
78
|
+
if timestamps is not UNSET:
|
79
|
+
field_dict["timestamps"] = timestamps
|
80
|
+
if evaluator_id is not UNSET:
|
81
|
+
field_dict["evaluator_id"] = evaluator_id
|
82
|
+
if name is not UNSET:
|
83
|
+
field_dict["name"] = name
|
84
|
+
if details is not UNSET:
|
85
|
+
field_dict["details"] = details
|
86
|
+
if passed is not UNSET:
|
87
|
+
field_dict["passed"] = passed
|
88
|
+
if label is not UNSET:
|
89
|
+
field_dict["label"] = label
|
90
|
+
if type_ is not UNSET:
|
91
|
+
field_dict["type"] = type_
|
92
|
+
if status is not UNSET:
|
93
|
+
field_dict["status"] = status
|
94
|
+
|
95
|
+
return field_dict
|
96
|
+
|
97
|
+
@classmethod
|
98
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
99
|
+
from ..models.evaluation_timestamps import EvaluationTimestamps
|
100
|
+
|
101
|
+
d = dict(src_dict)
|
102
|
+
evaluation_id = d.pop("evaluation_id", UNSET)
|
103
|
+
|
104
|
+
score = d.pop("score", UNSET)
|
105
|
+
|
106
|
+
_timestamps = d.pop("timestamps", UNSET)
|
107
|
+
timestamps: Union[Unset, EvaluationTimestamps]
|
108
|
+
if isinstance(_timestamps, Unset):
|
109
|
+
timestamps = UNSET
|
110
|
+
else:
|
111
|
+
timestamps = EvaluationTimestamps.from_dict(_timestamps)
|
112
|
+
|
113
|
+
evaluator_id = d.pop("evaluator_id", UNSET)
|
114
|
+
|
115
|
+
name = d.pop("name", UNSET)
|
116
|
+
|
117
|
+
details = d.pop("details", UNSET)
|
118
|
+
|
119
|
+
passed = d.pop("passed", UNSET)
|
120
|
+
|
121
|
+
def _parse_label(data: object) -> Union[None, Unset, str]:
|
122
|
+
if data is None:
|
123
|
+
return data
|
124
|
+
if isinstance(data, Unset):
|
125
|
+
return data
|
126
|
+
return cast(Union[None, Unset, str], data)
|
127
|
+
|
128
|
+
label = _parse_label(d.pop("label", UNSET))
|
129
|
+
|
130
|
+
type_ = d.pop("type", UNSET)
|
131
|
+
|
132
|
+
status = d.pop("status", UNSET)
|
133
|
+
|
134
|
+
evaluation = cls(
|
135
|
+
evaluation_id=evaluation_id,
|
136
|
+
score=score,
|
137
|
+
timestamps=timestamps,
|
138
|
+
evaluator_id=evaluator_id,
|
139
|
+
name=name,
|
140
|
+
details=details,
|
141
|
+
passed=passed,
|
142
|
+
label=label,
|
143
|
+
type_=type_,
|
144
|
+
status=status,
|
145
|
+
)
|
146
|
+
|
147
|
+
evaluation.additional_properties = d
|
148
|
+
return evaluation
|
149
|
+
|
150
|
+
@property
|
151
|
+
def additional_keys(self) -> list[str]:
|
152
|
+
return list(self.additional_properties.keys())
|
153
|
+
|
154
|
+
def __getitem__(self, key: str) -> Any:
|
155
|
+
return self.additional_properties[key]
|
156
|
+
|
157
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
158
|
+
self.additional_properties[key] = value
|
159
|
+
|
160
|
+
def __delitem__(self, key: str) -> None:
|
161
|
+
del self.additional_properties[key]
|
162
|
+
|
163
|
+
def __contains__(self, key: str) -> bool:
|
164
|
+
return key in self.additional_properties
|
scenario/_generated/langwatch_api_client/lang_watch_api_client/models/evaluation_timestamps.py
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import Any, TypeVar, Union
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
from ..types import UNSET, Unset
|
8
|
+
|
9
|
+
T = TypeVar("T", bound="EvaluationTimestamps")
|
10
|
+
|
11
|
+
|
12
|
+
@_attrs_define
|
13
|
+
class EvaluationTimestamps:
|
14
|
+
"""
|
15
|
+
Attributes:
|
16
|
+
finished_at (Union[Unset, int]):
|
17
|
+
updated_at (Union[Unset, int]):
|
18
|
+
"""
|
19
|
+
|
20
|
+
finished_at: Union[Unset, int] = UNSET
|
21
|
+
updated_at: Union[Unset, int] = UNSET
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
|
+
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
25
|
+
finished_at = self.finished_at
|
26
|
+
|
27
|
+
updated_at = self.updated_at
|
28
|
+
|
29
|
+
field_dict: dict[str, Any] = {}
|
30
|
+
field_dict.update(self.additional_properties)
|
31
|
+
field_dict.update({})
|
32
|
+
if finished_at is not UNSET:
|
33
|
+
field_dict["finished_at"] = finished_at
|
34
|
+
if updated_at is not UNSET:
|
35
|
+
field_dict["updated_at"] = updated_at
|
36
|
+
|
37
|
+
return field_dict
|
38
|
+
|
39
|
+
@classmethod
|
40
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
41
|
+
d = dict(src_dict)
|
42
|
+
finished_at = d.pop("finished_at", UNSET)
|
43
|
+
|
44
|
+
updated_at = d.pop("updated_at", UNSET)
|
45
|
+
|
46
|
+
evaluation_timestamps = cls(
|
47
|
+
finished_at=finished_at,
|
48
|
+
updated_at=updated_at,
|
49
|
+
)
|
50
|
+
|
51
|
+
evaluation_timestamps.additional_properties = d
|
52
|
+
return evaluation_timestamps
|
53
|
+
|
54
|
+
@property
|
55
|
+
def additional_keys(self) -> list[str]:
|
56
|
+
return list(self.additional_properties.keys())
|
57
|
+
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
59
|
+
return self.additional_properties[key]
|
60
|
+
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
62
|
+
self.additional_properties[key] = value
|
63
|
+
|
64
|
+
def __delitem__(self, key: str) -> None:
|
65
|
+
del self.additional_properties[key]
|
66
|
+
|
67
|
+
def __contains__(self, key: str) -> bool:
|
68
|
+
return key in self.additional_properties
|
@@ -0,0 +1,75 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from ..models.get_api_dataset_by_slug_or_id_response_200_data_item import GetApiDatasetBySlugOrIdResponse200DataItem
|
9
|
+
|
10
|
+
|
11
|
+
T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse200")
|
12
|
+
|
13
|
+
|
14
|
+
@_attrs_define
|
15
|
+
class GetApiDatasetBySlugOrIdResponse200:
|
16
|
+
"""
|
17
|
+
Attributes:
|
18
|
+
data (list['GetApiDatasetBySlugOrIdResponse200DataItem']):
|
19
|
+
"""
|
20
|
+
|
21
|
+
data: list["GetApiDatasetBySlugOrIdResponse200DataItem"]
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
|
+
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
25
|
+
data = []
|
26
|
+
for data_item_data in self.data:
|
27
|
+
data_item = data_item_data.to_dict()
|
28
|
+
data.append(data_item)
|
29
|
+
|
30
|
+
field_dict: dict[str, Any] = {}
|
31
|
+
field_dict.update(self.additional_properties)
|
32
|
+
field_dict.update(
|
33
|
+
{
|
34
|
+
"data": data,
|
35
|
+
}
|
36
|
+
)
|
37
|
+
|
38
|
+
return field_dict
|
39
|
+
|
40
|
+
@classmethod
|
41
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
42
|
+
from ..models.get_api_dataset_by_slug_or_id_response_200_data_item import (
|
43
|
+
GetApiDatasetBySlugOrIdResponse200DataItem,
|
44
|
+
)
|
45
|
+
|
46
|
+
d = dict(src_dict)
|
47
|
+
data = []
|
48
|
+
_data = d.pop("data")
|
49
|
+
for data_item_data in _data:
|
50
|
+
data_item = GetApiDatasetBySlugOrIdResponse200DataItem.from_dict(data_item_data)
|
51
|
+
|
52
|
+
data.append(data_item)
|
53
|
+
|
54
|
+
get_api_dataset_by_slug_or_id_response_200 = cls(
|
55
|
+
data=data,
|
56
|
+
)
|
57
|
+
|
58
|
+
get_api_dataset_by_slug_or_id_response_200.additional_properties = d
|
59
|
+
return get_api_dataset_by_slug_or_id_response_200
|
60
|
+
|
61
|
+
@property
|
62
|
+
def additional_keys(self) -> list[str]:
|
63
|
+
return list(self.additional_properties.keys())
|
64
|
+
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
66
|
+
return self.additional_properties[key]
|
67
|
+
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
69
|
+
self.additional_properties[key] = value
|
70
|
+
|
71
|
+
def __delitem__(self, key: str) -> None:
|
72
|
+
del self.additional_properties[key]
|
73
|
+
|
74
|
+
def __contains__(self, key: str) -> bool:
|
75
|
+
return key in self.additional_properties
|
@@ -0,0 +1,109 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from ..models.get_api_dataset_by_slug_or_id_response_200_data_item_entry import (
|
9
|
+
GetApiDatasetBySlugOrIdResponse200DataItemEntry,
|
10
|
+
)
|
11
|
+
|
12
|
+
|
13
|
+
T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse200DataItem")
|
14
|
+
|
15
|
+
|
16
|
+
@_attrs_define
|
17
|
+
class GetApiDatasetBySlugOrIdResponse200DataItem:
|
18
|
+
"""
|
19
|
+
Attributes:
|
20
|
+
id (str):
|
21
|
+
dataset_id (str):
|
22
|
+
project_id (str):
|
23
|
+
entry (GetApiDatasetBySlugOrIdResponse200DataItemEntry):
|
24
|
+
created_at (str):
|
25
|
+
updated_at (str):
|
26
|
+
"""
|
27
|
+
|
28
|
+
id: str
|
29
|
+
dataset_id: str
|
30
|
+
project_id: str
|
31
|
+
entry: "GetApiDatasetBySlugOrIdResponse200DataItemEntry"
|
32
|
+
created_at: str
|
33
|
+
updated_at: str
|
34
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
35
|
+
|
36
|
+
def to_dict(self) -> dict[str, Any]:
|
37
|
+
id = self.id
|
38
|
+
|
39
|
+
dataset_id = self.dataset_id
|
40
|
+
|
41
|
+
project_id = self.project_id
|
42
|
+
|
43
|
+
entry = self.entry.to_dict()
|
44
|
+
|
45
|
+
created_at = self.created_at
|
46
|
+
|
47
|
+
updated_at = self.updated_at
|
48
|
+
|
49
|
+
field_dict: dict[str, Any] = {}
|
50
|
+
field_dict.update(self.additional_properties)
|
51
|
+
field_dict.update(
|
52
|
+
{
|
53
|
+
"id": id,
|
54
|
+
"datasetId": dataset_id,
|
55
|
+
"projectId": project_id,
|
56
|
+
"entry": entry,
|
57
|
+
"createdAt": created_at,
|
58
|
+
"updatedAt": updated_at,
|
59
|
+
}
|
60
|
+
)
|
61
|
+
|
62
|
+
return field_dict
|
63
|
+
|
64
|
+
@classmethod
|
65
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
66
|
+
from ..models.get_api_dataset_by_slug_or_id_response_200_data_item_entry import (
|
67
|
+
GetApiDatasetBySlugOrIdResponse200DataItemEntry,
|
68
|
+
)
|
69
|
+
|
70
|
+
d = dict(src_dict)
|
71
|
+
id = d.pop("id")
|
72
|
+
|
73
|
+
dataset_id = d.pop("datasetId")
|
74
|
+
|
75
|
+
project_id = d.pop("projectId")
|
76
|
+
|
77
|
+
entry = GetApiDatasetBySlugOrIdResponse200DataItemEntry.from_dict(d.pop("entry"))
|
78
|
+
|
79
|
+
created_at = d.pop("createdAt")
|
80
|
+
|
81
|
+
updated_at = d.pop("updatedAt")
|
82
|
+
|
83
|
+
get_api_dataset_by_slug_or_id_response_200_data_item = cls(
|
84
|
+
id=id,
|
85
|
+
dataset_id=dataset_id,
|
86
|
+
project_id=project_id,
|
87
|
+
entry=entry,
|
88
|
+
created_at=created_at,
|
89
|
+
updated_at=updated_at,
|
90
|
+
)
|
91
|
+
|
92
|
+
get_api_dataset_by_slug_or_id_response_200_data_item.additional_properties = d
|
93
|
+
return get_api_dataset_by_slug_or_id_response_200_data_item
|
94
|
+
|
95
|
+
@property
|
96
|
+
def additional_keys(self) -> list[str]:
|
97
|
+
return list(self.additional_properties.keys())
|
98
|
+
|
99
|
+
def __getitem__(self, key: str) -> Any:
|
100
|
+
return self.additional_properties[key]
|
101
|
+
|
102
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
103
|
+
self.additional_properties[key] = value
|
104
|
+
|
105
|
+
def __delitem__(self, key: str) -> None:
|
106
|
+
del self.additional_properties[key]
|
107
|
+
|
108
|
+
def __contains__(self, key: str) -> bool:
|
109
|
+
return key in self.additional_properties
|
@@ -0,0 +1,44 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import Any, TypeVar
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse200DataItemEntry")
|
8
|
+
|
9
|
+
|
10
|
+
@_attrs_define
|
11
|
+
class GetApiDatasetBySlugOrIdResponse200DataItemEntry:
|
12
|
+
""" """
|
13
|
+
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
15
|
+
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
17
|
+
field_dict: dict[str, Any] = {}
|
18
|
+
field_dict.update(self.additional_properties)
|
19
|
+
|
20
|
+
return field_dict
|
21
|
+
|
22
|
+
@classmethod
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
24
|
+
d = dict(src_dict)
|
25
|
+
get_api_dataset_by_slug_or_id_response_200_data_item_entry = cls()
|
26
|
+
|
27
|
+
get_api_dataset_by_slug_or_id_response_200_data_item_entry.additional_properties = d
|
28
|
+
return get_api_dataset_by_slug_or_id_response_200_data_item_entry
|
29
|
+
|
30
|
+
@property
|
31
|
+
def additional_keys(self) -> list[str]:
|
32
|
+
return list(self.additional_properties.keys())
|
33
|
+
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
35
|
+
return self.additional_properties[key]
|
36
|
+
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
38
|
+
self.additional_properties[key] = value
|
39
|
+
|
40
|
+
def __delitem__(self, key: str) -> None:
|
41
|
+
del self.additional_properties[key]
|
42
|
+
|
43
|
+
def __contains__(self, key: str) -> bool:
|
44
|
+
return key in self.additional_properties
|
@@ -0,0 +1,78 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import Any, TypeVar, Union
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
from ..types import UNSET, Unset
|
8
|
+
|
9
|
+
T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse400")
|
10
|
+
|
11
|
+
|
12
|
+
@_attrs_define
|
13
|
+
class GetApiDatasetBySlugOrIdResponse400:
|
14
|
+
"""
|
15
|
+
Attributes:
|
16
|
+
status (str): Default: 'error'.
|
17
|
+
message (str):
|
18
|
+
error (Union[Unset, str]):
|
19
|
+
"""
|
20
|
+
|
21
|
+
message: str
|
22
|
+
status: str = "error"
|
23
|
+
error: Union[Unset, str] = UNSET
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
25
|
+
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
27
|
+
status = self.status
|
28
|
+
|
29
|
+
message = self.message
|
30
|
+
|
31
|
+
error = self.error
|
32
|
+
|
33
|
+
field_dict: dict[str, Any] = {}
|
34
|
+
field_dict.update(self.additional_properties)
|
35
|
+
field_dict.update(
|
36
|
+
{
|
37
|
+
"status": status,
|
38
|
+
"message": message,
|
39
|
+
}
|
40
|
+
)
|
41
|
+
if error is not UNSET:
|
42
|
+
field_dict["error"] = error
|
43
|
+
|
44
|
+
return field_dict
|
45
|
+
|
46
|
+
@classmethod
|
47
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
48
|
+
d = dict(src_dict)
|
49
|
+
status = d.pop("status")
|
50
|
+
|
51
|
+
message = d.pop("message")
|
52
|
+
|
53
|
+
error = d.pop("error", UNSET)
|
54
|
+
|
55
|
+
get_api_dataset_by_slug_or_id_response_400 = cls(
|
56
|
+
status=status,
|
57
|
+
message=message,
|
58
|
+
error=error,
|
59
|
+
)
|
60
|
+
|
61
|
+
get_api_dataset_by_slug_or_id_response_400.additional_properties = d
|
62
|
+
return get_api_dataset_by_slug_or_id_response_400
|
63
|
+
|
64
|
+
@property
|
65
|
+
def additional_keys(self) -> list[str]:
|
66
|
+
return list(self.additional_properties.keys())
|
67
|
+
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
69
|
+
return self.additional_properties[key]
|
70
|
+
|
71
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
72
|
+
self.additional_properties[key] = value
|
73
|
+
|
74
|
+
def __delitem__(self, key: str) -> None:
|
75
|
+
del self.additional_properties[key]
|
76
|
+
|
77
|
+
def __contains__(self, key: str) -> bool:
|
78
|
+
return key in self.additional_properties
|
@@ -0,0 +1,78 @@
|
|
1
|
+
from collections.abc import Mapping
|
2
|
+
from typing import Any, TypeVar, Union
|
3
|
+
|
4
|
+
from attrs import define as _attrs_define
|
5
|
+
from attrs import field as _attrs_field
|
6
|
+
|
7
|
+
from ..types import UNSET, Unset
|
8
|
+
|
9
|
+
T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse401")
|
10
|
+
|
11
|
+
|
12
|
+
@_attrs_define
|
13
|
+
class GetApiDatasetBySlugOrIdResponse401:
|
14
|
+
"""
|
15
|
+
Attributes:
|
16
|
+
status (str): Default: 'error'.
|
17
|
+
message (str):
|
18
|
+
error (Union[Unset, str]):
|
19
|
+
"""
|
20
|
+
|
21
|
+
message: str
|
22
|
+
status: str = "error"
|
23
|
+
error: Union[Unset, str] = UNSET
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
25
|
+
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
27
|
+
status = self.status
|
28
|
+
|
29
|
+
message = self.message
|
30
|
+
|
31
|
+
error = self.error
|
32
|
+
|
33
|
+
field_dict: dict[str, Any] = {}
|
34
|
+
field_dict.update(self.additional_properties)
|
35
|
+
field_dict.update(
|
36
|
+
{
|
37
|
+
"status": status,
|
38
|
+
"message": message,
|
39
|
+
}
|
40
|
+
)
|
41
|
+
if error is not UNSET:
|
42
|
+
field_dict["error"] = error
|
43
|
+
|
44
|
+
return field_dict
|
45
|
+
|
46
|
+
@classmethod
|
47
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
48
|
+
d = dict(src_dict)
|
49
|
+
status = d.pop("status")
|
50
|
+
|
51
|
+
message = d.pop("message")
|
52
|
+
|
53
|
+
error = d.pop("error", UNSET)
|
54
|
+
|
55
|
+
get_api_dataset_by_slug_or_id_response_401 = cls(
|
56
|
+
status=status,
|
57
|
+
message=message,
|
58
|
+
error=error,
|
59
|
+
)
|
60
|
+
|
61
|
+
get_api_dataset_by_slug_or_id_response_401.additional_properties = d
|
62
|
+
return get_api_dataset_by_slug_or_id_response_401
|
63
|
+
|
64
|
+
@property
|
65
|
+
def additional_keys(self) -> list[str]:
|
66
|
+
return list(self.additional_properties.keys())
|
67
|
+
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
69
|
+
return self.additional_properties[key]
|
70
|
+
|
71
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
72
|
+
self.additional_properties[key] = value
|
73
|
+
|
74
|
+
def __delitem__(self, key: str) -> None:
|
75
|
+
del self.additional_properties[key]
|
76
|
+
|
77
|
+
def __contains__(self, key: str) -> bool:
|
78
|
+
return key in self.additional_properties
|