vellum-ai 0.0.41__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.41 → vellum_ai-0.0.43}/PKG-INFO +2 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/pyproject.toml +2 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/__init__.py +22 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/client.py +9 -5
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/client_wrapper.py +1 -1
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/jsonable_encoder.py +8 -6
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/deployments/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/document_indexes/client.py +47 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/documents/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/model_versions/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/registered_prompts/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/sandboxes/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/test_suites/client.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/__init__.py +22 -2
- vellum_ai-0.0.43/src/vellum/types/api_node_result.py +29 -0
- vellum_ai-0.0.43/src/vellum/types/api_node_result_data.py +34 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/chat_message.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/chat_message_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/conditional_node_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/conditional_node_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/deployment_read.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/document_document_to_document_index.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/document_index_read.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/document_read.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/enriched_normalized_completion.py +7 -4
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/evaluation_params.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/evaluation_params_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/execute_workflow_stream_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_options_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_result_error.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_stream_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_config_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_rule_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_build_config.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_compile_prompt_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_compiled_prompt.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_exec_config.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_exec_config_parameters.py +7 -4
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_read.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_sandbox_snapshot.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_chat_history_value.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_json_value.py +5 -2
- vellum_ai-0.0.43/src/vellum/types/node_input_compiled_number_value.py +30 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_search_results_value.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/node_input_compiled_string_value.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/node_input_variable_compiled_value.py +11 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/normalized_log_probs.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/normalized_token_log_probs.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/paginated_slim_document_list.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_node_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_node_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_data_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_properties.py +7 -4
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_properties_request.py +7 -4
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/prompt_template_block_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_model_parameters_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_prompt.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_prompt_info_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/register_prompt_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_deployment.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_input_variable_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_model_version.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_sandbox.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/registered_prompt_sandbox_snapshot.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/sandbox_metric_input_params.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/sandbox_metric_input_params_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/sandbox_scenario.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/scenario_input.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/scenario_input_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_filters_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_node_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_node_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_request_options_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_result_document.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_result_merging_request.py +6 -3
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/search_weights_request.py +9 -4
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/slim_document.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/submit_completion_actual_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/submit_completion_actuals_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_chat_history_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_json_result.py +5 -2
- vellum_ai-0.0.43/src/vellum/types/templating_node_number_result.py +29 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_result_output.py +11 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_search_results_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/templating_node_string_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_chat_history_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_json_result.py +5 -2
- vellum_ai-0.0.43/src/vellum/types/terminal_node_number_result.py +30 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result_data.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_result_output.py +11 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_search_results_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/terminal_node_string_result.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/test_suite_test_case.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/upload_document_error_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/upload_document_response.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/vellum_variable.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/vellum_variable_type.py +8 -3
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_event_error.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_chat_history_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_json_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_actual_string_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_node_result_event.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_workflow_result_event.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_data.py +11 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_event.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_chat_history_input_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_json_input_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_string_input_request.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data.py +11 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_chat_history.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_json.py +5 -2
- vellum_ai-0.0.43/src/vellum/types/workflow_result_event_output_data_number.py +36 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_search_results.py +5 -2
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_result_event_output_data_string.py +5 -2
- vellum_ai-0.0.41/src/vellum/types/content_type.py +0 -22
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/README.md +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/api_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/datetime_utils.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/core/remove_none_from_dict.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/environment.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/bad_request_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/conflict_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/forbidden_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/internal_server_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/errors/not_found_error.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/py.typed +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/deployments/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/document_indexes/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/documents/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/model_versions/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/registered_prompts/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/sandboxes/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/resources/test_suites/__init__.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/block_type_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/chat_message_role.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/deployment_status.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/document_index_status.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/document_status.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/environment_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/finish_reason_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/generate_response.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/indexing_state_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/logical_operator.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/logprobs_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/metadata_filter_rule_combinator.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_type_deprecated.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/model_version_read_status_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/processing_failure_reason_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/processing_state_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/provider_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/scenario_input_type_enum.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/submit_workflow_execution_actual_request.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_event_error_code.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_execution_event_type.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_node_result_event_state.py +0 -0
- {vellum_ai-0.0.41 → vellum_ai-0.0.43}/src/vellum/types/workflow_request_input_request.py +0 -0
- {vellum_ai-0.0.41 → 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"
|
@@ -1,13 +1,14 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
from .types import (
|
4
|
+
ApiNodeResult,
|
5
|
+
ApiNodeResultData,
|
4
6
|
BlockTypeEnum,
|
5
7
|
ChatMessage,
|
6
8
|
ChatMessageRequest,
|
7
9
|
ChatMessageRole,
|
8
10
|
ConditionalNodeResult,
|
9
11
|
ConditionalNodeResultData,
|
10
|
-
ContentType,
|
11
12
|
DeploymentRead,
|
12
13
|
DeploymentStatus,
|
13
14
|
DocumentDocumentToDocumentIndex,
|
@@ -48,11 +49,13 @@ from .types import (
|
|
48
49
|
ModelVersionSandboxSnapshot,
|
49
50
|
NodeInputCompiledChatHistoryValue,
|
50
51
|
NodeInputCompiledJsonValue,
|
52
|
+
NodeInputCompiledNumberValue,
|
51
53
|
NodeInputCompiledSearchResultsValue,
|
52
54
|
NodeInputCompiledStringValue,
|
53
55
|
NodeInputVariableCompiledValue,
|
54
56
|
NodeInputVariableCompiledValue_ChatHistory,
|
55
57
|
NodeInputVariableCompiledValue_Json,
|
58
|
+
NodeInputVariableCompiledValue_Number,
|
56
59
|
NodeInputVariableCompiledValue_SearchResults,
|
57
60
|
NodeInputVariableCompiledValue_String,
|
58
61
|
NormalizedLogProbs,
|
@@ -104,22 +107,26 @@ from .types import (
|
|
104
107
|
SubmitWorkflowExecutionActualRequest_String,
|
105
108
|
TemplatingNodeChatHistoryResult,
|
106
109
|
TemplatingNodeJsonResult,
|
110
|
+
TemplatingNodeNumberResult,
|
107
111
|
TemplatingNodeResult,
|
108
112
|
TemplatingNodeResultData,
|
109
113
|
TemplatingNodeResultOutput,
|
110
114
|
TemplatingNodeResultOutput_ChatHistory,
|
111
115
|
TemplatingNodeResultOutput_Json,
|
116
|
+
TemplatingNodeResultOutput_Number,
|
112
117
|
TemplatingNodeResultOutput_SearchResults,
|
113
118
|
TemplatingNodeResultOutput_String,
|
114
119
|
TemplatingNodeSearchResultsResult,
|
115
120
|
TemplatingNodeStringResult,
|
116
121
|
TerminalNodeChatHistoryResult,
|
117
122
|
TerminalNodeJsonResult,
|
123
|
+
TerminalNodeNumberResult,
|
118
124
|
TerminalNodeResult,
|
119
125
|
TerminalNodeResultData,
|
120
126
|
TerminalNodeResultOutput,
|
121
127
|
TerminalNodeResultOutput_ChatHistory,
|
122
128
|
TerminalNodeResultOutput_Json,
|
129
|
+
TerminalNodeResultOutput_Number,
|
123
130
|
TerminalNodeResultOutput_SearchResults,
|
124
131
|
TerminalNodeResultOutput_String,
|
125
132
|
TerminalNodeSearchResultsResult,
|
@@ -138,6 +145,7 @@ from .types import (
|
|
138
145
|
WorkflowExecutionNodeResultEvent,
|
139
146
|
WorkflowExecutionWorkflowResultEvent,
|
140
147
|
WorkflowNodeResultData,
|
148
|
+
WorkflowNodeResultData_Api,
|
141
149
|
WorkflowNodeResultData_Conditional,
|
142
150
|
WorkflowNodeResultData_Prompt,
|
143
151
|
WorkflowNodeResultData_Search,
|
@@ -156,10 +164,12 @@ from .types import (
|
|
156
164
|
WorkflowResultEventOutputData,
|
157
165
|
WorkflowResultEventOutputDataChatHistory,
|
158
166
|
WorkflowResultEventOutputDataJson,
|
167
|
+
WorkflowResultEventOutputDataNumber,
|
159
168
|
WorkflowResultEventOutputDataSearchResults,
|
160
169
|
WorkflowResultEventOutputDataString,
|
161
170
|
WorkflowResultEventOutputData_ChatHistory,
|
162
171
|
WorkflowResultEventOutputData_Json,
|
172
|
+
WorkflowResultEventOutputData_Number,
|
163
173
|
WorkflowResultEventOutputData_SearchResults,
|
164
174
|
WorkflowResultEventOutputData_String,
|
165
175
|
WorkflowStreamEvent,
|
@@ -179,6 +189,8 @@ from .resources import (
|
|
179
189
|
from .environment import VellumEnvironment
|
180
190
|
|
181
191
|
__all__ = [
|
192
|
+
"ApiNodeResult",
|
193
|
+
"ApiNodeResultData",
|
182
194
|
"BadRequestError",
|
183
195
|
"BlockTypeEnum",
|
184
196
|
"ChatMessage",
|
@@ -187,7 +199,6 @@ __all__ = [
|
|
187
199
|
"ConditionalNodeResult",
|
188
200
|
"ConditionalNodeResultData",
|
189
201
|
"ConflictError",
|
190
|
-
"ContentType",
|
191
202
|
"DeploymentRead",
|
192
203
|
"DeploymentStatus",
|
193
204
|
"DocumentDocumentToDocumentIndex",
|
@@ -230,11 +241,13 @@ __all__ = [
|
|
230
241
|
"ModelVersionSandboxSnapshot",
|
231
242
|
"NodeInputCompiledChatHistoryValue",
|
232
243
|
"NodeInputCompiledJsonValue",
|
244
|
+
"NodeInputCompiledNumberValue",
|
233
245
|
"NodeInputCompiledSearchResultsValue",
|
234
246
|
"NodeInputCompiledStringValue",
|
235
247
|
"NodeInputVariableCompiledValue",
|
236
248
|
"NodeInputVariableCompiledValue_ChatHistory",
|
237
249
|
"NodeInputVariableCompiledValue_Json",
|
250
|
+
"NodeInputVariableCompiledValue_Number",
|
238
251
|
"NodeInputVariableCompiledValue_SearchResults",
|
239
252
|
"NodeInputVariableCompiledValue_String",
|
240
253
|
"NormalizedLogProbs",
|
@@ -287,22 +300,26 @@ __all__ = [
|
|
287
300
|
"SubmitWorkflowExecutionActualRequest_String",
|
288
301
|
"TemplatingNodeChatHistoryResult",
|
289
302
|
"TemplatingNodeJsonResult",
|
303
|
+
"TemplatingNodeNumberResult",
|
290
304
|
"TemplatingNodeResult",
|
291
305
|
"TemplatingNodeResultData",
|
292
306
|
"TemplatingNodeResultOutput",
|
293
307
|
"TemplatingNodeResultOutput_ChatHistory",
|
294
308
|
"TemplatingNodeResultOutput_Json",
|
309
|
+
"TemplatingNodeResultOutput_Number",
|
295
310
|
"TemplatingNodeResultOutput_SearchResults",
|
296
311
|
"TemplatingNodeResultOutput_String",
|
297
312
|
"TemplatingNodeSearchResultsResult",
|
298
313
|
"TemplatingNodeStringResult",
|
299
314
|
"TerminalNodeChatHistoryResult",
|
300
315
|
"TerminalNodeJsonResult",
|
316
|
+
"TerminalNodeNumberResult",
|
301
317
|
"TerminalNodeResult",
|
302
318
|
"TerminalNodeResultData",
|
303
319
|
"TerminalNodeResultOutput",
|
304
320
|
"TerminalNodeResultOutput_ChatHistory",
|
305
321
|
"TerminalNodeResultOutput_Json",
|
322
|
+
"TerminalNodeResultOutput_Number",
|
306
323
|
"TerminalNodeResultOutput_SearchResults",
|
307
324
|
"TerminalNodeResultOutput_String",
|
308
325
|
"TerminalNodeSearchResultsResult",
|
@@ -322,6 +339,7 @@ __all__ = [
|
|
322
339
|
"WorkflowExecutionNodeResultEvent",
|
323
340
|
"WorkflowExecutionWorkflowResultEvent",
|
324
341
|
"WorkflowNodeResultData",
|
342
|
+
"WorkflowNodeResultData_Api",
|
325
343
|
"WorkflowNodeResultData_Conditional",
|
326
344
|
"WorkflowNodeResultData_Prompt",
|
327
345
|
"WorkflowNodeResultData_Search",
|
@@ -340,10 +358,12 @@ __all__ = [
|
|
340
358
|
"WorkflowResultEventOutputData",
|
341
359
|
"WorkflowResultEventOutputDataChatHistory",
|
342
360
|
"WorkflowResultEventOutputDataJson",
|
361
|
+
"WorkflowResultEventOutputDataNumber",
|
343
362
|
"WorkflowResultEventOutputDataSearchResults",
|
344
363
|
"WorkflowResultEventOutputDataString",
|
345
364
|
"WorkflowResultEventOutputData_ChatHistory",
|
346
365
|
"WorkflowResultEventOutputData_Json",
|
366
|
+
"WorkflowResultEventOutputData_Number",
|
347
367
|
"WorkflowResultEventOutputData_SearchResults",
|
348
368
|
"WorkflowResultEventOutputData_String",
|
349
369
|
"WorkflowStreamEvent",
|
@@ -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
|
|
@@ -140,7 +144,7 @@ class Vellum:
|
|
140
144
|
|
141
145
|
- deployment_name: typing.Optional[str]. The name of the deployment. Must provide either this or deployment_id.
|
142
146
|
|
143
|
-
- requests: typing.List[GenerateRequest]. The generation
|
147
|
+
- requests: typing.List[GenerateRequest]. The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1.
|
144
148
|
|
145
149
|
- options: typing.Optional[GenerateOptionsRequest]. Additional configuration that can be used to control what's included in the response.
|
146
150
|
"""
|
@@ -192,7 +196,7 @@ class Vellum:
|
|
192
196
|
|
193
197
|
- deployment_name: typing.Optional[str]. The name of the deployment. Must provide either this or deployment_id.
|
194
198
|
|
195
|
-
- requests: typing.List[GenerateRequest]. The generation
|
199
|
+
- requests: typing.List[GenerateRequest]. The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1.
|
196
200
|
|
197
201
|
- options: typing.Optional[GenerateOptionsRequest]. Additional configuration that can be used to control what's included in the response.
|
198
202
|
"""
|
@@ -468,7 +472,7 @@ class AsyncVellum:
|
|
468
472
|
|
469
473
|
- deployment_name: typing.Optional[str]. The name of the deployment. Must provide either this or deployment_id.
|
470
474
|
|
471
|
-
- requests: typing.List[GenerateRequest]. The generation
|
475
|
+
- requests: typing.List[GenerateRequest]. The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1.
|
472
476
|
|
473
477
|
- options: typing.Optional[GenerateOptionsRequest]. Additional configuration that can be used to control what's included in the response.
|
474
478
|
"""
|
@@ -520,7 +524,7 @@ class AsyncVellum:
|
|
520
524
|
|
521
525
|
- deployment_name: typing.Optional[str]. The name of the deployment. Must provide either this or deployment_id.
|
522
526
|
|
523
|
-
- requests: typing.List[GenerateRequest]. The generation
|
527
|
+
- requests: typing.List[GenerateRequest]. The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1.
|
524
528
|
|
525
529
|
- options: typing.Optional[GenerateOptionsRequest]. Additional configuration that can be used to control what's included in the response.
|
526
530
|
"""
|
@@ -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
|
|
@@ -74,6 +77,27 @@ class DocumentIndexesClient:
|
|
74
77
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
75
78
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
76
79
|
|
80
|
+
def retrieve(self, id: str) -> DocumentIndexRead:
|
81
|
+
"""
|
82
|
+
Used to retrieve a Document Index given its ID or name.
|
83
|
+
|
84
|
+
Parameters:
|
85
|
+
- id: str. Either the Document Index's ID or its unique name
|
86
|
+
"""
|
87
|
+
_response = self._client_wrapper.httpx_client.request(
|
88
|
+
"GET",
|
89
|
+
urllib.parse.urljoin(f"{self._client_wrapper.get_environment().default}/", f"v1/document-indexes/{id}"),
|
90
|
+
headers=self._client_wrapper.get_headers(),
|
91
|
+
timeout=None,
|
92
|
+
)
|
93
|
+
if 200 <= _response.status_code < 300:
|
94
|
+
return pydantic.parse_obj_as(DocumentIndexRead, _response.json()) # type: ignore
|
95
|
+
try:
|
96
|
+
_response_json = _response.json()
|
97
|
+
except JSONDecodeError:
|
98
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
99
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
100
|
+
|
77
101
|
|
78
102
|
class AsyncDocumentIndexesClient:
|
79
103
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
@@ -131,3 +155,24 @@ class AsyncDocumentIndexesClient:
|
|
131
155
|
except JSONDecodeError:
|
132
156
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
133
157
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
158
|
+
|
159
|
+
async def retrieve(self, id: str) -> DocumentIndexRead:
|
160
|
+
"""
|
161
|
+
Used to retrieve a Document Index given its ID or name.
|
162
|
+
|
163
|
+
Parameters:
|
164
|
+
- id: str. Either the Document Index's ID or its unique name
|
165
|
+
"""
|
166
|
+
_response = await self._client_wrapper.httpx_client.request(
|
167
|
+
"GET",
|
168
|
+
urllib.parse.urljoin(f"{self._client_wrapper.get_environment().default}/", f"v1/document-indexes/{id}"),
|
169
|
+
headers=self._client_wrapper.get_headers(),
|
170
|
+
timeout=None,
|
171
|
+
)
|
172
|
+
if 200 <= _response.status_code < 300:
|
173
|
+
return pydantic.parse_obj_as(DocumentIndexRead, _response.json()) # type: ignore
|
174
|
+
try:
|
175
|
+
_response_json = _response.json()
|
176
|
+
except JSONDecodeError:
|
177
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
178
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
@@ -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
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from .api_node_result import ApiNodeResult
|
4
|
+
from .api_node_result_data import ApiNodeResultData
|
3
5
|
from .block_type_enum import BlockTypeEnum
|
4
6
|
from .chat_message import ChatMessage
|
5
7
|
from .chat_message_request import ChatMessageRequest
|
6
8
|
from .chat_message_role import ChatMessageRole
|
7
9
|
from .conditional_node_result import ConditionalNodeResult
|
8
10
|
from .conditional_node_result_data import ConditionalNodeResultData
|
9
|
-
from .content_type import ContentType
|
10
11
|
from .deployment_read import DeploymentRead
|
11
12
|
from .deployment_status import DeploymentStatus
|
12
13
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
@@ -47,12 +48,14 @@ from .model_version_read_status_enum import ModelVersionReadStatusEnum
|
|
47
48
|
from .model_version_sandbox_snapshot import ModelVersionSandboxSnapshot
|
48
49
|
from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
|
49
50
|
from .node_input_compiled_json_value import NodeInputCompiledJsonValue
|
51
|
+
from .node_input_compiled_number_value import NodeInputCompiledNumberValue
|
50
52
|
from .node_input_compiled_search_results_value import NodeInputCompiledSearchResultsValue
|
51
53
|
from .node_input_compiled_string_value import NodeInputCompiledStringValue
|
52
54
|
from .node_input_variable_compiled_value import (
|
53
55
|
NodeInputVariableCompiledValue,
|
54
56
|
NodeInputVariableCompiledValue_ChatHistory,
|
55
57
|
NodeInputVariableCompiledValue_Json,
|
58
|
+
NodeInputVariableCompiledValue_Number,
|
56
59
|
NodeInputVariableCompiledValue_SearchResults,
|
57
60
|
NodeInputVariableCompiledValue_String,
|
58
61
|
)
|
@@ -107,12 +110,14 @@ from .submit_workflow_execution_actual_request import (
|
|
107
110
|
)
|
108
111
|
from .templating_node_chat_history_result import TemplatingNodeChatHistoryResult
|
109
112
|
from .templating_node_json_result import TemplatingNodeJsonResult
|
113
|
+
from .templating_node_number_result import TemplatingNodeNumberResult
|
110
114
|
from .templating_node_result import TemplatingNodeResult
|
111
115
|
from .templating_node_result_data import TemplatingNodeResultData
|
112
116
|
from .templating_node_result_output import (
|
113
117
|
TemplatingNodeResultOutput,
|
114
118
|
TemplatingNodeResultOutput_ChatHistory,
|
115
119
|
TemplatingNodeResultOutput_Json,
|
120
|
+
TemplatingNodeResultOutput_Number,
|
116
121
|
TemplatingNodeResultOutput_SearchResults,
|
117
122
|
TemplatingNodeResultOutput_String,
|
118
123
|
)
|
@@ -120,12 +125,14 @@ from .templating_node_search_results_result import TemplatingNodeSearchResultsRe
|
|
120
125
|
from .templating_node_string_result import TemplatingNodeStringResult
|
121
126
|
from .terminal_node_chat_history_result import TerminalNodeChatHistoryResult
|
122
127
|
from .terminal_node_json_result import TerminalNodeJsonResult
|
128
|
+
from .terminal_node_number_result import TerminalNodeNumberResult
|
123
129
|
from .terminal_node_result import TerminalNodeResult
|
124
130
|
from .terminal_node_result_data import TerminalNodeResultData
|
125
131
|
from .terminal_node_result_output import (
|
126
132
|
TerminalNodeResultOutput,
|
127
133
|
TerminalNodeResultOutput_ChatHistory,
|
128
134
|
TerminalNodeResultOutput_Json,
|
135
|
+
TerminalNodeResultOutput_Number,
|
129
136
|
TerminalNodeResultOutput_SearchResults,
|
130
137
|
TerminalNodeResultOutput_String,
|
131
138
|
)
|
@@ -146,6 +153,7 @@ from .workflow_execution_node_result_event import WorkflowExecutionNodeResultEve
|
|
146
153
|
from .workflow_execution_workflow_result_event import WorkflowExecutionWorkflowResultEvent
|
147
154
|
from .workflow_node_result_data import (
|
148
155
|
WorkflowNodeResultData,
|
156
|
+
WorkflowNodeResultData_Api,
|
149
157
|
WorkflowNodeResultData_Conditional,
|
150
158
|
WorkflowNodeResultData_Prompt,
|
151
159
|
WorkflowNodeResultData_Search,
|
@@ -168,23 +176,26 @@ from .workflow_result_event_output_data import (
|
|
168
176
|
WorkflowResultEventOutputData,
|
169
177
|
WorkflowResultEventOutputData_ChatHistory,
|
170
178
|
WorkflowResultEventOutputData_Json,
|
179
|
+
WorkflowResultEventOutputData_Number,
|
171
180
|
WorkflowResultEventOutputData_SearchResults,
|
172
181
|
WorkflowResultEventOutputData_String,
|
173
182
|
)
|
174
183
|
from .workflow_result_event_output_data_chat_history import WorkflowResultEventOutputDataChatHistory
|
175
184
|
from .workflow_result_event_output_data_json import WorkflowResultEventOutputDataJson
|
185
|
+
from .workflow_result_event_output_data_number import WorkflowResultEventOutputDataNumber
|
176
186
|
from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
|
177
187
|
from .workflow_result_event_output_data_string import WorkflowResultEventOutputDataString
|
178
188
|
from .workflow_stream_event import WorkflowStreamEvent, WorkflowStreamEvent_Node, WorkflowStreamEvent_Workflow
|
179
189
|
|
180
190
|
__all__ = [
|
191
|
+
"ApiNodeResult",
|
192
|
+
"ApiNodeResultData",
|
181
193
|
"BlockTypeEnum",
|
182
194
|
"ChatMessage",
|
183
195
|
"ChatMessageRequest",
|
184
196
|
"ChatMessageRole",
|
185
197
|
"ConditionalNodeResult",
|
186
198
|
"ConditionalNodeResultData",
|
187
|
-
"ContentType",
|
188
199
|
"DeploymentRead",
|
189
200
|
"DeploymentStatus",
|
190
201
|
"DocumentDocumentToDocumentIndex",
|
@@ -225,11 +236,13 @@ __all__ = [
|
|
225
236
|
"ModelVersionSandboxSnapshot",
|
226
237
|
"NodeInputCompiledChatHistoryValue",
|
227
238
|
"NodeInputCompiledJsonValue",
|
239
|
+
"NodeInputCompiledNumberValue",
|
228
240
|
"NodeInputCompiledSearchResultsValue",
|
229
241
|
"NodeInputCompiledStringValue",
|
230
242
|
"NodeInputVariableCompiledValue",
|
231
243
|
"NodeInputVariableCompiledValue_ChatHistory",
|
232
244
|
"NodeInputVariableCompiledValue_Json",
|
245
|
+
"NodeInputVariableCompiledValue_Number",
|
233
246
|
"NodeInputVariableCompiledValue_SearchResults",
|
234
247
|
"NodeInputVariableCompiledValue_String",
|
235
248
|
"NormalizedLogProbs",
|
@@ -281,22 +294,26 @@ __all__ = [
|
|
281
294
|
"SubmitWorkflowExecutionActualRequest_String",
|
282
295
|
"TemplatingNodeChatHistoryResult",
|
283
296
|
"TemplatingNodeJsonResult",
|
297
|
+
"TemplatingNodeNumberResult",
|
284
298
|
"TemplatingNodeResult",
|
285
299
|
"TemplatingNodeResultData",
|
286
300
|
"TemplatingNodeResultOutput",
|
287
301
|
"TemplatingNodeResultOutput_ChatHistory",
|
288
302
|
"TemplatingNodeResultOutput_Json",
|
303
|
+
"TemplatingNodeResultOutput_Number",
|
289
304
|
"TemplatingNodeResultOutput_SearchResults",
|
290
305
|
"TemplatingNodeResultOutput_String",
|
291
306
|
"TemplatingNodeSearchResultsResult",
|
292
307
|
"TemplatingNodeStringResult",
|
293
308
|
"TerminalNodeChatHistoryResult",
|
294
309
|
"TerminalNodeJsonResult",
|
310
|
+
"TerminalNodeNumberResult",
|
295
311
|
"TerminalNodeResult",
|
296
312
|
"TerminalNodeResultData",
|
297
313
|
"TerminalNodeResultOutput",
|
298
314
|
"TerminalNodeResultOutput_ChatHistory",
|
299
315
|
"TerminalNodeResultOutput_Json",
|
316
|
+
"TerminalNodeResultOutput_Number",
|
300
317
|
"TerminalNodeResultOutput_SearchResults",
|
301
318
|
"TerminalNodeResultOutput_String",
|
302
319
|
"TerminalNodeSearchResultsResult",
|
@@ -315,6 +332,7 @@ __all__ = [
|
|
315
332
|
"WorkflowExecutionNodeResultEvent",
|
316
333
|
"WorkflowExecutionWorkflowResultEvent",
|
317
334
|
"WorkflowNodeResultData",
|
335
|
+
"WorkflowNodeResultData_Api",
|
318
336
|
"WorkflowNodeResultData_Conditional",
|
319
337
|
"WorkflowNodeResultData_Prompt",
|
320
338
|
"WorkflowNodeResultData_Search",
|
@@ -333,10 +351,12 @@ __all__ = [
|
|
333
351
|
"WorkflowResultEventOutputData",
|
334
352
|
"WorkflowResultEventOutputDataChatHistory",
|
335
353
|
"WorkflowResultEventOutputDataJson",
|
354
|
+
"WorkflowResultEventOutputDataNumber",
|
336
355
|
"WorkflowResultEventOutputDataSearchResults",
|
337
356
|
"WorkflowResultEventOutputDataString",
|
338
357
|
"WorkflowResultEventOutputData_ChatHistory",
|
339
358
|
"WorkflowResultEventOutputData_Json",
|
359
|
+
"WorkflowResultEventOutputData_Number",
|
340
360
|
"WorkflowResultEventOutputData_SearchResults",
|
341
361
|
"WorkflowResultEventOutputData_String",
|
342
362
|
"WorkflowStreamEvent",
|