vellum-ai 0.9.15__py3-none-any.whl → 0.9.16rc2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/client/README.md +242 -0
- vellum/client/core/__init__.py +47 -0
- vellum/client/core/api_error.py +15 -0
- vellum/client/core/client_wrapper.py +59 -0
- vellum/client/core/datetime_utils.py +28 -0
- vellum/client/core/file.py +62 -0
- vellum/client/core/http_client.py +487 -0
- vellum/client/core/jsonable_encoder.py +101 -0
- vellum/client/core/pydantic_utilities.py +296 -0
- vellum/client/core/query_encoder.py +58 -0
- vellum/client/core/remove_none_from_dict.py +11 -0
- vellum/client/core/request_options.py +32 -0
- vellum/client/core/serialization.py +272 -0
- vellum/client/environment.py +17 -0
- vellum/client/errors/__init__.py +8 -0
- vellum/client/errors/bad_request_error.py +9 -0
- vellum/client/errors/forbidden_error.py +9 -0
- vellum/client/errors/internal_server_error.py +9 -0
- vellum/client/errors/not_found_error.py +9 -0
- vellum/client/resources/__init__.py +47 -0
- vellum/client/resources/ad_hoc/__init__.py +2 -0
- vellum/client/resources/ad_hoc/client.py +459 -0
- vellum/client/resources/container_images/__init__.py +2 -0
- vellum/client/resources/container_images/client.py +502 -0
- vellum/client/resources/deployments/__init__.py +5 -0
- vellum/client/resources/deployments/client.py +975 -0
- vellum/client/resources/deployments/types/__init__.py +6 -0
- vellum/client/resources/deployments/types/deployments_list_request_status.py +5 -0
- vellum/client/resources/deployments/types/list_deployment_release_tags_request_source.py +5 -0
- vellum/client/resources/document_indexes/__init__.py +5 -0
- vellum/client/resources/document_indexes/client.py +1154 -0
- vellum/client/resources/document_indexes/types/__init__.py +5 -0
- vellum/client/resources/document_indexes/types/document_indexes_list_request_status.py +5 -0
- vellum/client/resources/documents/__init__.py +2 -0
- vellum/client/resources/documents/client.py +781 -0
- vellum/client/resources/folder_entities/__init__.py +5 -0
- vellum/client/resources/folder_entities/client.py +333 -0
- vellum/client/resources/folder_entities/types/__init__.py +5 -0
- vellum/client/resources/folder_entities/types/folder_entities_list_request_entity_status.py +5 -0
- vellum/client/resources/metric_definitions/__init__.py +2 -0
- vellum/client/resources/metric_definitions/client.py +178 -0
- vellum/client/resources/sandboxes/__init__.py +2 -0
- vellum/client/resources/sandboxes/client.py +481 -0
- vellum/client/resources/test_suite_runs/__init__.py +2 -0
- vellum/client/resources/test_suite_runs/client.py +445 -0
- vellum/client/resources/test_suites/__init__.py +2 -0
- vellum/client/resources/test_suites/client.py +688 -0
- vellum/client/resources/workflow_deployments/__init__.py +5 -0
- vellum/client/resources/workflow_deployments/client.py +693 -0
- vellum/client/resources/workflow_deployments/types/__init__.py +6 -0
- vellum/client/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py +5 -0
- vellum/client/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +5 -0
- vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
- vellum/client/resources/workflow_sandboxes/client.py +190 -0
- vellum/client/resources/workflows/__init__.py +5 -0
- vellum/client/resources/workflows/client.py +333 -0
- vellum/client/resources/workflows/types/__init__.py +5 -0
- vellum/client/resources/workflows/types/workflows_pull_request_format.py +5 -0
- vellum/client/resources/workspace_secrets/__init__.py +2 -0
- vellum/client/resources/workspace_secrets/client.py +266 -0
- vellum/client/types/__init__.py +979 -0
- vellum/client/types/ad_hoc_execute_prompt_event.py +14 -0
- vellum/client/types/ad_hoc_expand_meta.py +37 -0
- vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +27 -0
- vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +24 -0
- vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +25 -0
- vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +23 -0
- vellum/client/types/add_openai_api_key_enum.py +3 -0
- vellum/client/types/api_node_result.py +25 -0
- vellum/client/types/api_node_result_data.py +28 -0
- vellum/client/types/array_chat_message_content.py +25 -0
- vellum/client/types/array_chat_message_content_item.py +11 -0
- vellum/client/types/array_chat_message_content_item_request.py +14 -0
- vellum/client/types/array_chat_message_content_request.py +25 -0
- vellum/client/types/array_input.py +36 -0
- vellum/client/types/array_variable_value.py +27 -0
- vellum/client/types/array_variable_value_item.py +29 -0
- vellum/client/types/array_vellum_value.py +31 -0
- vellum/client/types/array_vellum_value_request.py +31 -0
- vellum/client/types/audio_chat_message_content.py +25 -0
- vellum/client/types/audio_chat_message_content_request.py +25 -0
- vellum/client/types/audio_variable_value.py +25 -0
- vellum/client/types/audio_vellum_value.py +25 -0
- vellum/client/types/audio_vellum_value_request.py +25 -0
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +24 -0
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +24 -0
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +26 -0
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +26 -0
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +26 -0
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +26 -0
- vellum/client/types/chat_history_input.py +30 -0
- vellum/client/types/chat_history_input_request.py +30 -0
- vellum/client/types/chat_history_variable_value.py +21 -0
- vellum/client/types/chat_history_vellum_value.py +25 -0
- vellum/client/types/chat_history_vellum_value_request.py +25 -0
- vellum/client/types/chat_message.py +27 -0
- vellum/client/types/chat_message_content.py +16 -0
- vellum/client/types/chat_message_content_request.py +16 -0
- vellum/client/types/chat_message_prompt_block.py +39 -0
- vellum/client/types/chat_message_request.py +27 -0
- vellum/client/types/chat_message_role.py +5 -0
- vellum/client/types/code_execution_node_array_result.py +28 -0
- vellum/client/types/code_execution_node_chat_history_result.py +22 -0
- vellum/client/types/code_execution_node_error_result.py +22 -0
- vellum/client/types/code_execution_node_function_call_result.py +22 -0
- vellum/client/types/code_execution_node_json_result.py +21 -0
- vellum/client/types/code_execution_node_number_result.py +21 -0
- vellum/client/types/code_execution_node_result.py +31 -0
- vellum/client/types/code_execution_node_result_data.py +27 -0
- vellum/client/types/code_execution_node_result_output.py +22 -0
- vellum/client/types/code_execution_node_search_results_result.py +22 -0
- vellum/client/types/code_execution_node_string_result.py +21 -0
- vellum/client/types/code_execution_package.py +20 -0
- vellum/client/types/code_execution_runtime.py +5 -0
- vellum/client/types/code_executor_input.py +24 -0
- vellum/client/types/code_executor_response.py +27 -0
- vellum/client/types/code_executor_secret_input.py +29 -0
- vellum/client/types/compile_prompt_deployment_expand_meta_request.py +32 -0
- vellum/client/types/compile_prompt_meta.py +25 -0
- vellum/client/types/components_schemas_pdf_search_result_meta_source.py +5 -0
- vellum/client/types/components_schemas_pdf_search_result_meta_source_request.py +5 -0
- vellum/client/types/condition_combinator.py +5 -0
- vellum/client/types/conditional_node_result.py +25 -0
- vellum/client/types/conditional_node_result_data.py +19 -0
- vellum/client/types/container_image_read.py +28 -0
- vellum/client/types/create_test_suite_test_case_request.py +48 -0
- vellum/client/types/deployment_provider_payload_response.py +22 -0
- vellum/client/types/deployment_provider_payload_response_payload.py +5 -0
- vellum/client/types/deployment_read.py +73 -0
- vellum/client/types/deployment_release_tag_deployment_history_item.py +21 -0
- vellum/client/types/deployment_release_tag_read.py +37 -0
- vellum/client/types/docker_service_token.py +21 -0
- vellum/client/types/document_document_to_document_index.py +39 -0
- vellum/client/types/document_index_chunking.py +8 -0
- vellum/client/types/document_index_chunking_request.py +10 -0
- vellum/client/types/document_index_indexing_config.py +22 -0
- vellum/client/types/document_index_indexing_config_request.py +22 -0
- vellum/client/types/document_index_read.py +52 -0
- vellum/client/types/document_processing_state.py +7 -0
- vellum/client/types/document_read.py +49 -0
- vellum/client/types/document_status.py +5 -0
- vellum/client/types/enriched_normalized_completion.py +59 -0
- vellum/client/types/entity_status.py +5 -0
- vellum/client/types/entity_visibility.py +5 -0
- vellum/client/types/environment_enum.py +5 -0
- vellum/client/types/ephemeral_prompt_cache_config.py +20 -0
- vellum/client/types/ephemeral_prompt_cache_config_type_enum.py +5 -0
- vellum/client/types/error_input.py +30 -0
- vellum/client/types/error_variable_value.py +21 -0
- vellum/client/types/error_vellum_value.py +25 -0
- vellum/client/types/error_vellum_value_request.py +25 -0
- vellum/client/types/execute_prompt_event.py +11 -0
- vellum/client/types/execute_prompt_response.py +7 -0
- vellum/client/types/execute_workflow_response.py +29 -0
- vellum/client/types/execute_workflow_workflow_result_event.py +9 -0
- vellum/client/types/execution_array_vellum_value.py +37 -0
- vellum/client/types/execution_chat_history_vellum_value.py +31 -0
- vellum/client/types/execution_error_vellum_value.py +31 -0
- vellum/client/types/execution_function_call_vellum_value.py +31 -0
- vellum/client/types/execution_json_vellum_value.py +30 -0
- vellum/client/types/execution_number_vellum_value.py +30 -0
- vellum/client/types/execution_search_results_vellum_value.py +31 -0
- vellum/client/types/execution_string_vellum_value.py +30 -0
- vellum/client/types/execution_vellum_value.py +22 -0
- vellum/client/types/external_test_case_execution.py +31 -0
- vellum/client/types/external_test_case_execution_request.py +31 -0
- vellum/client/types/finish_reason_enum.py +5 -0
- vellum/client/types/folder_entity.py +16 -0
- vellum/client/types/folder_entity_document_index.py +26 -0
- vellum/client/types/folder_entity_document_index_data.py +25 -0
- vellum/client/types/folder_entity_folder.py +26 -0
- vellum/client/types/folder_entity_folder_data.py +24 -0
- vellum/client/types/folder_entity_prompt_sandbox.py +26 -0
- vellum/client/types/folder_entity_prompt_sandbox_data.py +26 -0
- vellum/client/types/folder_entity_test_suite.py +26 -0
- vellum/client/types/folder_entity_test_suite_data.py +25 -0
- vellum/client/types/folder_entity_workflow_sandbox.py +26 -0
- vellum/client/types/folder_entity_workflow_sandbox_data.py +26 -0
- vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +28 -0
- vellum/client/types/fulfilled_enum.py +5 -0
- vellum/client/types/fulfilled_execute_prompt_event.py +28 -0
- vellum/client/types/fulfilled_execute_prompt_response.py +37 -0
- vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +36 -0
- vellum/client/types/fulfilled_prompt_execution_meta.py +27 -0
- vellum/client/types/fulfilled_workflow_node_result_event.py +40 -0
- vellum/client/types/function_call.py +27 -0
- vellum/client/types/function_call_chat_message_content.py +25 -0
- vellum/client/types/function_call_chat_message_content_request.py +25 -0
- vellum/client/types/function_call_chat_message_content_value.py +25 -0
- vellum/client/types/function_call_chat_message_content_value_request.py +25 -0
- vellum/client/types/function_call_input.py +30 -0
- vellum/client/types/function_call_request.py +27 -0
- vellum/client/types/function_call_variable_value.py +21 -0
- vellum/client/types/function_call_vellum_value.py +25 -0
- vellum/client/types/function_call_vellum_value_request.py +25 -0
- vellum/client/types/function_definition.py +31 -0
- vellum/client/types/generate_options_request.py +26 -0
- vellum/client/types/generate_request.py +33 -0
- vellum/client/types/generate_response.py +38 -0
- vellum/client/types/generate_result.py +29 -0
- vellum/client/types/generate_result_data.py +23 -0
- vellum/client/types/generate_result_error.py +22 -0
- vellum/client/types/generate_stream_response.py +20 -0
- vellum/client/types/generate_stream_result.py +23 -0
- vellum/client/types/generate_stream_result_data.py +21 -0
- vellum/client/types/google_vertex_ai_vectorizer_config.py +20 -0
- vellum/client/types/google_vertex_ai_vectorizer_config_request.py +20 -0
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +21 -0
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +21 -0
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +21 -0
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +21 -0
- vellum/client/types/hkunlp_instructor_xl_vectorizer.py +25 -0
- vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +25 -0
- vellum/client/types/image_chat_message_content.py +25 -0
- vellum/client/types/image_chat_message_content_request.py +25 -0
- vellum/client/types/image_variable_value.py +25 -0
- vellum/client/types/image_vellum_value.py +25 -0
- vellum/client/types/image_vellum_value_request.py +25 -0
- vellum/client/types/indexing_config_vectorizer.py +30 -0
- vellum/client/types/indexing_config_vectorizer_request.py +30 -0
- vellum/client/types/indexing_state_enum.py +7 -0
- vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +26 -0
- vellum/client/types/initiated_execute_prompt_event.py +26 -0
- vellum/client/types/initiated_prompt_execution_meta.py +26 -0
- vellum/client/types/initiated_workflow_node_result_event.py +39 -0
- vellum/client/types/instructor_vectorizer_config.py +25 -0
- vellum/client/types/instructor_vectorizer_config_request.py +25 -0
- vellum/client/types/iteration_state_enum.py +5 -0
- vellum/client/types/jinja_prompt_block.py +28 -0
- vellum/client/types/json_input.py +29 -0
- vellum/client/types/json_input_request.py +29 -0
- vellum/client/types/json_variable_value.py +20 -0
- vellum/client/types/json_vellum_value.py +24 -0
- vellum/client/types/json_vellum_value_request.py +24 -0
- vellum/client/types/logical_operator.py +29 -0
- vellum/client/types/logprobs_enum.py +5 -0
- vellum/client/types/map_node_result.py +25 -0
- vellum/client/types/map_node_result_data.py +21 -0
- vellum/client/types/merge_node_result.py +25 -0
- vellum/client/types/merge_node_result_data.py +19 -0
- vellum/client/types/metadata_filter_config_request.py +36 -0
- vellum/client/types/metadata_filter_rule_combinator.py +5 -0
- vellum/client/types/metadata_filter_rule_request.py +31 -0
- vellum/client/types/metadata_filters_request.py +7 -0
- vellum/client/types/metric_definition_execution.py +20 -0
- vellum/client/types/metric_definition_input.py +9 -0
- vellum/client/types/metric_node_result.py +23 -0
- vellum/client/types/ml_model_usage.py +25 -0
- vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +26 -0
- vellum/client/types/named_scenario_input_json_variable_value_request.py +25 -0
- vellum/client/types/named_scenario_input_request.py +12 -0
- vellum/client/types/named_scenario_input_string_variable_value_request.py +25 -0
- vellum/client/types/named_test_case_array_variable_value.py +32 -0
- vellum/client/types/named_test_case_array_variable_value_request.py +34 -0
- vellum/client/types/named_test_case_chat_history_variable_value.py +26 -0
- vellum/client/types/named_test_case_chat_history_variable_value_request.py +26 -0
- vellum/client/types/named_test_case_error_variable_value.py +26 -0
- vellum/client/types/named_test_case_error_variable_value_request.py +26 -0
- vellum/client/types/named_test_case_function_call_variable_value.py +26 -0
- vellum/client/types/named_test_case_function_call_variable_value_request.py +26 -0
- vellum/client/types/named_test_case_json_variable_value.py +25 -0
- vellum/client/types/named_test_case_json_variable_value_request.py +25 -0
- vellum/client/types/named_test_case_number_variable_value.py +25 -0
- vellum/client/types/named_test_case_number_variable_value_request.py +25 -0
- vellum/client/types/named_test_case_search_results_variable_value.py +26 -0
- vellum/client/types/named_test_case_search_results_variable_value_request.py +26 -0
- vellum/client/types/named_test_case_string_variable_value.py +25 -0
- vellum/client/types/named_test_case_string_variable_value_request.py +25 -0
- vellum/client/types/named_test_case_variable_value.py +22 -0
- vellum/client/types/named_test_case_variable_value_request.py +22 -0
- vellum/client/types/node_input_compiled_array_value.py +29 -0
- vellum/client/types/node_input_compiled_chat_history_value.py +23 -0
- vellum/client/types/node_input_compiled_error_value.py +23 -0
- vellum/client/types/node_input_compiled_function_call_value.py +23 -0
- vellum/client/types/node_input_compiled_json_value.py +22 -0
- vellum/client/types/node_input_compiled_number_value.py +22 -0
- vellum/client/types/node_input_compiled_search_results_value.py +23 -0
- vellum/client/types/node_input_compiled_string_value.py +22 -0
- vellum/client/types/node_input_variable_compiled_value.py +22 -0
- vellum/client/types/node_output_compiled_array_value.py +34 -0
- vellum/client/types/node_output_compiled_chat_history_value.py +28 -0
- vellum/client/types/node_output_compiled_error_value.py +28 -0
- vellum/client/types/node_output_compiled_function_call_value.py +28 -0
- vellum/client/types/node_output_compiled_json_value.py +27 -0
- vellum/client/types/node_output_compiled_number_value.py +27 -0
- vellum/client/types/node_output_compiled_search_results_value.py +28 -0
- vellum/client/types/node_output_compiled_string_value.py +27 -0
- vellum/client/types/node_output_compiled_value.py +22 -0
- vellum/client/types/normalized_log_probs.py +21 -0
- vellum/client/types/normalized_token_log_probs.py +22 -0
- vellum/client/types/number_input.py +29 -0
- vellum/client/types/number_variable_value.py +20 -0
- vellum/client/types/number_vellum_value.py +24 -0
- vellum/client/types/number_vellum_value_request.py +24 -0
- vellum/client/types/open_ai_vectorizer_config.py +24 -0
- vellum/client/types/open_ai_vectorizer_config_request.py +24 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +25 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +25 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +25 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +25 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +25 -0
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +25 -0
- vellum/client/types/paginated_container_image_read_list.py +23 -0
- vellum/client/types/paginated_deployment_release_tag_read_list.py +23 -0
- vellum/client/types/paginated_document_index_read_list.py +23 -0
- vellum/client/types/paginated_folder_entity_list.py +23 -0
- vellum/client/types/paginated_slim_deployment_read_list.py +29 -0
- vellum/client/types/paginated_slim_document_list.py +23 -0
- vellum/client/types/paginated_slim_workflow_deployment_list.py +29 -0
- vellum/client/types/paginated_test_suite_run_execution_list.py +29 -0
- vellum/client/types/paginated_test_suite_test_case_list.py +29 -0
- vellum/client/types/paginated_workflow_release_tag_read_list.py +23 -0
- vellum/client/types/pdf_search_result_meta_source.py +32 -0
- vellum/client/types/pdf_search_result_meta_source_request.py +32 -0
- vellum/client/types/plain_text_prompt_block.py +28 -0
- vellum/client/types/price.py +21 -0
- vellum/client/types/processing_failure_reason_enum.py +5 -0
- vellum/client/types/prompt_block.py +12 -0
- vellum/client/types/prompt_block_state.py +5 -0
- vellum/client/types/prompt_deployment_expand_meta_request.py +52 -0
- vellum/client/types/prompt_deployment_input_request.py +8 -0
- vellum/client/types/prompt_execution_meta.py +32 -0
- vellum/client/types/prompt_node_execution_meta.py +24 -0
- vellum/client/types/prompt_node_result.py +25 -0
- vellum/client/types/prompt_node_result_data.py +25 -0
- vellum/client/types/prompt_output.py +9 -0
- vellum/client/types/prompt_parameters.py +27 -0
- vellum/client/types/prompt_request_chat_history_input.py +26 -0
- vellum/client/types/prompt_request_input.py +8 -0
- vellum/client/types/prompt_request_json_input.py +25 -0
- vellum/client/types/prompt_request_string_input.py +25 -0
- vellum/client/types/prompt_settings.py +19 -0
- vellum/client/types/raw_prompt_execution_overrides_request.py +28 -0
- vellum/client/types/reducto_chunker_config.py +23 -0
- vellum/client/types/reducto_chunker_config_request.py +23 -0
- vellum/client/types/reducto_chunking.py +25 -0
- vellum/client/types/reducto_chunking_request.py +25 -0
- vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +28 -0
- vellum/client/types/rejected_execute_prompt_event.py +28 -0
- vellum/client/types/rejected_execute_prompt_response.py +37 -0
- vellum/client/types/rejected_execute_workflow_workflow_result_event.py +28 -0
- vellum/client/types/rejected_prompt_execution_meta.py +25 -0
- vellum/client/types/rejected_workflow_node_result_event.py +39 -0
- vellum/client/types/release_tag_source.py +5 -0
- vellum/client/types/replace_test_suite_test_case_request.py +53 -0
- vellum/client/types/rich_text_child_block.py +7 -0
- vellum/client/types/rich_text_prompt_block.py +29 -0
- vellum/client/types/sandbox_scenario.py +33 -0
- vellum/client/types/scenario_input.py +10 -0
- vellum/client/types/scenario_input_chat_history_variable_value.py +26 -0
- vellum/client/types/scenario_input_json_variable_value.py +25 -0
- vellum/client/types/scenario_input_string_variable_value.py +25 -0
- vellum/client/types/search_filters_request.py +38 -0
- vellum/client/types/search_node_result.py +25 -0
- vellum/client/types/search_node_result_data.py +27 -0
- vellum/client/types/search_request_options_request.py +50 -0
- vellum/client/types/search_response.py +23 -0
- vellum/client/types/search_result.py +40 -0
- vellum/client/types/search_result_document.py +37 -0
- vellum/client/types/search_result_document_request.py +37 -0
- vellum/client/types/search_result_merging_request.py +22 -0
- vellum/client/types/search_result_meta.py +20 -0
- vellum/client/types/search_result_meta_request.py +20 -0
- vellum/client/types/search_result_request.py +40 -0
- vellum/client/types/search_results_input.py +30 -0
- vellum/client/types/search_results_variable_value.py +21 -0
- vellum/client/types/search_results_vellum_value.py +25 -0
- vellum/client/types/search_results_vellum_value_request.py +25 -0
- vellum/client/types/search_weights_request.py +27 -0
- vellum/client/types/secret_type_enum.py +5 -0
- vellum/client/types/sentence_chunker_config.py +24 -0
- vellum/client/types/sentence_chunker_config_request.py +24 -0
- vellum/client/types/sentence_chunking.py +25 -0
- vellum/client/types/sentence_chunking_request.py +25 -0
- vellum/client/types/slim_deployment_read.py +63 -0
- vellum/client/types/slim_document.py +70 -0
- vellum/client/types/slim_workflow_deployment.py +72 -0
- vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +33 -0
- vellum/client/types/streaming_execute_prompt_event.py +33 -0
- vellum/client/types/streaming_prompt_execution_meta.py +23 -0
- vellum/client/types/streaming_workflow_node_result_event.py +40 -0
- vellum/client/types/string_chat_message_content.py +24 -0
- vellum/client/types/string_chat_message_content_request.py +24 -0
- vellum/client/types/string_input.py +29 -0
- vellum/client/types/string_input_request.py +29 -0
- vellum/client/types/string_variable_value.py +20 -0
- vellum/client/types/string_vellum_value.py +24 -0
- vellum/client/types/string_vellum_value_request.py +24 -0
- vellum/client/types/submit_completion_actual_request.py +48 -0
- vellum/client/types/submit_workflow_execution_actual_request.py +10 -0
- vellum/client/types/subworkflow_node_result.py +25 -0
- vellum/client/types/subworkflow_node_result_data.py +19 -0
- vellum/client/types/templating_node_array_result.py +28 -0
- vellum/client/types/templating_node_chat_history_result.py +22 -0
- vellum/client/types/templating_node_error_result.py +22 -0
- vellum/client/types/templating_node_function_call_result.py +22 -0
- vellum/client/types/templating_node_json_result.py +21 -0
- vellum/client/types/templating_node_number_result.py +21 -0
- vellum/client/types/templating_node_result.py +31 -0
- vellum/client/types/templating_node_result_data.py +26 -0
- vellum/client/types/templating_node_result_output.py +22 -0
- vellum/client/types/templating_node_search_results_result.py +22 -0
- vellum/client/types/templating_node_string_result.py +21 -0
- vellum/client/types/terminal_node_array_result.py +33 -0
- vellum/client/types/terminal_node_chat_history_result.py +27 -0
- vellum/client/types/terminal_node_error_result.py +27 -0
- vellum/client/types/terminal_node_function_call_result.py +27 -0
- vellum/client/types/terminal_node_json_result.py +26 -0
- vellum/client/types/terminal_node_number_result.py +26 -0
- vellum/client/types/terminal_node_result.py +31 -0
- vellum/client/types/terminal_node_result_data.py +26 -0
- vellum/client/types/terminal_node_result_output.py +22 -0
- vellum/client/types/terminal_node_search_results_result.py +27 -0
- vellum/client/types/terminal_node_string_result.py +26 -0
- vellum/client/types/test_case_array_variable_value.py +33 -0
- vellum/client/types/test_case_chat_history_variable_value.py +27 -0
- vellum/client/types/test_case_error_variable_value.py +27 -0
- vellum/client/types/test_case_function_call_variable_value.py +27 -0
- vellum/client/types/test_case_json_variable_value.py +26 -0
- vellum/client/types/test_case_number_variable_value.py +26 -0
- vellum/client/types/test_case_search_results_variable_value.py +27 -0
- vellum/client/types/test_case_string_variable_value.py +26 -0
- vellum/client/types/test_case_variable_value.py +22 -0
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +29 -0
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +27 -0
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +27 -0
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +31 -0
- vellum/client/types/test_suite_run_exec_config.py +10 -0
- vellum/client/types/test_suite_run_exec_config_request.py +12 -0
- vellum/client/types/test_suite_run_execution.py +30 -0
- vellum/client/types/test_suite_run_execution_array_output.py +33 -0
- vellum/client/types/test_suite_run_execution_chat_history_output.py +27 -0
- vellum/client/types/test_suite_run_execution_error_output.py +27 -0
- vellum/client/types/test_suite_run_execution_function_call_output.py +27 -0
- vellum/client/types/test_suite_run_execution_json_output.py +26 -0
- vellum/client/types/test_suite_run_execution_metric_definition.py +21 -0
- vellum/client/types/test_suite_run_execution_metric_result.py +24 -0
- vellum/client/types/test_suite_run_execution_number_output.py +26 -0
- vellum/client/types/test_suite_run_execution_output.py +22 -0
- vellum/client/types/test_suite_run_execution_search_results_output.py +27 -0
- vellum/client/types/test_suite_run_execution_string_output.py +26 -0
- vellum/client/types/test_suite_run_external_exec_config.py +36 -0
- vellum/client/types/test_suite_run_external_exec_config_data.py +29 -0
- vellum/client/types/test_suite_run_external_exec_config_data_request.py +31 -0
- vellum/client/types/test_suite_run_external_exec_config_request.py +38 -0
- vellum/client/types/test_suite_run_metric_error_output.py +26 -0
- vellum/client/types/test_suite_run_metric_json_output.py +25 -0
- vellum/client/types/test_suite_run_metric_number_output.py +25 -0
- vellum/client/types/test_suite_run_metric_output.py +14 -0
- vellum/client/types/test_suite_run_metric_string_output.py +25 -0
- vellum/client/types/test_suite_run_read.py +46 -0
- vellum/client/types/test_suite_run_state.py +5 -0
- vellum/client/types/test_suite_run_test_suite.py +21 -0
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +29 -0
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +27 -0
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +27 -0
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +31 -0
- vellum/client/types/test_suite_test_case.py +30 -0
- vellum/client/types/test_suite_test_case_bulk_operation_request.py +14 -0
- vellum/client/types/test_suite_test_case_bulk_result.py +14 -0
- vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +38 -0
- vellum/client/types/test_suite_test_case_created_bulk_result.py +26 -0
- vellum/client/types/test_suite_test_case_created_bulk_result_data.py +23 -0
- vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +19 -0
- vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +33 -0
- vellum/client/types/test_suite_test_case_deleted_bulk_result.py +30 -0
- vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +23 -0
- vellum/client/types/test_suite_test_case_rejected_bulk_result.py +32 -0
- vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +38 -0
- vellum/client/types/test_suite_test_case_replaced_bulk_result.py +30 -0
- vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +23 -0
- vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +38 -0
- vellum/client/types/token_overlapping_window_chunker_config.py +24 -0
- vellum/client/types/token_overlapping_window_chunker_config_request.py +24 -0
- vellum/client/types/token_overlapping_window_chunking.py +25 -0
- vellum/client/types/token_overlapping_window_chunking_request.py +25 -0
- vellum/client/types/unit_enum.py +5 -0
- vellum/client/types/upload_document_response.py +22 -0
- vellum/client/types/upsert_test_suite_test_case_request.py +49 -0
- vellum/client/types/variable_prompt_block.py +28 -0
- vellum/client/types/vellum_audio.py +24 -0
- vellum/client/types/vellum_audio_request.py +24 -0
- vellum/client/types/vellum_error.py +21 -0
- vellum/client/types/vellum_error_code_enum.py +15 -0
- vellum/client/types/vellum_error_request.py +21 -0
- vellum/client/types/vellum_image.py +20 -0
- vellum/client/types/vellum_image_request.py +20 -0
- vellum/client/types/vellum_value.py +29 -0
- vellum/client/types/vellum_value_logical_condition_group_request.py +38 -0
- vellum/client/types/vellum_value_logical_condition_request.py +34 -0
- vellum/client/types/vellum_value_logical_expression_request.py +12 -0
- vellum/client/types/vellum_value_request.py +29 -0
- vellum/client/types/vellum_variable.py +33 -0
- vellum/client/types/vellum_variable_extensions.py +23 -0
- vellum/client/types/vellum_variable_type.py +20 -0
- vellum/client/types/workflow_deployment_read.py +77 -0
- vellum/client/types/workflow_event_error.py +21 -0
- vellum/client/types/workflow_execution_actual_chat_history_request.py +49 -0
- vellum/client/types/workflow_execution_actual_json_request.py +48 -0
- vellum/client/types/workflow_execution_actual_string_request.py +48 -0
- vellum/client/types/workflow_execution_event_error_code.py +17 -0
- vellum/client/types/workflow_execution_event_type.py +5 -0
- vellum/client/types/workflow_execution_node_result_event.py +34 -0
- vellum/client/types/workflow_execution_workflow_result_event.py +36 -0
- vellum/client/types/workflow_expand_meta_request.py +22 -0
- vellum/client/types/workflow_node_result_data.py +28 -0
- vellum/client/types/workflow_node_result_event.py +14 -0
- vellum/client/types/workflow_node_result_event_state.py +7 -0
- vellum/client/types/workflow_output.py +24 -0
- vellum/client/types/workflow_output_array.py +37 -0
- vellum/client/types/workflow_output_chat_history.py +31 -0
- vellum/client/types/workflow_output_error.py +31 -0
- vellum/client/types/workflow_output_function_call.py +31 -0
- vellum/client/types/workflow_output_image.py +31 -0
- vellum/client/types/workflow_output_json.py +30 -0
- vellum/client/types/workflow_output_number.py +30 -0
- vellum/client/types/workflow_output_search_results.py +31 -0
- vellum/client/types/workflow_output_string.py +30 -0
- vellum/client/types/workflow_push_deployment_config_request.py +22 -0
- vellum/client/types/workflow_push_exec_config.py +3 -0
- vellum/client/types/workflow_push_response.py +20 -0
- vellum/client/types/workflow_release_tag_read.py +37 -0
- vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +28 -0
- vellum/client/types/workflow_request_chat_history_input_request.py +30 -0
- vellum/client/types/workflow_request_input_request.py +14 -0
- vellum/client/types/workflow_request_json_input_request.py +29 -0
- vellum/client/types/workflow_request_number_input_request.py +29 -0
- vellum/client/types/workflow_request_string_input_request.py +29 -0
- vellum/client/types/workflow_result_event.py +39 -0
- vellum/client/types/workflow_result_event_output_data.py +22 -0
- vellum/client/types/workflow_result_event_output_data_array.py +41 -0
- vellum/client/types/workflow_result_event_output_data_chat_history.py +35 -0
- vellum/client/types/workflow_result_event_output_data_error.py +35 -0
- vellum/client/types/workflow_result_event_output_data_function_call.py +35 -0
- vellum/client/types/workflow_result_event_output_data_json.py +34 -0
- vellum/client/types/workflow_result_event_output_data_number.py +34 -0
- vellum/client/types/workflow_result_event_output_data_search_results.py +35 -0
- vellum/client/types/workflow_result_event_output_data_string.py +37 -0
- vellum/client/types/workflow_stream_event.py +7 -0
- vellum/client/types/workspace_secret_read.py +25 -0
- vellum/core/__init__.py +2 -46
- vellum/core/api_error.py +2 -14
- vellum/core/client_wrapper.py +2 -58
- vellum/core/datetime_utils.py +2 -27
- vellum/core/file.py +2 -61
- vellum/core/http_client.py +2 -486
- vellum/core/jsonable_encoder.py +2 -100
- vellum/core/pydantic_utilities.py +2 -295
- vellum/core/query_encoder.py +2 -57
- vellum/core/remove_none_from_dict.py +2 -10
- vellum/core/request_options.py +2 -31
- vellum/core/serialization.py +2 -271
- vellum/environment.py +2 -16
- vellum/errors/__init__.py +2 -7
- vellum/errors/bad_request_error.py +2 -8
- vellum/errors/forbidden_error.py +2 -8
- vellum/errors/internal_server_error.py +2 -8
- vellum/errors/not_found_error.py +2 -8
- vellum/{lib/test_suites → evaluations}/resources.py +20 -51
- vellum/plugins/vellum_mypy.py +11 -0
- vellum/resources/__init__.py +2 -46
- vellum/resources/ad_hoc/__init__.py +2 -1
- vellum/resources/ad_hoc/client.py +2 -458
- vellum/resources/container_images/__init__.py +2 -1
- vellum/resources/container_images/client.py +2 -501
- vellum/resources/deployments/__init__.py +2 -4
- vellum/resources/deployments/client.py +2 -974
- vellum/resources/deployments/types/__init__.py +2 -5
- vellum/resources/deployments/types/deployments_list_request_status.py +2 -4
- vellum/resources/deployments/types/list_deployment_release_tags_request_source.py +2 -4
- vellum/resources/document_indexes/__init__.py +2 -4
- vellum/resources/document_indexes/client.py +2 -1153
- vellum/resources/document_indexes/types/__init__.py +2 -4
- vellum/resources/document_indexes/types/document_indexes_list_request_status.py +2 -4
- vellum/resources/documents/__init__.py +2 -1
- vellum/resources/documents/client.py +2 -780
- vellum/resources/folder_entities/__init__.py +2 -4
- vellum/resources/folder_entities/client.py +2 -332
- vellum/resources/folder_entities/types/__init__.py +2 -4
- vellum/resources/folder_entities/types/folder_entities_list_request_entity_status.py +2 -4
- vellum/resources/metric_definitions/__init__.py +2 -1
- vellum/resources/metric_definitions/client.py +2 -177
- vellum/resources/sandboxes/__init__.py +2 -1
- vellum/resources/sandboxes/client.py +2 -480
- vellum/resources/test_suite_runs/__init__.py +2 -1
- vellum/resources/test_suite_runs/client.py +2 -444
- vellum/resources/test_suites/__init__.py +2 -1
- vellum/resources/test_suites/client.py +2 -687
- vellum/resources/workflow_deployments/__init__.py +2 -4
- vellum/resources/workflow_deployments/client.py +2 -692
- vellum/resources/workflow_deployments/types/__init__.py +2 -5
- vellum/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py +2 -4
- vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +2 -4
- vellum/resources/workflow_sandboxes/__init__.py +2 -1
- vellum/resources/workflow_sandboxes/client.py +2 -189
- vellum/resources/workflows/__init__.py +2 -4
- vellum/resources/workflows/client.py +2 -332
- vellum/resources/workflows/types/__init__.py +2 -4
- vellum/resources/workflows/types/workflows_pull_request_format.py +2 -4
- vellum/resources/workspace_secrets/__init__.py +2 -1
- vellum/resources/workspace_secrets/client.py +2 -265
- vellum/types/__init__.py +2 -978
- vellum/types/ad_hoc_execute_prompt_event.py +2 -13
- vellum/types/ad_hoc_expand_meta.py +2 -36
- vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py +2 -26
- vellum/types/ad_hoc_initiated_prompt_execution_meta.py +2 -23
- vellum/types/ad_hoc_rejected_prompt_execution_meta.py +2 -24
- vellum/types/ad_hoc_streaming_prompt_execution_meta.py +2 -22
- vellum/types/add_openai_api_key_enum.py +2 -2
- vellum/types/api_node_result.py +2 -24
- vellum/types/api_node_result_data.py +2 -27
- vellum/types/array_chat_message_content.py +2 -24
- vellum/types/array_chat_message_content_item.py +2 -10
- vellum/types/array_chat_message_content_item_request.py +2 -13
- vellum/types/array_chat_message_content_request.py +2 -24
- vellum/types/array_input.py +2 -35
- vellum/types/array_variable_value.py +2 -26
- vellum/types/array_variable_value_item.py +2 -28
- vellum/types/array_vellum_value.py +2 -30
- vellum/types/array_vellum_value_request.py +2 -30
- vellum/types/audio_chat_message_content.py +2 -24
- vellum/types/audio_chat_message_content_request.py +2 -24
- vellum/types/audio_variable_value.py +2 -24
- vellum/types/audio_vellum_value.py +2 -24
- vellum/types/audio_vellum_value_request.py +2 -24
- vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -23
- vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -23
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -25
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -25
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -25
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -25
- vellum/types/chat_history_input.py +2 -29
- vellum/types/chat_history_input_request.py +2 -29
- vellum/types/chat_history_variable_value.py +2 -20
- vellum/types/chat_history_vellum_value.py +2 -24
- vellum/types/chat_history_vellum_value_request.py +2 -24
- vellum/types/chat_message.py +2 -26
- vellum/types/chat_message_content.py +2 -15
- vellum/types/chat_message_content_request.py +2 -15
- vellum/types/chat_message_prompt_block.py +2 -38
- vellum/types/chat_message_request.py +2 -26
- vellum/types/chat_message_role.py +2 -4
- vellum/types/code_execution_node_array_result.py +2 -27
- vellum/types/code_execution_node_chat_history_result.py +2 -21
- vellum/types/code_execution_node_error_result.py +2 -21
- vellum/types/code_execution_node_function_call_result.py +2 -21
- vellum/types/code_execution_node_json_result.py +2 -20
- vellum/types/code_execution_node_number_result.py +2 -20
- vellum/types/code_execution_node_result.py +2 -30
- vellum/types/code_execution_node_result_data.py +2 -26
- vellum/types/code_execution_node_result_output.py +2 -21
- vellum/types/code_execution_node_search_results_result.py +2 -21
- vellum/types/code_execution_node_string_result.py +2 -20
- vellum/types/code_execution_package.py +2 -19
- vellum/types/code_execution_runtime.py +2 -4
- vellum/types/code_executor_input.py +2 -23
- vellum/types/code_executor_response.py +2 -26
- vellum/types/code_executor_secret_input.py +2 -28
- vellum/types/compile_prompt_deployment_expand_meta_request.py +2 -31
- vellum/types/compile_prompt_meta.py +2 -24
- vellum/types/components_schemas_pdf_search_result_meta_source.py +2 -4
- vellum/types/components_schemas_pdf_search_result_meta_source_request.py +2 -4
- vellum/types/condition_combinator.py +2 -4
- vellum/types/conditional_node_result.py +2 -24
- vellum/types/conditional_node_result_data.py +2 -18
- vellum/types/container_image_read.py +2 -27
- vellum/types/create_test_suite_test_case_request.py +2 -47
- vellum/types/deployment_provider_payload_response.py +2 -21
- vellum/types/deployment_provider_payload_response_payload.py +2 -4
- vellum/types/deployment_read.py +2 -72
- vellum/types/deployment_release_tag_deployment_history_item.py +2 -20
- vellum/types/deployment_release_tag_read.py +2 -36
- vellum/types/docker_service_token.py +2 -20
- vellum/types/document_document_to_document_index.py +2 -38
- vellum/types/document_index_chunking.py +2 -7
- vellum/types/document_index_chunking_request.py +2 -9
- vellum/types/document_index_indexing_config.py +2 -21
- vellum/types/document_index_indexing_config_request.py +2 -21
- vellum/types/document_index_read.py +2 -51
- vellum/types/document_processing_state.py +2 -6
- vellum/types/document_read.py +2 -48
- vellum/types/document_status.py +2 -4
- vellum/types/enriched_normalized_completion.py +2 -58
- vellum/types/entity_status.py +2 -4
- vellum/types/entity_visibility.py +2 -4
- vellum/types/environment_enum.py +2 -4
- vellum/types/ephemeral_prompt_cache_config.py +2 -19
- vellum/types/ephemeral_prompt_cache_config_type_enum.py +2 -4
- vellum/types/error_input.py +2 -29
- vellum/types/error_variable_value.py +2 -20
- vellum/types/error_vellum_value.py +2 -24
- vellum/types/error_vellum_value_request.py +2 -24
- vellum/types/execute_prompt_event.py +2 -10
- vellum/types/execute_prompt_response.py +2 -6
- vellum/types/execute_workflow_response.py +2 -28
- vellum/types/execute_workflow_workflow_result_event.py +2 -8
- vellum/types/execution_array_vellum_value.py +2 -36
- vellum/types/execution_chat_history_vellum_value.py +2 -30
- vellum/types/execution_error_vellum_value.py +2 -30
- vellum/types/execution_function_call_vellum_value.py +2 -30
- vellum/types/execution_json_vellum_value.py +2 -29
- vellum/types/execution_number_vellum_value.py +2 -29
- vellum/types/execution_search_results_vellum_value.py +2 -30
- vellum/types/execution_string_vellum_value.py +2 -29
- vellum/types/execution_vellum_value.py +2 -21
- vellum/types/external_test_case_execution.py +2 -30
- vellum/types/external_test_case_execution_request.py +2 -30
- vellum/types/finish_reason_enum.py +2 -4
- vellum/types/folder_entity.py +2 -15
- vellum/types/folder_entity_document_index.py +2 -25
- vellum/types/folder_entity_document_index_data.py +2 -24
- vellum/types/folder_entity_folder.py +2 -25
- vellum/types/folder_entity_folder_data.py +2 -23
- vellum/types/folder_entity_prompt_sandbox.py +2 -25
- vellum/types/folder_entity_prompt_sandbox_data.py +2 -25
- vellum/types/folder_entity_test_suite.py +2 -25
- vellum/types/folder_entity_test_suite_data.py +2 -24
- vellum/types/folder_entity_workflow_sandbox.py +2 -25
- vellum/types/folder_entity_workflow_sandbox_data.py +2 -25
- vellum/types/fulfilled_ad_hoc_execute_prompt_event.py +2 -27
- vellum/types/fulfilled_enum.py +2 -4
- vellum/types/fulfilled_execute_prompt_event.py +2 -27
- vellum/types/fulfilled_execute_prompt_response.py +2 -36
- vellum/types/fulfilled_execute_workflow_workflow_result_event.py +2 -35
- vellum/types/fulfilled_prompt_execution_meta.py +2 -26
- vellum/types/fulfilled_workflow_node_result_event.py +2 -39
- vellum/types/function_call.py +2 -26
- vellum/types/function_call_chat_message_content.py +2 -24
- vellum/types/function_call_chat_message_content_request.py +2 -24
- vellum/types/function_call_chat_message_content_value.py +2 -24
- vellum/types/function_call_chat_message_content_value_request.py +2 -24
- vellum/types/function_call_input.py +2 -29
- vellum/types/function_call_request.py +2 -26
- vellum/types/function_call_variable_value.py +2 -20
- vellum/types/function_call_vellum_value.py +2 -24
- vellum/types/function_call_vellum_value_request.py +2 -24
- vellum/types/function_definition.py +2 -30
- vellum/types/generate_options_request.py +2 -25
- vellum/types/generate_request.py +2 -32
- vellum/types/generate_response.py +2 -24
- vellum/types/generate_result.py +2 -28
- vellum/types/generate_result_data.py +2 -22
- vellum/types/generate_result_error.py +2 -21
- vellum/types/generate_stream_response.py +2 -19
- vellum/types/generate_stream_result.py +2 -22
- vellum/types/generate_stream_result_data.py +2 -20
- vellum/types/google_vertex_ai_vectorizer_config.py +2 -19
- vellum/types/google_vertex_ai_vectorizer_config_request.py +2 -19
- vellum/types/google_vertex_ai_vectorizer_text_embedding_004.py +2 -20
- vellum/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +2 -20
- vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +2 -20
- vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +2 -20
- vellum/types/hkunlp_instructor_xl_vectorizer.py +2 -24
- vellum/types/hkunlp_instructor_xl_vectorizer_request.py +2 -24
- vellum/types/image_chat_message_content.py +2 -24
- vellum/types/image_chat_message_content_request.py +2 -24
- vellum/types/image_variable_value.py +2 -24
- vellum/types/image_vellum_value.py +2 -24
- vellum/types/image_vellum_value_request.py +2 -24
- vellum/types/indexing_config_vectorizer.py +2 -29
- vellum/types/indexing_config_vectorizer_request.py +2 -29
- vellum/types/indexing_state_enum.py +2 -6
- vellum/types/initiated_ad_hoc_execute_prompt_event.py +2 -25
- vellum/types/initiated_execute_prompt_event.py +2 -25
- vellum/types/initiated_prompt_execution_meta.py +2 -25
- vellum/types/initiated_workflow_node_result_event.py +2 -38
- vellum/types/instructor_vectorizer_config.py +2 -24
- vellum/types/instructor_vectorizer_config_request.py +2 -24
- vellum/types/iteration_state_enum.py +2 -4
- vellum/types/jinja_prompt_block.py +2 -27
- vellum/types/json_input.py +2 -28
- vellum/types/json_input_request.py +2 -28
- vellum/types/json_variable_value.py +2 -19
- vellum/types/json_vellum_value.py +2 -23
- vellum/types/json_vellum_value_request.py +2 -23
- vellum/types/logical_operator.py +2 -28
- vellum/types/logprobs_enum.py +2 -4
- vellum/types/map_node_result.py +2 -24
- vellum/types/map_node_result_data.py +2 -20
- vellum/types/merge_node_result.py +2 -24
- vellum/types/merge_node_result_data.py +2 -18
- vellum/types/metadata_filter_config_request.py +2 -35
- vellum/types/metadata_filter_rule_combinator.py +2 -4
- vellum/types/metadata_filter_rule_request.py +2 -30
- vellum/types/metadata_filters_request.py +2 -6
- vellum/types/metric_definition_execution.py +2 -19
- vellum/types/metric_definition_input.py +2 -8
- vellum/types/metric_node_result.py +2 -22
- vellum/types/ml_model_usage.py +2 -24
- vellum/types/named_scenario_input_chat_history_variable_value_request.py +2 -25
- vellum/types/named_scenario_input_json_variable_value_request.py +2 -24
- vellum/types/named_scenario_input_request.py +2 -11
- vellum/types/named_scenario_input_string_variable_value_request.py +2 -24
- vellum/types/named_test_case_array_variable_value.py +2 -31
- vellum/types/named_test_case_array_variable_value_request.py +2 -33
- vellum/types/named_test_case_chat_history_variable_value.py +2 -25
- vellum/types/named_test_case_chat_history_variable_value_request.py +2 -25
- vellum/types/named_test_case_error_variable_value.py +2 -25
- vellum/types/named_test_case_error_variable_value_request.py +2 -25
- vellum/types/named_test_case_function_call_variable_value.py +2 -25
- vellum/types/named_test_case_function_call_variable_value_request.py +2 -25
- vellum/types/named_test_case_json_variable_value.py +2 -24
- vellum/types/named_test_case_json_variable_value_request.py +2 -24
- vellum/types/named_test_case_number_variable_value.py +2 -24
- vellum/types/named_test_case_number_variable_value_request.py +2 -24
- vellum/types/named_test_case_search_results_variable_value.py +2 -25
- vellum/types/named_test_case_search_results_variable_value_request.py +2 -25
- vellum/types/named_test_case_string_variable_value.py +2 -24
- vellum/types/named_test_case_string_variable_value_request.py +2 -24
- vellum/types/named_test_case_variable_value.py +2 -21
- vellum/types/named_test_case_variable_value_request.py +2 -21
- vellum/types/node_input_compiled_array_value.py +2 -28
- vellum/types/node_input_compiled_chat_history_value.py +2 -22
- vellum/types/node_input_compiled_error_value.py +2 -22
- vellum/types/node_input_compiled_function_call_value.py +2 -22
- vellum/types/node_input_compiled_json_value.py +2 -21
- vellum/types/node_input_compiled_number_value.py +2 -21
- vellum/types/node_input_compiled_search_results_value.py +2 -22
- vellum/types/node_input_compiled_string_value.py +2 -21
- vellum/types/node_input_variable_compiled_value.py +2 -21
- vellum/types/node_output_compiled_array_value.py +2 -33
- vellum/types/node_output_compiled_chat_history_value.py +2 -27
- vellum/types/node_output_compiled_error_value.py +2 -27
- vellum/types/node_output_compiled_function_call_value.py +2 -27
- vellum/types/node_output_compiled_json_value.py +2 -26
- vellum/types/node_output_compiled_number_value.py +2 -26
- vellum/types/node_output_compiled_search_results_value.py +2 -27
- vellum/types/node_output_compiled_string_value.py +2 -26
- vellum/types/node_output_compiled_value.py +2 -21
- vellum/types/normalized_log_probs.py +2 -20
- vellum/types/normalized_token_log_probs.py +2 -21
- vellum/types/number_input.py +2 -28
- vellum/types/number_variable_value.py +2 -19
- vellum/types/number_vellum_value.py +2 -23
- vellum/types/number_vellum_value_request.py +2 -23
- vellum/types/open_ai_vectorizer_config.py +2 -23
- vellum/types/open_ai_vectorizer_config_request.py +2 -23
- vellum/types/open_ai_vectorizer_text_embedding_3_large.py +2 -24
- vellum/types/open_ai_vectorizer_text_embedding_3_large_request.py +2 -24
- vellum/types/open_ai_vectorizer_text_embedding_3_small.py +2 -24
- vellum/types/open_ai_vectorizer_text_embedding_3_small_request.py +2 -24
- vellum/types/open_ai_vectorizer_text_embedding_ada_002.py +2 -24
- vellum/types/open_ai_vectorizer_text_embedding_ada_002_request.py +2 -24
- vellum/types/paginated_container_image_read_list.py +2 -22
- vellum/types/paginated_deployment_release_tag_read_list.py +2 -22
- vellum/types/paginated_document_index_read_list.py +2 -22
- vellum/types/paginated_folder_entity_list.py +2 -22
- vellum/types/paginated_slim_deployment_read_list.py +2 -28
- vellum/types/paginated_slim_document_list.py +2 -22
- vellum/types/paginated_slim_workflow_deployment_list.py +2 -28
- vellum/types/paginated_test_suite_run_execution_list.py +2 -28
- vellum/types/paginated_test_suite_test_case_list.py +2 -28
- vellum/types/paginated_workflow_release_tag_read_list.py +2 -22
- vellum/types/pdf_search_result_meta_source.py +2 -31
- vellum/types/pdf_search_result_meta_source_request.py +2 -31
- vellum/types/plain_text_prompt_block.py +2 -27
- vellum/types/price.py +2 -20
- vellum/types/processing_failure_reason_enum.py +2 -4
- vellum/types/prompt_block.py +2 -11
- vellum/types/prompt_block_state.py +2 -4
- vellum/types/prompt_deployment_expand_meta_request.py +2 -51
- vellum/types/prompt_deployment_input_request.py +2 -7
- vellum/types/prompt_execution_meta.py +2 -31
- vellum/types/prompt_node_execution_meta.py +2 -23
- vellum/types/prompt_node_result.py +2 -24
- vellum/types/prompt_node_result_data.py +2 -24
- vellum/types/prompt_output.py +2 -8
- vellum/types/prompt_parameters.py +2 -26
- vellum/types/prompt_request_chat_history_input.py +2 -25
- vellum/types/prompt_request_input.py +2 -7
- vellum/types/prompt_request_json_input.py +2 -24
- vellum/types/prompt_request_string_input.py +2 -24
- vellum/types/prompt_settings.py +2 -18
- vellum/types/raw_prompt_execution_overrides_request.py +2 -27
- vellum/types/reducto_chunker_config.py +2 -22
- vellum/types/reducto_chunker_config_request.py +2 -22
- vellum/types/reducto_chunking.py +2 -24
- vellum/types/reducto_chunking_request.py +2 -24
- vellum/types/rejected_ad_hoc_execute_prompt_event.py +2 -27
- vellum/types/rejected_execute_prompt_event.py +2 -27
- vellum/types/rejected_execute_prompt_response.py +2 -36
- vellum/types/rejected_execute_workflow_workflow_result_event.py +2 -27
- vellum/types/rejected_prompt_execution_meta.py +2 -24
- vellum/types/rejected_workflow_node_result_event.py +2 -38
- vellum/types/release_tag_source.py +2 -4
- vellum/types/replace_test_suite_test_case_request.py +2 -52
- vellum/types/rich_text_child_block.py +2 -6
- vellum/types/rich_text_prompt_block.py +2 -28
- vellum/types/sandbox_scenario.py +2 -32
- vellum/types/scenario_input.py +2 -9
- vellum/types/scenario_input_chat_history_variable_value.py +2 -25
- vellum/types/scenario_input_json_variable_value.py +2 -24
- vellum/types/scenario_input_string_variable_value.py +2 -24
- vellum/types/search_filters_request.py +2 -37
- vellum/types/search_node_result.py +2 -24
- vellum/types/search_node_result_data.py +2 -26
- vellum/types/search_request_options_request.py +2 -49
- vellum/types/search_response.py +2 -22
- vellum/types/search_result.py +2 -39
- vellum/types/search_result_document.py +2 -36
- vellum/types/search_result_document_request.py +2 -36
- vellum/types/search_result_merging_request.py +2 -21
- vellum/types/search_result_meta.py +2 -19
- vellum/types/search_result_meta_request.py +2 -19
- vellum/types/search_result_request.py +2 -39
- vellum/types/search_results_input.py +2 -29
- vellum/types/search_results_variable_value.py +2 -20
- vellum/types/search_results_vellum_value.py +2 -24
- vellum/types/search_results_vellum_value_request.py +2 -24
- vellum/types/search_weights_request.py +2 -26
- vellum/types/secret_type_enum.py +2 -4
- vellum/types/sentence_chunker_config.py +2 -23
- vellum/types/sentence_chunker_config_request.py +2 -23
- vellum/types/sentence_chunking.py +2 -24
- vellum/types/sentence_chunking_request.py +2 -24
- vellum/types/slim_deployment_read.py +2 -62
- vellum/types/slim_document.py +2 -69
- vellum/types/slim_workflow_deployment.py +2 -71
- vellum/types/streaming_ad_hoc_execute_prompt_event.py +2 -32
- vellum/types/streaming_execute_prompt_event.py +2 -32
- vellum/types/streaming_prompt_execution_meta.py +2 -22
- vellum/types/streaming_workflow_node_result_event.py +2 -39
- vellum/types/string_chat_message_content.py +2 -23
- vellum/types/string_chat_message_content_request.py +2 -23
- vellum/types/string_input.py +2 -28
- vellum/types/string_input_request.py +2 -28
- vellum/types/string_variable_value.py +2 -19
- vellum/types/string_vellum_value.py +2 -23
- vellum/types/string_vellum_value_request.py +2 -23
- vellum/types/submit_completion_actual_request.py +2 -47
- vellum/types/submit_workflow_execution_actual_request.py +2 -9
- vellum/types/subworkflow_node_result.py +2 -24
- vellum/types/subworkflow_node_result_data.py +2 -18
- vellum/types/templating_node_array_result.py +2 -27
- vellum/types/templating_node_chat_history_result.py +2 -21
- vellum/types/templating_node_error_result.py +2 -21
- vellum/types/templating_node_function_call_result.py +2 -21
- vellum/types/templating_node_json_result.py +2 -20
- vellum/types/templating_node_number_result.py +2 -20
- vellum/types/templating_node_result.py +2 -30
- vellum/types/templating_node_result_data.py +2 -25
- vellum/types/templating_node_result_output.py +2 -21
- vellum/types/templating_node_search_results_result.py +2 -21
- vellum/types/templating_node_string_result.py +2 -20
- vellum/types/terminal_node_array_result.py +2 -32
- vellum/types/terminal_node_chat_history_result.py +2 -26
- vellum/types/terminal_node_error_result.py +2 -26
- vellum/types/terminal_node_function_call_result.py +2 -26
- vellum/types/terminal_node_json_result.py +2 -25
- vellum/types/terminal_node_number_result.py +2 -25
- vellum/types/terminal_node_result.py +2 -30
- vellum/types/terminal_node_result_data.py +2 -25
- vellum/types/terminal_node_result_output.py +2 -21
- vellum/types/terminal_node_search_results_result.py +2 -26
- vellum/types/terminal_node_string_result.py +2 -25
- vellum/types/test_case_array_variable_value.py +2 -32
- vellum/types/test_case_chat_history_variable_value.py +2 -26
- vellum/types/test_case_error_variable_value.py +2 -26
- vellum/types/test_case_function_call_variable_value.py +2 -26
- vellum/types/test_case_json_variable_value.py +2 -25
- vellum/types/test_case_number_variable_value.py +2 -25
- vellum/types/test_case_search_results_variable_value.py +2 -26
- vellum/types/test_case_string_variable_value.py +2 -25
- vellum/types/test_case_variable_value.py +2 -21
- vellum/types/test_suite_run_deployment_release_tag_exec_config.py +2 -28
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data.py +2 -26
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +2 -26
- vellum/types/test_suite_run_deployment_release_tag_exec_config_request.py +2 -30
- vellum/types/test_suite_run_exec_config.py +2 -9
- vellum/types/test_suite_run_exec_config_request.py +2 -11
- vellum/types/test_suite_run_execution.py +2 -29
- vellum/types/test_suite_run_execution_array_output.py +2 -32
- vellum/types/test_suite_run_execution_chat_history_output.py +2 -26
- vellum/types/test_suite_run_execution_error_output.py +2 -26
- vellum/types/test_suite_run_execution_function_call_output.py +2 -26
- vellum/types/test_suite_run_execution_json_output.py +2 -25
- vellum/types/test_suite_run_execution_metric_definition.py +2 -20
- vellum/types/test_suite_run_execution_metric_result.py +2 -23
- vellum/types/test_suite_run_execution_number_output.py +2 -25
- vellum/types/test_suite_run_execution_output.py +2 -21
- vellum/types/test_suite_run_execution_search_results_output.py +2 -26
- vellum/types/test_suite_run_execution_string_output.py +2 -25
- vellum/types/test_suite_run_external_exec_config.py +2 -35
- vellum/types/test_suite_run_external_exec_config_data.py +2 -28
- vellum/types/test_suite_run_external_exec_config_data_request.py +2 -30
- vellum/types/test_suite_run_external_exec_config_request.py +2 -37
- vellum/types/test_suite_run_metric_error_output.py +2 -25
- vellum/types/test_suite_run_metric_json_output.py +2 -24
- vellum/types/test_suite_run_metric_number_output.py +2 -24
- vellum/types/test_suite_run_metric_output.py +2 -13
- vellum/types/test_suite_run_metric_string_output.py +2 -24
- vellum/types/test_suite_run_read.py +2 -45
- vellum/types/test_suite_run_state.py +2 -4
- vellum/types/test_suite_run_test_suite.py +2 -20
- vellum/types/test_suite_run_workflow_release_tag_exec_config.py +2 -28
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data.py +2 -26
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +2 -26
- vellum/types/test_suite_run_workflow_release_tag_exec_config_request.py +2 -30
- vellum/types/test_suite_test_case.py +2 -29
- vellum/types/test_suite_test_case_bulk_operation_request.py +2 -13
- vellum/types/test_suite_test_case_bulk_result.py +2 -13
- vellum/types/test_suite_test_case_create_bulk_operation_request.py +2 -37
- vellum/types/test_suite_test_case_created_bulk_result.py +2 -25
- vellum/types/test_suite_test_case_created_bulk_result_data.py +2 -22
- vellum/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -18
- vellum/types/test_suite_test_case_delete_bulk_operation_request.py +2 -32
- vellum/types/test_suite_test_case_deleted_bulk_result.py +2 -29
- vellum/types/test_suite_test_case_deleted_bulk_result_data.py +2 -22
- vellum/types/test_suite_test_case_rejected_bulk_result.py +2 -31
- vellum/types/test_suite_test_case_replace_bulk_operation_request.py +2 -37
- vellum/types/test_suite_test_case_replaced_bulk_result.py +2 -29
- vellum/types/test_suite_test_case_replaced_bulk_result_data.py +2 -22
- vellum/types/test_suite_test_case_upsert_bulk_operation_request.py +2 -37
- vellum/types/token_overlapping_window_chunker_config.py +2 -23
- vellum/types/token_overlapping_window_chunker_config_request.py +2 -23
- vellum/types/token_overlapping_window_chunking.py +2 -24
- vellum/types/token_overlapping_window_chunking_request.py +2 -24
- vellum/types/unit_enum.py +2 -4
- vellum/types/upload_document_response.py +2 -21
- vellum/types/upsert_test_suite_test_case_request.py +2 -48
- vellum/types/variable_prompt_block.py +2 -27
- vellum/types/vellum_audio.py +2 -23
- vellum/types/vellum_audio_request.py +2 -23
- vellum/types/vellum_error.py +2 -20
- vellum/types/vellum_error_code_enum.py +2 -14
- vellum/types/vellum_error_request.py +2 -20
- vellum/types/vellum_image.py +2 -19
- vellum/types/vellum_image_request.py +2 -19
- vellum/types/vellum_value.py +2 -28
- vellum/types/vellum_value_logical_condition_group_request.py +2 -37
- vellum/types/vellum_value_logical_condition_request.py +2 -33
- vellum/types/vellum_value_logical_expression_request.py +2 -11
- vellum/types/vellum_value_request.py +2 -28
- vellum/types/vellum_variable.py +2 -32
- vellum/types/vellum_variable_extensions.py +2 -22
- vellum/types/vellum_variable_type.py +2 -19
- vellum/types/workflow_deployment_read.py +2 -76
- vellum/types/workflow_event_error.py +2 -20
- vellum/types/workflow_execution_actual_chat_history_request.py +2 -48
- vellum/types/workflow_execution_actual_json_request.py +2 -47
- vellum/types/workflow_execution_actual_string_request.py +2 -47
- vellum/types/workflow_execution_event_error_code.py +2 -16
- vellum/types/workflow_execution_event_type.py +2 -4
- vellum/types/workflow_execution_node_result_event.py +2 -33
- vellum/types/workflow_execution_workflow_result_event.py +2 -35
- vellum/types/workflow_expand_meta_request.py +2 -21
- vellum/types/workflow_node_result_data.py +2 -27
- vellum/types/workflow_node_result_event.py +2 -13
- vellum/types/workflow_node_result_event_state.py +2 -6
- vellum/types/workflow_output.py +2 -23
- vellum/types/workflow_output_array.py +2 -36
- vellum/types/workflow_output_chat_history.py +2 -30
- vellum/types/workflow_output_error.py +2 -30
- vellum/types/workflow_output_function_call.py +2 -30
- vellum/types/workflow_output_image.py +2 -30
- vellum/types/workflow_output_json.py +2 -29
- vellum/types/workflow_output_number.py +2 -29
- vellum/types/workflow_output_search_results.py +2 -30
- vellum/types/workflow_output_string.py +2 -29
- vellum/types/workflow_push_deployment_config_request.py +2 -21
- vellum/types/workflow_push_exec_config.py +2 -2
- vellum/types/workflow_push_response.py +2 -19
- vellum/types/workflow_release_tag_read.py +2 -36
- vellum/types/workflow_release_tag_workflow_deployment_history_item.py +2 -27
- vellum/types/workflow_request_chat_history_input_request.py +2 -29
- vellum/types/workflow_request_input_request.py +2 -13
- vellum/types/workflow_request_json_input_request.py +2 -28
- vellum/types/workflow_request_number_input_request.py +2 -28
- vellum/types/workflow_request_string_input_request.py +2 -28
- vellum/types/workflow_result_event.py +2 -38
- vellum/types/workflow_result_event_output_data.py +2 -21
- vellum/types/workflow_result_event_output_data_array.py +2 -40
- vellum/types/workflow_result_event_output_data_chat_history.py +2 -34
- vellum/types/workflow_result_event_output_data_error.py +2 -34
- vellum/types/workflow_result_event_output_data_function_call.py +2 -34
- vellum/types/workflow_result_event_output_data_json.py +2 -33
- vellum/types/workflow_result_event_output_data_number.py +2 -33
- vellum/types/workflow_result_event_output_data_search_results.py +2 -34
- vellum/types/workflow_result_event_output_data_string.py +2 -36
- vellum/types/workflow_stream_event.py +2 -6
- vellum/types/workspace_secret_read.py +2 -24
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16rc2.dist-info}/LICENSE +11 -3
- vellum_ai-0.9.16rc2.dist-info/METADATA +119 -0
- vellum_ai-0.9.16rc2.dist-info/RECORD +1101 -0
- vellum_ai-0.9.16rc2.dist-info/entry_points.txt +3 -0
- vellum_cli/__init__.py +0 -0
- vellum_ee/__init__.py +0 -0
- vellum/lib/__init__.py +0 -5
- vellum/terraform/__init__.py +0 -28
- vellum/terraform/_jsii/__init__.py +0 -27
- vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz +0 -0
- vellum/terraform/constraints.json +0 -4
- vellum/terraform/data_vellum_document_index/__init__.py +0 -409
- vellum/terraform/data_vellum_ml_model/__init__.py +0 -409
- vellum/terraform/document_index/__init__.py +0 -490
- vellum/terraform/ml_model/__init__.py +0 -806
- vellum/terraform/provider/__init__.py +0 -282
- vellum/terraform/py.typed +0 -1
- vellum/terraform/versions.json +0 -3
- vellum_ai-0.9.15.dist-info/METADATA +0 -139
- vellum_ai-0.9.15.dist-info/RECORD +0 -569
- /vellum/{client.py → client/__init__.py} +0 -0
- /vellum/{lib/test_suites → evaluations}/__init__.py +0 -0
- /vellum/{lib/test_suites → evaluations}/constants.py +0 -0
- /vellum/{lib/test_suites → evaluations}/exceptions.py +0 -0
- /vellum/{lib → evaluations}/utils/__init__.py +0 -0
- /vellum/{lib → evaluations}/utils/env.py +0 -0
- /vellum/{lib → evaluations}/utils/exceptions.py +0 -0
- /vellum/{lib → evaluations}/utils/paginator.py +0 -0
- /vellum/{lib → evaluations}/utils/typing.py +0 -0
- /vellum/{lib → evaluations}/utils/uuid.py +0 -0
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16rc2.dist-info}/WHEEL +0 -0
@@ -1,1154 +1,3 @@
|
|
1
|
-
# This file
|
1
|
+
# WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
|
2
2
|
|
3
|
-
import
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from .types.document_indexes_list_request_status import DocumentIndexesListRequestStatus
|
6
|
-
from ...core.request_options import RequestOptions
|
7
|
-
from ...types.paginated_document_index_read_list import PaginatedDocumentIndexReadList
|
8
|
-
from ...core.pydantic_utilities import parse_obj_as
|
9
|
-
from json.decoder import JSONDecodeError
|
10
|
-
from ...core.api_error import ApiError
|
11
|
-
from ...types.document_index_indexing_config_request import DocumentIndexIndexingConfigRequest
|
12
|
-
from ...types.entity_status import EntityStatus
|
13
|
-
from ...types.environment_enum import EnvironmentEnum
|
14
|
-
from ...types.document_index_read import DocumentIndexRead
|
15
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
16
|
-
from ...core.jsonable_encoder import jsonable_encoder
|
17
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
18
|
-
|
19
|
-
# this is used as the default value for optional parameters
|
20
|
-
OMIT = typing.cast(typing.Any, ...)
|
21
|
-
|
22
|
-
|
23
|
-
class DocumentIndexesClient:
|
24
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
25
|
-
self._client_wrapper = client_wrapper
|
26
|
-
|
27
|
-
def list(
|
28
|
-
self,
|
29
|
-
*,
|
30
|
-
limit: typing.Optional[int] = None,
|
31
|
-
offset: typing.Optional[int] = None,
|
32
|
-
ordering: typing.Optional[str] = None,
|
33
|
-
search: typing.Optional[str] = None,
|
34
|
-
status: typing.Optional[DocumentIndexesListRequestStatus] = None,
|
35
|
-
request_options: typing.Optional[RequestOptions] = None,
|
36
|
-
) -> PaginatedDocumentIndexReadList:
|
37
|
-
"""
|
38
|
-
Used to retrieve a list of Document Indexes.
|
39
|
-
|
40
|
-
Parameters
|
41
|
-
----------
|
42
|
-
limit : typing.Optional[int]
|
43
|
-
Number of results to return per page.
|
44
|
-
|
45
|
-
offset : typing.Optional[int]
|
46
|
-
The initial index from which to return the results.
|
47
|
-
|
48
|
-
ordering : typing.Optional[str]
|
49
|
-
Which field to use when ordering the results.
|
50
|
-
|
51
|
-
search : typing.Optional[str]
|
52
|
-
Search for document indices by name or label
|
53
|
-
|
54
|
-
status : typing.Optional[DocumentIndexesListRequestStatus]
|
55
|
-
Filter down to only document indices that have a status matching the status specified
|
56
|
-
|
57
|
-
- `ACTIVE` - Active
|
58
|
-
- `ARCHIVED` - Archived
|
59
|
-
|
60
|
-
request_options : typing.Optional[RequestOptions]
|
61
|
-
Request-specific configuration.
|
62
|
-
|
63
|
-
Returns
|
64
|
-
-------
|
65
|
-
PaginatedDocumentIndexReadList
|
66
|
-
|
67
|
-
|
68
|
-
Examples
|
69
|
-
--------
|
70
|
-
from vellum import Vellum
|
71
|
-
|
72
|
-
client = Vellum(
|
73
|
-
api_key="YOUR_API_KEY",
|
74
|
-
)
|
75
|
-
client.document_indexes.list()
|
76
|
-
"""
|
77
|
-
_response = self._client_wrapper.httpx_client.request(
|
78
|
-
"v1/document-indexes",
|
79
|
-
base_url=self._client_wrapper.get_environment().default,
|
80
|
-
method="GET",
|
81
|
-
params={
|
82
|
-
"limit": limit,
|
83
|
-
"offset": offset,
|
84
|
-
"ordering": ordering,
|
85
|
-
"search": search,
|
86
|
-
"status": status,
|
87
|
-
},
|
88
|
-
request_options=request_options,
|
89
|
-
)
|
90
|
-
try:
|
91
|
-
if 200 <= _response.status_code < 300:
|
92
|
-
return typing.cast(
|
93
|
-
PaginatedDocumentIndexReadList,
|
94
|
-
parse_obj_as(
|
95
|
-
type_=PaginatedDocumentIndexReadList, # type: ignore
|
96
|
-
object_=_response.json(),
|
97
|
-
),
|
98
|
-
)
|
99
|
-
_response_json = _response.json()
|
100
|
-
except JSONDecodeError:
|
101
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
102
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
103
|
-
|
104
|
-
def create(
|
105
|
-
self,
|
106
|
-
*,
|
107
|
-
label: str,
|
108
|
-
name: str,
|
109
|
-
indexing_config: DocumentIndexIndexingConfigRequest,
|
110
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
111
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
112
|
-
copy_documents_from_index_id: typing.Optional[str] = OMIT,
|
113
|
-
request_options: typing.Optional[RequestOptions] = None,
|
114
|
-
) -> DocumentIndexRead:
|
115
|
-
"""
|
116
|
-
Creates a new document index.
|
117
|
-
|
118
|
-
Parameters
|
119
|
-
----------
|
120
|
-
label : str
|
121
|
-
A human-readable label for the document index
|
122
|
-
|
123
|
-
name : str
|
124
|
-
A name that uniquely identifies this index within its workspace
|
125
|
-
|
126
|
-
indexing_config : DocumentIndexIndexingConfigRequest
|
127
|
-
|
128
|
-
status : typing.Optional[EntityStatus]
|
129
|
-
The current status of the document index
|
130
|
-
|
131
|
-
* `ACTIVE` - Active
|
132
|
-
* `ARCHIVED` - Archived
|
133
|
-
|
134
|
-
environment : typing.Optional[EnvironmentEnum]
|
135
|
-
The environment this document index is used in
|
136
|
-
|
137
|
-
* `DEVELOPMENT` - Development
|
138
|
-
* `STAGING` - Staging
|
139
|
-
* `PRODUCTION` - Production
|
140
|
-
|
141
|
-
copy_documents_from_index_id : typing.Optional[str]
|
142
|
-
Optionally specify the id of a document index from which you'd like to copy and re-index its documents into this newly created index
|
143
|
-
|
144
|
-
request_options : typing.Optional[RequestOptions]
|
145
|
-
Request-specific configuration.
|
146
|
-
|
147
|
-
Returns
|
148
|
-
-------
|
149
|
-
DocumentIndexRead
|
150
|
-
|
151
|
-
|
152
|
-
Examples
|
153
|
-
--------
|
154
|
-
from vellum import (
|
155
|
-
DocumentIndexIndexingConfigRequest,
|
156
|
-
HkunlpInstructorXlVectorizerRequest,
|
157
|
-
InstructorVectorizerConfigRequest,
|
158
|
-
SentenceChunkerConfigRequest,
|
159
|
-
SentenceChunkingRequest,
|
160
|
-
Vellum,
|
161
|
-
)
|
162
|
-
|
163
|
-
client = Vellum(
|
164
|
-
api_key="YOUR_API_KEY",
|
165
|
-
)
|
166
|
-
client.document_indexes.create(
|
167
|
-
label="My Document Index",
|
168
|
-
name="my-document-index",
|
169
|
-
indexing_config=DocumentIndexIndexingConfigRequest(
|
170
|
-
vectorizer=HkunlpInstructorXlVectorizerRequest(
|
171
|
-
config=InstructorVectorizerConfigRequest(
|
172
|
-
instruction_domain="",
|
173
|
-
instruction_query_text_type="plain_text",
|
174
|
-
instruction_document_text_type="plain_text",
|
175
|
-
),
|
176
|
-
),
|
177
|
-
chunking=SentenceChunkingRequest(
|
178
|
-
chunker_config=SentenceChunkerConfigRequest(
|
179
|
-
character_limit=1000,
|
180
|
-
min_overlap_ratio=0.5,
|
181
|
-
),
|
182
|
-
),
|
183
|
-
),
|
184
|
-
)
|
185
|
-
"""
|
186
|
-
_response = self._client_wrapper.httpx_client.request(
|
187
|
-
"v1/document-indexes",
|
188
|
-
base_url=self._client_wrapper.get_environment().default,
|
189
|
-
method="POST",
|
190
|
-
json={
|
191
|
-
"label": label,
|
192
|
-
"name": name,
|
193
|
-
"status": status,
|
194
|
-
"environment": environment,
|
195
|
-
"indexing_config": convert_and_respect_annotation_metadata(
|
196
|
-
object_=indexing_config, annotation=DocumentIndexIndexingConfigRequest, direction="write"
|
197
|
-
),
|
198
|
-
"copy_documents_from_index_id": copy_documents_from_index_id,
|
199
|
-
},
|
200
|
-
request_options=request_options,
|
201
|
-
omit=OMIT,
|
202
|
-
)
|
203
|
-
try:
|
204
|
-
if 200 <= _response.status_code < 300:
|
205
|
-
return typing.cast(
|
206
|
-
DocumentIndexRead,
|
207
|
-
parse_obj_as(
|
208
|
-
type_=DocumentIndexRead, # type: ignore
|
209
|
-
object_=_response.json(),
|
210
|
-
),
|
211
|
-
)
|
212
|
-
_response_json = _response.json()
|
213
|
-
except JSONDecodeError:
|
214
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
215
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
216
|
-
|
217
|
-
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentIndexRead:
|
218
|
-
"""
|
219
|
-
Used to retrieve a Document Index given its ID or name.
|
220
|
-
|
221
|
-
Parameters
|
222
|
-
----------
|
223
|
-
id : str
|
224
|
-
Either the Document Index's ID or its unique name
|
225
|
-
|
226
|
-
request_options : typing.Optional[RequestOptions]
|
227
|
-
Request-specific configuration.
|
228
|
-
|
229
|
-
Returns
|
230
|
-
-------
|
231
|
-
DocumentIndexRead
|
232
|
-
|
233
|
-
|
234
|
-
Examples
|
235
|
-
--------
|
236
|
-
from vellum import Vellum
|
237
|
-
|
238
|
-
client = Vellum(
|
239
|
-
api_key="YOUR_API_KEY",
|
240
|
-
)
|
241
|
-
client.document_indexes.retrieve(
|
242
|
-
id="id",
|
243
|
-
)
|
244
|
-
"""
|
245
|
-
_response = self._client_wrapper.httpx_client.request(
|
246
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
247
|
-
base_url=self._client_wrapper.get_environment().default,
|
248
|
-
method="GET",
|
249
|
-
request_options=request_options,
|
250
|
-
)
|
251
|
-
try:
|
252
|
-
if 200 <= _response.status_code < 300:
|
253
|
-
return typing.cast(
|
254
|
-
DocumentIndexRead,
|
255
|
-
parse_obj_as(
|
256
|
-
type_=DocumentIndexRead, # type: ignore
|
257
|
-
object_=_response.json(),
|
258
|
-
),
|
259
|
-
)
|
260
|
-
_response_json = _response.json()
|
261
|
-
except JSONDecodeError:
|
262
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
263
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
264
|
-
|
265
|
-
def update(
|
266
|
-
self,
|
267
|
-
id: str,
|
268
|
-
*,
|
269
|
-
label: str,
|
270
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
271
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
272
|
-
request_options: typing.Optional[RequestOptions] = None,
|
273
|
-
) -> DocumentIndexRead:
|
274
|
-
"""
|
275
|
-
Used to fully update a Document Index given its ID or name.
|
276
|
-
|
277
|
-
Parameters
|
278
|
-
----------
|
279
|
-
id : str
|
280
|
-
Either the Document Index's ID or its unique name
|
281
|
-
|
282
|
-
label : str
|
283
|
-
A human-readable label for the document index
|
284
|
-
|
285
|
-
status : typing.Optional[EntityStatus]
|
286
|
-
The current status of the document index
|
287
|
-
|
288
|
-
* `ACTIVE` - Active
|
289
|
-
* `ARCHIVED` - Archived
|
290
|
-
|
291
|
-
environment : typing.Optional[EnvironmentEnum]
|
292
|
-
The environment this document index is used in
|
293
|
-
|
294
|
-
* `DEVELOPMENT` - Development
|
295
|
-
* `STAGING` - Staging
|
296
|
-
* `PRODUCTION` - Production
|
297
|
-
|
298
|
-
request_options : typing.Optional[RequestOptions]
|
299
|
-
Request-specific configuration.
|
300
|
-
|
301
|
-
Returns
|
302
|
-
-------
|
303
|
-
DocumentIndexRead
|
304
|
-
|
305
|
-
|
306
|
-
Examples
|
307
|
-
--------
|
308
|
-
from vellum import Vellum
|
309
|
-
|
310
|
-
client = Vellum(
|
311
|
-
api_key="YOUR_API_KEY",
|
312
|
-
)
|
313
|
-
client.document_indexes.update(
|
314
|
-
id="id",
|
315
|
-
label="label",
|
316
|
-
)
|
317
|
-
"""
|
318
|
-
_response = self._client_wrapper.httpx_client.request(
|
319
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
320
|
-
base_url=self._client_wrapper.get_environment().default,
|
321
|
-
method="PUT",
|
322
|
-
json={
|
323
|
-
"label": label,
|
324
|
-
"status": status,
|
325
|
-
"environment": environment,
|
326
|
-
},
|
327
|
-
request_options=request_options,
|
328
|
-
omit=OMIT,
|
329
|
-
)
|
330
|
-
try:
|
331
|
-
if 200 <= _response.status_code < 300:
|
332
|
-
return typing.cast(
|
333
|
-
DocumentIndexRead,
|
334
|
-
parse_obj_as(
|
335
|
-
type_=DocumentIndexRead, # type: ignore
|
336
|
-
object_=_response.json(),
|
337
|
-
),
|
338
|
-
)
|
339
|
-
_response_json = _response.json()
|
340
|
-
except JSONDecodeError:
|
341
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
342
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
343
|
-
|
344
|
-
def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
345
|
-
"""
|
346
|
-
Used to delete a Document Index given its ID or name.
|
347
|
-
|
348
|
-
Parameters
|
349
|
-
----------
|
350
|
-
id : str
|
351
|
-
Either the Document Index's ID or its unique name
|
352
|
-
|
353
|
-
request_options : typing.Optional[RequestOptions]
|
354
|
-
Request-specific configuration.
|
355
|
-
|
356
|
-
Returns
|
357
|
-
-------
|
358
|
-
None
|
359
|
-
|
360
|
-
Examples
|
361
|
-
--------
|
362
|
-
from vellum import Vellum
|
363
|
-
|
364
|
-
client = Vellum(
|
365
|
-
api_key="YOUR_API_KEY",
|
366
|
-
)
|
367
|
-
client.document_indexes.destroy(
|
368
|
-
id="id",
|
369
|
-
)
|
370
|
-
"""
|
371
|
-
_response = self._client_wrapper.httpx_client.request(
|
372
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
373
|
-
base_url=self._client_wrapper.get_environment().documents,
|
374
|
-
method="DELETE",
|
375
|
-
request_options=request_options,
|
376
|
-
)
|
377
|
-
try:
|
378
|
-
if 200 <= _response.status_code < 300:
|
379
|
-
return
|
380
|
-
_response_json = _response.json()
|
381
|
-
except JSONDecodeError:
|
382
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
383
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
384
|
-
|
385
|
-
def partial_update(
|
386
|
-
self,
|
387
|
-
id: str,
|
388
|
-
*,
|
389
|
-
label: typing.Optional[str] = OMIT,
|
390
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
391
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
392
|
-
request_options: typing.Optional[RequestOptions] = None,
|
393
|
-
) -> DocumentIndexRead:
|
394
|
-
"""
|
395
|
-
Used to partial update a Document Index given its ID or name.
|
396
|
-
|
397
|
-
Parameters
|
398
|
-
----------
|
399
|
-
id : str
|
400
|
-
Either the Document Index's ID or its unique name
|
401
|
-
|
402
|
-
label : typing.Optional[str]
|
403
|
-
A human-readable label for the document index
|
404
|
-
|
405
|
-
status : typing.Optional[EntityStatus]
|
406
|
-
The current status of the document index
|
407
|
-
|
408
|
-
* `ACTIVE` - Active
|
409
|
-
* `ARCHIVED` - Archived
|
410
|
-
|
411
|
-
environment : typing.Optional[EnvironmentEnum]
|
412
|
-
The environment this document index is used in
|
413
|
-
|
414
|
-
* `DEVELOPMENT` - Development
|
415
|
-
* `STAGING` - Staging
|
416
|
-
* `PRODUCTION` - Production
|
417
|
-
|
418
|
-
request_options : typing.Optional[RequestOptions]
|
419
|
-
Request-specific configuration.
|
420
|
-
|
421
|
-
Returns
|
422
|
-
-------
|
423
|
-
DocumentIndexRead
|
424
|
-
|
425
|
-
|
426
|
-
Examples
|
427
|
-
--------
|
428
|
-
from vellum import Vellum
|
429
|
-
|
430
|
-
client = Vellum(
|
431
|
-
api_key="YOUR_API_KEY",
|
432
|
-
)
|
433
|
-
client.document_indexes.partial_update(
|
434
|
-
id="id",
|
435
|
-
)
|
436
|
-
"""
|
437
|
-
_response = self._client_wrapper.httpx_client.request(
|
438
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
439
|
-
base_url=self._client_wrapper.get_environment().default,
|
440
|
-
method="PATCH",
|
441
|
-
json={
|
442
|
-
"label": label,
|
443
|
-
"status": status,
|
444
|
-
"environment": environment,
|
445
|
-
},
|
446
|
-
request_options=request_options,
|
447
|
-
omit=OMIT,
|
448
|
-
)
|
449
|
-
try:
|
450
|
-
if 200 <= _response.status_code < 300:
|
451
|
-
return typing.cast(
|
452
|
-
DocumentIndexRead,
|
453
|
-
parse_obj_as(
|
454
|
-
type_=DocumentIndexRead, # type: ignore
|
455
|
-
object_=_response.json(),
|
456
|
-
),
|
457
|
-
)
|
458
|
-
_response_json = _response.json()
|
459
|
-
except JSONDecodeError:
|
460
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
461
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
462
|
-
|
463
|
-
def add_document(
|
464
|
-
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
465
|
-
) -> None:
|
466
|
-
"""
|
467
|
-
Adds a previously uploaded Document to the specified Document Index.
|
468
|
-
|
469
|
-
Parameters
|
470
|
-
----------
|
471
|
-
document_id : str
|
472
|
-
Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add.
|
473
|
-
|
474
|
-
id : str
|
475
|
-
Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index to which you'd like to add the Document.
|
476
|
-
|
477
|
-
request_options : typing.Optional[RequestOptions]
|
478
|
-
Request-specific configuration.
|
479
|
-
|
480
|
-
Returns
|
481
|
-
-------
|
482
|
-
None
|
483
|
-
|
484
|
-
Examples
|
485
|
-
--------
|
486
|
-
from vellum import Vellum
|
487
|
-
|
488
|
-
client = Vellum(
|
489
|
-
api_key="YOUR_API_KEY",
|
490
|
-
)
|
491
|
-
client.document_indexes.add_document(
|
492
|
-
document_id="document_id",
|
493
|
-
id="id",
|
494
|
-
)
|
495
|
-
"""
|
496
|
-
_response = self._client_wrapper.httpx_client.request(
|
497
|
-
f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
|
498
|
-
base_url=self._client_wrapper.get_environment().default,
|
499
|
-
method="POST",
|
500
|
-
request_options=request_options,
|
501
|
-
)
|
502
|
-
try:
|
503
|
-
if 200 <= _response.status_code < 300:
|
504
|
-
return
|
505
|
-
_response_json = _response.json()
|
506
|
-
except JSONDecodeError:
|
507
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
508
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
509
|
-
|
510
|
-
def remove_document(
|
511
|
-
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
512
|
-
) -> None:
|
513
|
-
"""
|
514
|
-
Removes a Document from a Document Index without deleting the Document itself.
|
515
|
-
|
516
|
-
Parameters
|
517
|
-
----------
|
518
|
-
document_id : str
|
519
|
-
Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
|
520
|
-
|
521
|
-
id : str
|
522
|
-
Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
|
523
|
-
|
524
|
-
request_options : typing.Optional[RequestOptions]
|
525
|
-
Request-specific configuration.
|
526
|
-
|
527
|
-
Returns
|
528
|
-
-------
|
529
|
-
None
|
530
|
-
|
531
|
-
Examples
|
532
|
-
--------
|
533
|
-
from vellum import Vellum
|
534
|
-
|
535
|
-
client = Vellum(
|
536
|
-
api_key="YOUR_API_KEY",
|
537
|
-
)
|
538
|
-
client.document_indexes.remove_document(
|
539
|
-
document_id="document_id",
|
540
|
-
id="id",
|
541
|
-
)
|
542
|
-
"""
|
543
|
-
_response = self._client_wrapper.httpx_client.request(
|
544
|
-
f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
|
545
|
-
base_url=self._client_wrapper.get_environment().documents,
|
546
|
-
method="DELETE",
|
547
|
-
request_options=request_options,
|
548
|
-
)
|
549
|
-
try:
|
550
|
-
if 200 <= _response.status_code < 300:
|
551
|
-
return
|
552
|
-
_response_json = _response.json()
|
553
|
-
except JSONDecodeError:
|
554
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
555
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
556
|
-
|
557
|
-
|
558
|
-
class AsyncDocumentIndexesClient:
|
559
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
560
|
-
self._client_wrapper = client_wrapper
|
561
|
-
|
562
|
-
async def list(
|
563
|
-
self,
|
564
|
-
*,
|
565
|
-
limit: typing.Optional[int] = None,
|
566
|
-
offset: typing.Optional[int] = None,
|
567
|
-
ordering: typing.Optional[str] = None,
|
568
|
-
search: typing.Optional[str] = None,
|
569
|
-
status: typing.Optional[DocumentIndexesListRequestStatus] = None,
|
570
|
-
request_options: typing.Optional[RequestOptions] = None,
|
571
|
-
) -> PaginatedDocumentIndexReadList:
|
572
|
-
"""
|
573
|
-
Used to retrieve a list of Document Indexes.
|
574
|
-
|
575
|
-
Parameters
|
576
|
-
----------
|
577
|
-
limit : typing.Optional[int]
|
578
|
-
Number of results to return per page.
|
579
|
-
|
580
|
-
offset : typing.Optional[int]
|
581
|
-
The initial index from which to return the results.
|
582
|
-
|
583
|
-
ordering : typing.Optional[str]
|
584
|
-
Which field to use when ordering the results.
|
585
|
-
|
586
|
-
search : typing.Optional[str]
|
587
|
-
Search for document indices by name or label
|
588
|
-
|
589
|
-
status : typing.Optional[DocumentIndexesListRequestStatus]
|
590
|
-
Filter down to only document indices that have a status matching the status specified
|
591
|
-
|
592
|
-
- `ACTIVE` - Active
|
593
|
-
- `ARCHIVED` - Archived
|
594
|
-
|
595
|
-
request_options : typing.Optional[RequestOptions]
|
596
|
-
Request-specific configuration.
|
597
|
-
|
598
|
-
Returns
|
599
|
-
-------
|
600
|
-
PaginatedDocumentIndexReadList
|
601
|
-
|
602
|
-
|
603
|
-
Examples
|
604
|
-
--------
|
605
|
-
import asyncio
|
606
|
-
|
607
|
-
from vellum import AsyncVellum
|
608
|
-
|
609
|
-
client = AsyncVellum(
|
610
|
-
api_key="YOUR_API_KEY",
|
611
|
-
)
|
612
|
-
|
613
|
-
|
614
|
-
async def main() -> None:
|
615
|
-
await client.document_indexes.list()
|
616
|
-
|
617
|
-
|
618
|
-
asyncio.run(main())
|
619
|
-
"""
|
620
|
-
_response = await self._client_wrapper.httpx_client.request(
|
621
|
-
"v1/document-indexes",
|
622
|
-
base_url=self._client_wrapper.get_environment().default,
|
623
|
-
method="GET",
|
624
|
-
params={
|
625
|
-
"limit": limit,
|
626
|
-
"offset": offset,
|
627
|
-
"ordering": ordering,
|
628
|
-
"search": search,
|
629
|
-
"status": status,
|
630
|
-
},
|
631
|
-
request_options=request_options,
|
632
|
-
)
|
633
|
-
try:
|
634
|
-
if 200 <= _response.status_code < 300:
|
635
|
-
return typing.cast(
|
636
|
-
PaginatedDocumentIndexReadList,
|
637
|
-
parse_obj_as(
|
638
|
-
type_=PaginatedDocumentIndexReadList, # type: ignore
|
639
|
-
object_=_response.json(),
|
640
|
-
),
|
641
|
-
)
|
642
|
-
_response_json = _response.json()
|
643
|
-
except JSONDecodeError:
|
644
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
645
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
646
|
-
|
647
|
-
async def create(
|
648
|
-
self,
|
649
|
-
*,
|
650
|
-
label: str,
|
651
|
-
name: str,
|
652
|
-
indexing_config: DocumentIndexIndexingConfigRequest,
|
653
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
654
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
655
|
-
copy_documents_from_index_id: typing.Optional[str] = OMIT,
|
656
|
-
request_options: typing.Optional[RequestOptions] = None,
|
657
|
-
) -> DocumentIndexRead:
|
658
|
-
"""
|
659
|
-
Creates a new document index.
|
660
|
-
|
661
|
-
Parameters
|
662
|
-
----------
|
663
|
-
label : str
|
664
|
-
A human-readable label for the document index
|
665
|
-
|
666
|
-
name : str
|
667
|
-
A name that uniquely identifies this index within its workspace
|
668
|
-
|
669
|
-
indexing_config : DocumentIndexIndexingConfigRequest
|
670
|
-
|
671
|
-
status : typing.Optional[EntityStatus]
|
672
|
-
The current status of the document index
|
673
|
-
|
674
|
-
* `ACTIVE` - Active
|
675
|
-
* `ARCHIVED` - Archived
|
676
|
-
|
677
|
-
environment : typing.Optional[EnvironmentEnum]
|
678
|
-
The environment this document index is used in
|
679
|
-
|
680
|
-
* `DEVELOPMENT` - Development
|
681
|
-
* `STAGING` - Staging
|
682
|
-
* `PRODUCTION` - Production
|
683
|
-
|
684
|
-
copy_documents_from_index_id : typing.Optional[str]
|
685
|
-
Optionally specify the id of a document index from which you'd like to copy and re-index its documents into this newly created index
|
686
|
-
|
687
|
-
request_options : typing.Optional[RequestOptions]
|
688
|
-
Request-specific configuration.
|
689
|
-
|
690
|
-
Returns
|
691
|
-
-------
|
692
|
-
DocumentIndexRead
|
693
|
-
|
694
|
-
|
695
|
-
Examples
|
696
|
-
--------
|
697
|
-
import asyncio
|
698
|
-
|
699
|
-
from vellum import (
|
700
|
-
AsyncVellum,
|
701
|
-
DocumentIndexIndexingConfigRequest,
|
702
|
-
HkunlpInstructorXlVectorizerRequest,
|
703
|
-
InstructorVectorizerConfigRequest,
|
704
|
-
SentenceChunkerConfigRequest,
|
705
|
-
SentenceChunkingRequest,
|
706
|
-
)
|
707
|
-
|
708
|
-
client = AsyncVellum(
|
709
|
-
api_key="YOUR_API_KEY",
|
710
|
-
)
|
711
|
-
|
712
|
-
|
713
|
-
async def main() -> None:
|
714
|
-
await client.document_indexes.create(
|
715
|
-
label="My Document Index",
|
716
|
-
name="my-document-index",
|
717
|
-
indexing_config=DocumentIndexIndexingConfigRequest(
|
718
|
-
vectorizer=HkunlpInstructorXlVectorizerRequest(
|
719
|
-
config=InstructorVectorizerConfigRequest(
|
720
|
-
instruction_domain="",
|
721
|
-
instruction_query_text_type="plain_text",
|
722
|
-
instruction_document_text_type="plain_text",
|
723
|
-
),
|
724
|
-
),
|
725
|
-
chunking=SentenceChunkingRequest(
|
726
|
-
chunker_config=SentenceChunkerConfigRequest(
|
727
|
-
character_limit=1000,
|
728
|
-
min_overlap_ratio=0.5,
|
729
|
-
),
|
730
|
-
),
|
731
|
-
),
|
732
|
-
)
|
733
|
-
|
734
|
-
|
735
|
-
asyncio.run(main())
|
736
|
-
"""
|
737
|
-
_response = await self._client_wrapper.httpx_client.request(
|
738
|
-
"v1/document-indexes",
|
739
|
-
base_url=self._client_wrapper.get_environment().default,
|
740
|
-
method="POST",
|
741
|
-
json={
|
742
|
-
"label": label,
|
743
|
-
"name": name,
|
744
|
-
"status": status,
|
745
|
-
"environment": environment,
|
746
|
-
"indexing_config": convert_and_respect_annotation_metadata(
|
747
|
-
object_=indexing_config, annotation=DocumentIndexIndexingConfigRequest, direction="write"
|
748
|
-
),
|
749
|
-
"copy_documents_from_index_id": copy_documents_from_index_id,
|
750
|
-
},
|
751
|
-
request_options=request_options,
|
752
|
-
omit=OMIT,
|
753
|
-
)
|
754
|
-
try:
|
755
|
-
if 200 <= _response.status_code < 300:
|
756
|
-
return typing.cast(
|
757
|
-
DocumentIndexRead,
|
758
|
-
parse_obj_as(
|
759
|
-
type_=DocumentIndexRead, # type: ignore
|
760
|
-
object_=_response.json(),
|
761
|
-
),
|
762
|
-
)
|
763
|
-
_response_json = _response.json()
|
764
|
-
except JSONDecodeError:
|
765
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
766
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
767
|
-
|
768
|
-
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentIndexRead:
|
769
|
-
"""
|
770
|
-
Used to retrieve a Document Index given its ID or name.
|
771
|
-
|
772
|
-
Parameters
|
773
|
-
----------
|
774
|
-
id : str
|
775
|
-
Either the Document Index's ID or its unique name
|
776
|
-
|
777
|
-
request_options : typing.Optional[RequestOptions]
|
778
|
-
Request-specific configuration.
|
779
|
-
|
780
|
-
Returns
|
781
|
-
-------
|
782
|
-
DocumentIndexRead
|
783
|
-
|
784
|
-
|
785
|
-
Examples
|
786
|
-
--------
|
787
|
-
import asyncio
|
788
|
-
|
789
|
-
from vellum import AsyncVellum
|
790
|
-
|
791
|
-
client = AsyncVellum(
|
792
|
-
api_key="YOUR_API_KEY",
|
793
|
-
)
|
794
|
-
|
795
|
-
|
796
|
-
async def main() -> None:
|
797
|
-
await client.document_indexes.retrieve(
|
798
|
-
id="id",
|
799
|
-
)
|
800
|
-
|
801
|
-
|
802
|
-
asyncio.run(main())
|
803
|
-
"""
|
804
|
-
_response = await self._client_wrapper.httpx_client.request(
|
805
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
806
|
-
base_url=self._client_wrapper.get_environment().default,
|
807
|
-
method="GET",
|
808
|
-
request_options=request_options,
|
809
|
-
)
|
810
|
-
try:
|
811
|
-
if 200 <= _response.status_code < 300:
|
812
|
-
return typing.cast(
|
813
|
-
DocumentIndexRead,
|
814
|
-
parse_obj_as(
|
815
|
-
type_=DocumentIndexRead, # type: ignore
|
816
|
-
object_=_response.json(),
|
817
|
-
),
|
818
|
-
)
|
819
|
-
_response_json = _response.json()
|
820
|
-
except JSONDecodeError:
|
821
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
822
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
823
|
-
|
824
|
-
async def update(
|
825
|
-
self,
|
826
|
-
id: str,
|
827
|
-
*,
|
828
|
-
label: str,
|
829
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
830
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
831
|
-
request_options: typing.Optional[RequestOptions] = None,
|
832
|
-
) -> DocumentIndexRead:
|
833
|
-
"""
|
834
|
-
Used to fully update a Document Index given its ID or name.
|
835
|
-
|
836
|
-
Parameters
|
837
|
-
----------
|
838
|
-
id : str
|
839
|
-
Either the Document Index's ID or its unique name
|
840
|
-
|
841
|
-
label : str
|
842
|
-
A human-readable label for the document index
|
843
|
-
|
844
|
-
status : typing.Optional[EntityStatus]
|
845
|
-
The current status of the document index
|
846
|
-
|
847
|
-
* `ACTIVE` - Active
|
848
|
-
* `ARCHIVED` - Archived
|
849
|
-
|
850
|
-
environment : typing.Optional[EnvironmentEnum]
|
851
|
-
The environment this document index is used in
|
852
|
-
|
853
|
-
* `DEVELOPMENT` - Development
|
854
|
-
* `STAGING` - Staging
|
855
|
-
* `PRODUCTION` - Production
|
856
|
-
|
857
|
-
request_options : typing.Optional[RequestOptions]
|
858
|
-
Request-specific configuration.
|
859
|
-
|
860
|
-
Returns
|
861
|
-
-------
|
862
|
-
DocumentIndexRead
|
863
|
-
|
864
|
-
|
865
|
-
Examples
|
866
|
-
--------
|
867
|
-
import asyncio
|
868
|
-
|
869
|
-
from vellum import AsyncVellum
|
870
|
-
|
871
|
-
client = AsyncVellum(
|
872
|
-
api_key="YOUR_API_KEY",
|
873
|
-
)
|
874
|
-
|
875
|
-
|
876
|
-
async def main() -> None:
|
877
|
-
await client.document_indexes.update(
|
878
|
-
id="id",
|
879
|
-
label="label",
|
880
|
-
)
|
881
|
-
|
882
|
-
|
883
|
-
asyncio.run(main())
|
884
|
-
"""
|
885
|
-
_response = await self._client_wrapper.httpx_client.request(
|
886
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
887
|
-
base_url=self._client_wrapper.get_environment().default,
|
888
|
-
method="PUT",
|
889
|
-
json={
|
890
|
-
"label": label,
|
891
|
-
"status": status,
|
892
|
-
"environment": environment,
|
893
|
-
},
|
894
|
-
request_options=request_options,
|
895
|
-
omit=OMIT,
|
896
|
-
)
|
897
|
-
try:
|
898
|
-
if 200 <= _response.status_code < 300:
|
899
|
-
return typing.cast(
|
900
|
-
DocumentIndexRead,
|
901
|
-
parse_obj_as(
|
902
|
-
type_=DocumentIndexRead, # type: ignore
|
903
|
-
object_=_response.json(),
|
904
|
-
),
|
905
|
-
)
|
906
|
-
_response_json = _response.json()
|
907
|
-
except JSONDecodeError:
|
908
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
909
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
910
|
-
|
911
|
-
async def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
912
|
-
"""
|
913
|
-
Used to delete a Document Index given its ID or name.
|
914
|
-
|
915
|
-
Parameters
|
916
|
-
----------
|
917
|
-
id : str
|
918
|
-
Either the Document Index's ID or its unique name
|
919
|
-
|
920
|
-
request_options : typing.Optional[RequestOptions]
|
921
|
-
Request-specific configuration.
|
922
|
-
|
923
|
-
Returns
|
924
|
-
-------
|
925
|
-
None
|
926
|
-
|
927
|
-
Examples
|
928
|
-
--------
|
929
|
-
import asyncio
|
930
|
-
|
931
|
-
from vellum import AsyncVellum
|
932
|
-
|
933
|
-
client = AsyncVellum(
|
934
|
-
api_key="YOUR_API_KEY",
|
935
|
-
)
|
936
|
-
|
937
|
-
|
938
|
-
async def main() -> None:
|
939
|
-
await client.document_indexes.destroy(
|
940
|
-
id="id",
|
941
|
-
)
|
942
|
-
|
943
|
-
|
944
|
-
asyncio.run(main())
|
945
|
-
"""
|
946
|
-
_response = await self._client_wrapper.httpx_client.request(
|
947
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
948
|
-
base_url=self._client_wrapper.get_environment().documents,
|
949
|
-
method="DELETE",
|
950
|
-
request_options=request_options,
|
951
|
-
)
|
952
|
-
try:
|
953
|
-
if 200 <= _response.status_code < 300:
|
954
|
-
return
|
955
|
-
_response_json = _response.json()
|
956
|
-
except JSONDecodeError:
|
957
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
958
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
959
|
-
|
960
|
-
async def partial_update(
|
961
|
-
self,
|
962
|
-
id: str,
|
963
|
-
*,
|
964
|
-
label: typing.Optional[str] = OMIT,
|
965
|
-
status: typing.Optional[EntityStatus] = OMIT,
|
966
|
-
environment: typing.Optional[EnvironmentEnum] = OMIT,
|
967
|
-
request_options: typing.Optional[RequestOptions] = None,
|
968
|
-
) -> DocumentIndexRead:
|
969
|
-
"""
|
970
|
-
Used to partial update a Document Index given its ID or name.
|
971
|
-
|
972
|
-
Parameters
|
973
|
-
----------
|
974
|
-
id : str
|
975
|
-
Either the Document Index's ID or its unique name
|
976
|
-
|
977
|
-
label : typing.Optional[str]
|
978
|
-
A human-readable label for the document index
|
979
|
-
|
980
|
-
status : typing.Optional[EntityStatus]
|
981
|
-
The current status of the document index
|
982
|
-
|
983
|
-
* `ACTIVE` - Active
|
984
|
-
* `ARCHIVED` - Archived
|
985
|
-
|
986
|
-
environment : typing.Optional[EnvironmentEnum]
|
987
|
-
The environment this document index is used in
|
988
|
-
|
989
|
-
* `DEVELOPMENT` - Development
|
990
|
-
* `STAGING` - Staging
|
991
|
-
* `PRODUCTION` - Production
|
992
|
-
|
993
|
-
request_options : typing.Optional[RequestOptions]
|
994
|
-
Request-specific configuration.
|
995
|
-
|
996
|
-
Returns
|
997
|
-
-------
|
998
|
-
DocumentIndexRead
|
999
|
-
|
1000
|
-
|
1001
|
-
Examples
|
1002
|
-
--------
|
1003
|
-
import asyncio
|
1004
|
-
|
1005
|
-
from vellum import AsyncVellum
|
1006
|
-
|
1007
|
-
client = AsyncVellum(
|
1008
|
-
api_key="YOUR_API_KEY",
|
1009
|
-
)
|
1010
|
-
|
1011
|
-
|
1012
|
-
async def main() -> None:
|
1013
|
-
await client.document_indexes.partial_update(
|
1014
|
-
id="id",
|
1015
|
-
)
|
1016
|
-
|
1017
|
-
|
1018
|
-
asyncio.run(main())
|
1019
|
-
"""
|
1020
|
-
_response = await self._client_wrapper.httpx_client.request(
|
1021
|
-
f"v1/document-indexes/{jsonable_encoder(id)}",
|
1022
|
-
base_url=self._client_wrapper.get_environment().default,
|
1023
|
-
method="PATCH",
|
1024
|
-
json={
|
1025
|
-
"label": label,
|
1026
|
-
"status": status,
|
1027
|
-
"environment": environment,
|
1028
|
-
},
|
1029
|
-
request_options=request_options,
|
1030
|
-
omit=OMIT,
|
1031
|
-
)
|
1032
|
-
try:
|
1033
|
-
if 200 <= _response.status_code < 300:
|
1034
|
-
return typing.cast(
|
1035
|
-
DocumentIndexRead,
|
1036
|
-
parse_obj_as(
|
1037
|
-
type_=DocumentIndexRead, # type: ignore
|
1038
|
-
object_=_response.json(),
|
1039
|
-
),
|
1040
|
-
)
|
1041
|
-
_response_json = _response.json()
|
1042
|
-
except JSONDecodeError:
|
1043
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
1044
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
1045
|
-
|
1046
|
-
async def add_document(
|
1047
|
-
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
1048
|
-
) -> None:
|
1049
|
-
"""
|
1050
|
-
Adds a previously uploaded Document to the specified Document Index.
|
1051
|
-
|
1052
|
-
Parameters
|
1053
|
-
----------
|
1054
|
-
document_id : str
|
1055
|
-
Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add.
|
1056
|
-
|
1057
|
-
id : str
|
1058
|
-
Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index to which you'd like to add the Document.
|
1059
|
-
|
1060
|
-
request_options : typing.Optional[RequestOptions]
|
1061
|
-
Request-specific configuration.
|
1062
|
-
|
1063
|
-
Returns
|
1064
|
-
-------
|
1065
|
-
None
|
1066
|
-
|
1067
|
-
Examples
|
1068
|
-
--------
|
1069
|
-
import asyncio
|
1070
|
-
|
1071
|
-
from vellum import AsyncVellum
|
1072
|
-
|
1073
|
-
client = AsyncVellum(
|
1074
|
-
api_key="YOUR_API_KEY",
|
1075
|
-
)
|
1076
|
-
|
1077
|
-
|
1078
|
-
async def main() -> None:
|
1079
|
-
await client.document_indexes.add_document(
|
1080
|
-
document_id="document_id",
|
1081
|
-
id="id",
|
1082
|
-
)
|
1083
|
-
|
1084
|
-
|
1085
|
-
asyncio.run(main())
|
1086
|
-
"""
|
1087
|
-
_response = await self._client_wrapper.httpx_client.request(
|
1088
|
-
f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
|
1089
|
-
base_url=self._client_wrapper.get_environment().default,
|
1090
|
-
method="POST",
|
1091
|
-
request_options=request_options,
|
1092
|
-
)
|
1093
|
-
try:
|
1094
|
-
if 200 <= _response.status_code < 300:
|
1095
|
-
return
|
1096
|
-
_response_json = _response.json()
|
1097
|
-
except JSONDecodeError:
|
1098
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
1099
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
1100
|
-
|
1101
|
-
async def remove_document(
|
1102
|
-
self, document_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
1103
|
-
) -> None:
|
1104
|
-
"""
|
1105
|
-
Removes a Document from a Document Index without deleting the Document itself.
|
1106
|
-
|
1107
|
-
Parameters
|
1108
|
-
----------
|
1109
|
-
document_id : str
|
1110
|
-
Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
|
1111
|
-
|
1112
|
-
id : str
|
1113
|
-
Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
|
1114
|
-
|
1115
|
-
request_options : typing.Optional[RequestOptions]
|
1116
|
-
Request-specific configuration.
|
1117
|
-
|
1118
|
-
Returns
|
1119
|
-
-------
|
1120
|
-
None
|
1121
|
-
|
1122
|
-
Examples
|
1123
|
-
--------
|
1124
|
-
import asyncio
|
1125
|
-
|
1126
|
-
from vellum import AsyncVellum
|
1127
|
-
|
1128
|
-
client = AsyncVellum(
|
1129
|
-
api_key="YOUR_API_KEY",
|
1130
|
-
)
|
1131
|
-
|
1132
|
-
|
1133
|
-
async def main() -> None:
|
1134
|
-
await client.document_indexes.remove_document(
|
1135
|
-
document_id="document_id",
|
1136
|
-
id="id",
|
1137
|
-
)
|
1138
|
-
|
1139
|
-
|
1140
|
-
asyncio.run(main())
|
1141
|
-
"""
|
1142
|
-
_response = await self._client_wrapper.httpx_client.request(
|
1143
|
-
f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
|
1144
|
-
base_url=self._client_wrapper.get_environment().documents,
|
1145
|
-
method="DELETE",
|
1146
|
-
request_options=request_options,
|
1147
|
-
)
|
1148
|
-
try:
|
1149
|
-
if 200 <= _response.status_code < 300:
|
1150
|
-
return
|
1151
|
-
_response_json = _response.json()
|
1152
|
-
except JSONDecodeError:
|
1153
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
1154
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
3
|
+
from vellum.client.resources.document_indexes.client import *
|