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,31 +1,30 @@
|
|
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.deployments_list_request_status import DeploymentsListRequestStatus
|
6
|
-
from ...core.request_options import RequestOptions
|
7
|
-
from ...core.http_response import HttpResponse
|
8
|
-
from ...types.paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
|
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
|
12
|
-
from ...
|
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
|
14
|
-
from ...
|
15
|
-
from .
|
16
|
-
from ...types.paginated_deployment_release_tag_read_list import PaginatedDeploymentReleaseTagReadList
|
17
|
-
from ...types.deployment_release_tag_read import DeploymentReleaseTagRead
|
18
|
-
from ...types.prompt_deployment_release import PromptDeploymentRelease
|
19
|
-
from ...types.prompt_deployment_input_request import PromptDeploymentInputRequest
|
20
|
-
from ...types.compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
21
|
-
from ...types.deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
22
12
|
from ...core.serialization import convert_and_respect_annotation_metadata
|
23
13
|
from ...errors.bad_request_error import BadRequestError
|
24
14
|
from ...errors.forbidden_error import ForbiddenError
|
25
|
-
from ...errors.not_found_error import NotFoundError
|
26
15
|
from ...errors.internal_server_error import InternalServerError
|
27
|
-
from ...
|
28
|
-
from ...
|
16
|
+
from ...errors.not_found_error import NotFoundError
|
17
|
+
from ...types.compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
18
|
+
from ...types.deployment_history_item import DeploymentHistoryItem
|
19
|
+
from ...types.deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
20
|
+
from ...types.deployment_read import DeploymentRead
|
21
|
+
from ...types.deployment_release_tag_read import DeploymentReleaseTagRead
|
22
|
+
from ...types.paginated_deployment_release_tag_read_list import PaginatedDeploymentReleaseTagReadList
|
23
|
+
from ...types.paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
|
24
|
+
from ...types.prompt_deployment_input_request import PromptDeploymentInputRequest
|
25
|
+
from ...types.prompt_deployment_release import PromptDeploymentRelease
|
26
|
+
from .types.deployments_list_request_status import DeploymentsListRequestStatus
|
27
|
+
from .types.list_deployment_release_tags_request_source import ListDeploymentReleaseTagsRequestSource
|
29
28
|
|
30
29
|
# this is used as the default value for optional parameters
|
31
30
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -93,8 +92,8 @@ class RawDeploymentsClient:
|
|
93
92
|
return HttpResponse(response=_response, data=_data)
|
94
93
|
_response_json = _response.json()
|
95
94
|
except JSONDecodeError:
|
96
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
97
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
95
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
96
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
98
97
|
|
99
98
|
def retrieve(
|
100
99
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -133,8 +132,8 @@ class RawDeploymentsClient:
|
|
133
132
|
return HttpResponse(response=_response, data=_data)
|
134
133
|
_response_json = _response.json()
|
135
134
|
except JSONDecodeError:
|
136
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
137
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
135
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
136
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
138
137
|
|
139
138
|
def deployment_history_item_retrieve(
|
140
139
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -177,8 +176,8 @@ class RawDeploymentsClient:
|
|
177
176
|
return HttpResponse(response=_response, data=_data)
|
178
177
|
_response_json = _response.json()
|
179
178
|
except JSONDecodeError:
|
180
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
181
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
179
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
180
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
182
181
|
|
183
182
|
def list_deployment_release_tags(
|
184
183
|
self,
|
@@ -241,8 +240,8 @@ class RawDeploymentsClient:
|
|
241
240
|
return HttpResponse(response=_response, data=_data)
|
242
241
|
_response_json = _response.json()
|
243
242
|
except JSONDecodeError:
|
244
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
245
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
243
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
244
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
246
245
|
|
247
246
|
def retrieve_deployment_release_tag(
|
248
247
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -284,8 +283,8 @@ class RawDeploymentsClient:
|
|
284
283
|
return HttpResponse(response=_response, data=_data)
|
285
284
|
_response_json = _response.json()
|
286
285
|
except JSONDecodeError:
|
287
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
288
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
286
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
287
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
289
288
|
|
290
289
|
def update_deployment_release_tag(
|
291
290
|
self,
|
@@ -342,8 +341,8 @@ class RawDeploymentsClient:
|
|
342
341
|
return HttpResponse(response=_response, data=_data)
|
343
342
|
_response_json = _response.json()
|
344
343
|
except JSONDecodeError:
|
345
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
346
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
344
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
345
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
347
346
|
|
348
347
|
def retrieve_prompt_deployment_release(
|
349
348
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -385,8 +384,8 @@ class RawDeploymentsClient:
|
|
385
384
|
return HttpResponse(response=_response, data=_data)
|
386
385
|
_response_json = _response.json()
|
387
386
|
except JSONDecodeError:
|
388
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
389
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
387
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
388
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
390
389
|
|
391
390
|
def retrieve_provider_payload(
|
392
391
|
self,
|
@@ -469,48 +468,52 @@ class RawDeploymentsClient:
|
|
469
468
|
return HttpResponse(response=_response, data=_data)
|
470
469
|
if _response.status_code == 400:
|
471
470
|
raise BadRequestError(
|
472
|
-
|
471
|
+
headers=dict(_response.headers),
|
472
|
+
body=typing.cast(
|
473
473
|
typing.Optional[typing.Any],
|
474
474
|
parse_obj_as(
|
475
475
|
type_=typing.Optional[typing.Any], # type: ignore
|
476
476
|
object_=_response.json(),
|
477
477
|
),
|
478
|
-
)
|
478
|
+
),
|
479
479
|
)
|
480
480
|
if _response.status_code == 403:
|
481
481
|
raise ForbiddenError(
|
482
|
-
|
482
|
+
headers=dict(_response.headers),
|
483
|
+
body=typing.cast(
|
483
484
|
typing.Optional[typing.Any],
|
484
485
|
parse_obj_as(
|
485
486
|
type_=typing.Optional[typing.Any], # type: ignore
|
486
487
|
object_=_response.json(),
|
487
488
|
),
|
488
|
-
)
|
489
|
+
),
|
489
490
|
)
|
490
491
|
if _response.status_code == 404:
|
491
492
|
raise NotFoundError(
|
492
|
-
|
493
|
+
headers=dict(_response.headers),
|
494
|
+
body=typing.cast(
|
493
495
|
typing.Optional[typing.Any],
|
494
496
|
parse_obj_as(
|
495
497
|
type_=typing.Optional[typing.Any], # type: ignore
|
496
498
|
object_=_response.json(),
|
497
499
|
),
|
498
|
-
)
|
500
|
+
),
|
499
501
|
)
|
500
502
|
if _response.status_code == 500:
|
501
503
|
raise InternalServerError(
|
502
|
-
|
504
|
+
headers=dict(_response.headers),
|
505
|
+
body=typing.cast(
|
503
506
|
typing.Optional[typing.Any],
|
504
507
|
parse_obj_as(
|
505
508
|
type_=typing.Optional[typing.Any], # type: ignore
|
506
509
|
object_=_response.json(),
|
507
510
|
),
|
508
|
-
)
|
511
|
+
),
|
509
512
|
)
|
510
513
|
_response_json = _response.json()
|
511
514
|
except JSONDecodeError:
|
512
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
513
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
515
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
516
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
514
517
|
|
515
518
|
|
516
519
|
class AsyncRawDeploymentsClient:
|
@@ -575,8 +578,8 @@ class AsyncRawDeploymentsClient:
|
|
575
578
|
return AsyncHttpResponse(response=_response, data=_data)
|
576
579
|
_response_json = _response.json()
|
577
580
|
except JSONDecodeError:
|
578
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
579
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
581
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
582
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
580
583
|
|
581
584
|
async def retrieve(
|
582
585
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -615,8 +618,8 @@ class AsyncRawDeploymentsClient:
|
|
615
618
|
return AsyncHttpResponse(response=_response, data=_data)
|
616
619
|
_response_json = _response.json()
|
617
620
|
except JSONDecodeError:
|
618
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
619
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
621
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
622
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
620
623
|
|
621
624
|
async def deployment_history_item_retrieve(
|
622
625
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -659,8 +662,8 @@ class AsyncRawDeploymentsClient:
|
|
659
662
|
return AsyncHttpResponse(response=_response, data=_data)
|
660
663
|
_response_json = _response.json()
|
661
664
|
except JSONDecodeError:
|
662
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
663
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
665
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
666
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
664
667
|
|
665
668
|
async def list_deployment_release_tags(
|
666
669
|
self,
|
@@ -723,8 +726,8 @@ class AsyncRawDeploymentsClient:
|
|
723
726
|
return AsyncHttpResponse(response=_response, data=_data)
|
724
727
|
_response_json = _response.json()
|
725
728
|
except JSONDecodeError:
|
726
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
727
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
729
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
730
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
728
731
|
|
729
732
|
async def retrieve_deployment_release_tag(
|
730
733
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -766,8 +769,8 @@ class AsyncRawDeploymentsClient:
|
|
766
769
|
return AsyncHttpResponse(response=_response, data=_data)
|
767
770
|
_response_json = _response.json()
|
768
771
|
except JSONDecodeError:
|
769
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
770
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
772
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
773
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
771
774
|
|
772
775
|
async def update_deployment_release_tag(
|
773
776
|
self,
|
@@ -824,8 +827,8 @@ class AsyncRawDeploymentsClient:
|
|
824
827
|
return AsyncHttpResponse(response=_response, data=_data)
|
825
828
|
_response_json = _response.json()
|
826
829
|
except JSONDecodeError:
|
827
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
828
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
830
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
831
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
829
832
|
|
830
833
|
async def retrieve_prompt_deployment_release(
|
831
834
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -867,8 +870,8 @@ class AsyncRawDeploymentsClient:
|
|
867
870
|
return AsyncHttpResponse(response=_response, data=_data)
|
868
871
|
_response_json = _response.json()
|
869
872
|
except JSONDecodeError:
|
870
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
871
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
873
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
874
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
872
875
|
|
873
876
|
async def retrieve_provider_payload(
|
874
877
|
self,
|
@@ -951,45 +954,49 @@ class AsyncRawDeploymentsClient:
|
|
951
954
|
return AsyncHttpResponse(response=_response, data=_data)
|
952
955
|
if _response.status_code == 400:
|
953
956
|
raise BadRequestError(
|
954
|
-
|
957
|
+
headers=dict(_response.headers),
|
958
|
+
body=typing.cast(
|
955
959
|
typing.Optional[typing.Any],
|
956
960
|
parse_obj_as(
|
957
961
|
type_=typing.Optional[typing.Any], # type: ignore
|
958
962
|
object_=_response.json(),
|
959
963
|
),
|
960
|
-
)
|
964
|
+
),
|
961
965
|
)
|
962
966
|
if _response.status_code == 403:
|
963
967
|
raise ForbiddenError(
|
964
|
-
|
968
|
+
headers=dict(_response.headers),
|
969
|
+
body=typing.cast(
|
965
970
|
typing.Optional[typing.Any],
|
966
971
|
parse_obj_as(
|
967
972
|
type_=typing.Optional[typing.Any], # type: ignore
|
968
973
|
object_=_response.json(),
|
969
974
|
),
|
970
|
-
)
|
975
|
+
),
|
971
976
|
)
|
972
977
|
if _response.status_code == 404:
|
973
978
|
raise NotFoundError(
|
974
|
-
|
979
|
+
headers=dict(_response.headers),
|
980
|
+
body=typing.cast(
|
975
981
|
typing.Optional[typing.Any],
|
976
982
|
parse_obj_as(
|
977
983
|
type_=typing.Optional[typing.Any], # type: ignore
|
978
984
|
object_=_response.json(),
|
979
985
|
),
|
980
|
-
)
|
986
|
+
),
|
981
987
|
)
|
982
988
|
if _response.status_code == 500:
|
983
989
|
raise InternalServerError(
|
984
|
-
|
990
|
+
headers=dict(_response.headers),
|
991
|
+
body=typing.cast(
|
985
992
|
typing.Optional[typing.Any],
|
986
993
|
parse_obj_as(
|
987
994
|
type_=typing.Optional[typing.Any], # type: ignore
|
988
995
|
object_=_response.json(),
|
989
996
|
),
|
990
|
-
)
|
997
|
+
),
|
991
998
|
)
|
992
999
|
_response_json = _response.json()
|
993
1000
|
except JSONDecodeError:
|
994
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
995
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
1001
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
1002
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,16 +1,15 @@
|
|
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.document_indexes_list_request_status import DocumentIndexesListRequestStatus
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
7
6
|
from ...core.request_options import RequestOptions
|
8
|
-
from ...types.paginated_document_index_read_list import PaginatedDocumentIndexReadList
|
9
7
|
from ...types.document_index_indexing_config_request import DocumentIndexIndexingConfigRequest
|
10
|
-
from ...types.entity_status import EntityStatus
|
11
8
|
from ...types.document_index_read import DocumentIndexRead
|
12
|
-
from ...
|
13
|
-
from .
|
9
|
+
from ...types.entity_status import EntityStatus
|
10
|
+
from ...types.paginated_document_index_read_list import PaginatedDocumentIndexReadList
|
11
|
+
from .raw_client import AsyncRawDocumentIndexesClient, RawDocumentIndexesClient
|
12
|
+
from .types.document_indexes_list_request_status import DocumentIndexesListRequestStatus
|
14
13
|
|
15
14
|
# this is used as the default value for optional parameters
|
16
15
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -35,7 +34,7 @@ class DocumentIndexesClient:
|
|
35
34
|
"""
|
36
35
|
return self._raw_client
|
37
36
|
|
38
|
-
def
|
37
|
+
def list(
|
39
38
|
self,
|
40
39
|
*,
|
41
40
|
limit: typing.Optional[int] = None,
|
@@ -86,15 +85,10 @@ class DocumentIndexesClient:
|
|
86
85
|
)
|
87
86
|
client.document_indexes.list()
|
88
87
|
"""
|
89
|
-
|
90
|
-
limit=limit,
|
91
|
-
offset=offset,
|
92
|
-
ordering=ordering,
|
93
|
-
search=search,
|
94
|
-
status=status,
|
95
|
-
request_options=request_options,
|
88
|
+
_response = self._raw_client.list(
|
89
|
+
limit=limit, offset=offset, ordering=ordering, search=search, status=status, request_options=request_options
|
96
90
|
)
|
97
|
-
return
|
91
|
+
return _response.data
|
98
92
|
|
99
93
|
def create(
|
100
94
|
self,
|
@@ -159,7 +153,7 @@ class DocumentIndexesClient:
|
|
159
153
|
),
|
160
154
|
)
|
161
155
|
"""
|
162
|
-
|
156
|
+
_response = self._raw_client.create(
|
163
157
|
label=label,
|
164
158
|
name=name,
|
165
159
|
indexing_config=indexing_config,
|
@@ -167,7 +161,7 @@ class DocumentIndexesClient:
|
|
167
161
|
copy_documents_from_index_id=copy_documents_from_index_id,
|
168
162
|
request_options=request_options,
|
169
163
|
)
|
170
|
-
return
|
164
|
+
return _response.data
|
171
165
|
|
172
166
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentIndexRead:
|
173
167
|
"""
|
@@ -198,11 +192,8 @@ class DocumentIndexesClient:
|
|
198
192
|
id="id",
|
199
193
|
)
|
200
194
|
"""
|
201
|
-
|
202
|
-
|
203
|
-
request_options=request_options,
|
204
|
-
)
|
205
|
-
return response.data
|
195
|
+
_response = self._raw_client.retrieve(id, request_options=request_options)
|
196
|
+
return _response.data
|
206
197
|
|
207
198
|
def update(
|
208
199
|
self,
|
@@ -250,13 +241,8 @@ class DocumentIndexesClient:
|
|
250
241
|
label="x",
|
251
242
|
)
|
252
243
|
"""
|
253
|
-
|
254
|
-
|
255
|
-
label=label,
|
256
|
-
status=status,
|
257
|
-
request_options=request_options,
|
258
|
-
)
|
259
|
-
return response.data
|
244
|
+
_response = self._raw_client.update(id, label=label, status=status, request_options=request_options)
|
245
|
+
return _response.data
|
260
246
|
|
261
247
|
def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
262
248
|
"""
|
@@ -286,11 +272,8 @@ class DocumentIndexesClient:
|
|
286
272
|
id="id",
|
287
273
|
)
|
288
274
|
"""
|
289
|
-
|
290
|
-
|
291
|
-
request_options=request_options,
|
292
|
-
)
|
293
|
-
return response.data
|
275
|
+
_response = self._raw_client.destroy(id, request_options=request_options)
|
276
|
+
return _response.data
|
294
277
|
|
295
278
|
def partial_update(
|
296
279
|
self,
|
@@ -337,13 +320,8 @@ class DocumentIndexesClient:
|
|
337
320
|
id="id",
|
338
321
|
)
|
339
322
|
"""
|
340
|
-
|
341
|
-
|
342
|
-
label=label,
|
343
|
-
status=status,
|
344
|
-
request_options=request_options,
|
345
|
-
)
|
346
|
-
return response.data
|
323
|
+
_response = self._raw_client.partial_update(id, label=label, status=status, request_options=request_options)
|
324
|
+
return _response.data
|
347
325
|
|
348
326
|
def add_document(
|
349
327
|
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -379,12 +357,8 @@ class DocumentIndexesClient:
|
|
379
357
|
id="id",
|
380
358
|
)
|
381
359
|
"""
|
382
|
-
|
383
|
-
|
384
|
-
id,
|
385
|
-
request_options=request_options,
|
386
|
-
)
|
387
|
-
return response.data
|
360
|
+
_response = self._raw_client.add_document(document_id, id, request_options=request_options)
|
361
|
+
return _response.data
|
388
362
|
|
389
363
|
def remove_document(
|
390
364
|
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -420,12 +394,8 @@ class DocumentIndexesClient:
|
|
420
394
|
id="id",
|
421
395
|
)
|
422
396
|
"""
|
423
|
-
|
424
|
-
|
425
|
-
id,
|
426
|
-
request_options=request_options,
|
427
|
-
)
|
428
|
-
return response.data
|
397
|
+
_response = self._raw_client.remove_document(document_id, id, request_options=request_options)
|
398
|
+
return _response.data
|
429
399
|
|
430
400
|
|
431
401
|
class AsyncDocumentIndexesClient:
|
@@ -443,7 +413,7 @@ class AsyncDocumentIndexesClient:
|
|
443
413
|
"""
|
444
414
|
return self._raw_client
|
445
415
|
|
446
|
-
async def
|
416
|
+
async def list(
|
447
417
|
self,
|
448
418
|
*,
|
449
419
|
limit: typing.Optional[int] = None,
|
@@ -502,15 +472,10 @@ class AsyncDocumentIndexesClient:
|
|
502
472
|
|
503
473
|
asyncio.run(main())
|
504
474
|
"""
|
505
|
-
|
506
|
-
limit=limit,
|
507
|
-
offset=offset,
|
508
|
-
ordering=ordering,
|
509
|
-
search=search,
|
510
|
-
status=status,
|
511
|
-
request_options=request_options,
|
475
|
+
_response = await self._raw_client.list(
|
476
|
+
limit=limit, offset=offset, ordering=ordering, search=search, status=status, request_options=request_options
|
512
477
|
)
|
513
|
-
return
|
478
|
+
return _response.data
|
514
479
|
|
515
480
|
async def create(
|
516
481
|
self,
|
@@ -583,7 +548,7 @@ class AsyncDocumentIndexesClient:
|
|
583
548
|
|
584
549
|
asyncio.run(main())
|
585
550
|
"""
|
586
|
-
|
551
|
+
_response = await self._raw_client.create(
|
587
552
|
label=label,
|
588
553
|
name=name,
|
589
554
|
indexing_config=indexing_config,
|
@@ -591,7 +556,7 @@ class AsyncDocumentIndexesClient:
|
|
591
556
|
copy_documents_from_index_id=copy_documents_from_index_id,
|
592
557
|
request_options=request_options,
|
593
558
|
)
|
594
|
-
return
|
559
|
+
return _response.data
|
595
560
|
|
596
561
|
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentIndexRead:
|
597
562
|
"""
|
@@ -630,11 +595,8 @@ class AsyncDocumentIndexesClient:
|
|
630
595
|
|
631
596
|
asyncio.run(main())
|
632
597
|
"""
|
633
|
-
|
634
|
-
|
635
|
-
request_options=request_options,
|
636
|
-
)
|
637
|
-
return response.data
|
598
|
+
_response = await self._raw_client.retrieve(id, request_options=request_options)
|
599
|
+
return _response.data
|
638
600
|
|
639
601
|
async def update(
|
640
602
|
self,
|
@@ -690,13 +652,8 @@ class AsyncDocumentIndexesClient:
|
|
690
652
|
|
691
653
|
asyncio.run(main())
|
692
654
|
"""
|
693
|
-
|
694
|
-
|
695
|
-
label=label,
|
696
|
-
status=status,
|
697
|
-
request_options=request_options,
|
698
|
-
)
|
699
|
-
return response.data
|
655
|
+
_response = await self._raw_client.update(id, label=label, status=status, request_options=request_options)
|
656
|
+
return _response.data
|
700
657
|
|
701
658
|
async def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
702
659
|
"""
|
@@ -734,11 +691,8 @@ class AsyncDocumentIndexesClient:
|
|
734
691
|
|
735
692
|
asyncio.run(main())
|
736
693
|
"""
|
737
|
-
|
738
|
-
|
739
|
-
request_options=request_options,
|
740
|
-
)
|
741
|
-
return response.data
|
694
|
+
_response = await self._raw_client.destroy(id, request_options=request_options)
|
695
|
+
return _response.data
|
742
696
|
|
743
697
|
async def partial_update(
|
744
698
|
self,
|
@@ -793,13 +747,10 @@ class AsyncDocumentIndexesClient:
|
|
793
747
|
|
794
748
|
asyncio.run(main())
|
795
749
|
"""
|
796
|
-
|
797
|
-
id,
|
798
|
-
label=label,
|
799
|
-
status=status,
|
800
|
-
request_options=request_options,
|
750
|
+
_response = await self._raw_client.partial_update(
|
751
|
+
id, label=label, status=status, request_options=request_options
|
801
752
|
)
|
802
|
-
return
|
753
|
+
return _response.data
|
803
754
|
|
804
755
|
async def add_document(
|
805
756
|
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -843,12 +794,8 @@ class AsyncDocumentIndexesClient:
|
|
843
794
|
|
844
795
|
asyncio.run(main())
|
845
796
|
"""
|
846
|
-
|
847
|
-
|
848
|
-
id,
|
849
|
-
request_options=request_options,
|
850
|
-
)
|
851
|
-
return response.data
|
797
|
+
_response = await self._raw_client.add_document(document_id, id, request_options=request_options)
|
798
|
+
return _response.data
|
852
799
|
|
853
800
|
async def remove_document(
|
854
801
|
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -892,9 +839,5 @@ class AsyncDocumentIndexesClient:
|
|
892
839
|
|
893
840
|
asyncio.run(main())
|
894
841
|
"""
|
895
|
-
|
896
|
-
|
897
|
-
id,
|
898
|
-
request_options=request_options,
|
899
|
-
)
|
900
|
-
return response.data
|
842
|
+
_response = await self._raw_client.remove_document(document_id, id, request_options=request_options)
|
843
|
+
return _response.data
|