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
@@ -0,0 +1,975 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from ...core.client_wrapper import SyncClientWrapper
|
5
|
+
from .types.deployments_list_request_status import DeploymentsListRequestStatus
|
6
|
+
from ...core.request_options import RequestOptions
|
7
|
+
from ...types.paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
|
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.deployment_read import DeploymentRead
|
12
|
+
from ...core.jsonable_encoder import jsonable_encoder
|
13
|
+
from .types.list_deployment_release_tags_request_source import ListDeploymentReleaseTagsRequestSource
|
14
|
+
from ...types.paginated_deployment_release_tag_read_list import PaginatedDeploymentReleaseTagReadList
|
15
|
+
from ...types.deployment_release_tag_read import DeploymentReleaseTagRead
|
16
|
+
from ...types.prompt_deployment_input_request import PromptDeploymentInputRequest
|
17
|
+
from ...types.compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
18
|
+
from ...types.deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
19
|
+
from ...core.serialization import convert_and_respect_annotation_metadata
|
20
|
+
from ...errors.bad_request_error import BadRequestError
|
21
|
+
from ...errors.forbidden_error import ForbiddenError
|
22
|
+
from ...errors.not_found_error import NotFoundError
|
23
|
+
from ...errors.internal_server_error import InternalServerError
|
24
|
+
from ...core.client_wrapper import AsyncClientWrapper
|
25
|
+
|
26
|
+
# this is used as the default value for optional parameters
|
27
|
+
OMIT = typing.cast(typing.Any, ...)
|
28
|
+
|
29
|
+
|
30
|
+
class DeploymentsClient:
|
31
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
32
|
+
self._client_wrapper = client_wrapper
|
33
|
+
|
34
|
+
def list(
|
35
|
+
self,
|
36
|
+
*,
|
37
|
+
limit: typing.Optional[int] = None,
|
38
|
+
offset: typing.Optional[int] = None,
|
39
|
+
ordering: typing.Optional[str] = None,
|
40
|
+
status: typing.Optional[DeploymentsListRequestStatus] = None,
|
41
|
+
request_options: typing.Optional[RequestOptions] = None,
|
42
|
+
) -> PaginatedSlimDeploymentReadList:
|
43
|
+
"""
|
44
|
+
Used to list all Prompt Deployments.
|
45
|
+
|
46
|
+
Parameters
|
47
|
+
----------
|
48
|
+
limit : typing.Optional[int]
|
49
|
+
Number of results to return per page.
|
50
|
+
|
51
|
+
offset : typing.Optional[int]
|
52
|
+
The initial index from which to return the results.
|
53
|
+
|
54
|
+
ordering : typing.Optional[str]
|
55
|
+
Which field to use when ordering the results.
|
56
|
+
|
57
|
+
status : typing.Optional[DeploymentsListRequestStatus]
|
58
|
+
status
|
59
|
+
|
60
|
+
request_options : typing.Optional[RequestOptions]
|
61
|
+
Request-specific configuration.
|
62
|
+
|
63
|
+
Returns
|
64
|
+
-------
|
65
|
+
PaginatedSlimDeploymentReadList
|
66
|
+
|
67
|
+
|
68
|
+
Examples
|
69
|
+
--------
|
70
|
+
from vellum import Vellum
|
71
|
+
|
72
|
+
client = Vellum(
|
73
|
+
api_key="YOUR_API_KEY",
|
74
|
+
)
|
75
|
+
client.deployments.list()
|
76
|
+
"""
|
77
|
+
_response = self._client_wrapper.httpx_client.request(
|
78
|
+
"v1/deployments",
|
79
|
+
base_url=self._client_wrapper.get_environment().default,
|
80
|
+
method="GET",
|
81
|
+
params={
|
82
|
+
"limit": limit,
|
83
|
+
"offset": offset,
|
84
|
+
"ordering": ordering,
|
85
|
+
"status": status,
|
86
|
+
},
|
87
|
+
request_options=request_options,
|
88
|
+
)
|
89
|
+
try:
|
90
|
+
if 200 <= _response.status_code < 300:
|
91
|
+
return typing.cast(
|
92
|
+
PaginatedSlimDeploymentReadList,
|
93
|
+
parse_obj_as(
|
94
|
+
type_=PaginatedSlimDeploymentReadList, # type: ignore
|
95
|
+
object_=_response.json(),
|
96
|
+
),
|
97
|
+
)
|
98
|
+
_response_json = _response.json()
|
99
|
+
except JSONDecodeError:
|
100
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
101
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
102
|
+
|
103
|
+
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DeploymentRead:
|
104
|
+
"""
|
105
|
+
Used to retrieve a Prompt Deployment given its ID or name.
|
106
|
+
|
107
|
+
Parameters
|
108
|
+
----------
|
109
|
+
id : str
|
110
|
+
Either the Deployment's ID or its unique name
|
111
|
+
|
112
|
+
request_options : typing.Optional[RequestOptions]
|
113
|
+
Request-specific configuration.
|
114
|
+
|
115
|
+
Returns
|
116
|
+
-------
|
117
|
+
DeploymentRead
|
118
|
+
|
119
|
+
|
120
|
+
Examples
|
121
|
+
--------
|
122
|
+
from vellum import Vellum
|
123
|
+
|
124
|
+
client = Vellum(
|
125
|
+
api_key="YOUR_API_KEY",
|
126
|
+
)
|
127
|
+
client.deployments.retrieve(
|
128
|
+
id="id",
|
129
|
+
)
|
130
|
+
"""
|
131
|
+
_response = self._client_wrapper.httpx_client.request(
|
132
|
+
f"v1/deployments/{jsonable_encoder(id)}",
|
133
|
+
base_url=self._client_wrapper.get_environment().default,
|
134
|
+
method="GET",
|
135
|
+
request_options=request_options,
|
136
|
+
)
|
137
|
+
try:
|
138
|
+
if 200 <= _response.status_code < 300:
|
139
|
+
return typing.cast(
|
140
|
+
DeploymentRead,
|
141
|
+
parse_obj_as(
|
142
|
+
type_=DeploymentRead, # type: ignore
|
143
|
+
object_=_response.json(),
|
144
|
+
),
|
145
|
+
)
|
146
|
+
_response_json = _response.json()
|
147
|
+
except JSONDecodeError:
|
148
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
149
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
150
|
+
|
151
|
+
def list_deployment_release_tags(
|
152
|
+
self,
|
153
|
+
id: str,
|
154
|
+
*,
|
155
|
+
limit: typing.Optional[int] = None,
|
156
|
+
offset: typing.Optional[int] = None,
|
157
|
+
ordering: typing.Optional[str] = None,
|
158
|
+
source: typing.Optional[ListDeploymentReleaseTagsRequestSource] = None,
|
159
|
+
request_options: typing.Optional[RequestOptions] = None,
|
160
|
+
) -> PaginatedDeploymentReleaseTagReadList:
|
161
|
+
"""
|
162
|
+
List Release Tags associated with the specified Prompt Deployment
|
163
|
+
|
164
|
+
Parameters
|
165
|
+
----------
|
166
|
+
id : str
|
167
|
+
Either the Prompt Deployment's ID or its unique name
|
168
|
+
|
169
|
+
limit : typing.Optional[int]
|
170
|
+
Number of results to return per page.
|
171
|
+
|
172
|
+
offset : typing.Optional[int]
|
173
|
+
The initial index from which to return the results.
|
174
|
+
|
175
|
+
ordering : typing.Optional[str]
|
176
|
+
Which field to use when ordering the results.
|
177
|
+
|
178
|
+
source : typing.Optional[ListDeploymentReleaseTagsRequestSource]
|
179
|
+
|
180
|
+
request_options : typing.Optional[RequestOptions]
|
181
|
+
Request-specific configuration.
|
182
|
+
|
183
|
+
Returns
|
184
|
+
-------
|
185
|
+
PaginatedDeploymentReleaseTagReadList
|
186
|
+
|
187
|
+
|
188
|
+
Examples
|
189
|
+
--------
|
190
|
+
from vellum import Vellum
|
191
|
+
|
192
|
+
client = Vellum(
|
193
|
+
api_key="YOUR_API_KEY",
|
194
|
+
)
|
195
|
+
client.deployments.list_deployment_release_tags(
|
196
|
+
id="id",
|
197
|
+
)
|
198
|
+
"""
|
199
|
+
_response = self._client_wrapper.httpx_client.request(
|
200
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags",
|
201
|
+
base_url=self._client_wrapper.get_environment().default,
|
202
|
+
method="GET",
|
203
|
+
params={
|
204
|
+
"limit": limit,
|
205
|
+
"offset": offset,
|
206
|
+
"ordering": ordering,
|
207
|
+
"source": source,
|
208
|
+
},
|
209
|
+
request_options=request_options,
|
210
|
+
)
|
211
|
+
try:
|
212
|
+
if 200 <= _response.status_code < 300:
|
213
|
+
return typing.cast(
|
214
|
+
PaginatedDeploymentReleaseTagReadList,
|
215
|
+
parse_obj_as(
|
216
|
+
type_=PaginatedDeploymentReleaseTagReadList, # type: ignore
|
217
|
+
object_=_response.json(),
|
218
|
+
),
|
219
|
+
)
|
220
|
+
_response_json = _response.json()
|
221
|
+
except JSONDecodeError:
|
222
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
223
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
224
|
+
|
225
|
+
def retrieve_deployment_release_tag(
|
226
|
+
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
227
|
+
) -> DeploymentReleaseTagRead:
|
228
|
+
"""
|
229
|
+
Retrieve a Deployment Release Tag by tag name, associated with a specified Deployment.
|
230
|
+
|
231
|
+
Parameters
|
232
|
+
----------
|
233
|
+
id : str
|
234
|
+
A UUID string identifying this deployment.
|
235
|
+
|
236
|
+
name : str
|
237
|
+
The name of the Release Tag associated with this Deployment that you'd like to retrieve.
|
238
|
+
|
239
|
+
request_options : typing.Optional[RequestOptions]
|
240
|
+
Request-specific configuration.
|
241
|
+
|
242
|
+
Returns
|
243
|
+
-------
|
244
|
+
DeploymentReleaseTagRead
|
245
|
+
|
246
|
+
|
247
|
+
Examples
|
248
|
+
--------
|
249
|
+
from vellum import Vellum
|
250
|
+
|
251
|
+
client = Vellum(
|
252
|
+
api_key="YOUR_API_KEY",
|
253
|
+
)
|
254
|
+
client.deployments.retrieve_deployment_release_tag(
|
255
|
+
id="id",
|
256
|
+
name="name",
|
257
|
+
)
|
258
|
+
"""
|
259
|
+
_response = self._client_wrapper.httpx_client.request(
|
260
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags/{jsonable_encoder(name)}",
|
261
|
+
base_url=self._client_wrapper.get_environment().default,
|
262
|
+
method="GET",
|
263
|
+
request_options=request_options,
|
264
|
+
)
|
265
|
+
try:
|
266
|
+
if 200 <= _response.status_code < 300:
|
267
|
+
return typing.cast(
|
268
|
+
DeploymentReleaseTagRead,
|
269
|
+
parse_obj_as(
|
270
|
+
type_=DeploymentReleaseTagRead, # type: ignore
|
271
|
+
object_=_response.json(),
|
272
|
+
),
|
273
|
+
)
|
274
|
+
_response_json = _response.json()
|
275
|
+
except JSONDecodeError:
|
276
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
277
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
278
|
+
|
279
|
+
def update_deployment_release_tag(
|
280
|
+
self,
|
281
|
+
id: str,
|
282
|
+
name: str,
|
283
|
+
*,
|
284
|
+
history_item_id: typing.Optional[str] = OMIT,
|
285
|
+
request_options: typing.Optional[RequestOptions] = None,
|
286
|
+
) -> DeploymentReleaseTagRead:
|
287
|
+
"""
|
288
|
+
Updates an existing Release Tag associated with the specified Prompt Deployment.
|
289
|
+
|
290
|
+
Parameters
|
291
|
+
----------
|
292
|
+
id : str
|
293
|
+
A UUID string identifying this deployment.
|
294
|
+
|
295
|
+
name : str
|
296
|
+
The name of the Release Tag associated with this Deployment that you'd like to update.
|
297
|
+
|
298
|
+
history_item_id : typing.Optional[str]
|
299
|
+
The ID of the Deployment History Item to tag
|
300
|
+
|
301
|
+
request_options : typing.Optional[RequestOptions]
|
302
|
+
Request-specific configuration.
|
303
|
+
|
304
|
+
Returns
|
305
|
+
-------
|
306
|
+
DeploymentReleaseTagRead
|
307
|
+
|
308
|
+
|
309
|
+
Examples
|
310
|
+
--------
|
311
|
+
from vellum import Vellum
|
312
|
+
|
313
|
+
client = Vellum(
|
314
|
+
api_key="YOUR_API_KEY",
|
315
|
+
)
|
316
|
+
client.deployments.update_deployment_release_tag(
|
317
|
+
id="id",
|
318
|
+
name="name",
|
319
|
+
)
|
320
|
+
"""
|
321
|
+
_response = self._client_wrapper.httpx_client.request(
|
322
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags/{jsonable_encoder(name)}",
|
323
|
+
base_url=self._client_wrapper.get_environment().default,
|
324
|
+
method="PATCH",
|
325
|
+
json={
|
326
|
+
"history_item_id": history_item_id,
|
327
|
+
},
|
328
|
+
request_options=request_options,
|
329
|
+
omit=OMIT,
|
330
|
+
)
|
331
|
+
try:
|
332
|
+
if 200 <= _response.status_code < 300:
|
333
|
+
return typing.cast(
|
334
|
+
DeploymentReleaseTagRead,
|
335
|
+
parse_obj_as(
|
336
|
+
type_=DeploymentReleaseTagRead, # type: ignore
|
337
|
+
object_=_response.json(),
|
338
|
+
),
|
339
|
+
)
|
340
|
+
_response_json = _response.json()
|
341
|
+
except JSONDecodeError:
|
342
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
343
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
344
|
+
|
345
|
+
def retrieve_provider_payload(
|
346
|
+
self,
|
347
|
+
*,
|
348
|
+
inputs: typing.Sequence[PromptDeploymentInputRequest],
|
349
|
+
deployment_id: typing.Optional[str] = OMIT,
|
350
|
+
deployment_name: typing.Optional[str] = OMIT,
|
351
|
+
release_tag: typing.Optional[str] = OMIT,
|
352
|
+
expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest] = OMIT,
|
353
|
+
request_options: typing.Optional[RequestOptions] = None,
|
354
|
+
) -> DeploymentProviderPayloadResponse:
|
355
|
+
"""
|
356
|
+
Given a set of input variable values, compile the exact payload that Vellum would send to the configured model provider
|
357
|
+
for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
|
358
|
+
prompt or make an API call to the model provider.
|
359
|
+
|
360
|
+
This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
|
361
|
+
to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
|
362
|
+
that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
|
363
|
+
derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
|
364
|
+
|
365
|
+
We encourage you to seek advise from Vellum Support before integrating with this API for production use.
|
366
|
+
|
367
|
+
Parameters
|
368
|
+
----------
|
369
|
+
inputs : typing.Sequence[PromptDeploymentInputRequest]
|
370
|
+
The list of inputs defined in the Prompt's deployment with their corresponding values.
|
371
|
+
|
372
|
+
deployment_id : typing.Optional[str]
|
373
|
+
The ID of the deployment. Must provide either this or deployment_name.
|
374
|
+
|
375
|
+
deployment_name : typing.Optional[str]
|
376
|
+
The name of the deployment. Must provide either this or deployment_id.
|
377
|
+
|
378
|
+
release_tag : typing.Optional[str]
|
379
|
+
Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
|
380
|
+
|
381
|
+
expand_meta : typing.Optional[CompilePromptDeploymentExpandMetaRequest]
|
382
|
+
|
383
|
+
request_options : typing.Optional[RequestOptions]
|
384
|
+
Request-specific configuration.
|
385
|
+
|
386
|
+
Returns
|
387
|
+
-------
|
388
|
+
DeploymentProviderPayloadResponse
|
389
|
+
|
390
|
+
|
391
|
+
Examples
|
392
|
+
--------
|
393
|
+
from vellum import StringInputRequest, Vellum
|
394
|
+
|
395
|
+
client = Vellum(
|
396
|
+
api_key="YOUR_API_KEY",
|
397
|
+
)
|
398
|
+
client.deployments.retrieve_provider_payload(
|
399
|
+
inputs=[
|
400
|
+
StringInputRequest(
|
401
|
+
name="name",
|
402
|
+
value="value",
|
403
|
+
)
|
404
|
+
],
|
405
|
+
)
|
406
|
+
"""
|
407
|
+
_response = self._client_wrapper.httpx_client.request(
|
408
|
+
"v1/deployments/provider-payload",
|
409
|
+
base_url=self._client_wrapper.get_environment().default,
|
410
|
+
method="POST",
|
411
|
+
json={
|
412
|
+
"deployment_id": deployment_id,
|
413
|
+
"deployment_name": deployment_name,
|
414
|
+
"inputs": convert_and_respect_annotation_metadata(
|
415
|
+
object_=inputs, annotation=typing.Sequence[PromptDeploymentInputRequest], direction="write"
|
416
|
+
),
|
417
|
+
"release_tag": release_tag,
|
418
|
+
"expand_meta": convert_and_respect_annotation_metadata(
|
419
|
+
object_=expand_meta, annotation=CompilePromptDeploymentExpandMetaRequest, direction="write"
|
420
|
+
),
|
421
|
+
},
|
422
|
+
request_options=request_options,
|
423
|
+
omit=OMIT,
|
424
|
+
)
|
425
|
+
try:
|
426
|
+
if 200 <= _response.status_code < 300:
|
427
|
+
return typing.cast(
|
428
|
+
DeploymentProviderPayloadResponse,
|
429
|
+
parse_obj_as(
|
430
|
+
type_=DeploymentProviderPayloadResponse, # type: ignore
|
431
|
+
object_=_response.json(),
|
432
|
+
),
|
433
|
+
)
|
434
|
+
if _response.status_code == 400:
|
435
|
+
raise BadRequestError(
|
436
|
+
typing.cast(
|
437
|
+
typing.Optional[typing.Any],
|
438
|
+
parse_obj_as(
|
439
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
440
|
+
object_=_response.json(),
|
441
|
+
),
|
442
|
+
)
|
443
|
+
)
|
444
|
+
if _response.status_code == 403:
|
445
|
+
raise ForbiddenError(
|
446
|
+
typing.cast(
|
447
|
+
typing.Optional[typing.Any],
|
448
|
+
parse_obj_as(
|
449
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
450
|
+
object_=_response.json(),
|
451
|
+
),
|
452
|
+
)
|
453
|
+
)
|
454
|
+
if _response.status_code == 404:
|
455
|
+
raise NotFoundError(
|
456
|
+
typing.cast(
|
457
|
+
typing.Optional[typing.Any],
|
458
|
+
parse_obj_as(
|
459
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
460
|
+
object_=_response.json(),
|
461
|
+
),
|
462
|
+
)
|
463
|
+
)
|
464
|
+
if _response.status_code == 500:
|
465
|
+
raise InternalServerError(
|
466
|
+
typing.cast(
|
467
|
+
typing.Optional[typing.Any],
|
468
|
+
parse_obj_as(
|
469
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
470
|
+
object_=_response.json(),
|
471
|
+
),
|
472
|
+
)
|
473
|
+
)
|
474
|
+
_response_json = _response.json()
|
475
|
+
except JSONDecodeError:
|
476
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
477
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
478
|
+
|
479
|
+
|
480
|
+
class AsyncDeploymentsClient:
|
481
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
482
|
+
self._client_wrapper = client_wrapper
|
483
|
+
|
484
|
+
async def list(
|
485
|
+
self,
|
486
|
+
*,
|
487
|
+
limit: typing.Optional[int] = None,
|
488
|
+
offset: typing.Optional[int] = None,
|
489
|
+
ordering: typing.Optional[str] = None,
|
490
|
+
status: typing.Optional[DeploymentsListRequestStatus] = None,
|
491
|
+
request_options: typing.Optional[RequestOptions] = None,
|
492
|
+
) -> PaginatedSlimDeploymentReadList:
|
493
|
+
"""
|
494
|
+
Used to list all Prompt Deployments.
|
495
|
+
|
496
|
+
Parameters
|
497
|
+
----------
|
498
|
+
limit : typing.Optional[int]
|
499
|
+
Number of results to return per page.
|
500
|
+
|
501
|
+
offset : typing.Optional[int]
|
502
|
+
The initial index from which to return the results.
|
503
|
+
|
504
|
+
ordering : typing.Optional[str]
|
505
|
+
Which field to use when ordering the results.
|
506
|
+
|
507
|
+
status : typing.Optional[DeploymentsListRequestStatus]
|
508
|
+
status
|
509
|
+
|
510
|
+
request_options : typing.Optional[RequestOptions]
|
511
|
+
Request-specific configuration.
|
512
|
+
|
513
|
+
Returns
|
514
|
+
-------
|
515
|
+
PaginatedSlimDeploymentReadList
|
516
|
+
|
517
|
+
|
518
|
+
Examples
|
519
|
+
--------
|
520
|
+
import asyncio
|
521
|
+
|
522
|
+
from vellum import AsyncVellum
|
523
|
+
|
524
|
+
client = AsyncVellum(
|
525
|
+
api_key="YOUR_API_KEY",
|
526
|
+
)
|
527
|
+
|
528
|
+
|
529
|
+
async def main() -> None:
|
530
|
+
await client.deployments.list()
|
531
|
+
|
532
|
+
|
533
|
+
asyncio.run(main())
|
534
|
+
"""
|
535
|
+
_response = await self._client_wrapper.httpx_client.request(
|
536
|
+
"v1/deployments",
|
537
|
+
base_url=self._client_wrapper.get_environment().default,
|
538
|
+
method="GET",
|
539
|
+
params={
|
540
|
+
"limit": limit,
|
541
|
+
"offset": offset,
|
542
|
+
"ordering": ordering,
|
543
|
+
"status": status,
|
544
|
+
},
|
545
|
+
request_options=request_options,
|
546
|
+
)
|
547
|
+
try:
|
548
|
+
if 200 <= _response.status_code < 300:
|
549
|
+
return typing.cast(
|
550
|
+
PaginatedSlimDeploymentReadList,
|
551
|
+
parse_obj_as(
|
552
|
+
type_=PaginatedSlimDeploymentReadList, # type: ignore
|
553
|
+
object_=_response.json(),
|
554
|
+
),
|
555
|
+
)
|
556
|
+
_response_json = _response.json()
|
557
|
+
except JSONDecodeError:
|
558
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
559
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
560
|
+
|
561
|
+
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DeploymentRead:
|
562
|
+
"""
|
563
|
+
Used to retrieve a Prompt Deployment given its ID or name.
|
564
|
+
|
565
|
+
Parameters
|
566
|
+
----------
|
567
|
+
id : str
|
568
|
+
Either the Deployment's ID or its unique name
|
569
|
+
|
570
|
+
request_options : typing.Optional[RequestOptions]
|
571
|
+
Request-specific configuration.
|
572
|
+
|
573
|
+
Returns
|
574
|
+
-------
|
575
|
+
DeploymentRead
|
576
|
+
|
577
|
+
|
578
|
+
Examples
|
579
|
+
--------
|
580
|
+
import asyncio
|
581
|
+
|
582
|
+
from vellum import AsyncVellum
|
583
|
+
|
584
|
+
client = AsyncVellum(
|
585
|
+
api_key="YOUR_API_KEY",
|
586
|
+
)
|
587
|
+
|
588
|
+
|
589
|
+
async def main() -> None:
|
590
|
+
await client.deployments.retrieve(
|
591
|
+
id="id",
|
592
|
+
)
|
593
|
+
|
594
|
+
|
595
|
+
asyncio.run(main())
|
596
|
+
"""
|
597
|
+
_response = await self._client_wrapper.httpx_client.request(
|
598
|
+
f"v1/deployments/{jsonable_encoder(id)}",
|
599
|
+
base_url=self._client_wrapper.get_environment().default,
|
600
|
+
method="GET",
|
601
|
+
request_options=request_options,
|
602
|
+
)
|
603
|
+
try:
|
604
|
+
if 200 <= _response.status_code < 300:
|
605
|
+
return typing.cast(
|
606
|
+
DeploymentRead,
|
607
|
+
parse_obj_as(
|
608
|
+
type_=DeploymentRead, # type: ignore
|
609
|
+
object_=_response.json(),
|
610
|
+
),
|
611
|
+
)
|
612
|
+
_response_json = _response.json()
|
613
|
+
except JSONDecodeError:
|
614
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
615
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
616
|
+
|
617
|
+
async def list_deployment_release_tags(
|
618
|
+
self,
|
619
|
+
id: str,
|
620
|
+
*,
|
621
|
+
limit: typing.Optional[int] = None,
|
622
|
+
offset: typing.Optional[int] = None,
|
623
|
+
ordering: typing.Optional[str] = None,
|
624
|
+
source: typing.Optional[ListDeploymentReleaseTagsRequestSource] = None,
|
625
|
+
request_options: typing.Optional[RequestOptions] = None,
|
626
|
+
) -> PaginatedDeploymentReleaseTagReadList:
|
627
|
+
"""
|
628
|
+
List Release Tags associated with the specified Prompt Deployment
|
629
|
+
|
630
|
+
Parameters
|
631
|
+
----------
|
632
|
+
id : str
|
633
|
+
Either the Prompt Deployment's ID or its unique name
|
634
|
+
|
635
|
+
limit : typing.Optional[int]
|
636
|
+
Number of results to return per page.
|
637
|
+
|
638
|
+
offset : typing.Optional[int]
|
639
|
+
The initial index from which to return the results.
|
640
|
+
|
641
|
+
ordering : typing.Optional[str]
|
642
|
+
Which field to use when ordering the results.
|
643
|
+
|
644
|
+
source : typing.Optional[ListDeploymentReleaseTagsRequestSource]
|
645
|
+
|
646
|
+
request_options : typing.Optional[RequestOptions]
|
647
|
+
Request-specific configuration.
|
648
|
+
|
649
|
+
Returns
|
650
|
+
-------
|
651
|
+
PaginatedDeploymentReleaseTagReadList
|
652
|
+
|
653
|
+
|
654
|
+
Examples
|
655
|
+
--------
|
656
|
+
import asyncio
|
657
|
+
|
658
|
+
from vellum import AsyncVellum
|
659
|
+
|
660
|
+
client = AsyncVellum(
|
661
|
+
api_key="YOUR_API_KEY",
|
662
|
+
)
|
663
|
+
|
664
|
+
|
665
|
+
async def main() -> None:
|
666
|
+
await client.deployments.list_deployment_release_tags(
|
667
|
+
id="id",
|
668
|
+
)
|
669
|
+
|
670
|
+
|
671
|
+
asyncio.run(main())
|
672
|
+
"""
|
673
|
+
_response = await self._client_wrapper.httpx_client.request(
|
674
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags",
|
675
|
+
base_url=self._client_wrapper.get_environment().default,
|
676
|
+
method="GET",
|
677
|
+
params={
|
678
|
+
"limit": limit,
|
679
|
+
"offset": offset,
|
680
|
+
"ordering": ordering,
|
681
|
+
"source": source,
|
682
|
+
},
|
683
|
+
request_options=request_options,
|
684
|
+
)
|
685
|
+
try:
|
686
|
+
if 200 <= _response.status_code < 300:
|
687
|
+
return typing.cast(
|
688
|
+
PaginatedDeploymentReleaseTagReadList,
|
689
|
+
parse_obj_as(
|
690
|
+
type_=PaginatedDeploymentReleaseTagReadList, # type: ignore
|
691
|
+
object_=_response.json(),
|
692
|
+
),
|
693
|
+
)
|
694
|
+
_response_json = _response.json()
|
695
|
+
except JSONDecodeError:
|
696
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
697
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
698
|
+
|
699
|
+
async def retrieve_deployment_release_tag(
|
700
|
+
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
701
|
+
) -> DeploymentReleaseTagRead:
|
702
|
+
"""
|
703
|
+
Retrieve a Deployment Release Tag by tag name, associated with a specified Deployment.
|
704
|
+
|
705
|
+
Parameters
|
706
|
+
----------
|
707
|
+
id : str
|
708
|
+
A UUID string identifying this deployment.
|
709
|
+
|
710
|
+
name : str
|
711
|
+
The name of the Release Tag associated with this Deployment that you'd like to retrieve.
|
712
|
+
|
713
|
+
request_options : typing.Optional[RequestOptions]
|
714
|
+
Request-specific configuration.
|
715
|
+
|
716
|
+
Returns
|
717
|
+
-------
|
718
|
+
DeploymentReleaseTagRead
|
719
|
+
|
720
|
+
|
721
|
+
Examples
|
722
|
+
--------
|
723
|
+
import asyncio
|
724
|
+
|
725
|
+
from vellum import AsyncVellum
|
726
|
+
|
727
|
+
client = AsyncVellum(
|
728
|
+
api_key="YOUR_API_KEY",
|
729
|
+
)
|
730
|
+
|
731
|
+
|
732
|
+
async def main() -> None:
|
733
|
+
await client.deployments.retrieve_deployment_release_tag(
|
734
|
+
id="id",
|
735
|
+
name="name",
|
736
|
+
)
|
737
|
+
|
738
|
+
|
739
|
+
asyncio.run(main())
|
740
|
+
"""
|
741
|
+
_response = await self._client_wrapper.httpx_client.request(
|
742
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags/{jsonable_encoder(name)}",
|
743
|
+
base_url=self._client_wrapper.get_environment().default,
|
744
|
+
method="GET",
|
745
|
+
request_options=request_options,
|
746
|
+
)
|
747
|
+
try:
|
748
|
+
if 200 <= _response.status_code < 300:
|
749
|
+
return typing.cast(
|
750
|
+
DeploymentReleaseTagRead,
|
751
|
+
parse_obj_as(
|
752
|
+
type_=DeploymentReleaseTagRead, # type: ignore
|
753
|
+
object_=_response.json(),
|
754
|
+
),
|
755
|
+
)
|
756
|
+
_response_json = _response.json()
|
757
|
+
except JSONDecodeError:
|
758
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
759
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
760
|
+
|
761
|
+
async def update_deployment_release_tag(
|
762
|
+
self,
|
763
|
+
id: str,
|
764
|
+
name: str,
|
765
|
+
*,
|
766
|
+
history_item_id: typing.Optional[str] = OMIT,
|
767
|
+
request_options: typing.Optional[RequestOptions] = None,
|
768
|
+
) -> DeploymentReleaseTagRead:
|
769
|
+
"""
|
770
|
+
Updates an existing Release Tag associated with the specified Prompt Deployment.
|
771
|
+
|
772
|
+
Parameters
|
773
|
+
----------
|
774
|
+
id : str
|
775
|
+
A UUID string identifying this deployment.
|
776
|
+
|
777
|
+
name : str
|
778
|
+
The name of the Release Tag associated with this Deployment that you'd like to update.
|
779
|
+
|
780
|
+
history_item_id : typing.Optional[str]
|
781
|
+
The ID of the Deployment History Item to tag
|
782
|
+
|
783
|
+
request_options : typing.Optional[RequestOptions]
|
784
|
+
Request-specific configuration.
|
785
|
+
|
786
|
+
Returns
|
787
|
+
-------
|
788
|
+
DeploymentReleaseTagRead
|
789
|
+
|
790
|
+
|
791
|
+
Examples
|
792
|
+
--------
|
793
|
+
import asyncio
|
794
|
+
|
795
|
+
from vellum import AsyncVellum
|
796
|
+
|
797
|
+
client = AsyncVellum(
|
798
|
+
api_key="YOUR_API_KEY",
|
799
|
+
)
|
800
|
+
|
801
|
+
|
802
|
+
async def main() -> None:
|
803
|
+
await client.deployments.update_deployment_release_tag(
|
804
|
+
id="id",
|
805
|
+
name="name",
|
806
|
+
)
|
807
|
+
|
808
|
+
|
809
|
+
asyncio.run(main())
|
810
|
+
"""
|
811
|
+
_response = await self._client_wrapper.httpx_client.request(
|
812
|
+
f"v1/deployments/{jsonable_encoder(id)}/release-tags/{jsonable_encoder(name)}",
|
813
|
+
base_url=self._client_wrapper.get_environment().default,
|
814
|
+
method="PATCH",
|
815
|
+
json={
|
816
|
+
"history_item_id": history_item_id,
|
817
|
+
},
|
818
|
+
request_options=request_options,
|
819
|
+
omit=OMIT,
|
820
|
+
)
|
821
|
+
try:
|
822
|
+
if 200 <= _response.status_code < 300:
|
823
|
+
return typing.cast(
|
824
|
+
DeploymentReleaseTagRead,
|
825
|
+
parse_obj_as(
|
826
|
+
type_=DeploymentReleaseTagRead, # type: ignore
|
827
|
+
object_=_response.json(),
|
828
|
+
),
|
829
|
+
)
|
830
|
+
_response_json = _response.json()
|
831
|
+
except JSONDecodeError:
|
832
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
833
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
834
|
+
|
835
|
+
async def retrieve_provider_payload(
|
836
|
+
self,
|
837
|
+
*,
|
838
|
+
inputs: typing.Sequence[PromptDeploymentInputRequest],
|
839
|
+
deployment_id: typing.Optional[str] = OMIT,
|
840
|
+
deployment_name: typing.Optional[str] = OMIT,
|
841
|
+
release_tag: typing.Optional[str] = OMIT,
|
842
|
+
expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest] = OMIT,
|
843
|
+
request_options: typing.Optional[RequestOptions] = None,
|
844
|
+
) -> DeploymentProviderPayloadResponse:
|
845
|
+
"""
|
846
|
+
Given a set of input variable values, compile the exact payload that Vellum would send to the configured model provider
|
847
|
+
for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
|
848
|
+
prompt or make an API call to the model provider.
|
849
|
+
|
850
|
+
This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
|
851
|
+
to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
|
852
|
+
that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
|
853
|
+
derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
|
854
|
+
|
855
|
+
We encourage you to seek advise from Vellum Support before integrating with this API for production use.
|
856
|
+
|
857
|
+
Parameters
|
858
|
+
----------
|
859
|
+
inputs : typing.Sequence[PromptDeploymentInputRequest]
|
860
|
+
The list of inputs defined in the Prompt's deployment with their corresponding values.
|
861
|
+
|
862
|
+
deployment_id : typing.Optional[str]
|
863
|
+
The ID of the deployment. Must provide either this or deployment_name.
|
864
|
+
|
865
|
+
deployment_name : typing.Optional[str]
|
866
|
+
The name of the deployment. Must provide either this or deployment_id.
|
867
|
+
|
868
|
+
release_tag : typing.Optional[str]
|
869
|
+
Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
|
870
|
+
|
871
|
+
expand_meta : typing.Optional[CompilePromptDeploymentExpandMetaRequest]
|
872
|
+
|
873
|
+
request_options : typing.Optional[RequestOptions]
|
874
|
+
Request-specific configuration.
|
875
|
+
|
876
|
+
Returns
|
877
|
+
-------
|
878
|
+
DeploymentProviderPayloadResponse
|
879
|
+
|
880
|
+
|
881
|
+
Examples
|
882
|
+
--------
|
883
|
+
import asyncio
|
884
|
+
|
885
|
+
from vellum import AsyncVellum, StringInputRequest
|
886
|
+
|
887
|
+
client = AsyncVellum(
|
888
|
+
api_key="YOUR_API_KEY",
|
889
|
+
)
|
890
|
+
|
891
|
+
|
892
|
+
async def main() -> None:
|
893
|
+
await client.deployments.retrieve_provider_payload(
|
894
|
+
inputs=[
|
895
|
+
StringInputRequest(
|
896
|
+
name="name",
|
897
|
+
value="value",
|
898
|
+
)
|
899
|
+
],
|
900
|
+
)
|
901
|
+
|
902
|
+
|
903
|
+
asyncio.run(main())
|
904
|
+
"""
|
905
|
+
_response = await self._client_wrapper.httpx_client.request(
|
906
|
+
"v1/deployments/provider-payload",
|
907
|
+
base_url=self._client_wrapper.get_environment().default,
|
908
|
+
method="POST",
|
909
|
+
json={
|
910
|
+
"deployment_id": deployment_id,
|
911
|
+
"deployment_name": deployment_name,
|
912
|
+
"inputs": convert_and_respect_annotation_metadata(
|
913
|
+
object_=inputs, annotation=typing.Sequence[PromptDeploymentInputRequest], direction="write"
|
914
|
+
),
|
915
|
+
"release_tag": release_tag,
|
916
|
+
"expand_meta": convert_and_respect_annotation_metadata(
|
917
|
+
object_=expand_meta, annotation=CompilePromptDeploymentExpandMetaRequest, direction="write"
|
918
|
+
),
|
919
|
+
},
|
920
|
+
request_options=request_options,
|
921
|
+
omit=OMIT,
|
922
|
+
)
|
923
|
+
try:
|
924
|
+
if 200 <= _response.status_code < 300:
|
925
|
+
return typing.cast(
|
926
|
+
DeploymentProviderPayloadResponse,
|
927
|
+
parse_obj_as(
|
928
|
+
type_=DeploymentProviderPayloadResponse, # type: ignore
|
929
|
+
object_=_response.json(),
|
930
|
+
),
|
931
|
+
)
|
932
|
+
if _response.status_code == 400:
|
933
|
+
raise BadRequestError(
|
934
|
+
typing.cast(
|
935
|
+
typing.Optional[typing.Any],
|
936
|
+
parse_obj_as(
|
937
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
938
|
+
object_=_response.json(),
|
939
|
+
),
|
940
|
+
)
|
941
|
+
)
|
942
|
+
if _response.status_code == 403:
|
943
|
+
raise ForbiddenError(
|
944
|
+
typing.cast(
|
945
|
+
typing.Optional[typing.Any],
|
946
|
+
parse_obj_as(
|
947
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
948
|
+
object_=_response.json(),
|
949
|
+
),
|
950
|
+
)
|
951
|
+
)
|
952
|
+
if _response.status_code == 404:
|
953
|
+
raise NotFoundError(
|
954
|
+
typing.cast(
|
955
|
+
typing.Optional[typing.Any],
|
956
|
+
parse_obj_as(
|
957
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
958
|
+
object_=_response.json(),
|
959
|
+
),
|
960
|
+
)
|
961
|
+
)
|
962
|
+
if _response.status_code == 500:
|
963
|
+
raise InternalServerError(
|
964
|
+
typing.cast(
|
965
|
+
typing.Optional[typing.Any],
|
966
|
+
parse_obj_as(
|
967
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
968
|
+
object_=_response.json(),
|
969
|
+
),
|
970
|
+
)
|
971
|
+
)
|
972
|
+
_response_json = _response.json()
|
973
|
+
except JSONDecodeError:
|
974
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
975
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|