vellum-ai 0.0.42__tar.gz → 0.0.43__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/PKG-INFO +2 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/pyproject.toml +2 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/client.py +5 -1
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/client_wrapper.py +1 -1
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/jsonable_encoder.py +8 -6
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/deployments/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/document_indexes/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/documents/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/model_versions/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/registered_prompts/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/sandboxes/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/test_suites/client.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/api_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/api_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/chat_message.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/chat_message_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/conditional_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/conditional_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/deployment_read.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_document_to_document_index.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_index_read.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_read.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/enriched_normalized_completion.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/evaluation_params.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/evaluation_params_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/execute_workflow_stream_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_options_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_result_error.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_config_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_rule_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_build_config.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_compile_prompt_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_compiled_prompt.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_exec_config.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_exec_config_parameters.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_read.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_sandbox_snapshot.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_chat_history_value.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_json_value.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_number_value.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_search_results_value.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_string_value.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/normalized_log_probs.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/normalized_token_log_probs.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/paginated_slim_document_list.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_data_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_properties.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_properties_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_model_parameters_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_prompt.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_prompt_info_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_deployment.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_input_variable_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_model_version.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_sandbox.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_sandbox_snapshot.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/sandbox_metric_input_params.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/sandbox_metric_input_params_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/sandbox_scenario.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/scenario_input.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/scenario_input_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_filters_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_request_options_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_result_document.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_result_merging_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/search_weights_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/slim_document.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/submit_completion_actual_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/submit_completion_actuals_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_chat_history_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_json_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_number_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_search_results_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_string_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_chat_history_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_json_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_number_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result_data.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_search_results_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_string_result.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/test_suite_test_case.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/upload_document_error_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/upload_document_response.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/vellum_variable.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_event_error.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_chat_history_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_json_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_string_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_node_result_event.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_workflow_result_event.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_event.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_chat_history_input_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_json_input_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_string_input_request.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_chat_history.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_json.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_number.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_search_results.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_string.py +5 -2
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/README.md +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/api_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/datetime_utils.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/core/remove_none_from_dict.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/environment.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/bad_request_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/conflict_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/forbidden_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/internal_server_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/errors/not_found_error.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/py.typed +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/deployments/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/document_indexes/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/documents/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/model_versions/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/registered_prompts/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/sandboxes/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/resources/test_suites/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/__init__.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/block_type_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/chat_message_role.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/deployment_status.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_index_status.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_status.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/environment_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/finish_reason_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/generate_response.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/indexing_state_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/logical_operator.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/logprobs_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_rule_combinator.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_type_deprecated.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/model_version_read_status_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/node_input_variable_compiled_value.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/processing_failure_reason_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/processing_state_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/provider_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/scenario_input_type_enum.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/submit_workflow_execution_actual_request.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result_output.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result_output.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/vellum_variable_type.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_event_error_code.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_event_type.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_data.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_event_state.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_input_request.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data.py +0 -0
- {vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/workflow_stream_event.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vellum-ai
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.43
|
4
4
|
Summary:
|
5
5
|
Requires-Python: >=3.7,<4.0
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
12
12
|
Requires-Dist: httpx (>=0.21.2)
|
13
|
-
Requires-Dist: pydantic (>=1.9.2,<
|
13
|
+
Requires-Dist: pydantic (>=1.9.2,<3)
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
|
16
16
|
# Vellum Python Library
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "vellum-ai"
|
3
|
-
version = "v0.0.
|
3
|
+
version = "v0.0.43"
|
4
4
|
description = ""
|
5
5
|
readme = "README.md"
|
6
6
|
authors = []
|
@@ -11,7 +11,7 @@ packages = [
|
|
11
11
|
[tool.poetry.dependencies]
|
12
12
|
python = "^3.7"
|
13
13
|
httpx = ">=0.21.2"
|
14
|
-
pydantic = "
|
14
|
+
pydantic = ">= 1.9.2, < 3"
|
15
15
|
|
16
16
|
[tool.poetry.dev-dependencies]
|
17
17
|
mypy = "0.971"
|
@@ -6,7 +6,6 @@ import urllib.parse
|
|
6
6
|
from json.decoder import JSONDecodeError
|
7
7
|
|
8
8
|
import httpx
|
9
|
-
import pydantic
|
10
9
|
|
11
10
|
from .core.api_error import ApiError
|
12
11
|
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
@@ -36,6 +35,11 @@ from .types.workflow_execution_event_type import WorkflowExecutionEventType
|
|
36
35
|
from .types.workflow_request_input_request import WorkflowRequestInputRequest
|
37
36
|
from .types.workflow_stream_event import WorkflowStreamEvent
|
38
37
|
|
38
|
+
try:
|
39
|
+
import pydantic.v1 as pydantic # type: ignore
|
40
|
+
except ImportError:
|
41
|
+
import pydantic # type: ignore
|
42
|
+
|
39
43
|
# this is used as the default value for optional parameters
|
40
44
|
OMIT = typing.cast(typing.Any, ...)
|
41
45
|
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
17
17
|
"X-Fern-Language": "Python",
|
18
18
|
"X-Fern-SDK-Name": "vellum-ai",
|
19
|
-
"X-Fern-SDK-Version": "v0.0.
|
19
|
+
"X-Fern-SDK-Version": "v0.0.43",
|
20
20
|
}
|
21
21
|
headers["X_API_KEY"] = self.api_key
|
22
22
|
return headers
|
@@ -16,8 +16,10 @@ from pathlib import PurePath
|
|
16
16
|
from types import GeneratorType
|
17
17
|
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
try:
|
20
|
+
import pydantic.v1 as pydantic # type: ignore
|
21
|
+
except ImportError:
|
22
|
+
import pydantic # type: ignore
|
21
23
|
|
22
24
|
from .datetime_utils import serialize_datetime
|
23
25
|
|
@@ -34,7 +36,7 @@ def generate_encoders_by_class_tuples(
|
|
34
36
|
return encoders_by_class_tuples
|
35
37
|
|
36
38
|
|
37
|
-
encoders_by_class_tuples = generate_encoders_by_class_tuples(ENCODERS_BY_TYPE)
|
39
|
+
encoders_by_class_tuples = generate_encoders_by_class_tuples(pydantic.json.ENCODERS_BY_TYPE)
|
38
40
|
|
39
41
|
|
40
42
|
def jsonable_encoder(obj: Any, custom_encoder: Optional[Dict[Any, Callable[[Any], Any]]] = None) -> Any:
|
@@ -46,7 +48,7 @@ def jsonable_encoder(obj: Any, custom_encoder: Optional[Dict[Any, Callable[[Any]
|
|
46
48
|
for encoder_type, encoder_instance in custom_encoder.items():
|
47
49
|
if isinstance(obj, encoder_type):
|
48
50
|
return encoder_instance(obj)
|
49
|
-
if isinstance(obj, BaseModel):
|
51
|
+
if isinstance(obj, pydantic.BaseModel):
|
50
52
|
encoder = getattr(obj.__config__, "json_encoders", {})
|
51
53
|
if custom_encoder:
|
52
54
|
encoder.update(custom_encoder)
|
@@ -82,8 +84,8 @@ def jsonable_encoder(obj: Any, custom_encoder: Optional[Dict[Any, Callable[[Any]
|
|
82
84
|
encoded_list.append(jsonable_encoder(item, custom_encoder=custom_encoder))
|
83
85
|
return encoded_list
|
84
86
|
|
85
|
-
if type(obj) in ENCODERS_BY_TYPE:
|
86
|
-
return ENCODERS_BY_TYPE[type(obj)](obj)
|
87
|
+
if type(obj) in pydantic.json.ENCODERS_BY_TYPE:
|
88
|
+
return pydantic.json.ENCODERS_BY_TYPE[type(obj)](obj)
|
87
89
|
for encoder, classes_tuple in encoders_by_class_tuples.items():
|
88
90
|
if isinstance(obj, classes_tuple):
|
89
91
|
return encoder(obj)
|
@@ -3,12 +3,15 @@
|
|
3
3
|
import urllib.parse
|
4
4
|
from json.decoder import JSONDecodeError
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ...core.api_error import ApiError
|
9
7
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
10
8
|
from ...types.deployment_read import DeploymentRead
|
11
9
|
|
10
|
+
try:
|
11
|
+
import pydantic.v1 as pydantic # type: ignore
|
12
|
+
except ImportError:
|
13
|
+
import pydantic # type: ignore
|
14
|
+
|
12
15
|
|
13
16
|
class DeploymentsClient:
|
14
17
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
@@ -4,8 +4,6 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
@@ -13,6 +11,11 @@ from ...types.document_index_read import DocumentIndexRead
|
|
13
11
|
from ...types.document_index_status import DocumentIndexStatus
|
14
12
|
from ...types.environment_enum import EnvironmentEnum
|
15
13
|
|
14
|
+
try:
|
15
|
+
import pydantic.v1 as pydantic # type: ignore
|
16
|
+
except ImportError:
|
17
|
+
import pydantic # type: ignore
|
18
|
+
|
16
19
|
# this is used as the default value for optional parameters
|
17
20
|
OMIT = typing.cast(typing.Any, ...)
|
18
21
|
|
@@ -4,8 +4,6 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
@@ -18,6 +16,11 @@ from ...types.document_status import DocumentStatus
|
|
18
16
|
from ...types.paginated_slim_document_list import PaginatedSlimDocumentList
|
19
17
|
from ...types.upload_document_response import UploadDocumentResponse
|
20
18
|
|
19
|
+
try:
|
20
|
+
import pydantic.v1 as pydantic # type: ignore
|
21
|
+
except ImportError:
|
22
|
+
import pydantic # type: ignore
|
23
|
+
|
21
24
|
# this is used as the default value for optional parameters
|
22
25
|
OMIT = typing.cast(typing.Any, ...)
|
23
26
|
|
@@ -4,14 +4,17 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
12
10
|
from ...types.model_version_compile_prompt_response import ModelVersionCompilePromptResponse
|
13
11
|
from ...types.model_version_read import ModelVersionRead
|
14
12
|
|
13
|
+
try:
|
14
|
+
import pydantic.v1 as pydantic # type: ignore
|
15
|
+
except ImportError:
|
16
|
+
import pydantic # type: ignore
|
17
|
+
|
15
18
|
# this is used as the default value for optional parameters
|
16
19
|
OMIT = typing.cast(typing.Any, ...)
|
17
20
|
|
@@ -4,8 +4,6 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
@@ -16,6 +14,11 @@ from ...types.register_prompt_model_parameters_request import RegisterPromptMode
|
|
16
14
|
from ...types.register_prompt_prompt_info_request import RegisterPromptPromptInfoRequest
|
17
15
|
from ...types.register_prompt_response import RegisterPromptResponse
|
18
16
|
|
17
|
+
try:
|
18
|
+
import pydantic.v1 as pydantic # type: ignore
|
19
|
+
except ImportError:
|
20
|
+
import pydantic # type: ignore
|
21
|
+
|
19
22
|
# this is used as the default value for optional parameters
|
20
23
|
OMIT = typing.cast(typing.Any, ...)
|
21
24
|
|
@@ -4,8 +4,6 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
@@ -13,6 +11,11 @@ from ...types.sandbox_metric_input_params_request import SandboxMetricInputParam
|
|
13
11
|
from ...types.sandbox_scenario import SandboxScenario
|
14
12
|
from ...types.scenario_input_request import ScenarioInputRequest
|
15
13
|
|
14
|
+
try:
|
15
|
+
import pydantic.v1 as pydantic # type: ignore
|
16
|
+
except ImportError:
|
17
|
+
import pydantic # type: ignore
|
18
|
+
|
16
19
|
# this is used as the default value for optional parameters
|
17
20
|
OMIT = typing.cast(typing.Any, ...)
|
18
21
|
|
@@ -4,14 +4,17 @@ import typing
|
|
4
4
|
import urllib.parse
|
5
5
|
from json.decoder import JSONDecodeError
|
6
6
|
|
7
|
-
import pydantic
|
8
|
-
|
9
7
|
from ...core.api_error import ApiError
|
10
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
11
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
12
10
|
from ...types.evaluation_params_request import EvaluationParamsRequest
|
13
11
|
from ...types.test_suite_test_case import TestSuiteTestCase
|
14
12
|
|
13
|
+
try:
|
14
|
+
import pydantic.v1 as pydantic # type: ignore
|
15
|
+
except ImportError:
|
16
|
+
import pydantic # type: ignore
|
17
|
+
|
15
18
|
# this is used as the default value for optional parameters
|
16
19
|
OMIT = typing.cast(typing.Any, ...)
|
17
20
|
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .api_node_result_data import ApiNodeResultData
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class ApiNodeResult(pydantic.BaseModel):
|
13
16
|
data: ApiNodeResultData
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class ApiNodeResultData(pydantic.BaseModel):
|
12
15
|
text_output_id: str
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .chat_message_role import ChatMessageRole
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class ChatMessage(pydantic.BaseModel):
|
13
16
|
text: str
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .chat_message_role import ChatMessageRole
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class ChatMessageRequest(pydantic.BaseModel):
|
13
16
|
text: str
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .conditional_node_result_data import ConditionalNodeResultData
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class ConditionalNodeResult(pydantic.BaseModel):
|
13
16
|
data: ConditionalNodeResultData
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class ConditionalNodeResultData(pydantic.BaseModel):
|
12
15
|
source_handle_id: typing.Optional[str]
|
@@ -3,14 +3,17 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .deployment_status import DeploymentStatus
|
10
8
|
from .environment_enum import EnvironmentEnum
|
11
9
|
from .model_type_deprecated import ModelTypeDeprecated
|
12
10
|
from .vellum_variable import VellumVariable
|
13
11
|
|
12
|
+
try:
|
13
|
+
import pydantic.v1 as pydantic # type: ignore
|
14
|
+
except ImportError:
|
15
|
+
import pydantic # type: ignore
|
16
|
+
|
14
17
|
|
15
18
|
class DeploymentRead(pydantic.BaseModel):
|
16
19
|
id: str
|
{vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/document_document_to_document_index.py
RENAMED
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .indexing_state_enum import IndexingStateEnum
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class DocumentDocumentToDocumentIndex(pydantic.BaseModel):
|
13
16
|
id: str = pydantic.Field(description="Vellum-generated ID that uniquely identifies this link.")
|
@@ -3,12 +3,15 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .document_index_status import DocumentIndexStatus
|
10
8
|
from .environment_enum import EnvironmentEnum
|
11
9
|
|
10
|
+
try:
|
11
|
+
import pydantic.v1 as pydantic # type: ignore
|
12
|
+
except ImportError:
|
13
|
+
import pydantic # type: ignore
|
14
|
+
|
12
15
|
|
13
16
|
class DocumentIndexRead(pydantic.BaseModel):
|
14
17
|
id: str
|
@@ -3,13 +3,16 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
10
8
|
from .document_status import DocumentStatus
|
11
9
|
from .processing_state_enum import ProcessingStateEnum
|
12
10
|
|
11
|
+
try:
|
12
|
+
import pydantic.v1 as pydantic # type: ignore
|
13
|
+
except ImportError:
|
14
|
+
import pydantic # type: ignore
|
15
|
+
|
13
16
|
|
14
17
|
class DocumentRead(pydantic.BaseModel):
|
15
18
|
id: str
|
@@ -3,13 +3,16 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .finish_reason_enum import FinishReasonEnum
|
10
8
|
from .normalized_log_probs import NormalizedLogProbs
|
11
9
|
from .vellum_variable_type import VellumVariableType
|
12
10
|
|
11
|
+
try:
|
12
|
+
import pydantic.v1 as pydantic # type: ignore
|
13
|
+
except ImportError:
|
14
|
+
import pydantic # type: ignore
|
15
|
+
|
13
16
|
|
14
17
|
class EnrichedNormalizedCompletion(pydantic.BaseModel):
|
15
18
|
id: str = pydantic.Field(description="The Vellum-generated ID of the completion.")
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class EvaluationParams(pydantic.BaseModel):
|
12
15
|
target: typing.Optional[str] = pydantic.Field(
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class EvaluationParamsRequest(pydantic.BaseModel):
|
12
15
|
target: typing.Optional[str] = pydantic.Field(
|
{vellum_ai-0.0.42 → vellum_ai-0.0.43}/src/vellum/types/execute_workflow_stream_error_response.py
RENAMED
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class ExecuteWorkflowStreamErrorResponse(pydantic.BaseModel):
|
12
15
|
detail: str = pydantic.Field(description="Details about why the request failed.")
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class GenerateErrorResponse(pydantic.BaseModel):
|
12
15
|
detail: str = pydantic.Field(description="Details about why the request failed.")
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .logprobs_enum import LogprobsEnum
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class GenerateOptionsRequest(pydantic.BaseModel):
|
13
16
|
logprobs: typing.Optional[LogprobsEnum] = pydantic.Field(
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .chat_message_request import ChatMessageRequest
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class GenerateRequest(pydantic.BaseModel):
|
13
16
|
input_values: typing.Dict[str, typing.Any] = pydantic.Field(
|
@@ -3,12 +3,15 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .generate_result_data import GenerateResultData
|
10
8
|
from .generate_result_error import GenerateResultError
|
11
9
|
|
10
|
+
try:
|
11
|
+
import pydantic.v1 as pydantic # type: ignore
|
12
|
+
except ImportError:
|
13
|
+
import pydantic # type: ignore
|
14
|
+
|
12
15
|
|
13
16
|
class GenerateResult(pydantic.BaseModel):
|
14
17
|
data: typing.Optional[GenerateResultData] = pydantic.Field(
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .enriched_normalized_completion import EnrichedNormalizedCompletion
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class GenerateResultData(pydantic.BaseModel):
|
13
16
|
completions: typing.List[EnrichedNormalizedCompletion] = pydantic.Field(
|
@@ -3,10 +3,13 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
10
13
|
|
11
14
|
class GenerateResultError(pydantic.BaseModel):
|
12
15
|
message: str = pydantic.Field(description="The error message returned by the LLM provider.")
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .generate_stream_result import GenerateStreamResult
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class GenerateStreamResponse(pydantic.BaseModel):
|
13
16
|
delta: GenerateStreamResult
|
@@ -3,12 +3,15 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .generate_result_error import GenerateResultError
|
10
8
|
from .generate_stream_result_data import GenerateStreamResultData
|
11
9
|
|
10
|
+
try:
|
11
|
+
import pydantic.v1 as pydantic # type: ignore
|
12
|
+
except ImportError:
|
13
|
+
import pydantic # type: ignore
|
14
|
+
|
12
15
|
|
13
16
|
class GenerateStreamResult(pydantic.BaseModel):
|
14
17
|
request_index: int
|
@@ -3,11 +3,14 @@
|
|
3
3
|
import datetime as dt
|
4
4
|
import typing
|
5
5
|
|
6
|
-
import pydantic
|
7
|
-
|
8
6
|
from ..core.datetime_utils import serialize_datetime
|
9
7
|
from .enriched_normalized_completion import EnrichedNormalizedCompletion
|
10
8
|
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
11
14
|
|
12
15
|
class GenerateStreamResultData(pydantic.BaseModel):
|
13
16
|
completion_index: int
|