vellum_ai 0.3.14 → 0.14.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/lib/core/file_utilities.rb +14 -13
- data/lib/environment.rb +4 -6
- data/lib/requests.rb +141 -59
- data/lib/types_export.rb +396 -109
- data/lib/vellum_ai/ad_hoc/client.rb +179 -0
- data/lib/vellum_ai/container_images/client.rb +289 -0
- data/lib/vellum_ai/deployments/client.rb +581 -111
- data/lib/vellum_ai/deployments/types/deployments_list_request_status.rb +7 -3
- data/lib/vellum_ai/deployments/types/list_deployment_release_tags_request_source.rb +12 -0
- data/lib/vellum_ai/document_indexes/client.rb +517 -261
- data/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb +7 -3
- data/lib/vellum_ai/documents/client.rb +337 -186
- data/lib/vellum_ai/folder_entities/client.rb +165 -33
- data/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb +12 -0
- data/lib/vellum_ai/metric_definitions/client.rb +159 -0
- data/lib/vellum_ai/ml_models/client.rb +94 -0
- data/lib/vellum_ai/organizations/client.rb +92 -0
- data/lib/vellum_ai/prompts/client.rb +194 -0
- data/lib/vellum_ai/release_reviews/client.rb +102 -0
- data/lib/vellum_ai/sandboxes/client.rb +230 -90
- data/lib/vellum_ai/test_suite_runs/client.rb +188 -101
- data/lib/vellum_ai/test_suites/client.rb +208 -90
- data/lib/vellum_ai/types/ad_hoc_execute_prompt_event.rb +90 -0
- data/lib/vellum_ai/types/ad_hoc_expand_meta.rb +85 -0
- data/lib/vellum_ai/types/ad_hoc_fulfilled_prompt_execution_meta.rb +92 -0
- data/lib/vellum_ai/types/ad_hoc_initiated_prompt_execution_meta.rb +65 -0
- data/lib/vellum_ai/types/ad_hoc_rejected_prompt_execution_meta.rb +66 -0
- data/lib/vellum_ai/types/ad_hoc_streaming_prompt_execution_meta.rb +55 -0
- data/lib/vellum_ai/types/api_node_result.rb +43 -27
- data/lib/vellum_ai/types/api_node_result_data.rb +62 -51
- data/lib/vellum_ai/types/api_request_parent_context.rb +87 -0
- data/lib/vellum_ai/types/{image_enum.rb → api_version_enum.rb} +2 -2
- data/lib/vellum_ai/types/array_chat_message_content.rb +42 -26
- data/lib/vellum_ai/types/array_chat_message_content_item.rb +85 -82
- data/lib/vellum_ai/types/array_chat_message_content_item_request.rb +85 -82
- data/lib/vellum_ai/types/array_chat_message_content_request.rb +42 -26
- data/lib/vellum_ai/types/array_input.rb +73 -0
- data/lib/vellum_ai/types/array_vellum_value.rb +68 -0
- data/lib/vellum_ai/types/array_vellum_value_request.rb +68 -0
- data/lib/vellum_ai/types/audio_chat_message_content.rb +68 -0
- data/lib/vellum_ai/types/audio_chat_message_content_request.rb +68 -0
- data/lib/vellum_ai/types/audio_prompt_block.rb +92 -0
- data/lib/vellum_ai/types/audio_vellum_value.rb +70 -0
- data/lib/vellum_ai/types/audio_vellum_value_request.rb +70 -0
- data/lib/vellum_ai/types/base_output.rb +70 -0
- data/lib/vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large.rb +66 -0
- data/lib/vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.rb +66 -0
- data/lib/vellum_ai/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.rb +66 -0
- data/lib/vellum_ai/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.rb +66 -0
- data/lib/vellum_ai/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.rb +66 -0
- data/lib/vellum_ai/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.rb +66 -0
- data/lib/vellum_ai/types/build_status_enum.rb +18 -0
- data/lib/vellum_ai/types/chat_history_input.rb +73 -0
- data/lib/vellum_ai/types/chat_history_input_request.rb +46 -28
- data/lib/vellum_ai/types/chat_history_vellum_value.rb +68 -0
- data/lib/vellum_ai/types/chat_history_vellum_value_request.rb +68 -0
- data/lib/vellum_ai/types/chat_message.rb +55 -38
- data/lib/vellum_ai/types/chat_message_content.rb +100 -94
- data/lib/vellum_ai/types/chat_message_content_request.rb +100 -94
- data/lib/vellum_ai/types/chat_message_prompt_block.rb +111 -0
- data/lib/vellum_ai/types/chat_message_request.rb +55 -38
- data/lib/vellum_ai/types/chat_message_role.rb +13 -3
- data/lib/vellum_ai/types/code_execution_node_array_result.rb +74 -0
- data/lib/vellum_ai/types/code_execution_node_chat_history_result.rb +49 -29
- data/lib/vellum_ai/types/code_execution_node_error_result.rb +50 -30
- data/lib/vellum_ai/types/code_execution_node_function_call_result.rb +76 -0
- data/lib/vellum_ai/types/code_execution_node_json_result.rb +45 -27
- data/lib/vellum_ai/types/code_execution_node_number_result.rb +47 -27
- data/lib/vellum_ai/types/code_execution_node_result.rb +43 -27
- data/lib/vellum_ai/types/code_execution_node_result_data.rb +43 -30
- data/lib/vellum_ai/types/code_execution_node_result_output.rb +131 -119
- data/lib/vellum_ai/types/code_execution_node_search_results_result.rb +49 -29
- data/lib/vellum_ai/types/code_execution_node_string_result.rb +47 -27
- data/lib/vellum_ai/types/code_execution_package.rb +61 -0
- data/lib/vellum_ai/types/code_execution_runtime.rb +12 -0
- data/lib/vellum_ai/types/code_executor_input.rb +170 -0
- data/lib/vellum_ai/types/code_executor_response.rb +67 -0
- data/lib/vellum_ai/types/code_executor_secret_input.rb +69 -0
- data/lib/vellum_ai/types/code_resource_definition.rb +62 -0
- data/lib/vellum_ai/types/compile_prompt_deployment_expand_meta_request.rb +76 -0
- data/lib/vellum_ai/types/compile_prompt_meta.rb +72 -0
- data/lib/vellum_ai/types/components_schemas_pdf_search_result_meta_source.rb +6 -0
- data/lib/vellum_ai/types/components_schemas_pdf_search_result_meta_source_request.rb +6 -0
- data/lib/vellum_ai/types/components_schemas_prompt_version_build_config_sandbox.rb +6 -0
- data/lib/vellum_ai/types/condition_combinator.rb +12 -0
- data/lib/vellum_ai/types/conditional_node_result.rb +43 -27
- data/lib/vellum_ai/types/conditional_node_result_data.rb +31 -23
- data/lib/vellum_ai/types/container_image_build_config.rb +55 -0
- data/lib/vellum_ai/types/container_image_container_image_tag.rb +66 -0
- data/lib/vellum_ai/types/container_image_read.rb +141 -0
- data/lib/vellum_ai/types/create_test_suite_test_case_request.rb +89 -0
- data/lib/vellum_ai/types/deployment_history_item.rb +107 -0
- data/lib/vellum_ai/types/deployment_provider_payload_response.rb +54 -24
- data/lib/vellum_ai/types/deployment_provider_payload_response_payload.rb +57 -0
- data/lib/vellum_ai/types/deployment_read.rb +113 -76
- data/lib/vellum_ai/types/deployment_release_tag_deployment_history_item.rb +68 -0
- data/lib/vellum_ai/types/deployment_release_tag_read.rb +92 -0
- data/lib/vellum_ai/types/docker_service_token.rb +68 -0
- data/lib/vellum_ai/types/document_chat_message_content.rb +68 -0
- data/lib/vellum_ai/types/document_chat_message_content_request.rb +68 -0
- data/lib/vellum_ai/types/document_document_to_document_index.rb +76 -43
- data/lib/vellum_ai/types/document_index_chunking.rb +74 -0
- data/lib/vellum_ai/types/document_index_chunking_request.rb +74 -0
- data/lib/vellum_ai/types/document_index_indexing_config.rb +75 -0
- data/lib/vellum_ai/types/document_index_indexing_config_request.rb +75 -0
- data/lib/vellum_ai/types/document_index_read.rb +73 -64
- data/lib/vellum_ai/types/document_processing_state.rb +18 -0
- data/lib/vellum_ai/types/document_prompt_block.rb +92 -0
- data/lib/vellum_ai/types/document_read.rb +91 -83
- data/lib/vellum_ai/types/document_status.rb +1 -1
- data/lib/vellum_ai/types/document_vellum_value.rb +70 -0
- data/lib/vellum_ai/types/document_vellum_value_request.rb +70 -0
- data/lib/vellum_ai/types/enriched_normalized_completion.rb +97 -78
- data/lib/vellum_ai/types/entity_status.rb +9 -3
- data/lib/vellum_ai/types/entity_visibility.rb +16 -0
- data/lib/vellum_ai/types/environment_enum.rb +11 -3
- data/lib/vellum_ai/types/ephemeral_prompt_cache_config.rb +54 -0
- data/lib/vellum_ai/types/ephemeral_prompt_cache_config_type_enum.rb +5 -0
- data/lib/vellum_ai/types/error_input.rb +75 -0
- data/lib/vellum_ai/types/error_vellum_value.rb +70 -0
- data/lib/vellum_ai/types/error_vellum_value_request.rb +70 -0
- data/lib/vellum_ai/types/execute_api_request_bearer_token.rb +57 -0
- data/lib/vellum_ai/types/execute_api_request_body.rb +71 -0
- data/lib/vellum_ai/types/execute_api_request_headers_value.rb +57 -0
- data/lib/vellum_ai/types/execute_api_response.rb +83 -0
- data/lib/vellum_ai/types/execute_api_response_json.rb +56 -0
- data/lib/vellum_ai/types/execute_prompt_event.rb +68 -94
- data/lib/vellum_ai/types/execute_prompt_response.rb +38 -70
- data/lib/vellum_ai/types/execute_workflow_response.rb +54 -38
- data/lib/vellum_ai/types/execute_workflow_workflow_result_event.rb +38 -70
- data/lib/vellum_ai/types/execution_array_vellum_value.rb +55 -32
- data/lib/vellum_ai/types/execution_chat_history_vellum_value.rb +54 -31
- data/lib/vellum_ai/types/execution_error_vellum_value.rb +55 -32
- data/lib/vellum_ai/types/execution_function_call_vellum_value.rb +55 -32
- data/lib/vellum_ai/types/execution_json_vellum_value.rb +50 -29
- data/lib/vellum_ai/types/execution_number_vellum_value.rb +52 -29
- data/lib/vellum_ai/types/execution_search_results_vellum_value.rb +54 -31
- data/lib/vellum_ai/types/execution_string_vellum_value.rb +52 -29
- data/lib/vellum_ai/types/execution_vellum_value.rb +129 -143
- data/lib/vellum_ai/types/external_input_descriptor.rb +86 -0
- data/lib/vellum_ai/types/external_test_case_execution.rb +67 -0
- data/lib/vellum_ai/types/external_test_case_execution_request.rb +67 -0
- data/lib/vellum_ai/types/fast_embed_vectorizer_baai_bge_small_en_v_15.rb +52 -0
- data/lib/vellum_ai/types/fast_embed_vectorizer_baai_bge_small_en_v_15_request.rb +54 -0
- data/lib/vellum_ai/types/finish_reason_enum.rb +11 -3
- data/lib/vellum_ai/types/folder_entity.rb +122 -0
- data/lib/vellum_ai/types/folder_entity_dataset.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_dataset_data.rb +101 -0
- data/lib/vellum_ai/types/folder_entity_document_index.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_document_index_data.rb +106 -0
- data/lib/vellum_ai/types/folder_entity_folder.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_folder_data.rb +92 -0
- data/lib/vellum_ai/types/folder_entity_prompt_sandbox.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_prompt_sandbox_data.rb +114 -0
- data/lib/vellum_ai/types/folder_entity_test_suite.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_test_suite_data.rb +93 -0
- data/lib/vellum_ai/types/folder_entity_workflow_sandbox.rb +75 -0
- data/lib/vellum_ai/types/folder_entity_workflow_sandbox_data.rb +114 -0
- data/lib/vellum_ai/types/fulfilled_ad_hoc_execute_prompt_event.rb +89 -0
- data/lib/vellum_ai/types/fulfilled_execute_prompt_event.rb +60 -37
- data/lib/vellum_ai/types/fulfilled_execute_prompt_response.rb +67 -40
- data/lib/vellum_ai/types/fulfilled_execute_workflow_workflow_result_event.rb +59 -32
- data/lib/vellum_ai/types/fulfilled_prompt_execution_meta.rb +69 -29
- data/lib/vellum_ai/types/fulfilled_workflow_node_result_event.rb +92 -68
- data/lib/vellum_ai/types/function_call.rb +53 -72
- data/lib/vellum_ai/types/function_call_chat_message_content.rb +43 -27
- data/lib/vellum_ai/types/function_call_chat_message_content_request.rb +44 -27
- data/lib/vellum_ai/types/function_call_chat_message_content_value.rb +46 -31
- data/lib/vellum_ai/types/function_call_chat_message_content_value_request.rb +48 -31
- data/lib/vellum_ai/types/function_call_input.rb +75 -0
- data/lib/vellum_ai/types/function_call_prompt_block.rb +99 -0
- data/lib/vellum_ai/types/function_call_request.rb +71 -0
- data/lib/vellum_ai/types/function_call_vellum_value.rb +70 -0
- data/lib/vellum_ai/types/function_call_vellum_value_request.rb +70 -0
- data/lib/vellum_ai/types/function_definition.rb +109 -0
- data/lib/vellum_ai/types/generate_options_request.rb +35 -27
- data/lib/vellum_ai/types/generate_request.rb +52 -34
- data/lib/vellum_ai/types/generate_response.rb +29 -23
- data/lib/vellum_ai/types/generate_result.rb +52 -35
- data/lib/vellum_ai/types/generate_result_data.rb +29 -23
- data/lib/vellum_ai/types/generate_result_error.rb +26 -20
- data/lib/vellum_ai/types/generate_stream_response.rb +30 -24
- data/lib/vellum_ai/types/generate_stream_result.rb +53 -38
- data/lib/vellum_ai/types/generate_stream_result_data.rb +39 -28
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_config.rb +61 -0
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_config_request.rb +62 -0
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004.rb +69 -0
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004_request.rb +69 -0
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.rb +69 -0
- data/lib/vellum_ai/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.rb +69 -0
- data/lib/vellum_ai/types/hkunlp_instructor_xl_vectorizer.rb +68 -0
- data/lib/vellum_ai/types/hkunlp_instructor_xl_vectorizer_request.rb +68 -0
- data/lib/vellum_ai/types/image_chat_message_content.rb +43 -27
- data/lib/vellum_ai/types/image_chat_message_content_request.rb +43 -27
- data/lib/vellum_ai/types/image_prompt_block.rb +92 -0
- data/lib/vellum_ai/types/image_vellum_value.rb +70 -0
- data/lib/vellum_ai/types/image_vellum_value_request.rb +70 -0
- data/lib/vellum_ai/types/indexing_config_vectorizer.rb +186 -0
- data/lib/vellum_ai/types/indexing_config_vectorizer_request.rb +186 -0
- data/lib/vellum_ai/types/indexing_state_enum.rb +15 -9
- data/lib/vellum_ai/types/initiated_ad_hoc_execute_prompt_event.rb +78 -0
- data/lib/vellum_ai/types/initiated_execute_prompt_event.rb +52 -31
- data/lib/vellum_ai/types/initiated_prompt_execution_meta.rb +55 -44
- data/lib/vellum_ai/types/initiated_workflow_node_result_event.rb +86 -62
- data/lib/vellum_ai/types/instructor_vectorizer_config.rb +69 -0
- data/lib/vellum_ai/types/instructor_vectorizer_config_request.rb +69 -0
- data/lib/vellum_ai/types/invoked_port.rb +51 -0
- data/lib/vellum_ai/types/iteration_state_enum.rb +14 -0
- data/lib/vellum_ai/types/jinja_prompt_block.rb +85 -0
- data/lib/vellum_ai/types/json_input.rb +69 -0
- data/lib/vellum_ai/types/json_input_request.rb +46 -28
- data/lib/vellum_ai/types/json_vellum_value.rb +62 -0
- data/lib/vellum_ai/types/json_vellum_value_request.rb +62 -0
- data/lib/vellum_ai/types/logical_operator.rb +57 -22
- data/lib/vellum_ai/types/logprobs_enum.rb +9 -3
- data/lib/vellum_ai/types/map_node_result.rb +70 -0
- data/lib/vellum_ai/types/map_node_result_data.rb +64 -0
- data/lib/vellum_ai/types/merge_node_result.rb +68 -0
- data/lib/vellum_ai/types/merge_node_result_data.rb +53 -0
- data/lib/vellum_ai/types/metadata_filter_config_request.rb +71 -57
- data/lib/vellum_ai/types/metadata_filter_rule_combinator.rb +9 -3
- data/lib/vellum_ai/types/metadata_filter_rule_request.rb +69 -57
- data/lib/vellum_ai/types/metadata_filters_request.rb +58 -0
- data/lib/vellum_ai/types/method_enum.rb +18 -0
- data/lib/vellum_ai/types/metric_definition_execution.rb +55 -0
- data/lib/vellum_ai/types/metric_definition_history_item.rb +96 -0
- data/lib/vellum_ai/types/metric_definition_input.rb +90 -0
- data/lib/vellum_ai/types/metric_node_result.rb +52 -0
- data/lib/vellum_ai/types/ml_model_read.rb +62 -0
- data/lib/vellum_ai/types/ml_model_usage.rb +98 -0
- data/lib/vellum_ai/types/ml_model_usage_wrapper.rb +67 -0
- data/lib/vellum_ai/types/named_scenario_input_chat_history_variable_value_request.rb +77 -0
- data/lib/vellum_ai/types/named_scenario_input_json_variable_value_request.rb +71 -0
- data/lib/vellum_ai/types/named_scenario_input_request.rb +74 -0
- data/lib/vellum_ai/types/named_scenario_input_string_variable_value_request.rb +73 -0
- data/lib/vellum_ai/types/named_test_case_array_variable_value.rb +75 -0
- data/lib/vellum_ai/types/named_test_case_array_variable_value_request.rb +76 -0
- data/lib/vellum_ai/types/named_test_case_chat_history_variable_value.rb +76 -0
- data/lib/vellum_ai/types/named_test_case_chat_history_variable_value_request.rb +53 -30
- data/lib/vellum_ai/types/named_test_case_error_variable_value.rb +77 -0
- data/lib/vellum_ai/types/named_test_case_error_variable_value_request.rb +52 -30
- data/lib/vellum_ai/types/named_test_case_function_call_variable_value.rb +78 -0
- data/lib/vellum_ai/types/named_test_case_function_call_variable_value_request.rb +79 -0
- data/lib/vellum_ai/types/named_test_case_json_variable_value.rb +69 -0
- data/lib/vellum_ai/types/named_test_case_json_variable_value_request.rb +48 -28
- data/lib/vellum_ai/types/named_test_case_number_variable_value.rb +71 -0
- data/lib/vellum_ai/types/named_test_case_number_variable_value_request.rb +51 -28
- data/lib/vellum_ai/types/named_test_case_search_results_variable_value.rb +77 -0
- data/lib/vellum_ai/types/named_test_case_search_results_variable_value_request.rb +53 -30
- data/lib/vellum_ai/types/named_test_case_string_variable_value.rb +71 -0
- data/lib/vellum_ai/types/named_test_case_string_variable_value_request.rb +51 -28
- data/lib/vellum_ai/types/named_test_case_variable_value.rb +154 -0
- data/lib/vellum_ai/types/named_test_case_variable_value_request.rb +131 -119
- data/lib/vellum_ai/types/new_member_join_behavior_enum.rb +14 -0
- data/lib/vellum_ai/types/node_execution_fulfilled_body.rb +87 -0
- data/lib/vellum_ai/types/node_execution_fulfilled_event.rb +134 -0
- data/lib/vellum_ai/types/node_execution_initiated_body.rb +67 -0
- data/lib/vellum_ai/types/node_execution_initiated_event.rb +134 -0
- data/lib/vellum_ai/types/node_execution_paused_body.rb +57 -0
- data/lib/vellum_ai/types/node_execution_paused_event.rb +134 -0
- data/lib/vellum_ai/types/node_execution_rejected_body.rb +73 -0
- data/lib/vellum_ai/types/node_execution_rejected_event.rb +134 -0
- data/lib/vellum_ai/types/node_execution_resumed_body.rb +57 -0
- data/lib/vellum_ai/types/node_execution_resumed_event.rb +134 -0
- data/lib/vellum_ai/types/node_execution_span.rb +118 -0
- data/lib/vellum_ai/types/node_execution_span_attributes.rb +51 -0
- data/lib/vellum_ai/types/node_execution_streaming_body.rb +73 -0
- data/lib/vellum_ai/types/node_execution_streaming_event.rb +134 -0
- data/lib/vellum_ai/types/node_input_compiled_array_value.rb +55 -33
- data/lib/vellum_ai/types/node_input_compiled_chat_history_value.rb +54 -32
- data/lib/vellum_ai/types/node_input_compiled_error_value.rb +55 -33
- data/lib/vellum_ai/types/node_input_compiled_function_call_value.rb +83 -0
- data/lib/vellum_ai/types/node_input_compiled_json_value.rb +50 -30
- data/lib/vellum_ai/types/node_input_compiled_number_value.rb +52 -30
- data/lib/vellum_ai/types/node_input_compiled_search_results_value.rb +54 -32
- data/lib/vellum_ai/types/node_input_compiled_secret_value.rb +81 -0
- data/lib/vellum_ai/types/node_input_compiled_string_value.rb +52 -30
- data/lib/vellum_ai/types/node_input_variable_compiled_value.rb +146 -131
- data/lib/vellum_ai/types/node_output_compiled_array_value.rb +60 -31
- data/lib/vellum_ai/types/node_output_compiled_chat_history_value.rb +59 -30
- data/lib/vellum_ai/types/node_output_compiled_error_value.rb +59 -30
- data/lib/vellum_ai/types/node_output_compiled_function_call_value.rb +85 -0
- data/lib/vellum_ai/types/node_output_compiled_json_value.rb +57 -28
- data/lib/vellum_ai/types/node_output_compiled_number_value.rb +57 -28
- data/lib/vellum_ai/types/node_output_compiled_search_results_value.rb +59 -30
- data/lib/vellum_ai/types/node_output_compiled_string_value.rb +57 -28
- data/lib/vellum_ai/types/node_output_compiled_value.rb +130 -144
- data/lib/vellum_ai/types/node_parent_context.rb +100 -0
- data/lib/vellum_ai/types/normalized_log_probs.rb +42 -29
- data/lib/vellum_ai/types/normalized_token_log_probs.rb +51 -35
- data/lib/vellum_ai/types/number_input.rb +69 -0
- data/lib/vellum_ai/types/number_vellum_value.rb +64 -0
- data/lib/vellum_ai/types/number_vellum_value_request.rb +64 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_config.rb +54 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_config_request.rb +54 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_large.rb +68 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_large_request.rb +70 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_small.rb +68 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_small_request.rb +70 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002.rb +68 -0
- data/lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002_request.rb +70 -0
- data/lib/vellum_ai/types/organization_read.rb +78 -0
- data/lib/vellum_ai/types/paginated_container_image_read_list.rb +81 -0
- data/lib/vellum_ai/types/paginated_deployment_release_tag_read_list.rb +82 -0
- data/lib/vellum_ai/types/paginated_document_index_read_list.rb +55 -38
- data/lib/vellum_ai/types/paginated_folder_entity_list.rb +81 -0
- data/lib/vellum_ai/types/paginated_slim_deployment_read_list.rb +55 -38
- data/lib/vellum_ai/types/paginated_slim_document_list.rb +55 -38
- data/lib/vellum_ai/types/paginated_slim_workflow_deployment_list.rb +55 -38
- data/lib/vellum_ai/types/paginated_test_suite_run_execution_list.rb +55 -38
- data/lib/vellum_ai/types/paginated_test_suite_test_case_list.rb +81 -0
- data/lib/vellum_ai/types/paginated_workflow_release_tag_read_list.rb +81 -0
- data/lib/vellum_ai/types/paginated_workflow_sandbox_example_list.rb +81 -0
- data/lib/vellum_ai/types/parent_context.rb +122 -0
- data/lib/vellum_ai/types/pdf_search_result_meta_source.rb +75 -0
- data/lib/vellum_ai/types/pdf_search_result_meta_source_request.rb +75 -0
- data/lib/vellum_ai/types/plain_text_prompt_block.rb +85 -0
- data/lib/vellum_ai/types/price.rb +62 -0
- data/lib/vellum_ai/types/processing_failure_reason_enum.rb +9 -6
- data/lib/vellum_ai/types/prompt_block.rb +154 -0
- data/lib/vellum_ai/types/prompt_block_state.rb +12 -0
- data/lib/vellum_ai/types/prompt_deployment_expand_meta_request.rb +110 -0
- data/lib/vellum_ai/types/prompt_deployment_input_request.rb +53 -82
- data/lib/vellum_ai/types/prompt_deployment_parent_context.rb +143 -0
- data/lib/vellum_ai/types/prompt_deployment_release.rb +149 -0
- data/lib/vellum_ai/types/prompt_deployment_release_prompt_deployment.rb +53 -0
- data/lib/vellum_ai/types/prompt_deployment_release_prompt_version.rb +68 -0
- data/lib/vellum_ai/types/prompt_exec_config.rb +115 -0
- data/lib/vellum_ai/types/prompt_execution_meta.rb +87 -50
- data/lib/vellum_ai/types/prompt_node_execution_meta.rb +84 -0
- data/lib/vellum_ai/types/prompt_node_result.rb +43 -27
- data/lib/vellum_ai/types/prompt_node_result_data.rb +72 -36
- data/lib/vellum_ai/types/prompt_output.rb +72 -98
- data/lib/vellum_ai/types/prompt_parameters.rb +112 -0
- data/lib/vellum_ai/types/prompt_push_response.rb +61 -0
- data/lib/vellum_ai/types/prompt_request_chat_history_input.rb +72 -0
- data/lib/vellum_ai/types/prompt_request_input.rb +74 -0
- data/lib/vellum_ai/types/prompt_request_json_input.rb +68 -0
- data/lib/vellum_ai/types/prompt_request_string_input.rb +68 -0
- data/lib/vellum_ai/types/prompt_settings.rb +63 -0
- data/lib/vellum_ai/types/prompt_version_build_config_sandbox.rb +75 -0
- data/lib/vellum_ai/types/raw_prompt_execution_overrides_request.rb +45 -30
- data/lib/vellum_ai/types/reducto_chunker_config.rb +54 -0
- data/lib/vellum_ai/types/reducto_chunker_config_request.rb +54 -0
- data/lib/vellum_ai/types/reducto_chunking.rb +70 -0
- data/lib/vellum_ai/types/reducto_chunking_request.rb +70 -0
- data/lib/vellum_ai/types/rejected_ad_hoc_execute_prompt_event.rb +90 -0
- data/lib/vellum_ai/types/rejected_execute_prompt_event.rb +60 -38
- data/lib/vellum_ai/types/rejected_execute_prompt_response.rb +67 -41
- data/lib/vellum_ai/types/rejected_execute_workflow_workflow_result_event.rb +60 -33
- data/lib/vellum_ai/types/rejected_prompt_execution_meta.rb +43 -29
- data/lib/vellum_ai/types/rejected_workflow_node_result_event.rb +86 -62
- data/lib/vellum_ai/types/release_created_by.rb +70 -0
- data/lib/vellum_ai/types/release_environment.rb +68 -0
- data/lib/vellum_ai/types/release_release_tag.rb +66 -0
- data/lib/vellum_ai/types/release_review_reviewer.rb +63 -0
- data/lib/vellum_ai/types/release_review_state.rb +14 -0
- data/lib/vellum_ai/types/release_tag_release.rb +66 -0
- data/lib/vellum_ai/types/release_tag_source.rb +12 -0
- data/lib/vellum_ai/types/replace_test_suite_test_case_request.rb +98 -0
- data/lib/vellum_ai/types/rich_text_child_block.rb +58 -0
- data/lib/vellum_ai/types/rich_text_prompt_block.rb +89 -0
- data/lib/vellum_ai/types/sandbox_scenario.rb +47 -31
- data/lib/vellum_ai/types/scenario_input.rb +57 -53
- data/lib/vellum_ai/types/scenario_input_chat_history_variable_value.rb +76 -0
- data/lib/vellum_ai/types/scenario_input_json_variable_value.rb +69 -0
- data/lib/vellum_ai/types/scenario_input_string_variable_value.rb +71 -0
- data/lib/vellum_ai/types/search_filters_request.rb +44 -31
- data/lib/vellum_ai/types/search_node_result.rb +43 -27
- data/lib/vellum_ai/types/search_node_result_data.rb +54 -41
- data/lib/vellum_ai/types/search_request_options_request.rb +63 -47
- data/lib/vellum_ai/types/search_response.rb +31 -23
- data/lib/vellum_ai/types/search_result.rb +62 -32
- data/lib/vellum_ai/types/search_result_document.rb +55 -34
- data/lib/vellum_ai/types/search_result_document_request.rb +56 -30
- data/lib/vellum_ai/types/search_result_merging_request.rb +30 -22
- data/lib/vellum_ai/types/search_result_meta.rb +60 -0
- data/lib/vellum_ai/types/search_result_meta_request.rb +60 -0
- data/lib/vellum_ai/types/search_result_request.rb +62 -32
- data/lib/vellum_ai/types/search_results_input.rb +73 -0
- data/lib/vellum_ai/types/search_results_vellum_value.rb +68 -0
- data/lib/vellum_ai/types/search_results_vellum_value_request.rb +68 -0
- data/lib/vellum_ai/types/search_weights_request.rb +39 -26
- data/lib/vellum_ai/types/secret_type_enum.rb +16 -0
- data/lib/vellum_ai/types/sentence_chunker_config.rb +64 -0
- data/lib/vellum_ai/types/sentence_chunker_config_request.rb +64 -0
- data/lib/vellum_ai/types/sentence_chunking.rb +70 -0
- data/lib/vellum_ai/types/sentence_chunking_request.rb +70 -0
- data/lib/vellum_ai/types/slim_deployment_read.rb +99 -70
- data/lib/vellum_ai/types/slim_document.rb +102 -85
- data/lib/vellum_ai/types/slim_document_document_to_document_index.rb +96 -0
- data/lib/vellum_ai/types/slim_release_review.rb +87 -0
- data/lib/vellum_ai/types/slim_workflow_deployment.rb +109 -77
- data/lib/vellum_ai/types/slim_workflow_execution_read.rb +162 -0
- data/lib/vellum_ai/types/span_link.rb +75 -0
- data/lib/vellum_ai/types/{chat_history_enum.rb → span_link_type_enum.rb} +2 -2
- data/lib/vellum_ai/types/streaming_ad_hoc_execute_prompt_event.rb +106 -0
- data/lib/vellum_ai/types/streaming_execute_prompt_event.rb +73 -52
- data/lib/vellum_ai/types/streaming_prompt_execution_meta.rb +33 -24
- data/lib/vellum_ai/types/streaming_workflow_node_result_event.rb +93 -69
- data/lib/vellum_ai/types/string_chat_message_content.rb +40 -24
- data/lib/vellum_ai/types/string_chat_message_content_request.rb +40 -24
- data/lib/vellum_ai/types/string_input.rb +69 -0
- data/lib/vellum_ai/types/string_input_request.rb +45 -27
- data/lib/vellum_ai/types/string_vellum_value.rb +64 -0
- data/lib/vellum_ai/types/string_vellum_value_request.rb +64 -0
- data/lib/vellum_ai/types/submit_completion_actual_request.rb +76 -39
- data/lib/vellum_ai/types/submit_workflow_execution_actual_request.rb +53 -82
- data/lib/vellum_ai/types/subworkflow_node_result.rb +51 -21
- data/lib/vellum_ai/types/subworkflow_node_result_data.rb +53 -0
- data/lib/vellum_ai/types/templating_node_array_result.rb +74 -0
- data/lib/vellum_ai/types/templating_node_chat_history_result.rb +49 -29
- data/lib/vellum_ai/types/templating_node_error_result.rb +50 -30
- data/lib/vellum_ai/types/templating_node_function_call_result.rb +76 -0
- data/lib/vellum_ai/types/templating_node_json_result.rb +45 -27
- data/lib/vellum_ai/types/templating_node_number_result.rb +47 -27
- data/lib/vellum_ai/types/templating_node_result.rb +43 -27
- data/lib/vellum_ai/types/templating_node_result_data.rb +30 -24
- data/lib/vellum_ai/types/templating_node_result_output.rb +131 -119
- data/lib/vellum_ai/types/templating_node_search_results_result.rb +49 -29
- data/lib/vellum_ai/types/templating_node_string_result.rb +47 -27
- data/lib/vellum_ai/types/terminal_node_array_result.rb +55 -33
- data/lib/vellum_ai/types/terminal_node_chat_history_result.rb +54 -32
- data/lib/vellum_ai/types/terminal_node_error_result.rb +55 -33
- data/lib/vellum_ai/types/terminal_node_function_call_result.rb +55 -33
- data/lib/vellum_ai/types/terminal_node_json_result.rb +52 -30
- data/lib/vellum_ai/types/terminal_node_number_result.rb +52 -30
- data/lib/vellum_ai/types/terminal_node_result.rb +43 -27
- data/lib/vellum_ai/types/terminal_node_result_data.rb +30 -24
- data/lib/vellum_ai/types/terminal_node_result_output.rb +130 -144
- data/lib/vellum_ai/types/terminal_node_search_results_result.rb +54 -32
- data/lib/vellum_ai/types/terminal_node_string_result.rb +52 -30
- data/lib/vellum_ai/types/test_case_array_variable_value.rb +82 -0
- data/lib/vellum_ai/types/test_case_chat_history_variable_value.rb +57 -29
- data/lib/vellum_ai/types/test_case_error_variable_value.rb +58 -30
- data/lib/vellum_ai/types/test_case_function_call_variable_value.rb +84 -0
- data/lib/vellum_ai/types/test_case_json_variable_value.rb +53 -27
- data/lib/vellum_ai/types/test_case_number_variable_value.rb +55 -27
- data/lib/vellum_ai/types/test_case_search_results_variable_value.rb +57 -29
- data/lib/vellum_ai/types/test_case_string_variable_value.rb +55 -27
- data/lib/vellum_ai/types/test_case_variable_value.rb +131 -119
- data/lib/vellum_ai/types/test_suite_run_deployment_release_tag_exec_config.rb +55 -31
- data/lib/vellum_ai/types/test_suite_run_deployment_release_tag_exec_config_data.rb +43 -26
- data/lib/vellum_ai/types/test_suite_run_deployment_release_tag_exec_config_data_request.rb +43 -26
- data/lib/vellum_ai/types/test_suite_run_deployment_release_tag_exec_config_request.rb +55 -31
- data/lib/vellum_ai/types/test_suite_run_exec_config.rb +86 -70
- data/lib/vellum_ai/types/test_suite_run_exec_config_request.rb +118 -70
- data/lib/vellum_ai/types/test_suite_run_execution.rb +51 -37
- data/lib/vellum_ai/types/test_suite_run_execution_array_output.rb +83 -0
- data/lib/vellum_ai/types/test_suite_run_execution_chat_history_output.rb +60 -30
- data/lib/vellum_ai/types/test_suite_run_execution_error_output.rb +59 -30
- data/lib/vellum_ai/types/test_suite_run_execution_function_call_output.rb +87 -0
- data/lib/vellum_ai/types/test_suite_run_execution_json_output.rb +55 -28
- data/lib/vellum_ai/types/test_suite_run_execution_metric_definition.rb +71 -0
- data/lib/vellum_ai/types/test_suite_run_execution_metric_result.rb +60 -27
- data/lib/vellum_ai/types/test_suite_run_execution_number_output.rb +57 -28
- data/lib/vellum_ai/types/test_suite_run_execution_output.rb +131 -119
- data/lib/vellum_ai/types/test_suite_run_execution_search_results_output.rb +61 -30
- data/lib/vellum_ai/types/test_suite_run_execution_string_output.rb +57 -28
- data/lib/vellum_ai/types/test_suite_run_external_exec_config.rb +80 -0
- data/lib/vellum_ai/types/test_suite_run_external_exec_config_data.rb +57 -0
- data/lib/vellum_ai/types/test_suite_run_external_exec_config_data_request.rb +59 -0
- data/lib/vellum_ai/types/test_suite_run_external_exec_config_request.rb +81 -0
- data/lib/vellum_ai/types/test_suite_run_metric_array_output.rb +75 -0
- data/lib/vellum_ai/types/test_suite_run_metric_error_output.rb +48 -30
- data/lib/vellum_ai/types/test_suite_run_metric_json_output.rb +69 -0
- data/lib/vellum_ai/types/test_suite_run_metric_number_output.rb +49 -29
- data/lib/vellum_ai/types/test_suite_run_metric_output.rb +86 -70
- data/lib/vellum_ai/types/test_suite_run_metric_string_output.rb +71 -0
- data/lib/vellum_ai/types/test_suite_run_progress.rb +61 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_exec_config_data_request.rb +65 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_exec_config_request.rb +81 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_history_item_exec_config.rb +82 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_history_item_exec_config_data.rb +65 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_history_item_exec_config_data_request.rb +65 -0
- data/lib/vellum_ai/types/test_suite_run_prompt_sandbox_history_item_exec_config_request.rb +82 -0
- data/lib/vellum_ai/types/test_suite_run_read.rb +89 -60
- data/lib/vellum_ai/types/test_suite_run_state.rb +15 -9
- data/lib/vellum_ai/types/test_suite_run_test_suite.rb +41 -28
- data/lib/vellum_ai/types/test_suite_run_workflow_release_tag_exec_config.rb +55 -31
- data/lib/vellum_ai/types/test_suite_run_workflow_release_tag_exec_config_data.rb +43 -26
- data/lib/vellum_ai/types/test_suite_run_workflow_release_tag_exec_config_data_request.rb +43 -26
- data/lib/vellum_ai/types/test_suite_run_workflow_release_tag_exec_config_request.rb +55 -31
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb +53 -0
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_request.rb +81 -0
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_history_item_exec_config.rb +82 -0
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_history_item_exec_config_data.rb +67 -0
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_history_item_exec_config_data_request.rb +67 -0
- data/lib/vellum_ai/types/test_suite_run_workflow_sandbox_history_item_exec_config_request.rb +82 -0
- data/lib/vellum_ai/types/test_suite_test_case.rb +63 -40
- data/lib/vellum_ai/types/test_suite_test_case_bulk_operation_request.rb +91 -0
- data/lib/vellum_ai/types/test_suite_test_case_bulk_result.rb +90 -0
- data/lib/vellum_ai/types/test_suite_test_case_create_bulk_operation_request.rb +79 -0
- data/lib/vellum_ai/types/test_suite_test_case_created_bulk_result.rb +75 -0
- data/lib/vellum_ai/types/test_suite_test_case_created_bulk_result_data.rb +53 -0
- data/lib/vellum_ai/types/test_suite_test_case_delete_bulk_operation_data_request.rb +53 -0
- data/lib/vellum_ai/types/test_suite_test_case_delete_bulk_operation_request.rb +79 -0
- data/lib/vellum_ai/types/test_suite_test_case_deleted_bulk_result.rb +77 -0
- data/lib/vellum_ai/types/test_suite_test_case_deleted_bulk_result_data.rb +53 -0
- data/lib/vellum_ai/types/test_suite_test_case_rejected_bulk_result.rb +73 -0
- data/lib/vellum_ai/types/test_suite_test_case_replace_bulk_operation_request.rb +79 -0
- data/lib/vellum_ai/types/test_suite_test_case_replaced_bulk_result.rb +77 -0
- data/lib/vellum_ai/types/test_suite_test_case_replaced_bulk_result_data.rb +54 -0
- data/lib/vellum_ai/types/test_suite_test_case_upsert_bulk_operation_request.rb +79 -0
- data/lib/vellum_ai/types/token_overlapping_window_chunker_config.rb +64 -0
- data/lib/vellum_ai/types/token_overlapping_window_chunker_config_request.rb +66 -0
- data/lib/vellum_ai/types/token_overlapping_window_chunking.rb +70 -0
- data/lib/vellum_ai/types/token_overlapping_window_chunking_request.rb +71 -0
- data/lib/vellum_ai/types/{json_enum.rb → unit_enum.rb} +2 -2
- data/lib/vellum_ai/types/upload_document_response.rb +26 -20
- data/lib/vellum_ai/types/upsert_test_suite_test_case_request.rb +103 -0
- data/lib/vellum_ai/types/variable_prompt_block.rb +85 -0
- data/lib/vellum_ai/types/vellum_audio.rb +63 -0
- data/lib/vellum_ai/types/vellum_audio_request.rb +63 -0
- data/lib/vellum_ai/types/vellum_code_resource_definition.rb +68 -0
- data/lib/vellum_ai/types/vellum_document.rb +63 -0
- data/lib/vellum_ai/types/vellum_document_request.rb +63 -0
- data/lib/vellum_ai/types/vellum_error.rb +36 -25
- data/lib/vellum_ai/types/vellum_error_code_enum.rb +17 -8
- data/lib/vellum_ai/types/vellum_error_request.rb +36 -25
- data/lib/vellum_ai/types/vellum_image.rb +40 -27
- data/lib/vellum_ai/types/vellum_image_request.rb +40 -27
- data/lib/vellum_ai/types/vellum_node_execution_event.rb +122 -0
- data/lib/vellum_ai/types/vellum_sdk_error.rb +62 -0
- data/lib/vellum_ai/types/vellum_sdk_error_code_enum.rb +32 -0
- data/lib/vellum_ai/types/vellum_secret.rb +51 -0
- data/lib/vellum_ai/types/vellum_span.rb +58 -0
- data/lib/vellum_ai/types/vellum_value.rb +202 -0
- data/lib/vellum_ai/types/vellum_value_logical_condition_group_request.rb +84 -0
- data/lib/vellum_ai/types/vellum_value_logical_condition_request.rb +88 -0
- data/lib/vellum_ai/types/vellum_value_logical_expression_request.rb +58 -0
- data/lib/vellum_ai/types/vellum_value_request.rb +202 -0
- data/lib/vellum_ai/types/vellum_variable.rb +77 -29
- data/lib/vellum_ai/types/vellum_variable_extensions.rb +54 -0
- data/lib/vellum_ai/types/vellum_variable_type.rb +29 -13
- data/lib/vellum_ai/types/vellum_workflow_execution_event.rb +138 -0
- data/lib/vellum_ai/types/workflow_deployment_event_executions_response.rb +67 -0
- data/lib/vellum_ai/types/workflow_deployment_history_item.rb +117 -0
- data/lib/vellum_ai/types/workflow_deployment_parent_context.rb +143 -0
- data/lib/vellum_ai/types/workflow_deployment_read.rb +120 -77
- data/lib/vellum_ai/types/workflow_deployment_release.rb +149 -0
- data/lib/vellum_ai/types/workflow_deployment_release_workflow_deployment.rb +53 -0
- data/lib/vellum_ai/types/workflow_deployment_release_workflow_version.rb +77 -0
- data/lib/vellum_ai/types/workflow_error.rb +58 -0
- data/lib/vellum_ai/types/workflow_event_error.rb +36 -25
- data/lib/vellum_ai/types/workflow_event_execution_read.rb +173 -0
- data/lib/vellum_ai/types/workflow_execution_actual.rb +88 -0
- data/lib/vellum_ai/types/workflow_execution_actual_chat_history_request.rb +87 -50
- data/lib/vellum_ai/types/workflow_execution_actual_json_request.rb +83 -48
- data/lib/vellum_ai/types/workflow_execution_actual_string_request.rb +82 -47
- data/lib/vellum_ai/types/workflow_execution_event_error_code.rb +25 -12
- data/lib/vellum_ai/types/workflow_execution_event_type.rb +9 -3
- data/lib/vellum_ai/types/workflow_execution_fulfilled_body.rb +67 -0
- data/lib/vellum_ai/types/workflow_execution_fulfilled_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_initiated_body.rb +67 -0
- data/lib/vellum_ai/types/workflow_execution_initiated_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_node_result_event.rb +62 -39
- data/lib/vellum_ai/types/workflow_execution_paused_body.rb +71 -0
- data/lib/vellum_ai/types/workflow_execution_paused_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_rejected_body.rb +73 -0
- data/lib/vellum_ai/types/workflow_execution_rejected_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_resumed_body.rb +57 -0
- data/lib/vellum_ai/types/workflow_execution_resumed_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_snapshotted_body.rb +67 -0
- data/lib/vellum_ai/types/workflow_execution_snapshotted_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_span.rb +118 -0
- data/lib/vellum_ai/types/workflow_execution_span_attributes.rb +51 -0
- data/lib/vellum_ai/types/workflow_execution_streaming_body.rb +73 -0
- data/lib/vellum_ai/types/workflow_execution_streaming_event.rb +134 -0
- data/lib/vellum_ai/types/workflow_execution_usage_calculation_error.rb +63 -0
- data/lib/vellum_ai/types/workflow_execution_usage_calculation_error_code_enum.rb +16 -0
- data/lib/vellum_ai/types/workflow_execution_usage_result.rb +84 -0
- data/lib/vellum_ai/types/workflow_execution_view_online_eval_metric_result.rb +74 -0
- data/lib/vellum_ai/types/workflow_execution_workflow_result_event.rb +62 -39
- data/lib/vellum_ai/types/workflow_expand_meta_request.rb +74 -0
- data/lib/vellum_ai/types/workflow_initialization_error.rb +62 -0
- data/lib/vellum_ai/types/workflow_node_result_data.rb +177 -143
- data/lib/vellum_ai/types/workflow_node_result_event.rb +68 -94
- data/lib/vellum_ai/types/workflow_node_result_event_state.rb +13 -8
- data/lib/vellum_ai/types/workflow_output.rb +144 -155
- data/lib/vellum_ai/types/workflow_output_array.rb +55 -33
- data/lib/vellum_ai/types/workflow_output_chat_history.rb +54 -32
- data/lib/vellum_ai/types/workflow_output_error.rb +55 -33
- data/lib/vellum_ai/types/workflow_output_function_call.rb +55 -33
- data/lib/vellum_ai/types/workflow_output_image.rb +55 -33
- data/lib/vellum_ai/types/workflow_output_json.rb +50 -30
- data/lib/vellum_ai/types/workflow_output_number.rb +52 -30
- data/lib/vellum_ai/types/workflow_output_search_results.rb +54 -32
- data/lib/vellum_ai/types/workflow_output_string.rb +52 -30
- data/lib/vellum_ai/types/workflow_parent_context.rb +100 -0
- data/lib/vellum_ai/types/workflow_push_deployment_config_request.rb +77 -0
- data/lib/vellum_ai/types/workflow_push_response.rb +70 -0
- data/lib/vellum_ai/types/workflow_release_tag_read.rb +92 -0
- data/lib/vellum_ai/types/workflow_release_tag_workflow_deployment_history_item.rb +68 -0
- data/lib/vellum_ai/types/workflow_request_chat_history_input_request.rb +47 -28
- data/lib/vellum_ai/types/workflow_request_input_request.rb +68 -94
- data/lib/vellum_ai/types/workflow_request_json_input_request.rb +45 -27
- data/lib/vellum_ai/types/workflow_request_number_input_request.rb +44 -26
- data/lib/vellum_ai/types/workflow_request_string_input_request.rb +44 -26
- data/lib/vellum_ai/types/workflow_result_event.rb +86 -68
- data/lib/vellum_ai/types/workflow_result_event_output_data.rb +129 -143
- data/lib/vellum_ai/types/workflow_result_event_output_data_array.rb +76 -53
- data/lib/vellum_ai/types/workflow_result_event_output_data_chat_history.rb +77 -52
- data/lib/vellum_ai/types/workflow_result_event_output_data_error.rb +76 -53
- data/lib/vellum_ai/types/workflow_result_event_output_data_function_call.rb +78 -53
- data/lib/vellum_ai/types/workflow_result_event_output_data_json.rb +72 -49
- data/lib/vellum_ai/types/workflow_result_event_output_data_number.rb +72 -49
- data/lib/vellum_ai/types/workflow_result_event_output_data_search_results.rb +77 -52
- data/lib/vellum_ai/types/workflow_result_event_output_data_string.rb +71 -48
- data/lib/vellum_ai/types/workflow_sandbox_example.rb +77 -0
- data/lib/vellum_ai/types/workflow_sandbox_parent_context.rb +108 -0
- data/lib/vellum_ai/types/workflow_stream_event.rb +38 -70
- data/lib/vellum_ai/types/workspace_read.rb +80 -0
- data/lib/vellum_ai/types/workspace_secret_read.rb +88 -0
- data/lib/vellum_ai/workflow_deployments/client.rb +534 -66
- data/lib/vellum_ai/workflow_deployments/types/list_workflow_release_tags_request_source.rb +12 -0
- data/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb +7 -3
- data/lib/vellum_ai/workflow_sandboxes/client.rb +183 -0
- data/lib/vellum_ai/workflow_sandboxes/types/list_workflow_sandbox_examples_request_tag.rb +12 -0
- data/lib/vellum_ai/workflows/client.rb +169 -0
- data/lib/vellum_ai/workspace_secrets/client.rb +159 -0
- data/lib/vellum_ai/workspaces/client.rb +92 -0
- data/lib/vellum_ai.rb +786 -392
- metadata +438 -95
- data/lib/vellum_ai/model_versions/client.rb +0 -61
- data/lib/vellum_ai/registered_prompts/client.rb +0 -154
- data/lib/vellum_ai/types/array_enum.rb +0 -5
- data/lib/vellum_ai/types/array_variable_value_item.rb +0 -168
- data/lib/vellum_ai/types/block_type_enum.rb +0 -11
- data/lib/vellum_ai/types/chat_history_variable_value.rb +0 -49
- data/lib/vellum_ai/types/error_enum.rb +0 -5
- data/lib/vellum_ai/types/error_variable_value.rb +0 -51
- data/lib/vellum_ai/types/execute_prompt_api_error_response.rb +0 -45
- data/lib/vellum_ai/types/execute_workflow_error_response.rb +0 -45
- data/lib/vellum_ai/types/execute_workflow_stream_error_response.rb +0 -45
- data/lib/vellum_ai/types/fulfilled_enum.rb +0 -5
- data/lib/vellum_ai/types/fulfilled_function_call.rb +0 -56
- data/lib/vellum_ai/types/function_call_enum.rb +0 -5
- data/lib/vellum_ai/types/function_call_variable_value.rb +0 -51
- data/lib/vellum_ai/types/generate_error_response.rb +0 -45
- data/lib/vellum_ai/types/image_variable_value.rb +0 -52
- data/lib/vellum_ai/types/initiated_enum.rb +0 -5
- data/lib/vellum_ai/types/json_variable_value.rb +0 -45
- data/lib/vellum_ai/types/model_version_build_config.rb +0 -66
- data/lib/vellum_ai/types/model_version_exec_config.rb +0 -90
- data/lib/vellum_ai/types/model_version_exec_config_parameters.rb +0 -98
- data/lib/vellum_ai/types/model_version_read.rb +0 -133
- data/lib/vellum_ai/types/model_version_read_status_enum.rb +0 -11
- data/lib/vellum_ai/types/model_version_sandbox_snapshot.rb +0 -61
- data/lib/vellum_ai/types/node_output_compiled_function_value.rb +0 -56
- data/lib/vellum_ai/types/number_enum.rb +0 -5
- data/lib/vellum_ai/types/number_variable_value.rb +0 -45
- data/lib/vellum_ai/types/processing_state_enum.rb +0 -11
- data/lib/vellum_ai/types/prompt_deployment_expand_meta_request_request.rb +0 -74
- data/lib/vellum_ai/types/prompt_template_block.rb +0 -62
- data/lib/vellum_ai/types/prompt_template_block_data.rb +0 -54
- data/lib/vellum_ai/types/prompt_template_block_data_request.rb +0 -54
- data/lib/vellum_ai/types/prompt_template_block_properties.rb +0 -110
- data/lib/vellum_ai/types/prompt_template_block_properties_request.rb +0 -110
- data/lib/vellum_ai/types/prompt_template_block_request.rb +0 -62
- data/lib/vellum_ai/types/provider_enum.rb +0 -20
- data/lib/vellum_ai/types/register_prompt_error_response.rb +0 -45
- data/lib/vellum_ai/types/register_prompt_model_parameters_request.rb +0 -98
- data/lib/vellum_ai/types/register_prompt_prompt.rb +0 -50
- data/lib/vellum_ai/types/register_prompt_prompt_info_request.rb +0 -60
- data/lib/vellum_ai/types/register_prompt_response.rb +0 -110
- data/lib/vellum_ai/types/registered_prompt_deployment.rb +0 -55
- data/lib/vellum_ai/types/registered_prompt_input_variable_request.rb +0 -56
- data/lib/vellum_ai/types/registered_prompt_model_version.rb +0 -50
- data/lib/vellum_ai/types/registered_prompt_sandbox.rb +0 -50
- data/lib/vellum_ai/types/registered_prompt_sandbox_snapshot.rb +0 -45
- data/lib/vellum_ai/types/rejected_enum.rb +0 -5
- data/lib/vellum_ai/types/rejected_function_call.rb +0 -62
- data/lib/vellum_ai/types/scenario_input_request.rb +0 -70
- data/lib/vellum_ai/types/scenario_input_type_enum.rb +0 -6
- data/lib/vellum_ai/types/search_error_response.rb +0 -45
- data/lib/vellum_ai/types/search_results_enum.rb +0 -5
- data/lib/vellum_ai/types/search_results_variable_value.rb +0 -49
- data/lib/vellum_ai/types/streaming_enum.rb +0 -5
- data/lib/vellum_ai/types/string_enum.rb +0 -5
- data/lib/vellum_ai/types/string_variable_value.rb +0 -45
- data/lib/vellum_ai/types/submit_completion_actuals_error_response.rb +0 -45
- data/lib/vellum_ai/types/subworkflow_enum.rb +0 -5
- data/lib/vellum_ai/types/test_suite_run_deployment_release_tag_exec_config_type_enum.rb +0 -5
- data/lib/vellum_ai/types/test_suite_run_metric_error_output_type_enum.rb +0 -5
- data/lib/vellum_ai/types/test_suite_run_metric_number_output_type_enum.rb +0 -5
- data/lib/vellum_ai/types/test_suite_run_workflow_release_tag_exec_config_type_enum.rb +0 -5
- data/lib/vellum_ai/types/upload_document_error_response.rb +0 -45
@@ -0,0 +1,110 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "ostruct"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Vellum
|
6
|
+
class PromptDeploymentExpandMetaRequest
|
7
|
+
# @return [Boolean] If enabled, the response will include the model identifier representing the ML
|
8
|
+
# Model invoked by the Prompt.
|
9
|
+
attr_reader :model_name
|
10
|
+
# @return [Boolean] If enabled, the response will include model host usage tracking. This may
|
11
|
+
# increase latency for some model hosts.
|
12
|
+
attr_reader :usage
|
13
|
+
# @return [Boolean] If enabled, the response will include model host cost tracking. This may
|
14
|
+
# increase latency for some model hosts.
|
15
|
+
attr_reader :cost
|
16
|
+
# @return [Boolean] If enabled, the response will include the reason provided by the model for why
|
17
|
+
# the execution finished.
|
18
|
+
attr_reader :finish_reason
|
19
|
+
# @return [Boolean] If enabled, the response will include the time in nanoseconds it took to execute
|
20
|
+
# the Prompt Deployment.
|
21
|
+
attr_reader :latency
|
22
|
+
# @return [Boolean] If enabled, the response will include the release tag of the Prompt Deployment.
|
23
|
+
attr_reader :deployment_release_tag
|
24
|
+
# @return [Boolean] If enabled, the response will include the ID of the Prompt Version backing the
|
25
|
+
# deployment.
|
26
|
+
attr_reader :prompt_version_id
|
27
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
28
|
+
attr_reader :additional_properties
|
29
|
+
# @return [Object]
|
30
|
+
attr_reader :_field_set
|
31
|
+
protected :_field_set
|
32
|
+
|
33
|
+
OMIT = Object.new
|
34
|
+
|
35
|
+
# @param model_name [Boolean] If enabled, the response will include the model identifier representing the ML
|
36
|
+
# Model invoked by the Prompt.
|
37
|
+
# @param usage [Boolean] If enabled, the response will include model host usage tracking. This may
|
38
|
+
# increase latency for some model hosts.
|
39
|
+
# @param cost [Boolean] If enabled, the response will include model host cost tracking. This may
|
40
|
+
# increase latency for some model hosts.
|
41
|
+
# @param finish_reason [Boolean] If enabled, the response will include the reason provided by the model for why
|
42
|
+
# the execution finished.
|
43
|
+
# @param latency [Boolean] If enabled, the response will include the time in nanoseconds it took to execute
|
44
|
+
# the Prompt Deployment.
|
45
|
+
# @param deployment_release_tag [Boolean] If enabled, the response will include the release tag of the Prompt Deployment.
|
46
|
+
# @param prompt_version_id [Boolean] If enabled, the response will include the ID of the Prompt Version backing the
|
47
|
+
# deployment.
|
48
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
49
|
+
# @return [Vellum::PromptDeploymentExpandMetaRequest]
|
50
|
+
def initialize(model_name: OMIT, usage: OMIT, cost: OMIT, finish_reason: OMIT, latency: OMIT, deployment_release_tag: OMIT, prompt_version_id: OMIT, additional_properties: nil)
|
51
|
+
@model_name = model_name if model_name != OMIT
|
52
|
+
@usage = usage if usage != OMIT
|
53
|
+
@cost = cost if cost != OMIT
|
54
|
+
@finish_reason = finish_reason if finish_reason != OMIT
|
55
|
+
@latency = latency if latency != OMIT
|
56
|
+
@deployment_release_tag = deployment_release_tag if deployment_release_tag != OMIT
|
57
|
+
@prompt_version_id = prompt_version_id if prompt_version_id != OMIT
|
58
|
+
@additional_properties = additional_properties
|
59
|
+
@_field_set = { "model_name": model_name, "usage": usage, "cost": cost, "finish_reason": finish_reason, "latency": latency, "deployment_release_tag": deployment_release_tag, "prompt_version_id": prompt_version_id }.reject do | _k, v |
|
60
|
+
v == OMIT
|
61
|
+
end
|
62
|
+
end
|
63
|
+
# Deserialize a JSON object to an instance of PromptDeploymentExpandMetaRequest
|
64
|
+
#
|
65
|
+
# @param json_object [String]
|
66
|
+
# @return [Vellum::PromptDeploymentExpandMetaRequest]
|
67
|
+
def self.from_json(json_object:)
|
68
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
69
|
+
parsed_json = JSON.parse(json_object)
|
70
|
+
model_name = parsed_json["model_name"]
|
71
|
+
usage = parsed_json["usage"]
|
72
|
+
cost = parsed_json["cost"]
|
73
|
+
finish_reason = parsed_json["finish_reason"]
|
74
|
+
latency = parsed_json["latency"]
|
75
|
+
deployment_release_tag = parsed_json["deployment_release_tag"]
|
76
|
+
prompt_version_id = parsed_json["prompt_version_id"]
|
77
|
+
new(
|
78
|
+
model_name: model_name,
|
79
|
+
usage: usage,
|
80
|
+
cost: cost,
|
81
|
+
finish_reason: finish_reason,
|
82
|
+
latency: latency,
|
83
|
+
deployment_release_tag: deployment_release_tag,
|
84
|
+
prompt_version_id: prompt_version_id,
|
85
|
+
additional_properties: struct
|
86
|
+
)
|
87
|
+
end
|
88
|
+
# Serialize an instance of PromptDeploymentExpandMetaRequest to a JSON object
|
89
|
+
#
|
90
|
+
# @return [String]
|
91
|
+
def to_json
|
92
|
+
@_field_set&.to_json
|
93
|
+
end
|
94
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
95
|
+
# hash and check each fields type against the current object's property
|
96
|
+
# definitions.
|
97
|
+
#
|
98
|
+
# @param obj [Object]
|
99
|
+
# @return [Void]
|
100
|
+
def self.validate_raw(obj:)
|
101
|
+
obj.model_name&.is_a?(Boolean) != false || raise("Passed value for field obj.model_name is not the expected type, validation failed.")
|
102
|
+
obj.usage&.is_a?(Boolean) != false || raise("Passed value for field obj.usage is not the expected type, validation failed.")
|
103
|
+
obj.cost&.is_a?(Boolean) != false || raise("Passed value for field obj.cost is not the expected type, validation failed.")
|
104
|
+
obj.finish_reason&.is_a?(Boolean) != false || raise("Passed value for field obj.finish_reason is not the expected type, validation failed.")
|
105
|
+
obj.latency&.is_a?(Boolean) != false || raise("Passed value for field obj.latency is not the expected type, validation failed.")
|
106
|
+
obj.deployment_release_tag&.is_a?(Boolean) != false || raise("Passed value for field obj.deployment_release_tag is not the expected type, validation failed.")
|
107
|
+
obj.prompt_version_id&.is_a?(Boolean) != false || raise("Passed value for field obj.prompt_version_id is not the expected type, validation failed.")
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -1,5 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
2
|
require "json"
|
4
3
|
require_relative "string_input_request"
|
5
4
|
require_relative "json_input_request"
|
@@ -7,97 +6,69 @@ require_relative "chat_history_input_request"
|
|
7
6
|
|
8
7
|
module Vellum
|
9
8
|
class PromptDeploymentInputRequest
|
10
|
-
attr_reader :member, :discriminant
|
11
9
|
|
12
|
-
private_class_method :new
|
13
|
-
alias kind_of? is_a?
|
14
|
-
# @param member [Object]
|
15
|
-
# @param discriminant [String]
|
16
|
-
# @return [PromptDeploymentInputRequest]
|
17
|
-
def initialize(member:, discriminant:)
|
18
|
-
# @type [Object]
|
19
|
-
@member = member
|
20
|
-
# @type [String]
|
21
|
-
@discriminant = discriminant
|
22
|
-
end
|
23
10
|
|
24
|
-
|
11
|
+
# Deserialize a JSON object to an instance of PromptDeploymentInputRequest
|
25
12
|
#
|
26
|
-
# @param json_object [
|
27
|
-
# @return [PromptDeploymentInputRequest]
|
13
|
+
# @param json_object [String]
|
14
|
+
# @return [Vellum::PromptDeploymentInputRequest]
|
28
15
|
def self.from_json(json_object:)
|
29
16
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
end
|
40
|
-
new(member: member, discriminant: struct.type)
|
41
|
-
end
|
42
|
-
|
43
|
-
# For Union Types, to_json functionality is delegated to the wrapped member.
|
44
|
-
#
|
45
|
-
# @return [JSON]
|
46
|
-
def to_json(*_args)
|
47
|
-
case @discriminant
|
48
|
-
when "STRING"
|
49
|
-
{ **@member.to_json, type: @discriminant }.to_json
|
50
|
-
when "JSON"
|
51
|
-
{ **@member.to_json, type: @discriminant }.to_json
|
52
|
-
when "CHAT_HISTORY"
|
53
|
-
{ **@member.to_json, type: @discriminant }.to_json
|
54
|
-
else
|
55
|
-
{ "type": @discriminant, value: @member }.to_json
|
17
|
+
begin
|
18
|
+
Vellum::StringInputRequest.validate_raw(obj: struct)
|
19
|
+
unless struct.nil?
|
20
|
+
return Vellum::StringInputRequest.from_json(json_object: struct)
|
21
|
+
else
|
22
|
+
return nil
|
23
|
+
end
|
24
|
+
rescue StandardError
|
25
|
+
# noop
|
56
26
|
end
|
57
|
-
|
27
|
+
begin
|
28
|
+
Vellum::JsonInputRequest.validate_raw(obj: struct)
|
29
|
+
unless struct.nil?
|
30
|
+
return Vellum::JsonInputRequest.from_json(json_object: struct)
|
31
|
+
else
|
32
|
+
return nil
|
33
|
+
end
|
34
|
+
rescue StandardError
|
35
|
+
# noop
|
36
|
+
end
|
37
|
+
begin
|
38
|
+
Vellum::ChatHistoryInputRequest.validate_raw(obj: struct)
|
39
|
+
unless struct.nil?
|
40
|
+
return Vellum::ChatHistoryInputRequest.from_json(json_object: struct)
|
41
|
+
else
|
42
|
+
return nil
|
43
|
+
end
|
44
|
+
rescue StandardError
|
45
|
+
# noop
|
46
|
+
end
|
47
|
+
return struct
|
58
48
|
end
|
59
|
-
|
60
|
-
|
49
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
50
|
+
# hash and check each fields type against the current object's property
|
51
|
+
# definitions.
|
61
52
|
#
|
62
|
-
# @param obj [Object]
|
53
|
+
# @param obj [Object]
|
63
54
|
# @return [Void]
|
64
55
|
def self.validate_raw(obj:)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
JsonInputRequest.validate_raw(obj: obj)
|
70
|
-
when "CHAT_HISTORY"
|
71
|
-
ChatHistoryInputRequest.validate_raw(obj: obj)
|
72
|
-
else
|
73
|
-
raise("Passed value matched no type within the union, validation failed.")
|
56
|
+
begin
|
57
|
+
return Vellum::StringInputRequest.validate_raw(obj: obj)
|
58
|
+
rescue StandardError
|
59
|
+
# noop
|
74
60
|
end
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
# @return [PromptDeploymentInputRequest]
|
87
|
-
def self.string(member:)
|
88
|
-
new(member: member, discriminant: "STRING")
|
89
|
-
end
|
90
|
-
|
91
|
-
# @param member [JsonInputRequest]
|
92
|
-
# @return [PromptDeploymentInputRequest]
|
93
|
-
def self.json(member:)
|
94
|
-
new(member: member, discriminant: "JSON")
|
95
|
-
end
|
96
|
-
|
97
|
-
# @param member [ChatHistoryInputRequest]
|
98
|
-
# @return [PromptDeploymentInputRequest]
|
99
|
-
def self.chat_history(member:)
|
100
|
-
new(member: member, discriminant: "CHAT_HISTORY")
|
61
|
+
begin
|
62
|
+
return Vellum::JsonInputRequest.validate_raw(obj: obj)
|
63
|
+
rescue StandardError
|
64
|
+
# noop
|
65
|
+
end
|
66
|
+
begin
|
67
|
+
return Vellum::ChatHistoryInputRequest.validate_raw(obj: obj)
|
68
|
+
rescue StandardError
|
69
|
+
# noop
|
70
|
+
end
|
71
|
+
raise("Passed value matched no type within the union, validation failed.")
|
101
72
|
end
|
102
73
|
end
|
103
|
-
end
|
74
|
+
end
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "parent_context"
|
3
|
+
require_relative "span_link"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module Vellum
|
8
|
+
class PromptDeploymentParentContext
|
9
|
+
# @return [Vellum::ParentContext]
|
10
|
+
attr_reader :parent
|
11
|
+
# @return [Array<Vellum::SpanLink>]
|
12
|
+
attr_reader :links
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :type
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :span_id
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :deployment_id
|
19
|
+
# @return [String]
|
20
|
+
attr_reader :deployment_name
|
21
|
+
# @return [String]
|
22
|
+
attr_reader :deployment_history_item_id
|
23
|
+
# @return [String]
|
24
|
+
attr_reader :release_tag_id
|
25
|
+
# @return [String]
|
26
|
+
attr_reader :release_tag_name
|
27
|
+
# @return [String]
|
28
|
+
attr_reader :external_id
|
29
|
+
# @return [Hash{String => Object}]
|
30
|
+
attr_reader :metadata
|
31
|
+
# @return [String]
|
32
|
+
attr_reader :prompt_version_id
|
33
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
34
|
+
attr_reader :additional_properties
|
35
|
+
# @return [Object]
|
36
|
+
attr_reader :_field_set
|
37
|
+
protected :_field_set
|
38
|
+
|
39
|
+
OMIT = Object.new
|
40
|
+
|
41
|
+
# @param parent [Vellum::ParentContext]
|
42
|
+
# @param links [Array<Vellum::SpanLink>]
|
43
|
+
# @param type [String]
|
44
|
+
# @param span_id [String]
|
45
|
+
# @param deployment_id [String]
|
46
|
+
# @param deployment_name [String]
|
47
|
+
# @param deployment_history_item_id [String]
|
48
|
+
# @param release_tag_id [String]
|
49
|
+
# @param release_tag_name [String]
|
50
|
+
# @param external_id [String]
|
51
|
+
# @param metadata [Hash{String => Object}]
|
52
|
+
# @param prompt_version_id [String]
|
53
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
54
|
+
# @return [Vellum::PromptDeploymentParentContext]
|
55
|
+
def initialize(parent: OMIT, links: OMIT, type:, span_id:, deployment_id:, deployment_name:, deployment_history_item_id:, release_tag_id:, release_tag_name:, external_id: OMIT, metadata: OMIT, prompt_version_id:, additional_properties: nil)
|
56
|
+
@parent = parent if parent != OMIT
|
57
|
+
@links = links if links != OMIT
|
58
|
+
@type = type
|
59
|
+
@span_id = span_id
|
60
|
+
@deployment_id = deployment_id
|
61
|
+
@deployment_name = deployment_name
|
62
|
+
@deployment_history_item_id = deployment_history_item_id
|
63
|
+
@release_tag_id = release_tag_id
|
64
|
+
@release_tag_name = release_tag_name
|
65
|
+
@external_id = external_id if external_id != OMIT
|
66
|
+
@metadata = metadata if metadata != OMIT
|
67
|
+
@prompt_version_id = prompt_version_id
|
68
|
+
@additional_properties = additional_properties
|
69
|
+
@_field_set = { "parent": parent, "links": links, "type": type, "span_id": span_id, "deployment_id": deployment_id, "deployment_name": deployment_name, "deployment_history_item_id": deployment_history_item_id, "release_tag_id": release_tag_id, "release_tag_name": release_tag_name, "external_id": external_id, "metadata": metadata, "prompt_version_id": prompt_version_id }.reject do | _k, v |
|
70
|
+
v == OMIT
|
71
|
+
end
|
72
|
+
end
|
73
|
+
# Deserialize a JSON object to an instance of PromptDeploymentParentContext
|
74
|
+
#
|
75
|
+
# @param json_object [String]
|
76
|
+
# @return [Vellum::PromptDeploymentParentContext]
|
77
|
+
def self.from_json(json_object:)
|
78
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
79
|
+
parsed_json = JSON.parse(json_object)
|
80
|
+
unless parsed_json["parent"].nil?
|
81
|
+
parent = parsed_json["parent"].to_json
|
82
|
+
parent = Vellum::ParentContext.from_json(json_object: parent)
|
83
|
+
else
|
84
|
+
parent = nil
|
85
|
+
end
|
86
|
+
links = parsed_json["links"]&.map do | item |
|
87
|
+
item = item.to_json
|
88
|
+
Vellum::SpanLink.from_json(json_object: item)
|
89
|
+
end
|
90
|
+
type = parsed_json["type"]
|
91
|
+
span_id = parsed_json["span_id"]
|
92
|
+
deployment_id = parsed_json["deployment_id"]
|
93
|
+
deployment_name = parsed_json["deployment_name"]
|
94
|
+
deployment_history_item_id = parsed_json["deployment_history_item_id"]
|
95
|
+
release_tag_id = parsed_json["release_tag_id"]
|
96
|
+
release_tag_name = parsed_json["release_tag_name"]
|
97
|
+
external_id = parsed_json["external_id"]
|
98
|
+
metadata = parsed_json["metadata"]
|
99
|
+
prompt_version_id = parsed_json["prompt_version_id"]
|
100
|
+
new(
|
101
|
+
parent: parent,
|
102
|
+
links: links,
|
103
|
+
type: type,
|
104
|
+
span_id: span_id,
|
105
|
+
deployment_id: deployment_id,
|
106
|
+
deployment_name: deployment_name,
|
107
|
+
deployment_history_item_id: deployment_history_item_id,
|
108
|
+
release_tag_id: release_tag_id,
|
109
|
+
release_tag_name: release_tag_name,
|
110
|
+
external_id: external_id,
|
111
|
+
metadata: metadata,
|
112
|
+
prompt_version_id: prompt_version_id,
|
113
|
+
additional_properties: struct
|
114
|
+
)
|
115
|
+
end
|
116
|
+
# Serialize an instance of PromptDeploymentParentContext to a JSON object
|
117
|
+
#
|
118
|
+
# @return [String]
|
119
|
+
def to_json
|
120
|
+
@_field_set&.to_json
|
121
|
+
end
|
122
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
123
|
+
# hash and check each fields type against the current object's property
|
124
|
+
# definitions.
|
125
|
+
#
|
126
|
+
# @param obj [Object]
|
127
|
+
# @return [Void]
|
128
|
+
def self.validate_raw(obj:)
|
129
|
+
obj.parent.nil? || Vellum::ParentContext.validate_raw(obj: obj.parent)
|
130
|
+
obj.links&.is_a?(Array) != false || raise("Passed value for field obj.links is not the expected type, validation failed.")
|
131
|
+
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
132
|
+
obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
|
133
|
+
obj.deployment_id.is_a?(String) != false || raise("Passed value for field obj.deployment_id is not the expected type, validation failed.")
|
134
|
+
obj.deployment_name.is_a?(String) != false || raise("Passed value for field obj.deployment_name is not the expected type, validation failed.")
|
135
|
+
obj.deployment_history_item_id.is_a?(String) != false || raise("Passed value for field obj.deployment_history_item_id is not the expected type, validation failed.")
|
136
|
+
obj.release_tag_id.is_a?(String) != false || raise("Passed value for field obj.release_tag_id is not the expected type, validation failed.")
|
137
|
+
obj.release_tag_name.is_a?(String) != false || raise("Passed value for field obj.release_tag_name is not the expected type, validation failed.")
|
138
|
+
obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
139
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
140
|
+
obj.prompt_version_id.is_a?(String) != false || raise("Passed value for field obj.prompt_version_id is not the expected type, validation failed.")
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "date"
|
3
|
+
require_relative "release_environment"
|
4
|
+
require_relative "release_created_by"
|
5
|
+
require_relative "prompt_deployment_release_prompt_version"
|
6
|
+
require_relative "prompt_deployment_release_prompt_deployment"
|
7
|
+
require_relative "release_release_tag"
|
8
|
+
require_relative "slim_release_review"
|
9
|
+
require "ostruct"
|
10
|
+
require "json"
|
11
|
+
|
12
|
+
module Vellum
|
13
|
+
class PromptDeploymentRelease
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :id
|
16
|
+
# @return [DateTime]
|
17
|
+
attr_reader :created
|
18
|
+
# @return [Vellum::ReleaseEnvironment]
|
19
|
+
attr_reader :environment
|
20
|
+
# @return [Vellum::ReleaseCreatedBy]
|
21
|
+
attr_reader :created_by
|
22
|
+
# @return [Vellum::PromptDeploymentReleasePromptVersion]
|
23
|
+
attr_reader :prompt_version
|
24
|
+
# @return [Vellum::PromptDeploymentReleasePromptDeployment]
|
25
|
+
attr_reader :deployment
|
26
|
+
# @return [String]
|
27
|
+
attr_reader :description
|
28
|
+
# @return [Array<Vellum::ReleaseReleaseTag>]
|
29
|
+
attr_reader :release_tags
|
30
|
+
# @return [Array<Vellum::SlimReleaseReview>]
|
31
|
+
attr_reader :reviews
|
32
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
33
|
+
attr_reader :additional_properties
|
34
|
+
# @return [Object]
|
35
|
+
attr_reader :_field_set
|
36
|
+
protected :_field_set
|
37
|
+
|
38
|
+
OMIT = Object.new
|
39
|
+
|
40
|
+
# @param id [String]
|
41
|
+
# @param created [DateTime]
|
42
|
+
# @param environment [Vellum::ReleaseEnvironment]
|
43
|
+
# @param created_by [Vellum::ReleaseCreatedBy]
|
44
|
+
# @param prompt_version [Vellum::PromptDeploymentReleasePromptVersion]
|
45
|
+
# @param deployment [Vellum::PromptDeploymentReleasePromptDeployment]
|
46
|
+
# @param description [String]
|
47
|
+
# @param release_tags [Array<Vellum::ReleaseReleaseTag>]
|
48
|
+
# @param reviews [Array<Vellum::SlimReleaseReview>]
|
49
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
50
|
+
# @return [Vellum::PromptDeploymentRelease]
|
51
|
+
def initialize(id:, created:, environment:, created_by: OMIT, prompt_version:, deployment:, description: OMIT, release_tags:, reviews:, additional_properties: nil)
|
52
|
+
@id = id
|
53
|
+
@created = created
|
54
|
+
@environment = environment
|
55
|
+
@created_by = created_by if created_by != OMIT
|
56
|
+
@prompt_version = prompt_version
|
57
|
+
@deployment = deployment
|
58
|
+
@description = description if description != OMIT
|
59
|
+
@release_tags = release_tags
|
60
|
+
@reviews = reviews
|
61
|
+
@additional_properties = additional_properties
|
62
|
+
@_field_set = { "id": id, "created": created, "environment": environment, "created_by": created_by, "prompt_version": prompt_version, "deployment": deployment, "description": description, "release_tags": release_tags, "reviews": reviews }.reject do | _k, v |
|
63
|
+
v == OMIT
|
64
|
+
end
|
65
|
+
end
|
66
|
+
# Deserialize a JSON object to an instance of PromptDeploymentRelease
|
67
|
+
#
|
68
|
+
# @param json_object [String]
|
69
|
+
# @return [Vellum::PromptDeploymentRelease]
|
70
|
+
def self.from_json(json_object:)
|
71
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
72
|
+
parsed_json = JSON.parse(json_object)
|
73
|
+
id = parsed_json["id"]
|
74
|
+
created = unless parsed_json["created"].nil?
|
75
|
+
DateTime.parse(parsed_json["created"])
|
76
|
+
else
|
77
|
+
nil
|
78
|
+
end
|
79
|
+
unless parsed_json["environment"].nil?
|
80
|
+
environment = parsed_json["environment"].to_json
|
81
|
+
environment = Vellum::ReleaseEnvironment.from_json(json_object: environment)
|
82
|
+
else
|
83
|
+
environment = nil
|
84
|
+
end
|
85
|
+
unless parsed_json["created_by"].nil?
|
86
|
+
created_by = parsed_json["created_by"].to_json
|
87
|
+
created_by = Vellum::ReleaseCreatedBy.from_json(json_object: created_by)
|
88
|
+
else
|
89
|
+
created_by = nil
|
90
|
+
end
|
91
|
+
unless parsed_json["prompt_version"].nil?
|
92
|
+
prompt_version = parsed_json["prompt_version"].to_json
|
93
|
+
prompt_version = Vellum::PromptDeploymentReleasePromptVersion.from_json(json_object: prompt_version)
|
94
|
+
else
|
95
|
+
prompt_version = nil
|
96
|
+
end
|
97
|
+
unless parsed_json["deployment"].nil?
|
98
|
+
deployment = parsed_json["deployment"].to_json
|
99
|
+
deployment = Vellum::PromptDeploymentReleasePromptDeployment.from_json(json_object: deployment)
|
100
|
+
else
|
101
|
+
deployment = nil
|
102
|
+
end
|
103
|
+
description = parsed_json["description"]
|
104
|
+
release_tags = parsed_json["release_tags"]&.map do | item |
|
105
|
+
item = item.to_json
|
106
|
+
Vellum::ReleaseReleaseTag.from_json(json_object: item)
|
107
|
+
end
|
108
|
+
reviews = parsed_json["reviews"]&.map do | item |
|
109
|
+
item = item.to_json
|
110
|
+
Vellum::SlimReleaseReview.from_json(json_object: item)
|
111
|
+
end
|
112
|
+
new(
|
113
|
+
id: id,
|
114
|
+
created: created,
|
115
|
+
environment: environment,
|
116
|
+
created_by: created_by,
|
117
|
+
prompt_version: prompt_version,
|
118
|
+
deployment: deployment,
|
119
|
+
description: description,
|
120
|
+
release_tags: release_tags,
|
121
|
+
reviews: reviews,
|
122
|
+
additional_properties: struct
|
123
|
+
)
|
124
|
+
end
|
125
|
+
# Serialize an instance of PromptDeploymentRelease to a JSON object
|
126
|
+
#
|
127
|
+
# @return [String]
|
128
|
+
def to_json
|
129
|
+
@_field_set&.to_json
|
130
|
+
end
|
131
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
132
|
+
# hash and check each fields type against the current object's property
|
133
|
+
# definitions.
|
134
|
+
#
|
135
|
+
# @param obj [Object]
|
136
|
+
# @return [Void]
|
137
|
+
def self.validate_raw(obj:)
|
138
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
139
|
+
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
140
|
+
Vellum::ReleaseEnvironment.validate_raw(obj: obj.environment)
|
141
|
+
obj.created_by.nil? || Vellum::ReleaseCreatedBy.validate_raw(obj: obj.created_by)
|
142
|
+
Vellum::PromptDeploymentReleasePromptVersion.validate_raw(obj: obj.prompt_version)
|
143
|
+
Vellum::PromptDeploymentReleasePromptDeployment.validate_raw(obj: obj.deployment)
|
144
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
145
|
+
obj.release_tags.is_a?(Array) != false || raise("Passed value for field obj.release_tags is not the expected type, validation failed.")
|
146
|
+
obj.reviews.is_a?(Array) != false || raise("Passed value for field obj.reviews is not the expected type, validation failed.")
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "ostruct"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Vellum
|
6
|
+
class PromptDeploymentReleasePromptDeployment
|
7
|
+
# @return [String]
|
8
|
+
attr_reader :name
|
9
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
10
|
+
attr_reader :additional_properties
|
11
|
+
# @return [Object]
|
12
|
+
attr_reader :_field_set
|
13
|
+
protected :_field_set
|
14
|
+
|
15
|
+
OMIT = Object.new
|
16
|
+
|
17
|
+
# @param name [String]
|
18
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
# @return [Vellum::PromptDeploymentReleasePromptDeployment]
|
20
|
+
def initialize(name:, additional_properties: nil)
|
21
|
+
@name = name
|
22
|
+
@additional_properties = additional_properties
|
23
|
+
@_field_set = { "name": name }
|
24
|
+
end
|
25
|
+
# Deserialize a JSON object to an instance of
|
26
|
+
# PromptDeploymentReleasePromptDeployment
|
27
|
+
#
|
28
|
+
# @param json_object [String]
|
29
|
+
# @return [Vellum::PromptDeploymentReleasePromptDeployment]
|
30
|
+
def self.from_json(json_object:)
|
31
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
32
|
+
parsed_json = JSON.parse(json_object)
|
33
|
+
name = parsed_json["name"]
|
34
|
+
new(name: name, additional_properties: struct)
|
35
|
+
end
|
36
|
+
# Serialize an instance of PromptDeploymentReleasePromptDeployment to a JSON
|
37
|
+
# object
|
38
|
+
#
|
39
|
+
# @return [String]
|
40
|
+
def to_json
|
41
|
+
@_field_set&.to_json
|
42
|
+
end
|
43
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
44
|
+
# hash and check each fields type against the current object's property
|
45
|
+
# definitions.
|
46
|
+
#
|
47
|
+
# @param obj [Object]
|
48
|
+
# @return [Void]
|
49
|
+
def self.validate_raw(obj:)
|
50
|
+
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "components_schemas_prompt_version_build_config_sandbox"
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
require_relative "prompt_version_build_config_sandbox"
|
6
|
+
|
7
|
+
module Vellum
|
8
|
+
class PromptDeploymentReleasePromptVersion
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :id
|
11
|
+
# @return [Vellum::COMPONENTS_SCHEMAS_PROMPT_VERSION_BUILD_CONFIG_SANDBOX] Configuration used to build this prompt version.
|
12
|
+
attr_reader :build_config
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param id [String]
|
22
|
+
# @param build_config [Vellum::COMPONENTS_SCHEMAS_PROMPT_VERSION_BUILD_CONFIG_SANDBOX] Configuration used to build this prompt version.
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [Vellum::PromptDeploymentReleasePromptVersion]
|
25
|
+
def initialize(id:, build_config:, additional_properties: nil)
|
26
|
+
@id = id
|
27
|
+
@build_config = build_config
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "id": id, "build_config": build_config }
|
30
|
+
end
|
31
|
+
# Deserialize a JSON object to an instance of PromptDeploymentReleasePromptVersion
|
32
|
+
#
|
33
|
+
# @param json_object [String]
|
34
|
+
# @return [Vellum::PromptDeploymentReleasePromptVersion]
|
35
|
+
def self.from_json(json_object:)
|
36
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
37
|
+
parsed_json = JSON.parse(json_object)
|
38
|
+
id = parsed_json["id"]
|
39
|
+
unless parsed_json["build_config"].nil?
|
40
|
+
build_config = parsed_json["build_config"].to_json
|
41
|
+
build_config = Vellum::PromptVersionBuildConfigSandbox.from_json(json_object: build_config)
|
42
|
+
else
|
43
|
+
build_config = nil
|
44
|
+
end
|
45
|
+
new(
|
46
|
+
id: id,
|
47
|
+
build_config: build_config,
|
48
|
+
additional_properties: struct
|
49
|
+
)
|
50
|
+
end
|
51
|
+
# Serialize an instance of PromptDeploymentReleasePromptVersion to a JSON object
|
52
|
+
#
|
53
|
+
# @return [String]
|
54
|
+
def to_json
|
55
|
+
@_field_set&.to_json
|
56
|
+
end
|
57
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
58
|
+
# hash and check each fields type against the current object's property
|
59
|
+
# definitions.
|
60
|
+
#
|
61
|
+
# @param obj [Object]
|
62
|
+
# @return [Void]
|
63
|
+
def self.validate_raw(obj:)
|
64
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
65
|
+
Vellum::PromptVersionBuildConfigSandbox.validate_raw(obj: obj.build_config)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|