vellum-ai 1.1.3__py3-none-any.whl → 1.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vellum/__init__.py +2 -0
- vellum/client/README.md +22 -0
- vellum/client/__init__.py +89 -99
- vellum/client/core/__init__.py +2 -0
- vellum/client/core/api_error.py +13 -5
- vellum/client/core/client_wrapper.py +16 -4
- vellum/client/core/force_multipart.py +16 -0
- vellum/client/core/http_client.py +70 -24
- vellum/client/core/http_response.py +19 -11
- vellum/client/core/pydantic_utilities.py +71 -114
- vellum/client/core/serialization.py +6 -1
- vellum/client/errors/__init__.py +2 -0
- vellum/client/errors/bad_request_error.py +4 -3
- vellum/client/errors/forbidden_error.py +4 -3
- vellum/client/errors/internal_server_error.py +4 -3
- vellum/client/errors/not_found_error.py +4 -3
- vellum/client/raw_client.py +270 -201
- vellum/client/resources/__init__.py +2 -0
- vellum/client/resources/ad_hoc/__init__.py +2 -0
- vellum/client/resources/ad_hoc/client.py +16 -17
- vellum/client/resources/ad_hoc/raw_client.py +68 -53
- vellum/client/resources/container_images/__init__.py +2 -0
- vellum/client/resources/container_images/client.py +24 -21
- vellum/client/resources/container_images/raw_client.py +23 -24
- vellum/client/resources/deployments/__init__.py +2 -0
- vellum/client/resources/deployments/client.py +43 -44
- vellum/client/resources/deployments/raw_client.py +73 -66
- vellum/client/resources/deployments/types/__init__.py +2 -0
- vellum/client/resources/document_indexes/__init__.py +2 -0
- vellum/client/resources/document_indexes/client.py +38 -39
- vellum/client/resources/document_indexes/raw_client.py +42 -43
- vellum/client/resources/document_indexes/types/__init__.py +2 -0
- vellum/client/resources/documents/__init__.py +2 -0
- vellum/client/resources/documents/client.py +25 -26
- vellum/client/resources/documents/raw_client.py +51 -44
- vellum/client/resources/folder_entities/__init__.py +2 -0
- vellum/client/resources/folder_entities/client.py +12 -13
- vellum/client/resources/folder_entities/raw_client.py +15 -16
- vellum/client/resources/folder_entities/types/__init__.py +2 -0
- vellum/client/resources/metric_definitions/__init__.py +2 -0
- vellum/client/resources/metric_definitions/client.py +12 -13
- vellum/client/resources/metric_definitions/raw_client.py +17 -18
- vellum/client/resources/ml_models/__init__.py +2 -0
- vellum/client/resources/ml_models/client.py +7 -8
- vellum/client/resources/ml_models/raw_client.py +11 -12
- vellum/client/resources/organizations/__init__.py +2 -0
- vellum/client/resources/organizations/client.py +7 -8
- vellum/client/resources/organizations/raw_client.py +10 -11
- vellum/client/resources/prompts/__init__.py +2 -0
- vellum/client/resources/prompts/client.py +13 -12
- vellum/client/resources/prompts/raw_client.py +40 -33
- vellum/client/resources/sandboxes/__init__.py +2 -0
- vellum/client/resources/sandboxes/client.py +15 -16
- vellum/client/resources/sandboxes/raw_client.py +20 -21
- vellum/client/resources/test_suite_runs/__init__.py +2 -0
- vellum/client/resources/test_suite_runs/client.py +17 -18
- vellum/client/resources/test_suite_runs/raw_client.py +20 -21
- vellum/client/resources/test_suites/__init__.py +2 -0
- vellum/client/resources/test_suites/client.py +20 -19
- vellum/client/resources/test_suites/raw_client.py +46 -31
- vellum/client/resources/workflow_deployments/__init__.py +2 -0
- vellum/client/resources/workflow_deployments/client.py +45 -46
- vellum/client/resources/workflow_deployments/raw_client.py +48 -49
- vellum/client/resources/workflow_deployments/types/__init__.py +2 -0
- vellum/client/resources/workflow_executions/__init__.py +2 -0
- vellum/client/resources/workflow_executions/client.py +7 -8
- vellum/client/resources/workflow_executions/raw_client.py +11 -12
- vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
- vellum/client/resources/workflow_sandboxes/client.py +12 -13
- vellum/client/resources/workflow_sandboxes/raw_client.py +16 -17
- vellum/client/resources/workflow_sandboxes/types/__init__.py +2 -0
- vellum/client/resources/workflows/__init__.py +2 -0
- vellum/client/resources/workflows/client.py +11 -12
- vellum/client/resources/workflows/raw_client.py +34 -27
- vellum/client/resources/workspace_secrets/__init__.py +2 -0
- vellum/client/resources/workspace_secrets/client.py +11 -12
- vellum/client/resources/workspace_secrets/raw_client.py +15 -16
- vellum/client/resources/workspaces/__init__.py +2 -0
- vellum/client/resources/workspaces/client.py +7 -8
- vellum/client/resources/workspaces/raw_client.py +10 -11
- vellum/client/types/__init__.py +2 -0
- vellum/client/types/ad_hoc_execute_prompt_event.py +3 -2
- vellum/client/types/ad_hoc_expand_meta.py +2 -2
- vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/api_node_result.py +3 -3
- vellum/client/types/api_node_result_data.py +4 -4
- vellum/client/types/api_request_parent_context.py +11 -11
- vellum/client/types/array_chat_message_content.py +3 -3
- vellum/client/types/array_chat_message_content_item.py +5 -4
- vellum/client/types/array_chat_message_content_item_request.py +5 -4
- vellum/client/types/array_chat_message_content_request.py +3 -3
- vellum/client/types/array_input.py +12 -6
- vellum/client/types/array_vellum_value.py +4 -4
- vellum/client/types/array_vellum_value_request.py +4 -4
- vellum/client/types/audio_chat_message_content.py +3 -3
- vellum/client/types/audio_chat_message_content_request.py +3 -3
- vellum/client/types/audio_prompt_block.py +4 -4
- vellum/client/types/audio_vellum_value.py +3 -3
- vellum/client/types/audio_vellum_value_request.py +3 -3
- vellum/client/types/base_output.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -2
- vellum/client/types/chat_history_input.py +3 -3
- vellum/client/types/chat_history_input_request.py +3 -3
- vellum/client/types/chat_history_vellum_value.py +3 -3
- vellum/client/types/chat_history_vellum_value_request.py +3 -3
- vellum/client/types/chat_message.py +4 -4
- vellum/client/types/chat_message_content.py +5 -4
- vellum/client/types/chat_message_content_request.py +5 -4
- vellum/client/types/chat_message_prompt_block.py +7 -7
- vellum/client/types/chat_message_request.py +4 -4
- vellum/client/types/code_execution_node_array_result.py +11 -5
- vellum/client/types/code_execution_node_chat_history_result.py +3 -3
- vellum/client/types/code_execution_node_error_result.py +3 -3
- vellum/client/types/code_execution_node_function_call_result.py +3 -3
- vellum/client/types/code_execution_node_json_result.py +2 -2
- vellum/client/types/code_execution_node_number_result.py +2 -2
- vellum/client/types/code_execution_node_result.py +10 -4
- vellum/client/types/code_execution_node_result_data.py +10 -4
- vellum/client/types/code_execution_node_result_output.py +6 -5
- vellum/client/types/code_execution_node_search_results_result.py +3 -3
- vellum/client/types/code_execution_node_string_result.py +2 -2
- vellum/client/types/code_execution_package.py +2 -2
- vellum/client/types/code_executor_input.py +7 -6
- vellum/client/types/code_executor_response.py +11 -5
- vellum/client/types/code_executor_secret_input.py +3 -3
- vellum/client/types/code_resource_definition.py +3 -3
- vellum/client/types/compile_prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/compile_prompt_meta.py +2 -2
- vellum/client/types/conditional_node_result.py +3 -3
- vellum/client/types/conditional_node_result_data.py +2 -2
- vellum/client/types/container_image_build_config.py +3 -3
- vellum/client/types/container_image_container_image_tag.py +2 -2
- vellum/client/types/container_image_read.py +5 -5
- vellum/client/types/create_test_suite_test_case_request.py +9 -3
- vellum/client/types/deployment_history_item.py +10 -4
- vellum/client/types/deployment_provider_payload_response.py +4 -4
- vellum/client/types/deployment_read.py +10 -4
- vellum/client/types/deployment_release_tag_deployment_history_item.py +2 -2
- vellum/client/types/deployment_release_tag_read.py +4 -4
- vellum/client/types/docker_service_token.py +2 -2
- vellum/client/types/document_chat_message_content.py +3 -3
- vellum/client/types/document_chat_message_content_request.py +3 -3
- vellum/client/types/document_document_to_document_index.py +3 -3
- vellum/client/types/document_index_chunking.py +1 -0
- vellum/client/types/document_index_chunking_request.py +1 -0
- vellum/client/types/document_index_indexing_config.py +4 -4
- vellum/client/types/document_index_indexing_config_request.py +4 -4
- vellum/client/types/document_index_read.py +4 -4
- vellum/client/types/document_prompt_block.py +4 -4
- vellum/client/types/document_read.py +4 -4
- vellum/client/types/document_vellum_value.py +3 -3
- vellum/client/types/document_vellum_value_request.py +3 -3
- vellum/client/types/enriched_normalized_completion.py +3 -3
- vellum/client/types/ephemeral_prompt_cache_config.py +3 -3
- vellum/client/types/error_input.py +3 -3
- vellum/client/types/error_vellum_value.py +3 -3
- vellum/client/types/error_vellum_value_request.py +3 -3
- vellum/client/types/execute_api_request_bearer_token.py +1 -0
- vellum/client/types/execute_api_request_headers_value.py +1 -0
- vellum/client/types/execute_api_response.py +5 -5
- vellum/client/types/execute_prompt_event.py +3 -2
- vellum/client/types/execute_prompt_response.py +1 -0
- vellum/client/types/execute_workflow_response.py +10 -4
- vellum/client/types/execute_workflow_workflow_result_event.py +1 -0
- vellum/client/types/execution_array_vellum_value.py +12 -6
- vellum/client/types/execution_chat_history_vellum_value.py +3 -3
- vellum/client/types/execution_error_vellum_value.py +3 -3
- vellum/client/types/execution_function_call_vellum_value.py +3 -3
- vellum/client/types/execution_json_vellum_value.py +3 -3
- vellum/client/types/execution_number_vellum_value.py +3 -3
- vellum/client/types/execution_search_results_vellum_value.py +3 -3
- vellum/client/types/execution_string_vellum_value.py +3 -3
- vellum/client/types/execution_thinking_vellum_value.py +3 -3
- vellum/client/types/execution_vellum_value.py +6 -5
- vellum/client/types/external_input_descriptor.py +3 -3
- vellum/client/types/external_parent_context.py +11 -11
- vellum/client/types/external_test_case_execution.py +10 -4
- vellum/client/types/external_test_case_execution_request.py +10 -4
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15.py +2 -2
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15_request.py +2 -2
- vellum/client/types/folder_entity.py +4 -3
- vellum/client/types/folder_entity_dataset.py +3 -3
- vellum/client/types/folder_entity_dataset_data.py +3 -3
- vellum/client/types/folder_entity_document_index.py +3 -3
- vellum/client/types/folder_entity_document_index_data.py +4 -4
- vellum/client/types/folder_entity_folder.py +3 -3
- vellum/client/types/folder_entity_folder_data.py +2 -2
- vellum/client/types/folder_entity_prompt_sandbox.py +3 -3
- vellum/client/types/folder_entity_prompt_sandbox_data.py +3 -3
- vellum/client/types/folder_entity_test_suite.py +3 -3
- vellum/client/types/folder_entity_test_suite_data.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox_data.py +3 -3
- vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_response.py +3 -3
- vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +11 -5
- vellum/client/types/fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/fulfilled_workflow_node_result_event.py +12 -6
- vellum/client/types/function_call.py +2 -2
- vellum/client/types/function_call_chat_message_content.py +3 -3
- vellum/client/types/function_call_chat_message_content_request.py +3 -3
- vellum/client/types/function_call_chat_message_content_value.py +2 -2
- vellum/client/types/function_call_chat_message_content_value_request.py +2 -2
- vellum/client/types/function_call_input.py +3 -3
- vellum/client/types/function_call_prompt_block.py +4 -4
- vellum/client/types/function_call_request.py +2 -2
- vellum/client/types/function_call_vellum_value.py +3 -3
- vellum/client/types/function_call_vellum_value_request.py +3 -3
- vellum/client/types/function_definition.py +4 -4
- vellum/client/types/generate_options_request.py +3 -3
- vellum/client/types/generate_request.py +2 -2
- vellum/client/types/generate_response.py +3 -3
- vellum/client/types/generate_result.py +3 -3
- vellum/client/types/generate_result_data.py +3 -3
- vellum/client/types/generate_result_error.py +3 -3
- vellum/client/types/generate_stream_response.py +3 -3
- vellum/client/types/generate_stream_result.py +4 -4
- vellum/client/types/generate_stream_result_data.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_config.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_config_request.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +3 -3
- vellum/client/types/image_chat_message_content.py +3 -3
- vellum/client/types/image_chat_message_content_request.py +3 -3
- vellum/client/types/image_prompt_block.py +4 -4
- vellum/client/types/image_vellum_value.py +3 -3
- vellum/client/types/image_vellum_value_request.py +3 -3
- vellum/client/types/indexing_config_vectorizer.py +7 -6
- vellum/client/types/indexing_config_vectorizer_request.py +7 -6
- vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/initiated_workflow_node_result_event.py +12 -6
- vellum/client/types/instructor_vectorizer_config.py +2 -2
- vellum/client/types/instructor_vectorizer_config_request.py +2 -2
- vellum/client/types/invoked_port.py +2 -2
- vellum/client/types/jinja_prompt_block.py +4 -4
- vellum/client/types/json_input.py +3 -3
- vellum/client/types/json_input_request.py +3 -3
- vellum/client/types/json_vellum_value.py +2 -2
- vellum/client/types/json_vellum_value_request.py +2 -2
- vellum/client/types/map_node_result.py +3 -3
- vellum/client/types/map_node_result_data.py +3 -3
- vellum/client/types/merge_node_result.py +3 -3
- vellum/client/types/merge_node_result_data.py +2 -2
- vellum/client/types/metadata_filter_config_request.py +12 -6
- vellum/client/types/metadata_filter_rule_request.py +5 -5
- vellum/client/types/metadata_filters_request.py +1 -0
- vellum/client/types/metric_definition_execution.py +10 -4
- vellum/client/types/metric_definition_history_item.py +10 -4
- vellum/client/types/metric_definition_input.py +3 -2
- vellum/client/types/metric_node_result.py +2 -2
- vellum/client/types/ml_model_read.py +6 -3
- vellum/client/types/ml_model_usage.py +2 -2
- vellum/client/types/ml_model_usage_wrapper.py +3 -3
- vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_scenario_input_json_variable_value_request.py +2 -2
- vellum/client/types/named_scenario_input_request.py +3 -2
- vellum/client/types/named_scenario_input_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_array_variable_value.py +11 -5
- vellum/client/types/named_test_case_array_variable_value_request.py +11 -5
- vellum/client/types/named_test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/named_test_case_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_error_variable_value.py +3 -3
- vellum/client/types/named_test_case_error_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_json_variable_value.py +2 -2
- vellum/client/types/named_test_case_json_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_number_variable_value.py +2 -2
- vellum/client/types/named_test_case_number_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_search_results_variable_value.py +3 -3
- vellum/client/types/named_test_case_search_results_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_string_variable_value.py +2 -2
- vellum/client/types/named_test_case_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_variable_value.py +6 -5
- vellum/client/types/named_test_case_variable_value_request.py +6 -5
- vellum/client/types/node_execution_fulfilled_body.py +4 -4
- vellum/client/types/node_execution_fulfilled_event.py +22 -16
- vellum/client/types/node_execution_initiated_body.py +3 -3
- vellum/client/types/node_execution_initiated_event.py +22 -16
- vellum/client/types/node_execution_paused_body.py +3 -3
- vellum/client/types/node_execution_paused_event.py +22 -16
- vellum/client/types/node_execution_rejected_body.py +4 -4
- vellum/client/types/node_execution_rejected_event.py +22 -16
- vellum/client/types/node_execution_resumed_body.py +3 -3
- vellum/client/types/node_execution_resumed_event.py +22 -16
- vellum/client/types/node_execution_span.py +19 -13
- vellum/client/types/node_execution_span_attributes.py +2 -2
- vellum/client/types/node_execution_streaming_body.py +4 -4
- vellum/client/types/node_execution_streaming_event.py +22 -16
- vellum/client/types/node_input_compiled_array_value.py +11 -5
- vellum/client/types/node_input_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_input_compiled_error_value.py +3 -3
- vellum/client/types/node_input_compiled_function_call_value.py +3 -3
- vellum/client/types/node_input_compiled_json_value.py +2 -2
- vellum/client/types/node_input_compiled_number_value.py +2 -2
- vellum/client/types/node_input_compiled_search_results_value.py +3 -3
- vellum/client/types/node_input_compiled_secret_value.py +3 -3
- vellum/client/types/node_input_compiled_string_value.py +2 -2
- vellum/client/types/node_input_variable_compiled_value.py +6 -5
- vellum/client/types/node_output_compiled_array_value.py +12 -6
- vellum/client/types/node_output_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_output_compiled_error_value.py +3 -3
- vellum/client/types/node_output_compiled_function_call_value.py +3 -3
- vellum/client/types/node_output_compiled_json_value.py +3 -3
- vellum/client/types/node_output_compiled_number_value.py +3 -3
- vellum/client/types/node_output_compiled_search_results_value.py +3 -3
- vellum/client/types/node_output_compiled_string_value.py +3 -3
- vellum/client/types/node_output_compiled_thinking_value.py +3 -3
- vellum/client/types/node_output_compiled_value.py +6 -5
- vellum/client/types/node_parent_context.py +12 -12
- vellum/client/types/normalized_log_probs.py +3 -3
- vellum/client/types/normalized_token_log_probs.py +2 -2
- vellum/client/types/number_input.py +3 -3
- vellum/client/types/number_vellum_value.py +2 -2
- vellum/client/types/number_vellum_value_request.py +2 -2
- vellum/client/types/open_ai_vectorizer_config.py +3 -3
- vellum/client/types/open_ai_vectorizer_config_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +3 -3
- vellum/client/types/organization_read.py +4 -4
- vellum/client/types/paginated_container_image_read_list.py +3 -3
- vellum/client/types/paginated_deployment_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_document_index_read_list.py +3 -3
- vellum/client/types/paginated_folder_entity_list.py +3 -3
- vellum/client/types/paginated_slim_deployment_read_list.py +10 -4
- vellum/client/types/paginated_slim_document_list.py +3 -3
- vellum/client/types/paginated_slim_workflow_deployment_list.py +10 -4
- vellum/client/types/paginated_test_suite_run_execution_list.py +10 -4
- vellum/client/types/paginated_test_suite_test_case_list.py +10 -4
- vellum/client/types/paginated_workflow_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_workflow_sandbox_example_list.py +3 -3
- vellum/client/types/parent_context.py +5 -5
- vellum/client/types/pdf_search_result_meta_source.py +2 -2
- vellum/client/types/pdf_search_result_meta_source_request.py +2 -2
- vellum/client/types/plain_text_prompt_block.py +4 -4
- vellum/client/types/price.py +3 -3
- vellum/client/types/prompt_block.py +7 -6
- vellum/client/types/prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/prompt_deployment_input_request.py +3 -2
- vellum/client/types/prompt_deployment_parent_context.py +11 -11
- vellum/client/types/prompt_deployment_release.py +6 -6
- vellum/client/types/prompt_deployment_release_prompt_deployment.py +2 -2
- vellum/client/types/prompt_deployment_release_prompt_version.py +4 -4
- vellum/client/types/prompt_exec_config.py +15 -9
- vellum/client/types/prompt_execution_meta.py +3 -3
- vellum/client/types/prompt_node_execution_meta.py +3 -3
- vellum/client/types/prompt_node_result.py +3 -3
- vellum/client/types/prompt_node_result_data.py +3 -3
- vellum/client/types/prompt_output.py +3 -2
- vellum/client/types/prompt_parameters.py +2 -2
- vellum/client/types/prompt_push_response.py +2 -2
- vellum/client/types/prompt_request_chat_history_input.py +3 -3
- vellum/client/types/prompt_request_input.py +3 -2
- vellum/client/types/prompt_request_json_input.py +3 -3
- vellum/client/types/prompt_request_string_input.py +3 -3
- vellum/client/types/prompt_settings.py +2 -2
- vellum/client/types/prompt_version_build_config_sandbox.py +2 -2
- vellum/client/types/raw_prompt_execution_overrides_request.py +2 -2
- vellum/client/types/reducto_chunker_config.py +2 -2
- vellum/client/types/reducto_chunker_config_request.py +2 -2
- vellum/client/types/reducto_chunking.py +3 -3
- vellum/client/types/reducto_chunking_request.py +3 -3
- vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_response.py +3 -3
- vellum/client/types/rejected_execute_workflow_workflow_result_event.py +4 -4
- vellum/client/types/rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/rejected_workflow_node_result_event.py +12 -6
- vellum/client/types/release_created_by.py +2 -2
- vellum/client/types/release_environment.py +2 -2
- vellum/client/types/release_release_tag.py +3 -3
- vellum/client/types/release_review_reviewer.py +2 -2
- vellum/client/types/release_tag_release.py +2 -2
- vellum/client/types/replace_test_suite_test_case_request.py +9 -3
- vellum/client/types/rich_text_child_block.py +2 -1
- vellum/client/types/rich_text_prompt_block.py +4 -4
- vellum/client/types/sandbox_scenario.py +3 -3
- vellum/client/types/scenario_input.py +3 -2
- vellum/client/types/scenario_input_chat_history_variable_value.py +3 -3
- vellum/client/types/scenario_input_json_variable_value.py +2 -2
- vellum/client/types/scenario_input_string_variable_value.py +2 -2
- vellum/client/types/search_filters_request.py +11 -5
- vellum/client/types/search_node_result.py +3 -3
- vellum/client/types/search_node_result_data.py +3 -3
- vellum/client/types/search_request_options_request.py +13 -7
- vellum/client/types/search_response.py +3 -3
- vellum/client/types/search_result.py +3 -3
- vellum/client/types/search_result_document.py +2 -2
- vellum/client/types/search_result_document_request.py +2 -2
- vellum/client/types/search_result_merging_request.py +2 -2
- vellum/client/types/search_result_meta.py +3 -3
- vellum/client/types/search_result_meta_request.py +3 -3
- vellum/client/types/search_result_request.py +3 -3
- vellum/client/types/search_results_input.py +3 -3
- vellum/client/types/search_results_vellum_value.py +3 -3
- vellum/client/types/search_results_vellum_value_request.py +3 -3
- vellum/client/types/search_weights_request.py +2 -2
- vellum/client/types/sentence_chunker_config.py +2 -2
- vellum/client/types/sentence_chunker_config_request.py +2 -2
- vellum/client/types/sentence_chunking.py +3 -3
- vellum/client/types/sentence_chunking_request.py +3 -3
- vellum/client/types/slim_deployment_read.py +10 -4
- vellum/client/types/slim_document.py +5 -5
- vellum/client/types/slim_document_document_to_document_index.py +3 -3
- vellum/client/types/slim_release_review.py +4 -4
- vellum/client/types/slim_workflow_deployment.py +11 -5
- vellum/client/types/slim_workflow_execution_read.py +21 -15
- vellum/client/types/span_link.py +12 -12
- vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/streaming_execute_prompt_event.py +3 -3
- vellum/client/types/streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/streaming_workflow_node_result_event.py +12 -6
- vellum/client/types/string_chat_message_content.py +2 -2
- vellum/client/types/string_chat_message_content_request.py +2 -2
- vellum/client/types/string_input.py +3 -3
- vellum/client/types/string_input_request.py +3 -3
- vellum/client/types/string_vellum_value.py +2 -2
- vellum/client/types/string_vellum_value_request.py +2 -2
- vellum/client/types/submit_completion_actual_request.py +3 -3
- vellum/client/types/submit_workflow_execution_actual_request.py +3 -2
- vellum/client/types/subworkflow_node_result.py +3 -3
- vellum/client/types/subworkflow_node_result_data.py +2 -2
- vellum/client/types/templating_node_array_result.py +11 -5
- vellum/client/types/templating_node_chat_history_result.py +3 -3
- vellum/client/types/templating_node_error_result.py +3 -3
- vellum/client/types/templating_node_function_call_result.py +3 -3
- vellum/client/types/templating_node_json_result.py +2 -2
- vellum/client/types/templating_node_number_result.py +2 -2
- vellum/client/types/templating_node_result.py +10 -4
- vellum/client/types/templating_node_result_data.py +10 -4
- vellum/client/types/templating_node_result_output.py +6 -5
- vellum/client/types/templating_node_search_results_result.py +3 -3
- vellum/client/types/templating_node_string_result.py +2 -2
- vellum/client/types/terminal_node_array_result.py +11 -5
- vellum/client/types/terminal_node_chat_history_result.py +2 -2
- vellum/client/types/terminal_node_error_result.py +2 -2
- vellum/client/types/terminal_node_function_call_result.py +2 -2
- vellum/client/types/terminal_node_json_result.py +2 -2
- vellum/client/types/terminal_node_number_result.py +2 -2
- vellum/client/types/terminal_node_result.py +10 -4
- vellum/client/types/terminal_node_result_data.py +10 -4
- vellum/client/types/terminal_node_result_output.py +6 -5
- vellum/client/types/terminal_node_search_results_result.py +2 -2
- vellum/client/types/terminal_node_string_result.py +2 -2
- vellum/client/types/test_case_array_variable_value.py +11 -5
- vellum/client/types/test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/test_case_error_variable_value.py +3 -3
- vellum/client/types/test_case_function_call_variable_value.py +3 -3
- vellum/client/types/test_case_json_variable_value.py +2 -2
- vellum/client/types/test_case_number_variable_value.py +2 -2
- vellum/client/types/test_case_search_results_variable_value.py +3 -3
- vellum/client/types/test_case_string_variable_value.py +2 -2
- vellum/client/types/test_case_variable_value.py +6 -5
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_exec_config.py +2 -1
- vellum/client/types/test_suite_run_exec_config_request.py +2 -1
- vellum/client/types/test_suite_run_execution.py +11 -5
- vellum/client/types/test_suite_run_execution_array_output.py +11 -5
- vellum/client/types/test_suite_run_execution_chat_history_output.py +3 -3
- vellum/client/types/test_suite_run_execution_error_output.py +3 -3
- vellum/client/types/test_suite_run_execution_function_call_output.py +3 -3
- vellum/client/types/test_suite_run_execution_json_output.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_definition.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_result.py +11 -5
- vellum/client/types/test_suite_run_execution_number_output.py +2 -2
- vellum/client/types/test_suite_run_execution_output.py +6 -5
- vellum/client/types/test_suite_run_execution_search_results_output.py +3 -3
- vellum/client/types/test_suite_run_execution_string_output.py +2 -2
- vellum/client/types/test_suite_run_external_exec_config.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data_request.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_request.py +10 -4
- vellum/client/types/test_suite_run_metric_array_output.py +11 -5
- vellum/client/types/test_suite_run_metric_error_output.py +3 -3
- vellum/client/types/test_suite_run_metric_json_output.py +2 -2
- vellum/client/types/test_suite_run_metric_number_output.py +2 -2
- vellum/client/types/test_suite_run_metric_output.py +5 -4
- vellum/client/types/test_suite_run_metric_string_output.py +2 -2
- vellum/client/types/test_suite_run_progress.py +2 -2
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_read.py +12 -6
- vellum/client/types/test_suite_run_test_suite.py +2 -2
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_test_case.py +10 -4
- vellum/client/types/test_suite_test_case_bulk_operation_request.py +2 -1
- vellum/client/types/test_suite_test_case_bulk_result.py +2 -1
- vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_created_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_created_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_rejected_bulk_result.py +2 -2
- vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_replaced_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +10 -4
- vellum/client/types/thinking_vellum_value.py +3 -3
- vellum/client/types/thinking_vellum_value_request.py +3 -3
- vellum/client/types/token_overlapping_window_chunker_config.py +2 -2
- vellum/client/types/token_overlapping_window_chunker_config_request.py +2 -2
- vellum/client/types/token_overlapping_window_chunking.py +3 -3
- vellum/client/types/token_overlapping_window_chunking_request.py +3 -3
- vellum/client/types/upload_document_response.py +3 -3
- vellum/client/types/upsert_test_suite_test_case_request.py +9 -3
- vellum/client/types/variable_prompt_block.py +4 -4
- vellum/client/types/vellum_audio.py +3 -3
- vellum/client/types/vellum_audio_request.py +3 -3
- vellum/client/types/vellum_code_resource_definition.py +2 -2
- vellum/client/types/vellum_document.py +2 -2
- vellum/client/types/vellum_document_request.py +2 -2
- vellum/client/types/vellum_error.py +3 -3
- vellum/client/types/vellum_error_request.py +3 -3
- vellum/client/types/vellum_image.py +2 -2
- vellum/client/types/vellum_image_request.py +2 -2
- vellum/client/types/vellum_node_execution_event.py +4 -3
- vellum/client/types/vellum_sdk_error.py +3 -3
- vellum/client/types/vellum_secret.py +2 -2
- vellum/client/types/vellum_span.py +2 -1
- vellum/client/types/vellum_value.py +9 -8
- vellum/client/types/vellum_value_logical_condition_group_request.py +6 -6
- vellum/client/types/vellum_value_logical_condition_request.py +13 -7
- vellum/client/types/vellum_value_logical_expression_request.py +2 -1
- vellum/client/types/vellum_value_request.py +9 -8
- vellum/client/types/vellum_variable.py +13 -7
- vellum/client/types/vellum_variable_extensions.py +2 -2
- vellum/client/types/vellum_video.py +3 -3
- vellum/client/types/vellum_video_request.py +3 -3
- vellum/client/types/vellum_workflow_execution_event.py +4 -3
- vellum/client/types/video_chat_message_content.py +3 -3
- vellum/client/types/video_chat_message_content_request.py +3 -3
- vellum/client/types/video_prompt_block.py +4 -4
- vellum/client/types/video_vellum_value.py +3 -3
- vellum/client/types/video_vellum_value_request.py +3 -3
- vellum/client/types/workflow_deployment_event_executions_response.py +18 -12
- vellum/client/types/workflow_deployment_history_item.py +10 -4
- vellum/client/types/workflow_deployment_parent_context.py +11 -11
- vellum/client/types/workflow_deployment_read.py +11 -5
- vellum/client/types/workflow_deployment_release.py +13 -7
- vellum/client/types/workflow_deployment_release_workflow_deployment.py +2 -2
- vellum/client/types/workflow_deployment_release_workflow_version.py +10 -4
- vellum/client/types/workflow_error.py +1 -0
- vellum/client/types/workflow_event_error.py +3 -3
- vellum/client/types/workflow_event_execution_read.py +22 -16
- vellum/client/types/workflow_execution_actual.py +10 -4
- vellum/client/types/workflow_execution_actual_chat_history_request.py +2 -2
- vellum/client/types/workflow_execution_actual_json_request.py +2 -2
- vellum/client/types/workflow_execution_actual_string_request.py +2 -2
- vellum/client/types/workflow_execution_detail.py +22 -16
- vellum/client/types/workflow_execution_fulfilled_body.py +3 -3
- vellum/client/types/workflow_execution_fulfilled_event.py +22 -16
- vellum/client/types/workflow_execution_initiated_body.py +3 -3
- vellum/client/types/workflow_execution_initiated_event.py +22 -16
- vellum/client/types/workflow_execution_node_result_event.py +10 -4
- vellum/client/types/workflow_execution_paused_body.py +4 -4
- vellum/client/types/workflow_execution_paused_event.py +22 -16
- vellum/client/types/workflow_execution_rejected_body.py +4 -4
- vellum/client/types/workflow_execution_rejected_event.py +22 -16
- vellum/client/types/workflow_execution_resumed_body.py +3 -3
- vellum/client/types/workflow_execution_resumed_event.py +22 -16
- vellum/client/types/workflow_execution_snapshotted_body.py +3 -3
- vellum/client/types/workflow_execution_snapshotted_event.py +22 -16
- vellum/client/types/workflow_execution_span.py +18 -12
- vellum/client/types/workflow_execution_span_attributes.py +2 -2
- vellum/client/types/workflow_execution_streaming_body.py +4 -4
- vellum/client/types/workflow_execution_streaming_event.py +22 -16
- vellum/client/types/workflow_execution_usage_calculation_error.py +3 -3
- vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -3
- vellum/client/types/workflow_execution_usage_result.py +3 -3
- vellum/client/types/workflow_execution_view_online_eval_metric_result.py +10 -4
- vellum/client/types/workflow_execution_workflow_result_event.py +10 -4
- vellum/client/types/workflow_expand_meta_request.py +2 -2
- vellum/client/types/workflow_initialization_error.py +2 -2
- vellum/client/types/workflow_node_result_data.py +8 -7
- vellum/client/types/workflow_node_result_event.py +3 -2
- vellum/client/types/workflow_output.py +6 -5
- vellum/client/types/workflow_output_array.py +12 -6
- vellum/client/types/workflow_output_chat_history.py +3 -3
- vellum/client/types/workflow_output_error.py +3 -3
- vellum/client/types/workflow_output_function_call.py +3 -3
- vellum/client/types/workflow_output_image.py +3 -3
- vellum/client/types/workflow_output_json.py +3 -3
- vellum/client/types/workflow_output_number.py +3 -3
- vellum/client/types/workflow_output_search_results.py +3 -3
- vellum/client/types/workflow_output_string.py +3 -3
- vellum/client/types/workflow_parent_context.py +12 -12
- vellum/client/types/workflow_push_deployment_config_request.py +2 -2
- vellum/client/types/workflow_push_response.py +2 -2
- vellum/client/types/workflow_release_tag_read.py +4 -4
- vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +2 -2
- vellum/client/types/workflow_request_chat_history_input_request.py +3 -3
- vellum/client/types/workflow_request_input_request.py +3 -2
- vellum/client/types/workflow_request_json_input_request.py +3 -3
- vellum/client/types/workflow_request_number_input_request.py +3 -3
- vellum/client/types/workflow_request_string_input_request.py +3 -3
- vellum/client/types/workflow_result_event.py +13 -7
- vellum/client/types/workflow_result_event_output_data.py +7 -6
- vellum/client/types/workflow_result_event_output_data_array.py +12 -6
- vellum/client/types/workflow_result_event_output_data_chat_history.py +3 -3
- vellum/client/types/workflow_result_event_output_data_error.py +3 -3
- vellum/client/types/workflow_result_event_output_data_function_call.py +3 -3
- vellum/client/types/workflow_result_event_output_data_json.py +3 -3
- vellum/client/types/workflow_result_event_output_data_number.py +3 -3
- vellum/client/types/workflow_result_event_output_data_search_results.py +3 -3
- vellum/client/types/workflow_result_event_output_data_string.py +3 -3
- vellum/client/types/workflow_sandbox_example.py +2 -2
- vellum/client/types/workflow_sandbox_parent_context.py +11 -11
- vellum/client/types/workflow_stream_event.py +2 -1
- vellum/client/types/workspace_read.py +3 -3
- vellum/client/types/workspace_secret_read.py +3 -3
- vellum/core/force_multipart.py +3 -0
- vellum/workflows/events/node.py +25 -10
- vellum/workflows/events/tests/test_event.py +19 -19
- vellum/workflows/state/encoder.py +2 -4
- vellum/workflows/utils/functions.py +1 -1
- {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/METADATA +2 -2
- {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/RECORD +660 -658
- vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +154 -0
- {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/LICENSE +0 -0
- {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/WHEEL +0 -0
- {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/entry_points.txt +0 -0
@@ -1,19 +1,18 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
6
|
-
from ...types.prompt_request_input import PromptRequestInput
|
7
|
-
from ...types.vellum_variable import VellumVariable
|
8
|
-
from ...types.prompt_parameters import PromptParameters
|
9
|
-
from ...types.prompt_block import PromptBlock
|
10
|
-
from ...types.prompt_settings import PromptSettings
|
11
|
-
from ...types.function_definition import FunctionDefinition
|
12
|
-
from ...types.ad_hoc_expand_meta import AdHocExpandMeta
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
13
6
|
from ...core.request_options import RequestOptions
|
14
7
|
from ...types.ad_hoc_execute_prompt_event import AdHocExecutePromptEvent
|
15
|
-
from ...
|
16
|
-
from .
|
8
|
+
from ...types.ad_hoc_expand_meta import AdHocExpandMeta
|
9
|
+
from ...types.function_definition import FunctionDefinition
|
10
|
+
from ...types.prompt_block import PromptBlock
|
11
|
+
from ...types.prompt_parameters import PromptParameters
|
12
|
+
from ...types.prompt_request_input import PromptRequestInput
|
13
|
+
from ...types.prompt_settings import PromptSettings
|
14
|
+
from ...types.vellum_variable import VellumVariable
|
15
|
+
from .raw_client import AsyncRawAdHocClient, RawAdHocClient
|
17
16
|
|
18
17
|
# this is used as the default value for optional parameters
|
19
18
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -127,7 +126,7 @@ class AdHocClient:
|
|
127
126
|
],
|
128
127
|
)
|
129
128
|
"""
|
130
|
-
|
129
|
+
_response = self._raw_client.adhoc_execute_prompt(
|
131
130
|
ml_model=ml_model,
|
132
131
|
input_values=input_values,
|
133
132
|
input_variables=input_variables,
|
@@ -138,7 +137,7 @@ class AdHocClient:
|
|
138
137
|
expand_meta=expand_meta,
|
139
138
|
request_options=request_options,
|
140
139
|
)
|
141
|
-
return
|
140
|
+
return _response.data
|
142
141
|
|
143
142
|
def adhoc_execute_prompt_stream(
|
144
143
|
self,
|
@@ -357,7 +356,7 @@ class AsyncAdHocClient:
|
|
357
356
|
|
358
357
|
asyncio.run(main())
|
359
358
|
"""
|
360
|
-
|
359
|
+
_response = await self._raw_client.adhoc_execute_prompt(
|
361
360
|
ml_model=ml_model,
|
362
361
|
input_values=input_values,
|
363
362
|
input_variables=input_variables,
|
@@ -368,7 +367,7 @@ class AsyncAdHocClient:
|
|
368
367
|
expand_meta=expand_meta,
|
369
368
|
request_options=request_options,
|
370
369
|
)
|
371
|
-
return
|
370
|
+
return _response.data
|
372
371
|
|
373
372
|
async def adhoc_execute_prompt_stream(
|
374
373
|
self,
|
@@ -480,5 +479,5 @@ class AsyncAdHocClient:
|
|
480
479
|
expand_meta=expand_meta,
|
481
480
|
request_options=request_options,
|
482
481
|
) as r:
|
483
|
-
async for
|
484
|
-
yield
|
482
|
+
async for _chunk in r.data:
|
483
|
+
yield _chunk
|
@@ -1,28 +1,27 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
import contextlib
|
4
|
+
import json
|
3
5
|
import typing
|
4
|
-
from
|
5
|
-
|
6
|
-
from ...
|
7
|
-
from ...
|
8
|
-
from ...
|
9
|
-
from ...
|
10
|
-
from ...types.function_definition import FunctionDefinition
|
11
|
-
from ...types.ad_hoc_expand_meta import AdHocExpandMeta
|
6
|
+
from json.decoder import JSONDecodeError
|
7
|
+
|
8
|
+
from ...core.api_error import ApiError
|
9
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
10
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
11
|
+
from ...core.pydantic_utilities import parse_obj_as
|
12
12
|
from ...core.request_options import RequestOptions
|
13
|
-
from ...core.http_response import HttpResponse
|
14
|
-
from ...types.ad_hoc_execute_prompt_event import AdHocExecutePromptEvent
|
15
13
|
from ...core.serialization import convert_and_respect_annotation_metadata
|
16
|
-
from ...core.pydantic_utilities import parse_obj_as
|
17
14
|
from ...errors.bad_request_error import BadRequestError
|
18
15
|
from ...errors.forbidden_error import ForbiddenError
|
19
16
|
from ...errors.internal_server_error import InternalServerError
|
20
|
-
from
|
21
|
-
from ...
|
22
|
-
import
|
23
|
-
import
|
24
|
-
from ...
|
25
|
-
from ...
|
17
|
+
from ...types.ad_hoc_execute_prompt_event import AdHocExecutePromptEvent
|
18
|
+
from ...types.ad_hoc_expand_meta import AdHocExpandMeta
|
19
|
+
from ...types.function_definition import FunctionDefinition
|
20
|
+
from ...types.prompt_block import PromptBlock
|
21
|
+
from ...types.prompt_parameters import PromptParameters
|
22
|
+
from ...types.prompt_request_input import PromptRequestInput
|
23
|
+
from ...types.prompt_settings import PromptSettings
|
24
|
+
from ...types.vellum_variable import VellumVariable
|
26
25
|
|
27
26
|
# this is used as the default value for optional parameters
|
28
27
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -120,38 +119,41 @@ class RawAdHocClient:
|
|
120
119
|
return HttpResponse(response=_response, data=_data)
|
121
120
|
if _response.status_code == 400:
|
122
121
|
raise BadRequestError(
|
123
|
-
|
122
|
+
headers=dict(_response.headers),
|
123
|
+
body=typing.cast(
|
124
124
|
typing.Optional[typing.Any],
|
125
125
|
parse_obj_as(
|
126
126
|
type_=typing.Optional[typing.Any], # type: ignore
|
127
127
|
object_=_response.json(),
|
128
128
|
),
|
129
|
-
)
|
129
|
+
),
|
130
130
|
)
|
131
131
|
if _response.status_code == 403:
|
132
132
|
raise ForbiddenError(
|
133
|
-
|
133
|
+
headers=dict(_response.headers),
|
134
|
+
body=typing.cast(
|
134
135
|
typing.Optional[typing.Any],
|
135
136
|
parse_obj_as(
|
136
137
|
type_=typing.Optional[typing.Any], # type: ignore
|
137
138
|
object_=_response.json(),
|
138
139
|
),
|
139
|
-
)
|
140
|
+
),
|
140
141
|
)
|
141
142
|
if _response.status_code == 500:
|
142
143
|
raise InternalServerError(
|
143
|
-
|
144
|
+
headers=dict(_response.headers),
|
145
|
+
body=typing.cast(
|
144
146
|
typing.Optional[typing.Any],
|
145
147
|
parse_obj_as(
|
146
148
|
type_=typing.Optional[typing.Any], # type: ignore
|
147
149
|
object_=_response.json(),
|
148
150
|
),
|
149
|
-
)
|
151
|
+
),
|
150
152
|
)
|
151
153
|
_response_json = _response.json()
|
152
154
|
except JSONDecodeError:
|
153
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
154
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
155
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
156
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
155
157
|
|
156
158
|
@contextlib.contextmanager
|
157
159
|
def adhoc_execute_prompt_stream(
|
@@ -231,7 +233,7 @@ class RawAdHocClient:
|
|
231
233
|
omit=OMIT,
|
232
234
|
) as _response:
|
233
235
|
|
234
|
-
def
|
236
|
+
def _stream() -> HttpResponse[typing.Iterator[AdHocExecutePromptEvent]]:
|
235
237
|
try:
|
236
238
|
if 200 <= _response.status_code < 300:
|
237
239
|
|
@@ -255,40 +257,45 @@ class RawAdHocClient:
|
|
255
257
|
_response.read()
|
256
258
|
if _response.status_code == 400:
|
257
259
|
raise BadRequestError(
|
258
|
-
|
260
|
+
headers=dict(_response.headers),
|
261
|
+
body=typing.cast(
|
259
262
|
typing.Optional[typing.Any],
|
260
263
|
parse_obj_as(
|
261
264
|
type_=typing.Optional[typing.Any], # type: ignore
|
262
265
|
object_=_response.json(),
|
263
266
|
),
|
264
|
-
)
|
267
|
+
),
|
265
268
|
)
|
266
269
|
if _response.status_code == 403:
|
267
270
|
raise ForbiddenError(
|
268
|
-
|
271
|
+
headers=dict(_response.headers),
|
272
|
+
body=typing.cast(
|
269
273
|
typing.Optional[typing.Any],
|
270
274
|
parse_obj_as(
|
271
275
|
type_=typing.Optional[typing.Any], # type: ignore
|
272
276
|
object_=_response.json(),
|
273
277
|
),
|
274
|
-
)
|
278
|
+
),
|
275
279
|
)
|
276
280
|
if _response.status_code == 500:
|
277
281
|
raise InternalServerError(
|
278
|
-
|
282
|
+
headers=dict(_response.headers),
|
283
|
+
body=typing.cast(
|
279
284
|
typing.Optional[typing.Any],
|
280
285
|
parse_obj_as(
|
281
286
|
type_=typing.Optional[typing.Any], # type: ignore
|
282
287
|
object_=_response.json(),
|
283
288
|
),
|
284
|
-
)
|
289
|
+
),
|
285
290
|
)
|
286
291
|
_response_json = _response.json()
|
287
292
|
except JSONDecodeError:
|
288
|
-
raise ApiError(
|
289
|
-
|
293
|
+
raise ApiError(
|
294
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.text
|
295
|
+
)
|
296
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
290
297
|
|
291
|
-
yield
|
298
|
+
yield _stream()
|
292
299
|
|
293
300
|
|
294
301
|
class AsyncRawAdHocClient:
|
@@ -383,38 +390,41 @@ class AsyncRawAdHocClient:
|
|
383
390
|
return AsyncHttpResponse(response=_response, data=_data)
|
384
391
|
if _response.status_code == 400:
|
385
392
|
raise BadRequestError(
|
386
|
-
|
393
|
+
headers=dict(_response.headers),
|
394
|
+
body=typing.cast(
|
387
395
|
typing.Optional[typing.Any],
|
388
396
|
parse_obj_as(
|
389
397
|
type_=typing.Optional[typing.Any], # type: ignore
|
390
398
|
object_=_response.json(),
|
391
399
|
),
|
392
|
-
)
|
400
|
+
),
|
393
401
|
)
|
394
402
|
if _response.status_code == 403:
|
395
403
|
raise ForbiddenError(
|
396
|
-
|
404
|
+
headers=dict(_response.headers),
|
405
|
+
body=typing.cast(
|
397
406
|
typing.Optional[typing.Any],
|
398
407
|
parse_obj_as(
|
399
408
|
type_=typing.Optional[typing.Any], # type: ignore
|
400
409
|
object_=_response.json(),
|
401
410
|
),
|
402
|
-
)
|
411
|
+
),
|
403
412
|
)
|
404
413
|
if _response.status_code == 500:
|
405
414
|
raise InternalServerError(
|
406
|
-
|
415
|
+
headers=dict(_response.headers),
|
416
|
+
body=typing.cast(
|
407
417
|
typing.Optional[typing.Any],
|
408
418
|
parse_obj_as(
|
409
419
|
type_=typing.Optional[typing.Any], # type: ignore
|
410
420
|
object_=_response.json(),
|
411
421
|
),
|
412
|
-
)
|
422
|
+
),
|
413
423
|
)
|
414
424
|
_response_json = _response.json()
|
415
425
|
except JSONDecodeError:
|
416
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
417
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
426
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
427
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
418
428
|
|
419
429
|
@contextlib.asynccontextmanager
|
420
430
|
async def adhoc_execute_prompt_stream(
|
@@ -494,7 +504,7 @@ class AsyncRawAdHocClient:
|
|
494
504
|
omit=OMIT,
|
495
505
|
) as _response:
|
496
506
|
|
497
|
-
async def
|
507
|
+
async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[AdHocExecutePromptEvent]]:
|
498
508
|
try:
|
499
509
|
if 200 <= _response.status_code < 300:
|
500
510
|
|
@@ -518,37 +528,42 @@ class AsyncRawAdHocClient:
|
|
518
528
|
await _response.aread()
|
519
529
|
if _response.status_code == 400:
|
520
530
|
raise BadRequestError(
|
521
|
-
|
531
|
+
headers=dict(_response.headers),
|
532
|
+
body=typing.cast(
|
522
533
|
typing.Optional[typing.Any],
|
523
534
|
parse_obj_as(
|
524
535
|
type_=typing.Optional[typing.Any], # type: ignore
|
525
536
|
object_=_response.json(),
|
526
537
|
),
|
527
|
-
)
|
538
|
+
),
|
528
539
|
)
|
529
540
|
if _response.status_code == 403:
|
530
541
|
raise ForbiddenError(
|
531
|
-
|
542
|
+
headers=dict(_response.headers),
|
543
|
+
body=typing.cast(
|
532
544
|
typing.Optional[typing.Any],
|
533
545
|
parse_obj_as(
|
534
546
|
type_=typing.Optional[typing.Any], # type: ignore
|
535
547
|
object_=_response.json(),
|
536
548
|
),
|
537
|
-
)
|
549
|
+
),
|
538
550
|
)
|
539
551
|
if _response.status_code == 500:
|
540
552
|
raise InternalServerError(
|
541
|
-
|
553
|
+
headers=dict(_response.headers),
|
554
|
+
body=typing.cast(
|
542
555
|
typing.Optional[typing.Any],
|
543
556
|
parse_obj_as(
|
544
557
|
type_=typing.Optional[typing.Any], # type: ignore
|
545
558
|
object_=_response.json(),
|
546
559
|
),
|
547
|
-
)
|
560
|
+
),
|
548
561
|
)
|
549
562
|
_response_json = _response.json()
|
550
563
|
except JSONDecodeError:
|
551
|
-
raise ApiError(
|
552
|
-
|
564
|
+
raise ApiError(
|
565
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.text
|
566
|
+
)
|
567
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
553
568
|
|
554
|
-
yield await
|
569
|
+
yield await _stream()
|
@@ -1,14 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
6
|
from ...core.request_options import RequestOptions
|
7
|
-
from ...types.paginated_container_image_read_list import PaginatedContainerImageReadList
|
8
7
|
from ...types.container_image_read import ContainerImageRead
|
9
8
|
from ...types.docker_service_token import DockerServiceToken
|
10
|
-
from ...
|
11
|
-
from .raw_client import AsyncRawContainerImagesClient
|
9
|
+
from ...types.paginated_container_image_read_list import PaginatedContainerImageReadList
|
10
|
+
from .raw_client import AsyncRawContainerImagesClient, RawContainerImagesClient
|
12
11
|
|
13
12
|
# this is used as the default value for optional parameters
|
14
13
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -73,8 +72,10 @@ class ContainerImagesClient:
|
|
73
72
|
)
|
74
73
|
client.container_images.list()
|
75
74
|
"""
|
76
|
-
|
77
|
-
|
75
|
+
_response = self._raw_client.list(
|
76
|
+
limit=limit, offset=offset, ordering=ordering, request_options=request_options
|
77
|
+
)
|
78
|
+
return _response.data
|
78
79
|
|
79
80
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ContainerImageRead:
|
80
81
|
"""
|
@@ -105,8 +106,8 @@ class ContainerImagesClient:
|
|
105
106
|
id="id",
|
106
107
|
)
|
107
108
|
"""
|
108
|
-
|
109
|
-
return
|
109
|
+
_response = self._raw_client.retrieve(id, request_options=request_options)
|
110
|
+
return _response.data
|
110
111
|
|
111
112
|
def docker_service_token(self, *, request_options: typing.Optional[RequestOptions] = None) -> DockerServiceToken:
|
112
113
|
"""
|
@@ -130,8 +131,8 @@ class ContainerImagesClient:
|
|
130
131
|
)
|
131
132
|
client.container_images.docker_service_token()
|
132
133
|
"""
|
133
|
-
|
134
|
-
return
|
134
|
+
_response = self._raw_client.docker_service_token(request_options=request_options)
|
135
|
+
return _response.data
|
135
136
|
|
136
137
|
def push_container_image(
|
137
138
|
self,
|
@@ -172,8 +173,10 @@ class ContainerImagesClient:
|
|
172
173
|
tags=["tags", "tags"],
|
173
174
|
)
|
174
175
|
"""
|
175
|
-
|
176
|
-
|
176
|
+
_response = self._raw_client.push_container_image(
|
177
|
+
name=name, sha=sha, tags=tags, request_options=request_options
|
178
|
+
)
|
179
|
+
return _response.data
|
177
180
|
|
178
181
|
|
179
182
|
class AsyncContainerImagesClient:
|
@@ -239,10 +242,10 @@ class AsyncContainerImagesClient:
|
|
239
242
|
|
240
243
|
asyncio.run(main())
|
241
244
|
"""
|
242
|
-
|
245
|
+
_response = await self._raw_client.list(
|
243
246
|
limit=limit, offset=offset, ordering=ordering, request_options=request_options
|
244
247
|
)
|
245
|
-
return
|
248
|
+
return _response.data
|
246
249
|
|
247
250
|
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ContainerImageRead:
|
248
251
|
"""
|
@@ -281,8 +284,8 @@ class AsyncContainerImagesClient:
|
|
281
284
|
|
282
285
|
asyncio.run(main())
|
283
286
|
"""
|
284
|
-
|
285
|
-
return
|
287
|
+
_response = await self._raw_client.retrieve(id, request_options=request_options)
|
288
|
+
return _response.data
|
286
289
|
|
287
290
|
async def docker_service_token(
|
288
291
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -316,8 +319,8 @@ class AsyncContainerImagesClient:
|
|
316
319
|
|
317
320
|
asyncio.run(main())
|
318
321
|
"""
|
319
|
-
|
320
|
-
return
|
322
|
+
_response = await self._raw_client.docker_service_token(request_options=request_options)
|
323
|
+
return _response.data
|
321
324
|
|
322
325
|
async def push_container_image(
|
323
326
|
self,
|
@@ -366,7 +369,7 @@ class AsyncContainerImagesClient:
|
|
366
369
|
|
367
370
|
asyncio.run(main())
|
368
371
|
"""
|
369
|
-
|
372
|
+
_response = await self._raw_client.push_container_image(
|
370
373
|
name=name, sha=sha, tags=tags, request_options=request_options
|
371
374
|
)
|
372
|
-
return
|
375
|
+
return _response.data
|
@@ -1,18 +1,17 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...types.paginated_container_image_read_list import PaginatedContainerImageReadList
|
8
|
-
from ...core.pydantic_utilities import parse_obj_as
|
9
4
|
from json.decoder import JSONDecodeError
|
5
|
+
|
10
6
|
from ...core.api_error import ApiError
|
11
|
-
from ...
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
12
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...types.container_image_read import ContainerImageRead
|
13
13
|
from ...types.docker_service_token import DockerServiceToken
|
14
|
-
from ...
|
15
|
-
from ...core.http_response import AsyncHttpResponse
|
14
|
+
from ...types.paginated_container_image_read_list import PaginatedContainerImageReadList
|
16
15
|
|
17
16
|
# this is used as the default value for optional parameters
|
18
17
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -75,8 +74,8 @@ class RawContainerImagesClient:
|
|
75
74
|
return HttpResponse(response=_response, data=_data)
|
76
75
|
_response_json = _response.json()
|
77
76
|
except JSONDecodeError:
|
78
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
79
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
77
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
78
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
80
79
|
|
81
80
|
def retrieve(
|
82
81
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -115,8 +114,8 @@ class RawContainerImagesClient:
|
|
115
114
|
return HttpResponse(response=_response, data=_data)
|
116
115
|
_response_json = _response.json()
|
117
116
|
except JSONDecodeError:
|
118
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
119
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
117
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
118
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
120
119
|
|
121
120
|
def docker_service_token(
|
122
121
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -150,8 +149,8 @@ class RawContainerImagesClient:
|
|
150
149
|
return HttpResponse(response=_response, data=_data)
|
151
150
|
_response_json = _response.json()
|
152
151
|
except JSONDecodeError:
|
153
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
154
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
152
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
153
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
155
154
|
|
156
155
|
def push_container_image(
|
157
156
|
self,
|
@@ -205,8 +204,8 @@ class RawContainerImagesClient:
|
|
205
204
|
return HttpResponse(response=_response, data=_data)
|
206
205
|
_response_json = _response.json()
|
207
206
|
except JSONDecodeError:
|
208
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
209
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
207
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
208
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
210
209
|
|
211
210
|
|
212
211
|
class AsyncRawContainerImagesClient:
|
@@ -266,8 +265,8 @@ class AsyncRawContainerImagesClient:
|
|
266
265
|
return AsyncHttpResponse(response=_response, data=_data)
|
267
266
|
_response_json = _response.json()
|
268
267
|
except JSONDecodeError:
|
269
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
270
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
268
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
269
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
271
270
|
|
272
271
|
async def retrieve(
|
273
272
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -306,8 +305,8 @@ class AsyncRawContainerImagesClient:
|
|
306
305
|
return AsyncHttpResponse(response=_response, data=_data)
|
307
306
|
_response_json = _response.json()
|
308
307
|
except JSONDecodeError:
|
309
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
310
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
308
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
309
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
311
310
|
|
312
311
|
async def docker_service_token(
|
313
312
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -341,8 +340,8 @@ class AsyncRawContainerImagesClient:
|
|
341
340
|
return AsyncHttpResponse(response=_response, data=_data)
|
342
341
|
_response_json = _response.json()
|
343
342
|
except JSONDecodeError:
|
344
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
345
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
343
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
344
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
346
345
|
|
347
346
|
async def push_container_image(
|
348
347
|
self,
|
@@ -396,5 +395,5 @@ class AsyncRawContainerImagesClient:
|
|
396
395
|
return AsyncHttpResponse(response=_response, data=_data)
|
397
396
|
_response_json = _response.json()
|
398
397
|
except JSONDecodeError:
|
399
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
400
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
398
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
399
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|