vellum_ai 0.3.15 → 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 +392 -110
- 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 +50 -30
- 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 +50 -30
- 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 +129 -143
- 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 -144
- 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 +53 -36
- 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 +50 -30
- 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 +50 -30
- 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 +129 -143
- 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 +434 -96
- 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_input_compiled_function_call.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
@@ -1,110 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "chat_message_role"
|
4
|
-
require_relative "vellum_variable_type"
|
5
|
-
require_relative "prompt_template_block_request"
|
6
|
-
require "json"
|
7
|
-
|
8
|
-
module Vellum
|
9
|
-
class PromptTemplateBlockPropertiesRequest
|
10
|
-
attr_reader :chat_role, :chat_message_unterminated, :chat_source, :template, :template_type, :function_name,
|
11
|
-
:function_description, :function_parameters, :function_forced, :blocks, :additional_properties
|
12
|
-
|
13
|
-
# @param chat_role [CHAT_MESSAGE_ROLE]
|
14
|
-
# @param chat_message_unterminated [Boolean]
|
15
|
-
# @param chat_source [String]
|
16
|
-
# @param template [String]
|
17
|
-
# @param template_type [VELLUM_VARIABLE_TYPE]
|
18
|
-
# @param function_name [String]
|
19
|
-
# @param function_description [String]
|
20
|
-
# @param function_parameters [Hash{String => String}]
|
21
|
-
# @param function_forced [Boolean]
|
22
|
-
# @param blocks [Array<PromptTemplateBlockRequest>]
|
23
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
-
# @return [PromptTemplateBlockPropertiesRequest]
|
25
|
-
def initialize(chat_role: nil, chat_message_unterminated: nil, chat_source: nil, template: nil, template_type: nil,
|
26
|
-
function_name: nil, function_description: nil, function_parameters: nil, function_forced: nil, blocks: nil, additional_properties: nil)
|
27
|
-
# @type [CHAT_MESSAGE_ROLE]
|
28
|
-
@chat_role = chat_role
|
29
|
-
# @type [Boolean]
|
30
|
-
@chat_message_unterminated = chat_message_unterminated
|
31
|
-
# @type [String]
|
32
|
-
@chat_source = chat_source
|
33
|
-
# @type [String]
|
34
|
-
@template = template
|
35
|
-
# @type [VELLUM_VARIABLE_TYPE]
|
36
|
-
@template_type = template_type
|
37
|
-
# @type [String]
|
38
|
-
@function_name = function_name
|
39
|
-
# @type [String]
|
40
|
-
@function_description = function_description
|
41
|
-
# @type [Hash{String => String}]
|
42
|
-
@function_parameters = function_parameters
|
43
|
-
# @type [Boolean]
|
44
|
-
@function_forced = function_forced
|
45
|
-
# @type [Array<PromptTemplateBlockRequest>]
|
46
|
-
@blocks = blocks
|
47
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
48
|
-
@additional_properties = additional_properties
|
49
|
-
end
|
50
|
-
|
51
|
-
# Deserialize a JSON object to an instance of PromptTemplateBlockPropertiesRequest
|
52
|
-
#
|
53
|
-
# @param json_object [JSON]
|
54
|
-
# @return [PromptTemplateBlockPropertiesRequest]
|
55
|
-
def self.from_json(json_object:)
|
56
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
57
|
-
parsed_json = JSON.parse(json_object)
|
58
|
-
chat_role = CHAT_MESSAGE_ROLE.key(parsed_json["chat_role"]) || parsed_json["chat_role"]
|
59
|
-
chat_message_unterminated = struct.chat_message_unterminated
|
60
|
-
chat_source = struct.chat_source
|
61
|
-
template = struct.template
|
62
|
-
template_type = VELLUM_VARIABLE_TYPE.key(parsed_json["template_type"]) || parsed_json["template_type"]
|
63
|
-
function_name = struct.function_name
|
64
|
-
function_description = struct.function_description
|
65
|
-
function_parameters = struct.function_parameters
|
66
|
-
function_forced = struct.function_forced
|
67
|
-
blocks = parsed_json["blocks"].map do |v|
|
68
|
-
v = v.to_json
|
69
|
-
PromptTemplateBlockRequest.from_json(json_object: v)
|
70
|
-
end
|
71
|
-
new(chat_role: chat_role, chat_message_unterminated: chat_message_unterminated, chat_source: chat_source,
|
72
|
-
template: template, template_type: template_type, function_name: function_name, function_description: function_description, function_parameters: function_parameters, function_forced: function_forced, blocks: blocks, additional_properties: struct)
|
73
|
-
end
|
74
|
-
|
75
|
-
# Serialize an instance of PromptTemplateBlockPropertiesRequest to a JSON object
|
76
|
-
#
|
77
|
-
# @return [JSON]
|
78
|
-
def to_json(*_args)
|
79
|
-
{
|
80
|
-
"chat_role": CHAT_MESSAGE_ROLE[@chat_role] || @chat_role,
|
81
|
-
"chat_message_unterminated": @chat_message_unterminated,
|
82
|
-
"chat_source": @chat_source,
|
83
|
-
"template": @template,
|
84
|
-
"template_type": VELLUM_VARIABLE_TYPE[@template_type] || @template_type,
|
85
|
-
"function_name": @function_name,
|
86
|
-
"function_description": @function_description,
|
87
|
-
"function_parameters": @function_parameters,
|
88
|
-
"function_forced": @function_forced,
|
89
|
-
"blocks": @blocks
|
90
|
-
}.to_json
|
91
|
-
end
|
92
|
-
|
93
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
94
|
-
#
|
95
|
-
# @param obj [Object]
|
96
|
-
# @return [Void]
|
97
|
-
def self.validate_raw(obj:)
|
98
|
-
obj.chat_role&.is_a?(CHAT_MESSAGE_ROLE) != false || raise("Passed value for field obj.chat_role is not the expected type, validation failed.")
|
99
|
-
obj.chat_message_unterminated&.is_a?(Boolean) != false || raise("Passed value for field obj.chat_message_unterminated is not the expected type, validation failed.")
|
100
|
-
obj.chat_source&.is_a?(String) != false || raise("Passed value for field obj.chat_source is not the expected type, validation failed.")
|
101
|
-
obj.template&.is_a?(String) != false || raise("Passed value for field obj.template is not the expected type, validation failed.")
|
102
|
-
obj.template_type&.is_a?(VELLUM_VARIABLE_TYPE) != false || raise("Passed value for field obj.template_type is not the expected type, validation failed.")
|
103
|
-
obj.function_name&.is_a?(String) != false || raise("Passed value for field obj.function_name is not the expected type, validation failed.")
|
104
|
-
obj.function_description&.is_a?(String) != false || raise("Passed value for field obj.function_description is not the expected type, validation failed.")
|
105
|
-
obj.function_parameters&.is_a?(Hash) != false || raise("Passed value for field obj.function_parameters is not the expected type, validation failed.")
|
106
|
-
obj.function_forced&.is_a?(Boolean) != false || raise("Passed value for field obj.function_forced is not the expected type, validation failed.")
|
107
|
-
obj.blocks&.is_a?(Array) != false || raise("Passed value for field obj.blocks is not the expected type, validation failed.")
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "block_type_enum"
|
4
|
-
require_relative "prompt_template_block_properties_request"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module Vellum
|
8
|
-
class PromptTemplateBlockRequest
|
9
|
-
attr_reader :id, :block_type, :properties, :additional_properties
|
10
|
-
|
11
|
-
# @param id [String]
|
12
|
-
# @param block_type [BLOCK_TYPE_ENUM]
|
13
|
-
# @param properties [PromptTemplateBlockPropertiesRequest]
|
14
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
-
# @return [PromptTemplateBlockRequest]
|
16
|
-
def initialize(id:, block_type:, properties:, additional_properties: nil)
|
17
|
-
# @type [String]
|
18
|
-
@id = id
|
19
|
-
# @type [BLOCK_TYPE_ENUM]
|
20
|
-
@block_type = block_type
|
21
|
-
# @type [PromptTemplateBlockPropertiesRequest]
|
22
|
-
@properties = properties
|
23
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
-
@additional_properties = additional_properties
|
25
|
-
end
|
26
|
-
|
27
|
-
# Deserialize a JSON object to an instance of PromptTemplateBlockRequest
|
28
|
-
#
|
29
|
-
# @param json_object [JSON]
|
30
|
-
# @return [PromptTemplateBlockRequest]
|
31
|
-
def self.from_json(json_object:)
|
32
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
33
|
-
parsed_json = JSON.parse(json_object)
|
34
|
-
id = struct.id
|
35
|
-
block_type = BLOCK_TYPE_ENUM.key(parsed_json["block_type"]) || parsed_json["block_type"]
|
36
|
-
if parsed_json["properties"].nil?
|
37
|
-
properties = nil
|
38
|
-
else
|
39
|
-
properties = parsed_json["properties"].to_json
|
40
|
-
properties = PromptTemplateBlockPropertiesRequest.from_json(json_object: properties)
|
41
|
-
end
|
42
|
-
new(id: id, block_type: block_type, properties: properties, additional_properties: struct)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Serialize an instance of PromptTemplateBlockRequest to a JSON object
|
46
|
-
#
|
47
|
-
# @return [JSON]
|
48
|
-
def to_json(*_args)
|
49
|
-
{ "id": @id, "block_type": BLOCK_TYPE_ENUM[@block_type] || @block_type, "properties": @properties }.to_json
|
50
|
-
end
|
51
|
-
|
52
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
53
|
-
#
|
54
|
-
# @param obj [Object]
|
55
|
-
# @return [Void]
|
56
|
-
def self.validate_raw(obj:)
|
57
|
-
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
58
|
-
obj.block_type.is_a?(BLOCK_TYPE_ENUM) != false || raise("Passed value for field obj.block_type is not the expected type, validation failed.")
|
59
|
-
PromptTemplateBlockPropertiesRequest.validate_raw(obj: obj.properties)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Vellum
|
4
|
-
# @type [PROVIDER_ENUM]
|
5
|
-
PROVIDER_ENUM = {
|
6
|
-
anthropic: "ANTHROPIC",
|
7
|
-
aws_bedrock: "AWS_BEDROCK",
|
8
|
-
azure_openai: "AZURE_OPENAI",
|
9
|
-
cohere: "COHERE",
|
10
|
-
google: "GOOGLE",
|
11
|
-
hosted: "HOSTED",
|
12
|
-
mosaicml: "MOSAICML",
|
13
|
-
openai: "OPENAI",
|
14
|
-
fireworks_ai: "FIREWORKS_AI",
|
15
|
-
huggingface: "HUGGINGFACE",
|
16
|
-
mystic: "MYSTIC",
|
17
|
-
pyq: "PYQ",
|
18
|
-
replicate: "REPLICATE"
|
19
|
-
}.freeze
|
20
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "json"
|
4
|
-
|
5
|
-
module Vellum
|
6
|
-
class RegisterPromptErrorResponse
|
7
|
-
attr_reader :detail, :additional_properties
|
8
|
-
|
9
|
-
# @param detail [String] Details about why the request failed.
|
10
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
11
|
-
# @return [RegisterPromptErrorResponse]
|
12
|
-
def initialize(detail:, additional_properties: nil)
|
13
|
-
# @type [String] Details about why the request failed.
|
14
|
-
@detail = detail
|
15
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
16
|
-
@additional_properties = additional_properties
|
17
|
-
end
|
18
|
-
|
19
|
-
# Deserialize a JSON object to an instance of RegisterPromptErrorResponse
|
20
|
-
#
|
21
|
-
# @param json_object [JSON]
|
22
|
-
# @return [RegisterPromptErrorResponse]
|
23
|
-
def self.from_json(json_object:)
|
24
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
25
|
-
JSON.parse(json_object)
|
26
|
-
detail = struct.detail
|
27
|
-
new(detail: detail, additional_properties: struct)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Serialize an instance of RegisterPromptErrorResponse to a JSON object
|
31
|
-
#
|
32
|
-
# @return [JSON]
|
33
|
-
def to_json(*_args)
|
34
|
-
{ "detail": @detail }.to_json
|
35
|
-
end
|
36
|
-
|
37
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
38
|
-
#
|
39
|
-
# @param obj [Object]
|
40
|
-
# @return [Void]
|
41
|
-
def self.validate_raw(obj:)
|
42
|
-
obj.detail.is_a?(String) != false || raise("Passed value for field obj.detail is not the expected type, validation failed.")
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,98 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "json"
|
4
|
-
|
5
|
-
module Vellum
|
6
|
-
class RegisterPromptModelParametersRequest
|
7
|
-
attr_reader :temperature, :max_tokens, :stop, :top_p, :top_k, :frequency_penalty, :presence_penalty, :logit_bias,
|
8
|
-
:custom_parameters, :additional_properties
|
9
|
-
|
10
|
-
# @param temperature [Float]
|
11
|
-
# @param max_tokens [Integer]
|
12
|
-
# @param stop [Array<String>]
|
13
|
-
# @param top_p [Float]
|
14
|
-
# @param top_k [Integer]
|
15
|
-
# @param frequency_penalty [Float]
|
16
|
-
# @param presence_penalty [Float]
|
17
|
-
# @param logit_bias [Hash{String => String}]
|
18
|
-
# @param custom_parameters [Hash{String => String}]
|
19
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
-
# @return [RegisterPromptModelParametersRequest]
|
21
|
-
def initialize(temperature:, max_tokens:, top_p:, frequency_penalty:, presence_penalty:, stop: nil, top_k: nil,
|
22
|
-
logit_bias: nil, custom_parameters: nil, additional_properties: nil)
|
23
|
-
# @type [Float]
|
24
|
-
@temperature = temperature
|
25
|
-
# @type [Integer]
|
26
|
-
@max_tokens = max_tokens
|
27
|
-
# @type [Array<String>]
|
28
|
-
@stop = stop
|
29
|
-
# @type [Float]
|
30
|
-
@top_p = top_p
|
31
|
-
# @type [Integer]
|
32
|
-
@top_k = top_k
|
33
|
-
# @type [Float]
|
34
|
-
@frequency_penalty = frequency_penalty
|
35
|
-
# @type [Float]
|
36
|
-
@presence_penalty = presence_penalty
|
37
|
-
# @type [Hash{String => String}]
|
38
|
-
@logit_bias = logit_bias
|
39
|
-
# @type [Hash{String => String}]
|
40
|
-
@custom_parameters = custom_parameters
|
41
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
42
|
-
@additional_properties = additional_properties
|
43
|
-
end
|
44
|
-
|
45
|
-
# Deserialize a JSON object to an instance of RegisterPromptModelParametersRequest
|
46
|
-
#
|
47
|
-
# @param json_object [JSON]
|
48
|
-
# @return [RegisterPromptModelParametersRequest]
|
49
|
-
def self.from_json(json_object:)
|
50
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
|
-
JSON.parse(json_object)
|
52
|
-
temperature = struct.temperature
|
53
|
-
max_tokens = struct.max_tokens
|
54
|
-
stop = struct.stop
|
55
|
-
top_p = struct.top_p
|
56
|
-
top_k = struct.top_k
|
57
|
-
frequency_penalty = struct.frequency_penalty
|
58
|
-
presence_penalty = struct.presence_penalty
|
59
|
-
logit_bias = struct.logit_bias
|
60
|
-
custom_parameters = struct.custom_parameters
|
61
|
-
new(temperature: temperature, max_tokens: max_tokens, stop: stop, top_p: top_p, top_k: top_k,
|
62
|
-
frequency_penalty: frequency_penalty, presence_penalty: presence_penalty, logit_bias: logit_bias, custom_parameters: custom_parameters, additional_properties: struct)
|
63
|
-
end
|
64
|
-
|
65
|
-
# Serialize an instance of RegisterPromptModelParametersRequest to a JSON object
|
66
|
-
#
|
67
|
-
# @return [JSON]
|
68
|
-
def to_json(*_args)
|
69
|
-
{
|
70
|
-
"temperature": @temperature,
|
71
|
-
"max_tokens": @max_tokens,
|
72
|
-
"stop": @stop,
|
73
|
-
"top_p": @top_p,
|
74
|
-
"top_k": @top_k,
|
75
|
-
"frequency_penalty": @frequency_penalty,
|
76
|
-
"presence_penalty": @presence_penalty,
|
77
|
-
"logit_bias": @logit_bias,
|
78
|
-
"custom_parameters": @custom_parameters
|
79
|
-
}.to_json
|
80
|
-
end
|
81
|
-
|
82
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
83
|
-
#
|
84
|
-
# @param obj [Object]
|
85
|
-
# @return [Void]
|
86
|
-
def self.validate_raw(obj:)
|
87
|
-
obj.temperature.is_a?(Float) != false || raise("Passed value for field obj.temperature is not the expected type, validation failed.")
|
88
|
-
obj.max_tokens.is_a?(Integer) != false || raise("Passed value for field obj.max_tokens is not the expected type, validation failed.")
|
89
|
-
obj.stop&.is_a?(Array) != false || raise("Passed value for field obj.stop is not the expected type, validation failed.")
|
90
|
-
obj.top_p.is_a?(Float) != false || raise("Passed value for field obj.top_p is not the expected type, validation failed.")
|
91
|
-
obj.top_k&.is_a?(Integer) != false || raise("Passed value for field obj.top_k is not the expected type, validation failed.")
|
92
|
-
obj.frequency_penalty.is_a?(Float) != false || raise("Passed value for field obj.frequency_penalty is not the expected type, validation failed.")
|
93
|
-
obj.presence_penalty.is_a?(Float) != false || raise("Passed value for field obj.presence_penalty is not the expected type, validation failed.")
|
94
|
-
obj.logit_bias&.is_a?(Hash) != false || raise("Passed value for field obj.logit_bias is not the expected type, validation failed.")
|
95
|
-
obj.custom_parameters&.is_a?(Hash) != false || raise("Passed value for field obj.custom_parameters is not the expected type, validation failed.")
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "json"
|
4
|
-
|
5
|
-
module Vellum
|
6
|
-
class RegisterPromptPrompt
|
7
|
-
attr_reader :id, :label, :additional_properties
|
8
|
-
|
9
|
-
# @param id [String] The ID of the generated prompt.
|
10
|
-
# @param label [String] A human-friendly label for the generated prompt.
|
11
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
-
# @return [RegisterPromptPrompt]
|
13
|
-
def initialize(id:, label:, additional_properties: nil)
|
14
|
-
# @type [String] The ID of the generated prompt.
|
15
|
-
@id = id
|
16
|
-
# @type [String] A human-friendly label for the generated prompt.
|
17
|
-
@label = label
|
18
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
-
@additional_properties = additional_properties
|
20
|
-
end
|
21
|
-
|
22
|
-
# Deserialize a JSON object to an instance of RegisterPromptPrompt
|
23
|
-
#
|
24
|
-
# @param json_object [JSON]
|
25
|
-
# @return [RegisterPromptPrompt]
|
26
|
-
def self.from_json(json_object:)
|
27
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
28
|
-
JSON.parse(json_object)
|
29
|
-
id = struct.id
|
30
|
-
label = struct.label
|
31
|
-
new(id: id, label: label, additional_properties: struct)
|
32
|
-
end
|
33
|
-
|
34
|
-
# Serialize an instance of RegisterPromptPrompt to a JSON object
|
35
|
-
#
|
36
|
-
# @return [JSON]
|
37
|
-
def to_json(*_args)
|
38
|
-
{ "id": @id, "label": @label }.to_json
|
39
|
-
end
|
40
|
-
|
41
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
42
|
-
#
|
43
|
-
# @param obj [Object]
|
44
|
-
# @return [Void]
|
45
|
-
def self.validate_raw(obj:)
|
46
|
-
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
47
|
-
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "prompt_template_block_data_request"
|
4
|
-
require_relative "registered_prompt_input_variable_request"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module Vellum
|
8
|
-
class RegisterPromptPromptInfoRequest
|
9
|
-
attr_reader :prompt_block_data, :input_variables, :additional_properties
|
10
|
-
|
11
|
-
# @param prompt_block_data [PromptTemplateBlockDataRequest]
|
12
|
-
# @param input_variables [Array<RegisteredPromptInputVariableRequest>] The input variables specified in the prompt template.
|
13
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
-
# @return [RegisterPromptPromptInfoRequest]
|
15
|
-
def initialize(prompt_block_data:, input_variables:, additional_properties: nil)
|
16
|
-
# @type [PromptTemplateBlockDataRequest]
|
17
|
-
@prompt_block_data = prompt_block_data
|
18
|
-
# @type [Array<RegisteredPromptInputVariableRequest>] The input variables specified in the prompt template.
|
19
|
-
@input_variables = input_variables
|
20
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
21
|
-
@additional_properties = additional_properties
|
22
|
-
end
|
23
|
-
|
24
|
-
# Deserialize a JSON object to an instance of RegisterPromptPromptInfoRequest
|
25
|
-
#
|
26
|
-
# @param json_object [JSON]
|
27
|
-
# @return [RegisterPromptPromptInfoRequest]
|
28
|
-
def self.from_json(json_object:)
|
29
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
30
|
-
parsed_json = JSON.parse(json_object)
|
31
|
-
if parsed_json["prompt_block_data"].nil?
|
32
|
-
prompt_block_data = nil
|
33
|
-
else
|
34
|
-
prompt_block_data = parsed_json["prompt_block_data"].to_json
|
35
|
-
prompt_block_data = PromptTemplateBlockDataRequest.from_json(json_object: prompt_block_data)
|
36
|
-
end
|
37
|
-
input_variables = parsed_json["input_variables"].map do |v|
|
38
|
-
v = v.to_json
|
39
|
-
RegisteredPromptInputVariableRequest.from_json(json_object: v)
|
40
|
-
end
|
41
|
-
new(prompt_block_data: prompt_block_data, input_variables: input_variables, additional_properties: struct)
|
42
|
-
end
|
43
|
-
|
44
|
-
# Serialize an instance of RegisterPromptPromptInfoRequest to a JSON object
|
45
|
-
#
|
46
|
-
# @return [JSON]
|
47
|
-
def to_json(*_args)
|
48
|
-
{ "prompt_block_data": @prompt_block_data, "input_variables": @input_variables }.to_json
|
49
|
-
end
|
50
|
-
|
51
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
52
|
-
#
|
53
|
-
# @param obj [Object]
|
54
|
-
# @return [Void]
|
55
|
-
def self.validate_raw(obj:)
|
56
|
-
PromptTemplateBlockDataRequest.validate_raw(obj: obj.prompt_block_data)
|
57
|
-
obj.input_variables.is_a?(Array) != false || raise("Passed value for field obj.input_variables is not the expected type, validation failed.")
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,110 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "register_prompt_prompt"
|
4
|
-
require_relative "registered_prompt_sandbox_snapshot"
|
5
|
-
require_relative "registered_prompt_sandbox"
|
6
|
-
require_relative "registered_prompt_model_version"
|
7
|
-
require_relative "registered_prompt_deployment"
|
8
|
-
require "json"
|
9
|
-
|
10
|
-
module Vellum
|
11
|
-
class RegisterPromptResponse
|
12
|
-
attr_reader :prompt, :sandbox_snapshot, :sandbox, :model_version, :prompt_version_id, :deployment,
|
13
|
-
:additional_properties
|
14
|
-
|
15
|
-
# @param prompt [RegisterPromptPrompt] Information about the generated prompt
|
16
|
-
# @param sandbox_snapshot [RegisteredPromptSandboxSnapshot] Information about the generated sandbox snapshot
|
17
|
-
# @param sandbox [RegisteredPromptSandbox] Information about the generated sandbox
|
18
|
-
# @param model_version [RegisteredPromptModelVersion] Information about the generated model version
|
19
|
-
# @param prompt_version_id [String] The ID of the generated prompt version
|
20
|
-
# @param deployment [RegisteredPromptDeployment] Information about the generated deployment
|
21
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
22
|
-
# @return [RegisterPromptResponse]
|
23
|
-
def initialize(prompt:, sandbox_snapshot:, sandbox:, model_version:, prompt_version_id:, deployment:,
|
24
|
-
additional_properties: nil)
|
25
|
-
# @type [RegisterPromptPrompt] Information about the generated prompt
|
26
|
-
@prompt = prompt
|
27
|
-
# @type [RegisteredPromptSandboxSnapshot] Information about the generated sandbox snapshot
|
28
|
-
@sandbox_snapshot = sandbox_snapshot
|
29
|
-
# @type [RegisteredPromptSandbox] Information about the generated sandbox
|
30
|
-
@sandbox = sandbox
|
31
|
-
# @type [RegisteredPromptModelVersion] Information about the generated model version
|
32
|
-
@model_version = model_version
|
33
|
-
# @type [String] The ID of the generated prompt version
|
34
|
-
@prompt_version_id = prompt_version_id
|
35
|
-
# @type [RegisteredPromptDeployment] Information about the generated deployment
|
36
|
-
@deployment = deployment
|
37
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
38
|
-
@additional_properties = additional_properties
|
39
|
-
end
|
40
|
-
|
41
|
-
# Deserialize a JSON object to an instance of RegisterPromptResponse
|
42
|
-
#
|
43
|
-
# @param json_object [JSON]
|
44
|
-
# @return [RegisterPromptResponse]
|
45
|
-
def self.from_json(json_object:)
|
46
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
47
|
-
parsed_json = JSON.parse(json_object)
|
48
|
-
if parsed_json["prompt"].nil?
|
49
|
-
prompt = nil
|
50
|
-
else
|
51
|
-
prompt = parsed_json["prompt"].to_json
|
52
|
-
prompt = RegisterPromptPrompt.from_json(json_object: prompt)
|
53
|
-
end
|
54
|
-
if parsed_json["sandbox_snapshot"].nil?
|
55
|
-
sandbox_snapshot = nil
|
56
|
-
else
|
57
|
-
sandbox_snapshot = parsed_json["sandbox_snapshot"].to_json
|
58
|
-
sandbox_snapshot = RegisteredPromptSandboxSnapshot.from_json(json_object: sandbox_snapshot)
|
59
|
-
end
|
60
|
-
if parsed_json["sandbox"].nil?
|
61
|
-
sandbox = nil
|
62
|
-
else
|
63
|
-
sandbox = parsed_json["sandbox"].to_json
|
64
|
-
sandbox = RegisteredPromptSandbox.from_json(json_object: sandbox)
|
65
|
-
end
|
66
|
-
if parsed_json["model_version"].nil?
|
67
|
-
model_version = nil
|
68
|
-
else
|
69
|
-
model_version = parsed_json["model_version"].to_json
|
70
|
-
model_version = RegisteredPromptModelVersion.from_json(json_object: model_version)
|
71
|
-
end
|
72
|
-
prompt_version_id = struct.prompt_version_id
|
73
|
-
if parsed_json["deployment"].nil?
|
74
|
-
deployment = nil
|
75
|
-
else
|
76
|
-
deployment = parsed_json["deployment"].to_json
|
77
|
-
deployment = RegisteredPromptDeployment.from_json(json_object: deployment)
|
78
|
-
end
|
79
|
-
new(prompt: prompt, sandbox_snapshot: sandbox_snapshot, sandbox: sandbox, model_version: model_version,
|
80
|
-
prompt_version_id: prompt_version_id, deployment: deployment, additional_properties: struct)
|
81
|
-
end
|
82
|
-
|
83
|
-
# Serialize an instance of RegisterPromptResponse to a JSON object
|
84
|
-
#
|
85
|
-
# @return [JSON]
|
86
|
-
def to_json(*_args)
|
87
|
-
{
|
88
|
-
"prompt": @prompt,
|
89
|
-
"sandbox_snapshot": @sandbox_snapshot,
|
90
|
-
"sandbox": @sandbox,
|
91
|
-
"model_version": @model_version,
|
92
|
-
"prompt_version_id": @prompt_version_id,
|
93
|
-
"deployment": @deployment
|
94
|
-
}.to_json
|
95
|
-
end
|
96
|
-
|
97
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
98
|
-
#
|
99
|
-
# @param obj [Object]
|
100
|
-
# @return [Void]
|
101
|
-
def self.validate_raw(obj:)
|
102
|
-
RegisterPromptPrompt.validate_raw(obj: obj.prompt)
|
103
|
-
RegisteredPromptSandboxSnapshot.validate_raw(obj: obj.sandbox_snapshot)
|
104
|
-
RegisteredPromptSandbox.validate_raw(obj: obj.sandbox)
|
105
|
-
RegisteredPromptModelVersion.validate_raw(obj: obj.model_version)
|
106
|
-
obj.prompt_version_id.is_a?(String) != false || raise("Passed value for field obj.prompt_version_id is not the expected type, validation failed.")
|
107
|
-
RegisteredPromptDeployment.validate_raw(obj: obj.deployment)
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "json"
|
4
|
-
|
5
|
-
module Vellum
|
6
|
-
class RegisteredPromptDeployment
|
7
|
-
attr_reader :id, :name, :label, :additional_properties
|
8
|
-
|
9
|
-
# @param id [String] The ID of the generated deployment.
|
10
|
-
# @param name [String] A uniquely-identifying name for generated deployment.
|
11
|
-
# @param label [String] A human-friendly label for the generated deployment.
|
12
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
13
|
-
# @return [RegisteredPromptDeployment]
|
14
|
-
def initialize(id:, name:, label:, additional_properties: nil)
|
15
|
-
# @type [String] The ID of the generated deployment.
|
16
|
-
@id = id
|
17
|
-
# @type [String] A uniquely-identifying name for generated deployment.
|
18
|
-
@name = name
|
19
|
-
# @type [String] A human-friendly label for the generated deployment.
|
20
|
-
@label = label
|
21
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
22
|
-
@additional_properties = additional_properties
|
23
|
-
end
|
24
|
-
|
25
|
-
# Deserialize a JSON object to an instance of RegisteredPromptDeployment
|
26
|
-
#
|
27
|
-
# @param json_object [JSON]
|
28
|
-
# @return [RegisteredPromptDeployment]
|
29
|
-
def self.from_json(json_object:)
|
30
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
31
|
-
JSON.parse(json_object)
|
32
|
-
id = struct.id
|
33
|
-
name = struct.name
|
34
|
-
label = struct.label
|
35
|
-
new(id: id, name: name, label: label, additional_properties: struct)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Serialize an instance of RegisteredPromptDeployment to a JSON object
|
39
|
-
#
|
40
|
-
# @return [JSON]
|
41
|
-
def to_json(*_args)
|
42
|
-
{ "id": @id, "name": @name, "label": @label }.to_json
|
43
|
-
end
|
44
|
-
|
45
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
46
|
-
#
|
47
|
-
# @param obj [Object]
|
48
|
-
# @return [Void]
|
49
|
-
def self.validate_raw(obj:)
|
50
|
-
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
51
|
-
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
52
|
-
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "vellum_variable_type"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module Vellum
|
7
|
-
class RegisteredPromptInputVariableRequest
|
8
|
-
attr_reader :key, :id, :type, :additional_properties
|
9
|
-
|
10
|
-
# @param key [String]
|
11
|
-
# @param id [String]
|
12
|
-
# @param type [VELLUM_VARIABLE_TYPE]
|
13
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
-
# @return [RegisteredPromptInputVariableRequest]
|
15
|
-
def initialize(key:, id: nil, type: nil, additional_properties: nil)
|
16
|
-
# @type [String]
|
17
|
-
@key = key
|
18
|
-
# @type [String]
|
19
|
-
@id = id
|
20
|
-
# @type [VELLUM_VARIABLE_TYPE]
|
21
|
-
@type = type
|
22
|
-
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
-
@additional_properties = additional_properties
|
24
|
-
end
|
25
|
-
|
26
|
-
# Deserialize a JSON object to an instance of RegisteredPromptInputVariableRequest
|
27
|
-
#
|
28
|
-
# @param json_object [JSON]
|
29
|
-
# @return [RegisteredPromptInputVariableRequest]
|
30
|
-
def self.from_json(json_object:)
|
31
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
32
|
-
parsed_json = JSON.parse(json_object)
|
33
|
-
key = struct.key
|
34
|
-
id = struct.id
|
35
|
-
type = VELLUM_VARIABLE_TYPE.key(parsed_json["type"]) || parsed_json["type"]
|
36
|
-
new(key: key, id: id, type: type, additional_properties: struct)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Serialize an instance of RegisteredPromptInputVariableRequest to a JSON object
|
40
|
-
#
|
41
|
-
# @return [JSON]
|
42
|
-
def to_json(*_args)
|
43
|
-
{ "key": @key, "id": @id, "type": VELLUM_VARIABLE_TYPE[@type] || @type }.to_json
|
44
|
-
end
|
45
|
-
|
46
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
47
|
-
#
|
48
|
-
# @param obj [Object]
|
49
|
-
# @return [Void]
|
50
|
-
def self.validate_raw(obj:)
|
51
|
-
obj.key.is_a?(String) != false || raise("Passed value for field obj.key is not the expected type, validation failed.")
|
52
|
-
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
53
|
-
obj.type&.is_a?(VELLUM_VARIABLE_TYPE) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|