vellum-ai 1.1.2__py3-none-any.whl → 1.1.4__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.
- vellum/__init__.py +18 -0
- vellum/client/README.md +77 -0
- vellum/client/__init__.py +149 -600
- vellum/client/core/__init__.py +2 -0
- vellum/client/core/api_error.py +13 -5
- vellum/client/core/client_wrapper.py +16 -4
- vellum/client/core/force_multipart.py +16 -0
- vellum/client/core/http_client.py +70 -24
- vellum/client/core/http_response.py +19 -11
- vellum/client/core/pydantic_utilities.py +71 -114
- vellum/client/core/serialization.py +6 -1
- vellum/client/errors/__init__.py +2 -0
- vellum/client/errors/bad_request_error.py +4 -3
- vellum/client/errors/forbidden_error.py +4 -3
- vellum/client/errors/internal_server_error.py +4 -3
- vellum/client/errors/not_found_error.py +4 -3
- vellum/client/raw_client.py +1041 -128
- vellum/client/reference.md +692 -19
- vellum/client/resources/__init__.py +2 -0
- vellum/client/resources/ad_hoc/__init__.py +2 -0
- vellum/client/resources/ad_hoc/client.py +37 -195
- vellum/client/resources/ad_hoc/raw_client.py +322 -31
- vellum/client/resources/container_images/__init__.py +2 -0
- vellum/client/resources/container_images/client.py +26 -49
- vellum/client/resources/container_images/raw_client.py +23 -24
- vellum/client/resources/deployments/__init__.py +2 -0
- vellum/client/resources/deployments/client.py +55 -102
- vellum/client/resources/deployments/raw_client.py +73 -66
- vellum/client/resources/deployments/types/__init__.py +2 -0
- vellum/client/resources/document_indexes/__init__.py +2 -0
- vellum/client/resources/document_indexes/client.py +43 -100
- vellum/client/resources/document_indexes/raw_client.py +42 -43
- vellum/client/resources/document_indexes/types/__init__.py +2 -0
- vellum/client/resources/documents/__init__.py +2 -0
- vellum/client/resources/documents/client.py +29 -52
- vellum/client/resources/documents/raw_client.py +51 -44
- vellum/client/resources/folder_entities/__init__.py +2 -0
- vellum/client/resources/folder_entities/client.py +16 -21
- vellum/client/resources/folder_entities/raw_client.py +15 -16
- vellum/client/resources/folder_entities/types/__init__.py +2 -0
- vellum/client/resources/metric_definitions/__init__.py +2 -0
- vellum/client/resources/metric_definitions/client.py +16 -27
- vellum/client/resources/metric_definitions/raw_client.py +17 -18
- vellum/client/resources/ml_models/__init__.py +2 -0
- vellum/client/resources/ml_models/client.py +7 -14
- vellum/client/resources/ml_models/raw_client.py +11 -12
- vellum/client/resources/organizations/__init__.py +2 -0
- vellum/client/resources/organizations/client.py +7 -12
- vellum/client/resources/organizations/raw_client.py +10 -11
- vellum/client/resources/prompts/__init__.py +2 -0
- vellum/client/resources/prompts/client.py +12 -19
- vellum/client/resources/prompts/raw_client.py +40 -33
- vellum/client/resources/sandboxes/__init__.py +2 -0
- vellum/client/resources/sandboxes/client.py +17 -34
- vellum/client/resources/sandboxes/raw_client.py +20 -21
- vellum/client/resources/test_suite_runs/__init__.py +2 -0
- vellum/client/resources/test_suite_runs/client.py +19 -34
- vellum/client/resources/test_suite_runs/raw_client.py +20 -21
- vellum/client/resources/test_suites/__init__.py +2 -0
- vellum/client/resources/test_suites/client.py +26 -100
- vellum/client/resources/test_suites/raw_client.py +172 -21
- vellum/client/resources/workflow_deployments/__init__.py +2 -0
- vellum/client/resources/workflow_deployments/client.py +61 -120
- vellum/client/resources/workflow_deployments/raw_client.py +48 -49
- vellum/client/resources/workflow_deployments/types/__init__.py +2 -0
- vellum/client/resources/workflow_executions/__init__.py +2 -0
- vellum/client/resources/workflow_executions/client.py +8 -13
- vellum/client/resources/workflow_executions/raw_client.py +11 -12
- vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
- vellum/client/resources/workflow_sandboxes/client.py +14 -23
- vellum/client/resources/workflow_sandboxes/raw_client.py +16 -17
- vellum/client/resources/workflow_sandboxes/types/__init__.py +2 -0
- vellum/client/resources/workflows/__init__.py +2 -0
- vellum/client/resources/workflows/client.py +16 -16
- vellum/client/resources/workflows/raw_client.py +75 -57
- vellum/client/resources/workspace_secrets/__init__.py +2 -0
- vellum/client/resources/workspace_secrets/client.py +11 -28
- vellum/client/resources/workspace_secrets/raw_client.py +15 -16
- vellum/client/resources/workspaces/__init__.py +2 -0
- vellum/client/resources/workspaces/client.py +7 -12
- vellum/client/resources/workspaces/raw_client.py +10 -11
- vellum/client/types/__init__.py +18 -0
- vellum/client/types/ad_hoc_execute_prompt_event.py +3 -2
- vellum/client/types/ad_hoc_expand_meta.py +2 -2
- vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/api_node_result.py +3 -3
- vellum/client/types/api_node_result_data.py +4 -4
- vellum/client/types/api_request_parent_context.py +11 -11
- vellum/client/types/array_chat_message_content.py +3 -3
- vellum/client/types/array_chat_message_content_item.py +7 -4
- vellum/client/types/array_chat_message_content_item_request.py +7 -4
- vellum/client/types/array_chat_message_content_request.py +3 -3
- vellum/client/types/array_input.py +12 -6
- vellum/client/types/array_vellum_value.py +4 -4
- vellum/client/types/array_vellum_value_request.py +4 -4
- vellum/client/types/audio_chat_message_content.py +3 -3
- vellum/client/types/audio_chat_message_content_request.py +3 -3
- vellum/client/types/audio_prompt_block.py +4 -4
- vellum/client/types/audio_vellum_value.py +3 -3
- vellum/client/types/audio_vellum_value_request.py +3 -3
- vellum/client/types/base_output.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -2
- vellum/client/types/chat_history_input.py +3 -3
- vellum/client/types/chat_history_input_request.py +3 -3
- vellum/client/types/chat_history_vellum_value.py +3 -3
- vellum/client/types/chat_history_vellum_value_request.py +3 -3
- vellum/client/types/chat_message.py +4 -4
- vellum/client/types/chat_message_content.py +7 -4
- vellum/client/types/chat_message_content_request.py +7 -4
- vellum/client/types/chat_message_prompt_block.py +7 -7
- vellum/client/types/chat_message_request.py +4 -4
- vellum/client/types/code_execution_node_array_result.py +11 -5
- vellum/client/types/code_execution_node_chat_history_result.py +3 -3
- vellum/client/types/code_execution_node_error_result.py +3 -3
- vellum/client/types/code_execution_node_function_call_result.py +3 -3
- vellum/client/types/code_execution_node_json_result.py +2 -2
- vellum/client/types/code_execution_node_number_result.py +2 -2
- vellum/client/types/code_execution_node_result.py +10 -4
- vellum/client/types/code_execution_node_result_data.py +10 -4
- vellum/client/types/code_execution_node_result_output.py +6 -5
- vellum/client/types/code_execution_node_search_results_result.py +3 -3
- vellum/client/types/code_execution_node_string_result.py +2 -2
- vellum/client/types/code_execution_package.py +2 -2
- vellum/client/types/code_executor_input.py +7 -6
- vellum/client/types/code_executor_response.py +11 -5
- vellum/client/types/code_executor_secret_input.py +3 -3
- vellum/client/types/code_resource_definition.py +3 -3
- vellum/client/types/compile_prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/compile_prompt_meta.py +2 -2
- vellum/client/types/conditional_node_result.py +3 -3
- vellum/client/types/conditional_node_result_data.py +2 -2
- vellum/client/types/container_image_build_config.py +3 -3
- vellum/client/types/container_image_container_image_tag.py +2 -2
- vellum/client/types/container_image_read.py +5 -5
- vellum/client/types/create_test_suite_test_case_request.py +9 -3
- vellum/client/types/deployment_history_item.py +10 -4
- vellum/client/types/deployment_provider_payload_response.py +4 -4
- vellum/client/types/deployment_read.py +10 -4
- vellum/client/types/deployment_release_tag_deployment_history_item.py +2 -2
- vellum/client/types/deployment_release_tag_read.py +4 -4
- vellum/client/types/docker_service_token.py +2 -2
- vellum/client/types/document_chat_message_content.py +3 -3
- vellum/client/types/document_chat_message_content_request.py +3 -3
- vellum/client/types/document_document_to_document_index.py +3 -3
- vellum/client/types/document_index_chunking.py +1 -0
- vellum/client/types/document_index_chunking_request.py +1 -0
- vellum/client/types/document_index_indexing_config.py +4 -4
- vellum/client/types/document_index_indexing_config_request.py +4 -4
- vellum/client/types/document_index_read.py +4 -4
- vellum/client/types/document_prompt_block.py +4 -4
- vellum/client/types/document_read.py +4 -4
- vellum/client/types/document_vellum_value.py +3 -3
- vellum/client/types/document_vellum_value_request.py +3 -3
- vellum/client/types/enriched_normalized_completion.py +3 -3
- vellum/client/types/ephemeral_prompt_cache_config.py +3 -3
- vellum/client/types/error_input.py +3 -3
- vellum/client/types/error_vellum_value.py +3 -3
- vellum/client/types/error_vellum_value_request.py +3 -3
- vellum/client/types/execute_api_request_bearer_token.py +1 -0
- vellum/client/types/execute_api_request_headers_value.py +1 -0
- vellum/client/types/execute_api_response.py +5 -5
- vellum/client/types/execute_prompt_event.py +3 -2
- vellum/client/types/execute_prompt_response.py +1 -0
- vellum/client/types/execute_workflow_response.py +10 -4
- vellum/client/types/execute_workflow_workflow_result_event.py +1 -0
- vellum/client/types/execution_array_vellum_value.py +12 -6
- vellum/client/types/execution_chat_history_vellum_value.py +3 -3
- vellum/client/types/execution_error_vellum_value.py +3 -3
- vellum/client/types/execution_function_call_vellum_value.py +3 -3
- vellum/client/types/execution_json_vellum_value.py +3 -3
- vellum/client/types/execution_number_vellum_value.py +3 -3
- vellum/client/types/execution_search_results_vellum_value.py +3 -3
- vellum/client/types/execution_string_vellum_value.py +3 -3
- vellum/client/types/execution_thinking_vellum_value.py +3 -3
- vellum/client/types/execution_vellum_value.py +6 -5
- vellum/client/types/external_input_descriptor.py +3 -3
- vellum/client/types/external_parent_context.py +11 -11
- vellum/client/types/external_test_case_execution.py +10 -4
- vellum/client/types/external_test_case_execution_request.py +10 -4
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15.py +2 -2
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15_request.py +2 -2
- vellum/client/types/folder_entity.py +4 -3
- vellum/client/types/folder_entity_dataset.py +3 -3
- vellum/client/types/folder_entity_dataset_data.py +3 -3
- vellum/client/types/folder_entity_document_index.py +3 -3
- vellum/client/types/folder_entity_document_index_data.py +4 -4
- vellum/client/types/folder_entity_folder.py +3 -3
- vellum/client/types/folder_entity_folder_data.py +2 -2
- vellum/client/types/folder_entity_prompt_sandbox.py +3 -3
- vellum/client/types/folder_entity_prompt_sandbox_data.py +3 -3
- vellum/client/types/folder_entity_test_suite.py +3 -3
- vellum/client/types/folder_entity_test_suite_data.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox_data.py +3 -3
- vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_response.py +3 -3
- vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +11 -5
- vellum/client/types/fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/fulfilled_workflow_node_result_event.py +12 -6
- vellum/client/types/function_call.py +2 -2
- vellum/client/types/function_call_chat_message_content.py +3 -3
- vellum/client/types/function_call_chat_message_content_request.py +3 -3
- vellum/client/types/function_call_chat_message_content_value.py +2 -2
- vellum/client/types/function_call_chat_message_content_value_request.py +2 -2
- vellum/client/types/function_call_input.py +3 -3
- vellum/client/types/function_call_prompt_block.py +4 -4
- vellum/client/types/function_call_request.py +2 -2
- vellum/client/types/function_call_vellum_value.py +3 -3
- vellum/client/types/function_call_vellum_value_request.py +3 -3
- vellum/client/types/function_definition.py +4 -4
- vellum/client/types/generate_options_request.py +3 -3
- vellum/client/types/generate_request.py +2 -2
- vellum/client/types/generate_response.py +3 -3
- vellum/client/types/generate_result.py +3 -3
- vellum/client/types/generate_result_data.py +3 -3
- vellum/client/types/generate_result_error.py +3 -3
- vellum/client/types/generate_stream_response.py +3 -3
- vellum/client/types/generate_stream_result.py +4 -4
- vellum/client/types/generate_stream_result_data.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_config.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_config_request.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +3 -3
- vellum/client/types/image_chat_message_content.py +3 -3
- vellum/client/types/image_chat_message_content_request.py +3 -3
- vellum/client/types/image_prompt_block.py +4 -4
- vellum/client/types/image_vellum_value.py +3 -3
- vellum/client/types/image_vellum_value_request.py +3 -3
- vellum/client/types/indexing_config_vectorizer.py +7 -6
- vellum/client/types/indexing_config_vectorizer_request.py +7 -6
- vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/initiated_workflow_node_result_event.py +12 -6
- vellum/client/types/instructor_vectorizer_config.py +2 -2
- vellum/client/types/instructor_vectorizer_config_request.py +2 -2
- vellum/client/types/invoked_port.py +2 -2
- vellum/client/types/jinja_prompt_block.py +4 -4
- vellum/client/types/json_input.py +3 -3
- vellum/client/types/json_input_request.py +3 -3
- vellum/client/types/json_vellum_value.py +2 -2
- vellum/client/types/json_vellum_value_request.py +2 -2
- vellum/client/types/map_node_result.py +3 -3
- vellum/client/types/map_node_result_data.py +3 -3
- vellum/client/types/merge_node_result.py +3 -3
- vellum/client/types/merge_node_result_data.py +2 -2
- vellum/client/types/metadata_filter_config_request.py +12 -6
- vellum/client/types/metadata_filter_rule_request.py +5 -5
- vellum/client/types/metadata_filters_request.py +1 -0
- vellum/client/types/metric_definition_execution.py +10 -4
- vellum/client/types/metric_definition_history_item.py +10 -4
- vellum/client/types/metric_definition_input.py +3 -2
- vellum/client/types/metric_node_result.py +2 -2
- vellum/client/types/ml_model_read.py +6 -3
- vellum/client/types/ml_model_usage.py +2 -2
- vellum/client/types/ml_model_usage_wrapper.py +3 -3
- vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_scenario_input_json_variable_value_request.py +2 -2
- vellum/client/types/named_scenario_input_request.py +3 -2
- vellum/client/types/named_scenario_input_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_array_variable_value.py +11 -5
- vellum/client/types/named_test_case_array_variable_value_request.py +11 -5
- vellum/client/types/named_test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/named_test_case_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_error_variable_value.py +3 -3
- vellum/client/types/named_test_case_error_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_json_variable_value.py +2 -2
- vellum/client/types/named_test_case_json_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_number_variable_value.py +2 -2
- vellum/client/types/named_test_case_number_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_search_results_variable_value.py +3 -3
- vellum/client/types/named_test_case_search_results_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_string_variable_value.py +2 -2
- vellum/client/types/named_test_case_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_variable_value.py +6 -5
- vellum/client/types/named_test_case_variable_value_request.py +6 -5
- vellum/client/types/node_execution_fulfilled_body.py +4 -4
- vellum/client/types/node_execution_fulfilled_event.py +22 -16
- vellum/client/types/node_execution_initiated_body.py +3 -3
- vellum/client/types/node_execution_initiated_event.py +22 -16
- vellum/client/types/node_execution_paused_body.py +3 -3
- vellum/client/types/node_execution_paused_event.py +22 -16
- vellum/client/types/node_execution_rejected_body.py +4 -4
- vellum/client/types/node_execution_rejected_event.py +22 -16
- vellum/client/types/node_execution_resumed_body.py +3 -3
- vellum/client/types/node_execution_resumed_event.py +22 -16
- vellum/client/types/node_execution_span.py +21 -13
- vellum/client/types/node_execution_span_attributes.py +2 -2
- vellum/client/types/node_execution_streaming_body.py +4 -4
- vellum/client/types/node_execution_streaming_event.py +22 -16
- vellum/client/types/node_input_compiled_array_value.py +11 -5
- vellum/client/types/node_input_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_input_compiled_error_value.py +3 -3
- vellum/client/types/node_input_compiled_function_call_value.py +3 -3
- vellum/client/types/node_input_compiled_json_value.py +2 -2
- vellum/client/types/node_input_compiled_number_value.py +2 -2
- vellum/client/types/node_input_compiled_search_results_value.py +3 -3
- vellum/client/types/node_input_compiled_secret_value.py +3 -3
- vellum/client/types/node_input_compiled_string_value.py +2 -2
- vellum/client/types/node_input_variable_compiled_value.py +6 -5
- vellum/client/types/node_output_compiled_array_value.py +12 -6
- vellum/client/types/node_output_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_output_compiled_error_value.py +3 -3
- vellum/client/types/node_output_compiled_function_call_value.py +3 -3
- vellum/client/types/node_output_compiled_json_value.py +3 -3
- vellum/client/types/node_output_compiled_number_value.py +3 -3
- vellum/client/types/node_output_compiled_search_results_value.py +3 -3
- vellum/client/types/node_output_compiled_string_value.py +3 -3
- vellum/client/types/node_output_compiled_thinking_value.py +3 -3
- vellum/client/types/node_output_compiled_value.py +6 -5
- vellum/client/types/node_parent_context.py +12 -12
- vellum/client/types/normalized_log_probs.py +3 -3
- vellum/client/types/normalized_token_log_probs.py +2 -2
- vellum/client/types/number_input.py +3 -3
- vellum/client/types/number_vellum_value.py +2 -2
- vellum/client/types/number_vellum_value_request.py +2 -2
- vellum/client/types/open_ai_vectorizer_config.py +3 -3
- vellum/client/types/open_ai_vectorizer_config_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +3 -3
- vellum/client/types/organization_read.py +4 -4
- vellum/client/types/paginated_container_image_read_list.py +3 -3
- vellum/client/types/paginated_deployment_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_document_index_read_list.py +3 -3
- vellum/client/types/paginated_folder_entity_list.py +3 -3
- vellum/client/types/paginated_slim_deployment_read_list.py +10 -4
- vellum/client/types/paginated_slim_document_list.py +3 -3
- vellum/client/types/paginated_slim_workflow_deployment_list.py +10 -4
- vellum/client/types/paginated_test_suite_run_execution_list.py +10 -4
- vellum/client/types/paginated_test_suite_test_case_list.py +10 -4
- vellum/client/types/paginated_workflow_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_workflow_sandbox_example_list.py +3 -3
- vellum/client/types/parent_context.py +5 -5
- vellum/client/types/pdf_search_result_meta_source.py +2 -2
- vellum/client/types/pdf_search_result_meta_source_request.py +2 -2
- vellum/client/types/plain_text_prompt_block.py +4 -4
- vellum/client/types/price.py +3 -3
- vellum/client/types/prompt_block.py +9 -6
- vellum/client/types/prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/prompt_deployment_input_request.py +3 -2
- vellum/client/types/prompt_deployment_parent_context.py +11 -11
- vellum/client/types/prompt_deployment_release.py +6 -6
- vellum/client/types/prompt_deployment_release_prompt_deployment.py +2 -2
- vellum/client/types/prompt_deployment_release_prompt_version.py +4 -4
- vellum/client/types/prompt_exec_config.py +15 -9
- vellum/client/types/prompt_execution_meta.py +3 -3
- vellum/client/types/prompt_node_execution_meta.py +3 -3
- vellum/client/types/prompt_node_result.py +3 -3
- vellum/client/types/prompt_node_result_data.py +3 -3
- vellum/client/types/prompt_output.py +3 -2
- vellum/client/types/prompt_parameters.py +2 -2
- vellum/client/types/prompt_push_response.py +2 -2
- vellum/client/types/prompt_request_chat_history_input.py +3 -3
- vellum/client/types/prompt_request_input.py +3 -2
- vellum/client/types/prompt_request_json_input.py +3 -3
- vellum/client/types/prompt_request_string_input.py +3 -3
- vellum/client/types/prompt_settings.py +2 -2
- vellum/client/types/prompt_version_build_config_sandbox.py +2 -2
- vellum/client/types/raw_prompt_execution_overrides_request.py +2 -2
- vellum/client/types/reducto_chunker_config.py +2 -2
- vellum/client/types/reducto_chunker_config_request.py +2 -2
- vellum/client/types/reducto_chunking.py +3 -3
- vellum/client/types/reducto_chunking_request.py +3 -3
- vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_response.py +3 -3
- vellum/client/types/rejected_execute_workflow_workflow_result_event.py +4 -4
- vellum/client/types/rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/rejected_workflow_node_result_event.py +12 -6
- vellum/client/types/release_created_by.py +2 -2
- vellum/client/types/release_environment.py +2 -2
- vellum/client/types/release_release_tag.py +3 -3
- vellum/client/types/release_review_reviewer.py +2 -2
- vellum/client/types/release_tag_release.py +2 -2
- vellum/client/types/replace_test_suite_test_case_request.py +9 -3
- vellum/client/types/rich_text_child_block.py +2 -1
- vellum/client/types/rich_text_prompt_block.py +4 -4
- vellum/client/types/sandbox_scenario.py +3 -3
- vellum/client/types/scenario_input.py +3 -2
- vellum/client/types/scenario_input_chat_history_variable_value.py +3 -3
- vellum/client/types/scenario_input_json_variable_value.py +2 -2
- vellum/client/types/scenario_input_string_variable_value.py +2 -2
- vellum/client/types/search_filters_request.py +11 -5
- vellum/client/types/search_node_result.py +3 -3
- vellum/client/types/search_node_result_data.py +3 -3
- vellum/client/types/search_request_options_request.py +13 -7
- vellum/client/types/search_response.py +3 -3
- vellum/client/types/search_result.py +3 -3
- vellum/client/types/search_result_document.py +2 -2
- vellum/client/types/search_result_document_request.py +2 -2
- vellum/client/types/search_result_merging_request.py +2 -2
- vellum/client/types/search_result_meta.py +3 -3
- vellum/client/types/search_result_meta_request.py +3 -3
- vellum/client/types/search_result_request.py +3 -3
- vellum/client/types/search_results_input.py +3 -3
- vellum/client/types/search_results_vellum_value.py +3 -3
- vellum/client/types/search_results_vellum_value_request.py +3 -3
- vellum/client/types/search_weights_request.py +2 -2
- vellum/client/types/sentence_chunker_config.py +2 -2
- vellum/client/types/sentence_chunker_config_request.py +2 -2
- vellum/client/types/sentence_chunking.py +3 -3
- vellum/client/types/sentence_chunking_request.py +3 -3
- vellum/client/types/slim_deployment_read.py +10 -4
- vellum/client/types/slim_document.py +5 -5
- vellum/client/types/slim_document_document_to_document_index.py +3 -3
- vellum/client/types/slim_release_review.py +4 -4
- vellum/client/types/slim_workflow_deployment.py +11 -5
- vellum/client/types/slim_workflow_execution_read.py +21 -15
- vellum/client/types/span_link.py +12 -12
- vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/streaming_execute_prompt_event.py +3 -3
- vellum/client/types/streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/streaming_workflow_node_result_event.py +12 -6
- vellum/client/types/string_chat_message_content.py +2 -2
- vellum/client/types/string_chat_message_content_request.py +2 -2
- vellum/client/types/string_input.py +3 -3
- vellum/client/types/string_input_request.py +3 -3
- vellum/client/types/string_vellum_value.py +2 -2
- vellum/client/types/string_vellum_value_request.py +2 -2
- vellum/client/types/submit_completion_actual_request.py +3 -3
- vellum/client/types/submit_workflow_execution_actual_request.py +3 -2
- vellum/client/types/subworkflow_node_result.py +3 -3
- vellum/client/types/subworkflow_node_result_data.py +2 -2
- vellum/client/types/templating_node_array_result.py +11 -5
- vellum/client/types/templating_node_chat_history_result.py +3 -3
- vellum/client/types/templating_node_error_result.py +3 -3
- vellum/client/types/templating_node_function_call_result.py +3 -3
- vellum/client/types/templating_node_json_result.py +2 -2
- vellum/client/types/templating_node_number_result.py +2 -2
- vellum/client/types/templating_node_result.py +10 -4
- vellum/client/types/templating_node_result_data.py +10 -4
- vellum/client/types/templating_node_result_output.py +6 -5
- vellum/client/types/templating_node_search_results_result.py +3 -3
- vellum/client/types/templating_node_string_result.py +2 -2
- vellum/client/types/terminal_node_array_result.py +11 -5
- vellum/client/types/terminal_node_chat_history_result.py +2 -2
- vellum/client/types/terminal_node_error_result.py +2 -2
- vellum/client/types/terminal_node_function_call_result.py +2 -2
- vellum/client/types/terminal_node_json_result.py +2 -2
- vellum/client/types/terminal_node_number_result.py +2 -2
- vellum/client/types/terminal_node_result.py +10 -4
- vellum/client/types/terminal_node_result_data.py +10 -4
- vellum/client/types/terminal_node_result_output.py +6 -5
- vellum/client/types/terminal_node_search_results_result.py +2 -2
- vellum/client/types/terminal_node_string_result.py +2 -2
- vellum/client/types/test_case_array_variable_value.py +11 -5
- vellum/client/types/test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/test_case_error_variable_value.py +3 -3
- vellum/client/types/test_case_function_call_variable_value.py +3 -3
- vellum/client/types/test_case_json_variable_value.py +2 -2
- vellum/client/types/test_case_number_variable_value.py +2 -2
- vellum/client/types/test_case_search_results_variable_value.py +3 -3
- vellum/client/types/test_case_string_variable_value.py +2 -2
- vellum/client/types/test_case_variable_value.py +6 -5
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_exec_config.py +2 -1
- vellum/client/types/test_suite_run_exec_config_request.py +2 -1
- vellum/client/types/test_suite_run_execution.py +11 -5
- vellum/client/types/test_suite_run_execution_array_output.py +11 -5
- vellum/client/types/test_suite_run_execution_chat_history_output.py +3 -3
- vellum/client/types/test_suite_run_execution_error_output.py +3 -3
- vellum/client/types/test_suite_run_execution_function_call_output.py +3 -3
- vellum/client/types/test_suite_run_execution_json_output.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_definition.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_result.py +11 -5
- vellum/client/types/test_suite_run_execution_number_output.py +2 -2
- vellum/client/types/test_suite_run_execution_output.py +6 -5
- vellum/client/types/test_suite_run_execution_search_results_output.py +3 -3
- vellum/client/types/test_suite_run_execution_string_output.py +2 -2
- vellum/client/types/test_suite_run_external_exec_config.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data_request.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_request.py +10 -4
- vellum/client/types/test_suite_run_metric_array_output.py +11 -5
- vellum/client/types/test_suite_run_metric_error_output.py +3 -3
- vellum/client/types/test_suite_run_metric_json_output.py +2 -2
- vellum/client/types/test_suite_run_metric_number_output.py +2 -2
- vellum/client/types/test_suite_run_metric_output.py +5 -4
- vellum/client/types/test_suite_run_metric_string_output.py +2 -2
- vellum/client/types/test_suite_run_progress.py +2 -2
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_read.py +12 -6
- vellum/client/types/test_suite_run_test_suite.py +2 -2
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_test_case.py +10 -4
- vellum/client/types/test_suite_test_case_bulk_operation_request.py +2 -1
- vellum/client/types/test_suite_test_case_bulk_result.py +2 -1
- vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_created_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_created_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_rejected_bulk_result.py +2 -2
- vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_replaced_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +10 -4
- vellum/client/types/thinking_vellum_value.py +3 -3
- vellum/client/types/thinking_vellum_value_request.py +3 -3
- vellum/client/types/token_overlapping_window_chunker_config.py +2 -2
- vellum/client/types/token_overlapping_window_chunker_config_request.py +2 -2
- vellum/client/types/token_overlapping_window_chunking.py +3 -3
- vellum/client/types/token_overlapping_window_chunking_request.py +3 -3
- vellum/client/types/upload_document_response.py +3 -3
- vellum/client/types/upsert_test_suite_test_case_request.py +9 -3
- vellum/client/types/variable_prompt_block.py +4 -4
- vellum/client/types/vellum_audio.py +3 -3
- vellum/client/types/vellum_audio_request.py +3 -3
- vellum/client/types/vellum_code_resource_definition.py +2 -2
- vellum/client/types/vellum_document.py +2 -2
- vellum/client/types/vellum_document_request.py +2 -2
- vellum/client/types/vellum_error.py +3 -3
- vellum/client/types/vellum_error_request.py +3 -3
- vellum/client/types/vellum_image.py +2 -2
- vellum/client/types/vellum_image_request.py +2 -2
- vellum/client/types/vellum_node_execution_event.py +4 -3
- vellum/client/types/vellum_sdk_error.py +3 -3
- vellum/client/types/vellum_secret.py +2 -2
- vellum/client/types/vellum_span.py +2 -1
- vellum/client/types/vellum_value.py +11 -8
- vellum/client/types/vellum_value_logical_condition_group_request.py +6 -6
- vellum/client/types/vellum_value_logical_condition_request.py +13 -7
- vellum/client/types/vellum_value_logical_expression_request.py +2 -1
- vellum/client/types/vellum_value_request.py +11 -8
- vellum/client/types/vellum_variable.py +13 -7
- vellum/client/types/vellum_variable_extensions.py +2 -2
- vellum/client/types/vellum_variable_type.py +2 -1
- vellum/client/types/vellum_video.py +24 -0
- vellum/client/types/vellum_video_request.py +24 -0
- vellum/client/types/vellum_workflow_execution_event.py +4 -3
- vellum/client/types/video_chat_message_content.py +25 -0
- vellum/client/types/video_chat_message_content_request.py +25 -0
- vellum/client/types/video_prompt_block.py +29 -0
- vellum/client/types/video_vellum_value.py +25 -0
- vellum/client/types/video_vellum_value_request.py +25 -0
- vellum/client/types/workflow_deployment_event_executions_response.py +18 -12
- vellum/client/types/workflow_deployment_history_item.py +10 -4
- vellum/client/types/workflow_deployment_parent_context.py +11 -11
- vellum/client/types/workflow_deployment_read.py +11 -5
- vellum/client/types/workflow_deployment_release.py +13 -7
- vellum/client/types/workflow_deployment_release_workflow_deployment.py +2 -2
- vellum/client/types/workflow_deployment_release_workflow_version.py +10 -4
- vellum/client/types/workflow_error.py +1 -0
- vellum/client/types/workflow_event_error.py +3 -3
- vellum/client/types/workflow_event_execution_read.py +22 -16
- vellum/client/types/workflow_execution_actual.py +10 -4
- vellum/client/types/workflow_execution_actual_chat_history_request.py +2 -2
- vellum/client/types/workflow_execution_actual_json_request.py +2 -2
- vellum/client/types/workflow_execution_actual_string_request.py +2 -2
- vellum/client/types/workflow_execution_detail.py +22 -16
- vellum/client/types/workflow_execution_fulfilled_body.py +3 -3
- vellum/client/types/workflow_execution_fulfilled_event.py +22 -16
- vellum/client/types/workflow_execution_initiated_body.py +3 -3
- vellum/client/types/workflow_execution_initiated_event.py +22 -16
- vellum/client/types/workflow_execution_node_result_event.py +10 -4
- vellum/client/types/workflow_execution_paused_body.py +4 -4
- vellum/client/types/workflow_execution_paused_event.py +22 -16
- vellum/client/types/workflow_execution_rejected_body.py +4 -4
- vellum/client/types/workflow_execution_rejected_event.py +22 -16
- vellum/client/types/workflow_execution_resumed_body.py +3 -3
- vellum/client/types/workflow_execution_resumed_event.py +22 -16
- vellum/client/types/workflow_execution_snapshotted_body.py +3 -3
- vellum/client/types/workflow_execution_snapshotted_event.py +22 -16
- vellum/client/types/workflow_execution_span.py +20 -12
- vellum/client/types/workflow_execution_span_attributes.py +2 -2
- vellum/client/types/workflow_execution_streaming_body.py +4 -4
- vellum/client/types/workflow_execution_streaming_event.py +22 -16
- vellum/client/types/workflow_execution_usage_calculation_error.py +3 -3
- vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +22 -0
- vellum/client/types/workflow_execution_usage_result.py +3 -3
- vellum/client/types/workflow_execution_view_online_eval_metric_result.py +10 -4
- vellum/client/types/workflow_execution_workflow_result_event.py +10 -4
- vellum/client/types/workflow_expand_meta_request.py +2 -2
- vellum/client/types/workflow_initialization_error.py +2 -2
- vellum/client/types/workflow_node_result_data.py +8 -7
- vellum/client/types/workflow_node_result_event.py +3 -2
- vellum/client/types/workflow_output.py +6 -5
- vellum/client/types/workflow_output_array.py +12 -6
- vellum/client/types/workflow_output_chat_history.py +3 -3
- vellum/client/types/workflow_output_error.py +3 -3
- vellum/client/types/workflow_output_function_call.py +3 -3
- vellum/client/types/workflow_output_image.py +3 -3
- vellum/client/types/workflow_output_json.py +3 -3
- vellum/client/types/workflow_output_number.py +3 -3
- vellum/client/types/workflow_output_search_results.py +3 -3
- vellum/client/types/workflow_output_string.py +3 -3
- vellum/client/types/workflow_parent_context.py +12 -12
- vellum/client/types/workflow_push_deployment_config_request.py +2 -2
- vellum/client/types/workflow_push_response.py +2 -2
- vellum/client/types/workflow_release_tag_read.py +4 -4
- vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +2 -2
- vellum/client/types/workflow_request_chat_history_input_request.py +3 -3
- vellum/client/types/workflow_request_input_request.py +3 -2
- vellum/client/types/workflow_request_json_input_request.py +3 -3
- vellum/client/types/workflow_request_number_input_request.py +3 -3
- vellum/client/types/workflow_request_string_input_request.py +3 -3
- vellum/client/types/workflow_result_event.py +13 -7
- vellum/client/types/workflow_result_event_output_data.py +7 -6
- vellum/client/types/workflow_result_event_output_data_array.py +12 -6
- vellum/client/types/workflow_result_event_output_data_chat_history.py +3 -3
- vellum/client/types/workflow_result_event_output_data_error.py +3 -3
- vellum/client/types/workflow_result_event_output_data_function_call.py +3 -3
- vellum/client/types/workflow_result_event_output_data_json.py +3 -3
- vellum/client/types/workflow_result_event_output_data_number.py +3 -3
- vellum/client/types/workflow_result_event_output_data_search_results.py +3 -3
- vellum/client/types/workflow_result_event_output_data_string.py +3 -3
- vellum/client/types/workflow_sandbox_example.py +2 -2
- vellum/client/types/workflow_sandbox_parent_context.py +11 -11
- vellum/client/types/workflow_stream_event.py +2 -1
- vellum/client/types/workspace_read.py +3 -3
- vellum/client/types/workspace_secret_read.py +3 -3
- vellum/core/force_multipart.py +3 -0
- vellum/prompts/blocks/compilation.py +22 -10
- vellum/types/vellum_video.py +3 -0
- vellum/types/vellum_video_request.py +3 -0
- vellum/types/video_chat_message_content.py +3 -0
- vellum/types/video_chat_message_content_request.py +3 -0
- vellum/types/video_prompt_block.py +3 -0
- vellum/types/video_vellum_value.py +3 -0
- vellum/types/video_vellum_value_request.py +3 -0
- vellum/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -0
- vellum/workflows/events/node.py +25 -10
- vellum/workflows/events/tests/test_event.py +19 -19
- vellum/workflows/events/workflow.py +11 -0
- vellum/workflows/graph/graph.py +103 -1
- vellum/workflows/graph/tests/test_graph.py +99 -0
- vellum/workflows/nodes/bases/base.py +9 -1
- vellum/workflows/nodes/displayable/bases/utils.py +4 -2
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +19 -18
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +17 -7
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_utils.py +7 -7
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +47 -80
- vellum/workflows/references/environment_variable.py +10 -0
- vellum/workflows/runner/runner.py +18 -2
- vellum/workflows/state/context.py +101 -12
- vellum/workflows/state/encoder.py +2 -4
- vellum/workflows/types/definition.py +11 -1
- vellum/workflows/types/tests/test_definition.py +19 -0
- vellum/workflows/utils/functions.py +1 -1
- vellum/workflows/utils/vellum_variables.py +9 -5
- vellum/workflows/workflows/base.py +12 -5
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/METADATA +2 -2
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/RECORD +693 -675
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_code_execution_node.py +55 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +164 -47
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_mcp_serialization.py +15 -49
- vellum_ee/workflows/display/types.py +14 -1
- vellum_ee/workflows/display/utils/expressions.py +13 -4
- vellum_ee/workflows/display/workflows/base_workflow_display.py +6 -19
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/LICENSE +0 -0
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/WHEEL +0 -0
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/entry_points.txt +0 -0
@@ -1,20 +1,19 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
from
|
5
|
-
|
6
|
-
from ...core.
|
7
|
-
from ...
|
4
|
+
from json.decoder import JSONDecodeError
|
5
|
+
|
6
|
+
from ...core.api_error import ApiError
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
8
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
9
10
|
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...core.serialization import convert_and_respect_annotation_metadata
|
10
13
|
from ...errors.bad_request_error import BadRequestError
|
11
14
|
from ...errors.not_found_error import NotFoundError
|
12
|
-
from
|
13
|
-
from ...core.api_error import ApiError
|
15
|
+
from ...types.prompt_exec_config import PromptExecConfig
|
14
16
|
from ...types.prompt_push_response import PromptPushResponse
|
15
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
16
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
17
|
-
from ...core.http_response import AsyncHttpResponse
|
18
17
|
|
19
18
|
# this is used as the default value for optional parameters
|
20
19
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -74,28 +73,30 @@ class RawPromptsClient:
|
|
74
73
|
return HttpResponse(response=_response, data=_data)
|
75
74
|
if _response.status_code == 400:
|
76
75
|
raise BadRequestError(
|
77
|
-
|
76
|
+
headers=dict(_response.headers),
|
77
|
+
body=typing.cast(
|
78
78
|
typing.Optional[typing.Any],
|
79
79
|
parse_obj_as(
|
80
80
|
type_=typing.Optional[typing.Any], # type: ignore
|
81
81
|
object_=_response.json(),
|
82
82
|
),
|
83
|
-
)
|
83
|
+
),
|
84
84
|
)
|
85
85
|
if _response.status_code == 404:
|
86
86
|
raise NotFoundError(
|
87
|
-
|
87
|
+
headers=dict(_response.headers),
|
88
|
+
body=typing.cast(
|
88
89
|
typing.Optional[typing.Any],
|
89
90
|
parse_obj_as(
|
90
91
|
type_=typing.Optional[typing.Any], # type: ignore
|
91
92
|
object_=_response.json(),
|
92
93
|
),
|
93
|
-
)
|
94
|
+
),
|
94
95
|
)
|
95
96
|
_response_json = _response.json()
|
96
97
|
except JSONDecodeError:
|
97
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
98
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
98
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
99
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
99
100
|
|
100
101
|
def push(
|
101
102
|
self,
|
@@ -159,28 +160,30 @@ class RawPromptsClient:
|
|
159
160
|
return HttpResponse(response=_response, data=_data)
|
160
161
|
if _response.status_code == 400:
|
161
162
|
raise BadRequestError(
|
162
|
-
|
163
|
+
headers=dict(_response.headers),
|
164
|
+
body=typing.cast(
|
163
165
|
typing.Optional[typing.Any],
|
164
166
|
parse_obj_as(
|
165
167
|
type_=typing.Optional[typing.Any], # type: ignore
|
166
168
|
object_=_response.json(),
|
167
169
|
),
|
168
|
-
)
|
170
|
+
),
|
169
171
|
)
|
170
172
|
if _response.status_code == 404:
|
171
173
|
raise NotFoundError(
|
172
|
-
|
174
|
+
headers=dict(_response.headers),
|
175
|
+
body=typing.cast(
|
173
176
|
typing.Optional[typing.Any],
|
174
177
|
parse_obj_as(
|
175
178
|
type_=typing.Optional[typing.Any], # type: ignore
|
176
179
|
object_=_response.json(),
|
177
180
|
),
|
178
|
-
)
|
181
|
+
),
|
179
182
|
)
|
180
183
|
_response_json = _response.json()
|
181
184
|
except JSONDecodeError:
|
182
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
183
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
185
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
186
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
184
187
|
|
185
188
|
|
186
189
|
class AsyncRawPromptsClient:
|
@@ -237,28 +240,30 @@ class AsyncRawPromptsClient:
|
|
237
240
|
return AsyncHttpResponse(response=_response, data=_data)
|
238
241
|
if _response.status_code == 400:
|
239
242
|
raise BadRequestError(
|
240
|
-
|
243
|
+
headers=dict(_response.headers),
|
244
|
+
body=typing.cast(
|
241
245
|
typing.Optional[typing.Any],
|
242
246
|
parse_obj_as(
|
243
247
|
type_=typing.Optional[typing.Any], # type: ignore
|
244
248
|
object_=_response.json(),
|
245
249
|
),
|
246
|
-
)
|
250
|
+
),
|
247
251
|
)
|
248
252
|
if _response.status_code == 404:
|
249
253
|
raise NotFoundError(
|
250
|
-
|
254
|
+
headers=dict(_response.headers),
|
255
|
+
body=typing.cast(
|
251
256
|
typing.Optional[typing.Any],
|
252
257
|
parse_obj_as(
|
253
258
|
type_=typing.Optional[typing.Any], # type: ignore
|
254
259
|
object_=_response.json(),
|
255
260
|
),
|
256
|
-
)
|
261
|
+
),
|
257
262
|
)
|
258
263
|
_response_json = _response.json()
|
259
264
|
except JSONDecodeError:
|
260
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
261
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
265
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
266
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
262
267
|
|
263
268
|
async def push(
|
264
269
|
self,
|
@@ -322,25 +327,27 @@ class AsyncRawPromptsClient:
|
|
322
327
|
return AsyncHttpResponse(response=_response, data=_data)
|
323
328
|
if _response.status_code == 400:
|
324
329
|
raise BadRequestError(
|
325
|
-
|
330
|
+
headers=dict(_response.headers),
|
331
|
+
body=typing.cast(
|
326
332
|
typing.Optional[typing.Any],
|
327
333
|
parse_obj_as(
|
328
334
|
type_=typing.Optional[typing.Any], # type: ignore
|
329
335
|
object_=_response.json(),
|
330
336
|
),
|
331
|
-
)
|
337
|
+
),
|
332
338
|
)
|
333
339
|
if _response.status_code == 404:
|
334
340
|
raise NotFoundError(
|
335
|
-
|
341
|
+
headers=dict(_response.headers),
|
342
|
+
body=typing.cast(
|
336
343
|
typing.Optional[typing.Any],
|
337
344
|
parse_obj_as(
|
338
345
|
type_=typing.Optional[typing.Any], # type: ignore
|
339
346
|
object_=_response.json(),
|
340
347
|
),
|
341
|
-
)
|
348
|
+
),
|
342
349
|
)
|
343
350
|
_response_json = _response.json()
|
344
351
|
except JSONDecodeError:
|
345
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
346
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
352
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
353
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,14 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
6
|
from ...core.request_options import RequestOptions
|
7
7
|
from ...types.deployment_read import DeploymentRead
|
8
8
|
from ...types.named_scenario_input_request import NamedScenarioInputRequest
|
9
9
|
from ...types.sandbox_scenario import SandboxScenario
|
10
|
-
from
|
11
|
-
from .raw_client import AsyncRawSandboxesClient
|
10
|
+
from .raw_client import AsyncRawSandboxesClient, RawSandboxesClient
|
12
11
|
|
13
12
|
# this is used as the default value for optional parameters
|
14
13
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -90,7 +89,7 @@ class SandboxesClient:
|
|
90
89
|
prompt_variant_id="prompt_variant_id",
|
91
90
|
)
|
92
91
|
"""
|
93
|
-
|
92
|
+
_response = self._raw_client.deploy_prompt(
|
94
93
|
id,
|
95
94
|
prompt_variant_id,
|
96
95
|
prompt_deployment_id=prompt_deployment_id,
|
@@ -100,7 +99,7 @@ class SandboxesClient:
|
|
100
99
|
release_description=release_description,
|
101
100
|
request_options=request_options,
|
102
101
|
)
|
103
|
-
return
|
102
|
+
return _response.data
|
104
103
|
|
105
104
|
def upsert_sandbox_scenario(
|
106
105
|
self,
|
@@ -161,14 +160,10 @@ class SandboxesClient:
|
|
161
160
|
],
|
162
161
|
)
|
163
162
|
"""
|
164
|
-
|
165
|
-
id,
|
166
|
-
inputs=inputs,
|
167
|
-
label=label,
|
168
|
-
scenario_id=scenario_id,
|
169
|
-
request_options=request_options,
|
163
|
+
_response = self._raw_client.upsert_sandbox_scenario(
|
164
|
+
id, inputs=inputs, label=label, scenario_id=scenario_id, request_options=request_options
|
170
165
|
)
|
171
|
-
return
|
166
|
+
return _response.data
|
172
167
|
|
173
168
|
def delete_sandbox_scenario(
|
174
169
|
self, id: str, scenario_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -204,12 +199,8 @@ class SandboxesClient:
|
|
204
199
|
scenario_id="scenario_id",
|
205
200
|
)
|
206
201
|
"""
|
207
|
-
|
208
|
-
|
209
|
-
scenario_id,
|
210
|
-
request_options=request_options,
|
211
|
-
)
|
212
|
-
return response.data
|
202
|
+
_response = self._raw_client.delete_sandbox_scenario(id, scenario_id, request_options=request_options)
|
203
|
+
return _response.data
|
213
204
|
|
214
205
|
|
215
206
|
class AsyncSandboxesClient:
|
@@ -292,7 +283,7 @@ class AsyncSandboxesClient:
|
|
292
283
|
|
293
284
|
asyncio.run(main())
|
294
285
|
"""
|
295
|
-
|
286
|
+
_response = await self._raw_client.deploy_prompt(
|
296
287
|
id,
|
297
288
|
prompt_variant_id,
|
298
289
|
prompt_deployment_id=prompt_deployment_id,
|
@@ -302,7 +293,7 @@ class AsyncSandboxesClient:
|
|
302
293
|
release_description=release_description,
|
303
294
|
request_options=request_options,
|
304
295
|
)
|
305
|
-
return
|
296
|
+
return _response.data
|
306
297
|
|
307
298
|
async def upsert_sandbox_scenario(
|
308
299
|
self,
|
@@ -371,14 +362,10 @@ class AsyncSandboxesClient:
|
|
371
362
|
|
372
363
|
asyncio.run(main())
|
373
364
|
"""
|
374
|
-
|
375
|
-
id,
|
376
|
-
inputs=inputs,
|
377
|
-
label=label,
|
378
|
-
scenario_id=scenario_id,
|
379
|
-
request_options=request_options,
|
365
|
+
_response = await self._raw_client.upsert_sandbox_scenario(
|
366
|
+
id, inputs=inputs, label=label, scenario_id=scenario_id, request_options=request_options
|
380
367
|
)
|
381
|
-
return
|
368
|
+
return _response.data
|
382
369
|
|
383
370
|
async def delete_sandbox_scenario(
|
384
371
|
self, id: str, scenario_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -422,9 +409,5 @@ class AsyncSandboxesClient:
|
|
422
409
|
|
423
410
|
asyncio.run(main())
|
424
411
|
"""
|
425
|
-
|
426
|
-
|
427
|
-
scenario_id,
|
428
|
-
request_options=request_options,
|
429
|
-
)
|
430
|
-
return response.data
|
412
|
+
_response = await self._raw_client.delete_sandbox_scenario(id, scenario_id, request_options=request_options)
|
413
|
+
return _response.data
|
@@ -1,19 +1,18 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...types.deployment_read import DeploymentRead
|
8
|
-
from ...core.jsonable_encoder import jsonable_encoder
|
9
|
-
from ...core.pydantic_utilities import parse_obj_as
|
10
4
|
from json.decoder import JSONDecodeError
|
5
|
+
|
11
6
|
from ...core.api_error import ApiError
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
9
|
+
from ...core.jsonable_encoder import jsonable_encoder
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...core.serialization import convert_and_respect_annotation_metadata
|
13
|
+
from ...types.deployment_read import DeploymentRead
|
12
14
|
from ...types.named_scenario_input_request import NamedScenarioInputRequest
|
13
15
|
from ...types.sandbox_scenario import SandboxScenario
|
14
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
15
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
16
|
-
from ...core.http_response import AsyncHttpResponse
|
17
16
|
|
18
17
|
# this is used as the default value for optional parameters
|
19
18
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -96,8 +95,8 @@ class RawSandboxesClient:
|
|
96
95
|
return HttpResponse(response=_response, data=_data)
|
97
96
|
_response_json = _response.json()
|
98
97
|
except JSONDecodeError:
|
99
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
100
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
98
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
99
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
101
100
|
|
102
101
|
def upsert_sandbox_scenario(
|
103
102
|
self,
|
@@ -167,8 +166,8 @@ class RawSandboxesClient:
|
|
167
166
|
return HttpResponse(response=_response, data=_data)
|
168
167
|
_response_json = _response.json()
|
169
168
|
except JSONDecodeError:
|
170
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
171
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
169
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
170
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
172
171
|
|
173
172
|
def delete_sandbox_scenario(
|
174
173
|
self, id: str, scenario_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -202,8 +201,8 @@ class RawSandboxesClient:
|
|
202
201
|
return HttpResponse(response=_response, data=None)
|
203
202
|
_response_json = _response.json()
|
204
203
|
except JSONDecodeError:
|
205
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
206
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
204
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
205
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
207
206
|
|
208
207
|
|
209
208
|
class AsyncRawSandboxesClient:
|
@@ -283,8 +282,8 @@ class AsyncRawSandboxesClient:
|
|
283
282
|
return AsyncHttpResponse(response=_response, data=_data)
|
284
283
|
_response_json = _response.json()
|
285
284
|
except JSONDecodeError:
|
286
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
287
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
285
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
286
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
288
287
|
|
289
288
|
async def upsert_sandbox_scenario(
|
290
289
|
self,
|
@@ -354,8 +353,8 @@ class AsyncRawSandboxesClient:
|
|
354
353
|
return AsyncHttpResponse(response=_response, data=_data)
|
355
354
|
_response_json = _response.json()
|
356
355
|
except JSONDecodeError:
|
357
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
358
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
356
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
357
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
359
358
|
|
360
359
|
async def delete_sandbox_scenario(
|
361
360
|
self, id: str, scenario_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -389,5 +388,5 @@ class AsyncRawSandboxesClient:
|
|
389
388
|
return AsyncHttpResponse(response=_response, data=None)
|
390
389
|
_response_json = _response.json()
|
391
390
|
except JSONDecodeError:
|
392
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
393
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
391
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
392
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,14 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
6
|
-
from ...types.test_suite_run_exec_config_request import TestSuiteRunExecConfigRequest
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
7
6
|
from ...core.request_options import RequestOptions
|
8
|
-
from ...types.test_suite_run_read import TestSuiteRunRead
|
9
7
|
from ...types.paginated_test_suite_run_execution_list import PaginatedTestSuiteRunExecutionList
|
10
|
-
from ...
|
11
|
-
from .
|
8
|
+
from ...types.test_suite_run_exec_config_request import TestSuiteRunExecConfigRequest
|
9
|
+
from ...types.test_suite_run_read import TestSuiteRunRead
|
10
|
+
from .raw_client import AsyncRawTestSuiteRunsClient, RawTestSuiteRunsClient
|
12
11
|
|
13
12
|
# this is used as the default value for optional parameters
|
14
13
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -83,13 +82,13 @@ class TestSuiteRunsClient:
|
|
83
82
|
),
|
84
83
|
)
|
85
84
|
"""
|
86
|
-
|
85
|
+
_response = self._raw_client.create(
|
87
86
|
exec_config=exec_config,
|
88
87
|
test_suite_id=test_suite_id,
|
89
88
|
test_suite_name=test_suite_name,
|
90
89
|
request_options=request_options,
|
91
90
|
)
|
92
|
-
return
|
91
|
+
return _response.data
|
93
92
|
|
94
93
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> TestSuiteRunRead:
|
95
94
|
"""
|
@@ -120,11 +119,8 @@ class TestSuiteRunsClient:
|
|
120
119
|
id="id",
|
121
120
|
)
|
122
121
|
"""
|
123
|
-
|
124
|
-
|
125
|
-
request_options=request_options,
|
126
|
-
)
|
127
|
-
return response.data
|
122
|
+
_response = self._raw_client.retrieve(id, request_options=request_options)
|
123
|
+
return _response.data
|
128
124
|
|
129
125
|
def list_executions(
|
130
126
|
self,
|
@@ -173,14 +169,10 @@ class TestSuiteRunsClient:
|
|
173
169
|
id="id",
|
174
170
|
)
|
175
171
|
"""
|
176
|
-
|
177
|
-
id,
|
178
|
-
expand=expand,
|
179
|
-
limit=limit,
|
180
|
-
offset=offset,
|
181
|
-
request_options=request_options,
|
172
|
+
_response = self._raw_client.list_executions(
|
173
|
+
id, expand=expand, limit=limit, offset=offset, request_options=request_options
|
182
174
|
)
|
183
|
-
return
|
175
|
+
return _response.data
|
184
176
|
|
185
177
|
|
186
178
|
class AsyncTestSuiteRunsClient:
|
@@ -256,13 +248,13 @@ class AsyncTestSuiteRunsClient:
|
|
256
248
|
|
257
249
|
asyncio.run(main())
|
258
250
|
"""
|
259
|
-
|
251
|
+
_response = await self._raw_client.create(
|
260
252
|
exec_config=exec_config,
|
261
253
|
test_suite_id=test_suite_id,
|
262
254
|
test_suite_name=test_suite_name,
|
263
255
|
request_options=request_options,
|
264
256
|
)
|
265
|
-
return
|
257
|
+
return _response.data
|
266
258
|
|
267
259
|
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> TestSuiteRunRead:
|
268
260
|
"""
|
@@ -301,11 +293,8 @@ class AsyncTestSuiteRunsClient:
|
|
301
293
|
|
302
294
|
asyncio.run(main())
|
303
295
|
"""
|
304
|
-
|
305
|
-
|
306
|
-
request_options=request_options,
|
307
|
-
)
|
308
|
-
return response.data
|
296
|
+
_response = await self._raw_client.retrieve(id, request_options=request_options)
|
297
|
+
return _response.data
|
309
298
|
|
310
299
|
async def list_executions(
|
311
300
|
self,
|
@@ -362,11 +351,7 @@ class AsyncTestSuiteRunsClient:
|
|
362
351
|
|
363
352
|
asyncio.run(main())
|
364
353
|
"""
|
365
|
-
|
366
|
-
id,
|
367
|
-
expand=expand,
|
368
|
-
limit=limit,
|
369
|
-
offset=offset,
|
370
|
-
request_options=request_options,
|
354
|
+
_response = await self._raw_client.list_executions(
|
355
|
+
id, expand=expand, limit=limit, offset=offset, request_options=request_options
|
371
356
|
)
|
372
|
-
return
|
357
|
+
return _response.data
|
@@ -1,19 +1,18 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from ...types.test_suite_run_exec_config_request import TestSuiteRunExecConfigRequest
|
6
|
-
from ...core.request_options import RequestOptions
|
7
|
-
from ...core.http_response import HttpResponse
|
8
|
-
from ...types.test_suite_run_read import TestSuiteRunRead
|
9
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
10
|
-
from ...core.pydantic_utilities import parse_obj_as
|
11
4
|
from json.decoder import JSONDecodeError
|
5
|
+
|
12
6
|
from ...core.api_error import ApiError
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
13
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...core.serialization import convert_and_respect_annotation_metadata
|
14
13
|
from ...types.paginated_test_suite_run_execution_list import PaginatedTestSuiteRunExecutionList
|
15
|
-
from ...
|
16
|
-
from ...
|
14
|
+
from ...types.test_suite_run_exec_config_request import TestSuiteRunExecConfigRequest
|
15
|
+
from ...types.test_suite_run_read import TestSuiteRunRead
|
17
16
|
|
18
17
|
# this is used as the default value for optional parameters
|
19
18
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -82,8 +81,8 @@ class RawTestSuiteRunsClient:
|
|
82
81
|
return HttpResponse(response=_response, data=_data)
|
83
82
|
_response_json = _response.json()
|
84
83
|
except JSONDecodeError:
|
85
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
86
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
84
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
85
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
87
86
|
|
88
87
|
def retrieve(
|
89
88
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -122,8 +121,8 @@ class RawTestSuiteRunsClient:
|
|
122
121
|
return HttpResponse(response=_response, data=_data)
|
123
122
|
_response_json = _response.json()
|
124
123
|
except JSONDecodeError:
|
125
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
126
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
124
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
125
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
127
126
|
|
128
127
|
def list_executions(
|
129
128
|
self,
|
@@ -183,8 +182,8 @@ class RawTestSuiteRunsClient:
|
|
183
182
|
return HttpResponse(response=_response, data=_data)
|
184
183
|
_response_json = _response.json()
|
185
184
|
except JSONDecodeError:
|
186
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
187
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
185
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
186
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
188
187
|
|
189
188
|
|
190
189
|
class AsyncRawTestSuiteRunsClient:
|
@@ -250,8 +249,8 @@ class AsyncRawTestSuiteRunsClient:
|
|
250
249
|
return AsyncHttpResponse(response=_response, data=_data)
|
251
250
|
_response_json = _response.json()
|
252
251
|
except JSONDecodeError:
|
253
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
254
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
252
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
253
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
255
254
|
|
256
255
|
async def retrieve(
|
257
256
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -290,8 +289,8 @@ class AsyncRawTestSuiteRunsClient:
|
|
290
289
|
return AsyncHttpResponse(response=_response, data=_data)
|
291
290
|
_response_json = _response.json()
|
292
291
|
except JSONDecodeError:
|
293
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
294
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
292
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
293
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
295
294
|
|
296
295
|
async def list_executions(
|
297
296
|
self,
|
@@ -351,5 +350,5 @@ class AsyncRawTestSuiteRunsClient:
|
|
351
350
|
return AsyncHttpResponse(response=_response, data=_data)
|
352
351
|
_response_json = _response.json()
|
353
352
|
except JSONDecodeError:
|
354
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
355
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
353
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
354
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|