vellum-ai 0.3.23__py3-none-any.whl → 0.5.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +37 -60
- vellum/client.py +139 -137
- vellum/core/__init__.py +2 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/core/jsonable_encoder.py +5 -9
- vellum/core/pydantic_utilities.py +12 -0
- vellum/errors/__init__.py +1 -2
- vellum/lib/__init__.py +5 -0
- vellum/lib/test_suites/__init__.py +5 -0
- vellum/lib/test_suites/constants.py +2 -0
- vellum/lib/test_suites/exceptions.py +2 -0
- vellum/lib/test_suites/resources.py +331 -0
- vellum/lib/utils/__init__.py +0 -0
- vellum/lib/utils/env.py +13 -0
- vellum/lib/utils/exceptions.py +2 -0
- vellum/lib/utils/paginator.py +29 -0
- vellum/resources/__init__.py +0 -4
- vellum/resources/deployments/client.py +27 -31
- vellum/resources/deployments/types/deployments_list_request_status.py +1 -13
- vellum/resources/document_indexes/client.py +35 -39
- vellum/resources/document_indexes/types/document_indexes_list_request_status.py +1 -13
- vellum/resources/documents/client.py +131 -35
- vellum/resources/folder_entities/client.py +4 -4
- vellum/resources/sandboxes/client.py +18 -46
- vellum/resources/test_suite_runs/client.py +19 -23
- vellum/resources/test_suites/client.py +17 -21
- vellum/resources/workflow_deployments/client.py +13 -17
- vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +1 -13
- vellum/types/__init__.py +37 -55
- vellum/types/api_node_result.py +3 -7
- vellum/types/api_node_result_data.py +4 -8
- vellum/types/array_chat_message_content.py +3 -7
- vellum/types/array_chat_message_content_request.py +3 -7
- vellum/types/chat_history_input_request.py +4 -8
- vellum/types/chat_history_variable_value.py +3 -7
- vellum/types/chat_message.py +4 -8
- vellum/types/chat_message_request.py +4 -8
- vellum/types/chat_message_role.py +1 -32
- vellum/types/code_execution_node_array_result.py +3 -7
- vellum/types/code_execution_node_chat_history_result.py +3 -7
- vellum/types/code_execution_node_error_result.py +3 -7
- vellum/types/code_execution_node_function_call_result.py +3 -7
- vellum/types/code_execution_node_json_result.py +3 -7
- vellum/types/code_execution_node_number_result.py +3 -7
- vellum/types/code_execution_node_result.py +3 -7
- vellum/types/code_execution_node_result_data.py +3 -7
- vellum/types/code_execution_node_search_results_result.py +3 -7
- vellum/types/code_execution_node_string_result.py +3 -7
- vellum/types/conditional_node_result.py +3 -7
- vellum/types/conditional_node_result_data.py +3 -7
- vellum/types/deployment_provider_payload_response.py +3 -7
- vellum/types/deployment_read.py +8 -12
- vellum/types/document_document_to_document_index.py +6 -10
- vellum/types/document_index_read.py +8 -12
- vellum/types/document_read.py +8 -12
- vellum/types/enriched_normalized_completion.py +9 -13
- vellum/types/entity_status.py +1 -18
- vellum/types/environment_enum.py +1 -27
- vellum/types/error_variable_value.py +3 -7
- vellum/types/execute_prompt_api_error_response.py +4 -8
- vellum/types/execute_workflow_error_response.py +4 -8
- vellum/types/execute_workflow_response.py +3 -7
- vellum/types/execute_workflow_stream_error_response.py +4 -8
- vellum/types/execution_array_vellum_value.py +4 -8
- vellum/types/execution_chat_history_vellum_value.py +4 -8
- vellum/types/execution_error_vellum_value.py +4 -8
- vellum/types/execution_function_call_vellum_value.py +4 -8
- vellum/types/execution_json_vellum_value.py +4 -8
- vellum/types/execution_number_vellum_value.py +4 -8
- vellum/types/execution_search_results_vellum_value.py +4 -8
- vellum/types/execution_string_vellum_value.py +4 -8
- vellum/types/external_test_case_execution.py +4 -8
- vellum/types/external_test_case_execution_request.py +4 -8
- vellum/types/finish_reason_enum.py +1 -27
- vellum/types/fulfilled_execute_prompt_event.py +3 -7
- vellum/types/fulfilled_execute_prompt_response.py +5 -9
- vellum/types/fulfilled_execute_workflow_workflow_result_event.py +3 -7
- vellum/types/fulfilled_function_call.py +3 -7
- vellum/types/{registered_prompt_input_variable_request.py → fulfilled_function_call_request.py} +10 -9
- vellum/types/fulfilled_prompt_execution_meta.py +3 -7
- vellum/types/fulfilled_workflow_node_result_event.py +3 -7
- vellum/types/function_call_chat_message_content.py +3 -7
- vellum/types/function_call_chat_message_content_request.py +3 -7
- vellum/types/function_call_chat_message_content_value.py +3 -7
- vellum/types/function_call_chat_message_content_value_request.py +3 -7
- vellum/types/function_call_variable_value.py +3 -7
- vellum/types/generate_error_response.py +4 -8
- vellum/types/generate_options_request.py +4 -8
- vellum/types/generate_request.py +6 -10
- vellum/types/generate_result.py +5 -9
- vellum/types/generate_result_data.py +4 -8
- vellum/types/generate_result_error.py +4 -8
- vellum/types/generate_stream_response.py +3 -7
- vellum/types/generate_stream_result.py +3 -7
- vellum/types/generate_stream_result_data.py +3 -7
- vellum/types/image_chat_message_content.py +3 -7
- vellum/types/image_chat_message_content_request.py +3 -7
- vellum/types/image_variable_value.py +3 -7
- vellum/types/indexing_state_enum.py +3 -37
- vellum/types/initiated_execute_prompt_event.py +3 -7
- vellum/types/initiated_prompt_execution_meta.py +3 -7
- vellum/types/initiated_workflow_node_result_event.py +3 -7
- vellum/types/json_input_request.py +4 -8
- vellum/types/json_variable_value.py +3 -7
- vellum/types/logical_operator.py +23 -173
- vellum/types/logprobs_enum.py +1 -18
- vellum/types/metadata_filter_config_request.py +3 -7
- vellum/types/metadata_filter_rule_combinator.py +1 -18
- vellum/types/metadata_filter_rule_request.py +3 -7
- vellum/types/ml_model_usage.py +3 -7
- vellum/types/named_scenario_input_chat_history_variable_value_request.py +31 -0
- vellum/types/named_scenario_input_request.py +31 -0
- vellum/types/{registered_prompt_sandbox_snapshot.py → named_scenario_input_string_variable_value_request.py} +7 -9
- vellum/types/named_test_case_chat_history_variable_value.py +3 -7
- vellum/types/named_test_case_chat_history_variable_value_request.py +3 -7
- vellum/types/named_test_case_error_variable_value.py +3 -7
- vellum/types/named_test_case_error_variable_value_request.py +3 -7
- vellum/types/{register_prompt_prompt.py → named_test_case_function_call_variable_value.py} +7 -13
- vellum/types/named_test_case_function_call_variable_value_request.py +31 -0
- vellum/types/named_test_case_json_variable_value.py +3 -7
- vellum/types/named_test_case_json_variable_value_request.py +3 -7
- vellum/types/named_test_case_number_variable_value.py +3 -7
- vellum/types/named_test_case_number_variable_value_request.py +3 -7
- vellum/types/named_test_case_search_results_variable_value.py +3 -7
- vellum/types/named_test_case_search_results_variable_value_request.py +3 -7
- vellum/types/named_test_case_string_variable_value.py +3 -7
- vellum/types/named_test_case_string_variable_value_request.py +3 -7
- vellum/types/named_test_case_variable_value.py +12 -0
- vellum/types/named_test_case_variable_value_request.py +12 -0
- vellum/types/node_input_compiled_array_value.py +3 -7
- vellum/types/node_input_compiled_chat_history_value.py +3 -7
- vellum/types/node_input_compiled_error_value.py +3 -7
- vellum/types/node_input_compiled_function_call.py +3 -7
- vellum/types/node_input_compiled_json_value.py +3 -7
- vellum/types/node_input_compiled_number_value.py +3 -7
- vellum/types/node_input_compiled_search_results_value.py +3 -7
- vellum/types/node_input_compiled_string_value.py +3 -7
- vellum/types/node_output_compiled_array_value.py +3 -7
- vellum/types/node_output_compiled_chat_history_value.py +3 -7
- vellum/types/node_output_compiled_error_value.py +3 -7
- vellum/types/node_output_compiled_function_value.py +3 -7
- vellum/types/node_output_compiled_json_value.py +3 -7
- vellum/types/node_output_compiled_number_value.py +3 -7
- vellum/types/node_output_compiled_search_results_value.py +3 -7
- vellum/types/node_output_compiled_string_value.py +3 -7
- vellum/types/normalized_log_probs.py +3 -7
- vellum/types/normalized_token_log_probs.py +3 -7
- vellum/types/number_variable_value.py +3 -7
- vellum/types/paginated_document_index_read_list.py +3 -7
- vellum/types/paginated_slim_deployment_read_list.py +3 -7
- vellum/types/paginated_slim_document_list.py +3 -7
- vellum/types/paginated_slim_workflow_deployment_list.py +3 -7
- vellum/types/paginated_test_suite_run_execution_list.py +3 -7
- vellum/types/paginated_test_suite_test_case_list.py +3 -7
- vellum/types/processing_failure_reason_enum.py +1 -20
- vellum/types/processing_state_enum.py +1 -32
- vellum/types/prompt_deployment_expand_meta_request_request.py +9 -13
- vellum/types/prompt_execution_meta.py +3 -7
- vellum/types/prompt_node_result.py +3 -7
- vellum/types/prompt_node_result_data.py +3 -7
- vellum/types/raw_prompt_execution_overrides_request.py +5 -9
- vellum/types/rejected_execute_prompt_event.py +3 -7
- vellum/types/rejected_execute_prompt_response.py +5 -9
- vellum/types/rejected_execute_workflow_workflow_result_event.py +3 -7
- vellum/types/rejected_function_call.py +3 -7
- vellum/types/rejected_prompt_execution_meta.py +3 -7
- vellum/types/rejected_workflow_node_result_event.py +3 -7
- vellum/types/sandbox_scenario.py +5 -9
- vellum/types/scenario_input.py +18 -21
- vellum/types/{registered_prompt_sandbox.py → scenario_input_chat_history_variable_value.py} +7 -13
- vellum/types/{register_prompt_error_response.py → scenario_input_string_variable_value.py} +7 -9
- vellum/types/search_error_response.py +4 -8
- vellum/types/search_filters_request.py +5 -9
- vellum/types/search_node_result.py +3 -7
- vellum/types/search_node_result_data.py +4 -8
- vellum/types/search_request_options_request.py +7 -11
- vellum/types/search_response.py +4 -8
- vellum/types/search_result.py +6 -10
- vellum/types/search_result_document.py +7 -11
- vellum/types/search_result_document_request.py +6 -10
- vellum/types/search_result_merging_request.py +4 -8
- vellum/types/search_result_request.py +6 -10
- vellum/types/search_results_variable_value.py +3 -7
- vellum/types/search_weights_request.py +5 -9
- vellum/types/slim_deployment_read.py +7 -11
- vellum/types/slim_document.py +12 -16
- vellum/types/slim_workflow_deployment.py +9 -13
- vellum/types/streaming_execute_prompt_event.py +4 -8
- vellum/types/streaming_prompt_execution_meta.py +3 -7
- vellum/types/streaming_workflow_node_result_event.py +3 -7
- vellum/types/string_chat_message_content.py +3 -7
- vellum/types/string_chat_message_content_request.py +3 -7
- vellum/types/string_input_request.py +4 -8
- vellum/types/string_variable_value.py +3 -7
- vellum/types/submit_completion_actual_request.py +8 -12
- vellum/types/submit_completion_actuals_error_response.py +3 -7
- vellum/types/subworkflow_node_result.py +3 -7
- vellum/types/templating_node_array_result.py +3 -7
- vellum/types/templating_node_chat_history_result.py +3 -7
- vellum/types/templating_node_error_result.py +3 -7
- vellum/types/templating_node_function_call_result.py +3 -7
- vellum/types/templating_node_json_result.py +3 -7
- vellum/types/templating_node_number_result.py +3 -7
- vellum/types/templating_node_result.py +3 -7
- vellum/types/templating_node_result_data.py +3 -7
- vellum/types/templating_node_search_results_result.py +3 -7
- vellum/types/templating_node_string_result.py +3 -7
- vellum/types/terminal_node_array_result.py +4 -8
- vellum/types/terminal_node_chat_history_result.py +4 -8
- vellum/types/terminal_node_error_result.py +4 -8
- vellum/types/terminal_node_function_call_result.py +4 -8
- vellum/types/terminal_node_json_result.py +4 -8
- vellum/types/terminal_node_number_result.py +4 -8
- vellum/types/terminal_node_result.py +3 -7
- vellum/types/terminal_node_result_data.py +3 -7
- vellum/types/terminal_node_search_results_result.py +4 -8
- vellum/types/terminal_node_string_result.py +4 -8
- vellum/types/test_case_chat_history_variable_value.py +3 -7
- vellum/types/test_case_error_variable_value.py +3 -7
- vellum/types/test_case_function_call_variable_value.py +32 -0
- vellum/types/test_case_json_variable_value.py +3 -7
- vellum/types/test_case_number_variable_value.py +3 -7
- vellum/types/test_case_search_results_variable_value.py +3 -7
- vellum/types/test_case_string_variable_value.py +3 -7
- vellum/types/test_case_variable_value.py +12 -0
- vellum/types/test_suite_run_deployment_release_tag_exec_config.py +4 -8
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data.py +5 -9
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +5 -9
- vellum/types/test_suite_run_deployment_release_tag_exec_config_request.py +4 -8
- vellum/types/test_suite_run_execution.py +3 -7
- vellum/types/test_suite_run_execution_chat_history_output.py +3 -7
- vellum/types/test_suite_run_execution_error_output.py +3 -7
- vellum/types/{registered_prompt_model_version.py → test_suite_run_execution_function_call_output.py} +8 -13
- vellum/types/test_suite_run_execution_json_output.py +3 -7
- vellum/types/test_suite_run_execution_metric_definition.py +3 -7
- vellum/types/test_suite_run_execution_metric_result.py +3 -7
- vellum/types/test_suite_run_execution_number_output.py +3 -7
- vellum/types/test_suite_run_execution_output.py +12 -0
- vellum/types/test_suite_run_execution_search_results_output.py +3 -7
- vellum/types/test_suite_run_execution_string_output.py +3 -7
- vellum/types/test_suite_run_external_exec_config.py +4 -8
- vellum/types/test_suite_run_external_exec_config_data.py +4 -8
- vellum/types/test_suite_run_external_exec_config_data_request.py +4 -8
- vellum/types/test_suite_run_external_exec_config_request.py +4 -8
- vellum/types/test_suite_run_metric_error_output.py +3 -7
- vellum/types/test_suite_run_metric_number_output.py +3 -7
- vellum/types/test_suite_run_metric_string_output.py +3 -7
- vellum/types/test_suite_run_read.py +5 -9
- vellum/types/test_suite_run_state.py +1 -37
- vellum/types/test_suite_run_test_suite.py +3 -7
- vellum/types/test_suite_run_workflow_release_tag_exec_config.py +4 -8
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data.py +5 -9
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +5 -9
- vellum/types/test_suite_run_workflow_release_tag_exec_config_request.py +4 -8
- vellum/types/test_suite_test_case.py +3 -7
- vellum/types/upload_document_error_response.py +3 -7
- vellum/types/upload_document_response.py +4 -8
- vellum/types/vellum_error.py +3 -7
- vellum/types/vellum_error_code_enum.py +3 -32
- vellum/types/vellum_error_request.py +3 -7
- vellum/types/vellum_image.py +3 -7
- vellum/types/vellum_image_request.py +3 -7
- vellum/types/vellum_variable.py +3 -7
- vellum/types/vellum_variable_type.py +6 -57
- vellum/types/workflow_deployment_read.py +9 -13
- vellum/types/workflow_event_error.py +3 -7
- vellum/types/workflow_execution_actual_chat_history_request.py +8 -12
- vellum/types/workflow_execution_actual_json_request.py +8 -12
- vellum/types/workflow_execution_actual_string_request.py +8 -12
- vellum/types/workflow_execution_event_error_code.py +13 -52
- vellum/types/workflow_execution_event_type.py +1 -18
- vellum/types/workflow_execution_node_result_event.py +3 -7
- vellum/types/workflow_execution_workflow_result_event.py +3 -7
- vellum/types/workflow_node_result_event_state.py +3 -32
- vellum/types/workflow_output_array.py +4 -8
- vellum/types/workflow_output_chat_history.py +4 -8
- vellum/types/workflow_output_error.py +4 -8
- vellum/types/workflow_output_function_call.py +4 -8
- vellum/types/workflow_output_image.py +4 -8
- vellum/types/workflow_output_json.py +4 -8
- vellum/types/workflow_output_number.py +4 -8
- vellum/types/workflow_output_search_results.py +4 -8
- vellum/types/workflow_output_string.py +4 -8
- vellum/types/workflow_request_chat_history_input_request.py +4 -8
- vellum/types/workflow_request_json_input_request.py +4 -8
- vellum/types/workflow_request_number_input_request.py +4 -8
- vellum/types/workflow_request_string_input_request.py +4 -8
- vellum/types/workflow_result_event.py +3 -7
- vellum/types/workflow_result_event_output_data_array.py +4 -8
- vellum/types/workflow_result_event_output_data_chat_history.py +4 -8
- vellum/types/workflow_result_event_output_data_error.py +4 -8
- vellum/types/workflow_result_event_output_data_function_call.py +4 -8
- vellum/types/workflow_result_event_output_data_json.py +4 -8
- vellum/types/workflow_result_event_output_data_number.py +4 -8
- vellum/types/workflow_result_event_output_data_search_results.py +4 -8
- vellum/types/workflow_result_event_output_data_string.py +5 -9
- {vellum_ai-0.3.23.dist-info → vellum_ai-0.5.1.dist-info}/METADATA +1 -2
- vellum_ai-0.5.1.dist-info/RECORD +382 -0
- vellum/errors/conflict_error.py +0 -9
- vellum/resources/model_versions/__init__.py +0 -2
- vellum/resources/model_versions/client.py +0 -123
- vellum/resources/registered_prompts/__init__.py +0 -2
- vellum/resources/registered_prompts/client.py +0 -327
- vellum/types/block_type_enum.py +0 -36
- vellum/types/model_version_build_config.py +0 -40
- vellum/types/model_version_exec_config.py +0 -48
- vellum/types/model_version_exec_config_parameters.py +0 -37
- vellum/types/model_version_read.py +0 -82
- vellum/types/model_version_read_status_enum.py +0 -36
- vellum/types/model_version_sandbox_snapshot.py +0 -44
- vellum/types/prompt_template_block.py +0 -41
- vellum/types/prompt_template_block_data.py +0 -31
- vellum/types/prompt_template_block_data_request.py +0 -31
- vellum/types/prompt_template_block_properties.py +0 -47
- vellum/types/prompt_template_block_properties_request.py +0 -47
- vellum/types/prompt_template_block_request.py +0 -41
- vellum/types/prompt_template_block_state.py +0 -22
- vellum/types/provider_enum.py +0 -81
- vellum/types/register_prompt_model_parameters_request.py +0 -37
- vellum/types/register_prompt_prompt_info_request.py +0 -35
- vellum/types/register_prompt_response.py +0 -62
- vellum/types/registered_prompt_deployment.py +0 -42
- vellum/types/scenario_input_request.py +0 -34
- vellum/types/scenario_input_type_enum.py +0 -22
- vellum_ai-0.3.23.dist-info/RECORD +0 -394
- {vellum_ai-0.3.23.dist-info → vellum_ai-0.5.1.dist-info}/LICENSE +0 -0
- {vellum_ai-0.3.23.dist-info → vellum_ai-0.5.1.dist-info}/WHEEL +0 -0
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .code_execution_node_result_data import CodeExecutionNodeResultData
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class CodeExecutionNodeResult(pydantic.BaseModel):
|
11
|
+
class CodeExecutionNodeResult(pydantic_v1.BaseModel):
|
16
12
|
"""
|
17
13
|
A Node Result Event emitted from a Code Execution Node.
|
18
14
|
"""
|
@@ -30,5 +26,5 @@ class CodeExecutionNodeResult(pydantic.BaseModel):
|
|
30
26
|
class Config:
|
31
27
|
frozen = True
|
32
28
|
smart_union = True
|
33
|
-
extra =
|
29
|
+
extra = pydantic_v1.Extra.allow
|
34
30
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .code_execution_node_result_output import CodeExecutionNodeResultOutput
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class CodeExecutionNodeResultData(pydantic.BaseModel):
|
11
|
+
class CodeExecutionNodeResultData(pydantic_v1.BaseModel):
|
16
12
|
output: CodeExecutionNodeResultOutput
|
17
13
|
log_output_id: typing.Optional[str] = None
|
18
14
|
|
@@ -27,5 +23,5 @@ class CodeExecutionNodeResultData(pydantic.BaseModel):
|
|
27
23
|
class Config:
|
28
24
|
frozen = True
|
29
25
|
smart_union = True
|
30
|
-
extra =
|
26
|
+
extra = pydantic_v1.Extra.allow
|
31
27
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .search_result import SearchResult
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class CodeExecutionNodeSearchResultsResult(pydantic.BaseModel):
|
11
|
+
class CodeExecutionNodeSearchResultsResult(pydantic_v1.BaseModel):
|
16
12
|
id: str
|
17
13
|
value: typing.Optional[typing.List[SearchResult]] = None
|
18
14
|
|
@@ -27,5 +23,5 @@ class CodeExecutionNodeSearchResultsResult(pydantic.BaseModel):
|
|
27
23
|
class Config:
|
28
24
|
frozen = True
|
29
25
|
smart_union = True
|
30
|
-
extra =
|
26
|
+
extra = pydantic_v1.Extra.allow
|
31
27
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,14 +4,10 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
class CodeExecutionNodeStringResult(pydantic.BaseModel):
|
10
|
+
class CodeExecutionNodeStringResult(pydantic_v1.BaseModel):
|
15
11
|
id: str
|
16
12
|
value: typing.Optional[str] = None
|
17
13
|
|
@@ -26,5 +22,5 @@ class CodeExecutionNodeStringResult(pydantic.BaseModel):
|
|
26
22
|
class Config:
|
27
23
|
frozen = True
|
28
24
|
smart_union = True
|
29
|
-
extra =
|
25
|
+
extra = pydantic_v1.Extra.allow
|
30
26
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .conditional_node_result_data import ConditionalNodeResultData
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class ConditionalNodeResult(pydantic.BaseModel):
|
11
|
+
class ConditionalNodeResult(pydantic_v1.BaseModel):
|
16
12
|
"""
|
17
13
|
A Node Result Event emitted from a Conditional Node.
|
18
14
|
"""
|
@@ -30,5 +26,5 @@ class ConditionalNodeResult(pydantic.BaseModel):
|
|
30
26
|
class Config:
|
31
27
|
frozen = True
|
32
28
|
smart_union = True
|
33
|
-
extra =
|
29
|
+
extra = pydantic_v1.Extra.allow
|
34
30
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,14 +4,10 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
class ConditionalNodeResultData(pydantic.BaseModel):
|
10
|
+
class ConditionalNodeResultData(pydantic_v1.BaseModel):
|
15
11
|
source_handle_id: typing.Optional[str] = None
|
16
12
|
|
17
13
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -25,5 +21,5 @@ class ConditionalNodeResultData(pydantic.BaseModel):
|
|
25
21
|
class Config:
|
26
22
|
frozen = True
|
27
23
|
smart_union = True
|
28
|
-
extra =
|
24
|
+
extra = pydantic_v1.Extra.allow
|
29
25
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,14 +4,10 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
class DeploymentProviderPayloadResponse(pydantic.BaseModel):
|
10
|
+
class DeploymentProviderPayloadResponse(pydantic_v1.BaseModel):
|
15
11
|
payload: typing.Dict[str, typing.Any]
|
16
12
|
|
17
13
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -25,5 +21,5 @@ class DeploymentProviderPayloadResponse(pydantic.BaseModel):
|
|
25
21
|
class Config:
|
26
22
|
frozen = True
|
27
23
|
smart_union = True
|
28
|
-
extra =
|
24
|
+
extra = pydantic_v1.Extra.allow
|
29
25
|
json_encoders = {dt.datetime: serialize_datetime}
|
vellum/types/deployment_read.py
CHANGED
@@ -4,30 +4,26 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .entity_status import EntityStatus
|
8
9
|
from .environment_enum import EnvironmentEnum
|
9
10
|
from .vellum_variable import VellumVariable
|
10
11
|
|
11
|
-
try:
|
12
|
-
import pydantic.v1 as pydantic # type: ignore
|
13
|
-
except ImportError:
|
14
|
-
import pydantic # type: ignore
|
15
12
|
|
16
|
-
|
17
|
-
class DeploymentRead(pydantic.BaseModel):
|
13
|
+
class DeploymentRead(pydantic_v1.BaseModel):
|
18
14
|
id: str
|
19
15
|
created: dt.datetime
|
20
|
-
label: str =
|
16
|
+
label: str = pydantic_v1.Field()
|
21
17
|
"""
|
22
18
|
A human-readable label for the deployment
|
23
19
|
"""
|
24
20
|
|
25
|
-
name: str =
|
21
|
+
name: str = pydantic_v1.Field()
|
26
22
|
"""
|
27
23
|
A name that uniquely identifies this deployment within its workspace
|
28
24
|
"""
|
29
25
|
|
30
|
-
status: typing.Optional[EntityStatus] =
|
26
|
+
status: typing.Optional[EntityStatus] = pydantic_v1.Field(default=None)
|
31
27
|
"""
|
32
28
|
The current status of the deployment
|
33
29
|
|
@@ -35,7 +31,7 @@ class DeploymentRead(pydantic.BaseModel):
|
|
35
31
|
- `ARCHIVED` - Archived
|
36
32
|
"""
|
37
33
|
|
38
|
-
environment: typing.Optional[EnvironmentEnum] =
|
34
|
+
environment: typing.Optional[EnvironmentEnum] = pydantic_v1.Field(default=None)
|
39
35
|
"""
|
40
36
|
The environment this deployment is used in
|
41
37
|
|
@@ -46,7 +42,7 @@ class DeploymentRead(pydantic.BaseModel):
|
|
46
42
|
|
47
43
|
last_deployed_on: dt.datetime
|
48
44
|
input_variables: typing.List[VellumVariable]
|
49
|
-
active_model_version_ids: typing.List[str] =
|
45
|
+
active_model_version_ids: typing.List[str] = pydantic_v1.Field()
|
50
46
|
"""
|
51
47
|
Deprecated. The Prompt execution endpoints return a `prompt_version_id` that could be used instead.
|
52
48
|
"""
|
@@ -62,5 +58,5 @@ class DeploymentRead(pydantic.BaseModel):
|
|
62
58
|
class Config:
|
63
59
|
frozen = True
|
64
60
|
smart_union = True
|
65
|
-
extra =
|
61
|
+
extra = pydantic_v1.Extra.allow
|
66
62
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,26 +4,22 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .indexing_state_enum import IndexingStateEnum
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
|
16
|
-
id: str = pydantic.Field()
|
11
|
+
class DocumentDocumentToDocumentIndex(pydantic_v1.BaseModel):
|
12
|
+
id: str = pydantic_v1.Field()
|
17
13
|
"""
|
18
14
|
Vellum-generated ID that uniquely identifies this link.
|
19
15
|
"""
|
20
16
|
|
21
|
-
document_index_id: str =
|
17
|
+
document_index_id: str = pydantic_v1.Field()
|
22
18
|
"""
|
23
19
|
Vellum-generated ID that uniquely identifies the index this document is included in.
|
24
20
|
"""
|
25
21
|
|
26
|
-
indexing_state: typing.Optional[IndexingStateEnum] =
|
22
|
+
indexing_state: typing.Optional[IndexingStateEnum] = pydantic_v1.Field(default=None)
|
27
23
|
"""
|
28
24
|
An enum value representing where this document is along its indexing lifecycle for this index.
|
29
25
|
|
@@ -45,5 +41,5 @@ class DocumentDocumentToDocumentIndex(pydantic.BaseModel):
|
|
45
41
|
class Config:
|
46
42
|
frozen = True
|
47
43
|
smart_union = True
|
48
|
-
extra =
|
44
|
+
extra = pydantic_v1.Extra.allow
|
49
45
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,29 +4,25 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .entity_status import EntityStatus
|
8
9
|
from .environment_enum import EnvironmentEnum
|
9
10
|
|
10
|
-
try:
|
11
|
-
import pydantic.v1 as pydantic # type: ignore
|
12
|
-
except ImportError:
|
13
|
-
import pydantic # type: ignore
|
14
11
|
|
15
|
-
|
16
|
-
class DocumentIndexRead(pydantic.BaseModel):
|
12
|
+
class DocumentIndexRead(pydantic_v1.BaseModel):
|
17
13
|
id: str
|
18
14
|
created: dt.datetime
|
19
|
-
label: str =
|
15
|
+
label: str = pydantic_v1.Field()
|
20
16
|
"""
|
21
17
|
A human-readable label for the document index
|
22
18
|
"""
|
23
19
|
|
24
|
-
name: str =
|
20
|
+
name: str = pydantic_v1.Field()
|
25
21
|
"""
|
26
22
|
A name that uniquely identifies this index within its workspace
|
27
23
|
"""
|
28
24
|
|
29
|
-
status: typing.Optional[EntityStatus] =
|
25
|
+
status: typing.Optional[EntityStatus] = pydantic_v1.Field(default=None)
|
30
26
|
"""
|
31
27
|
The current status of the document index
|
32
28
|
|
@@ -34,7 +30,7 @@ class DocumentIndexRead(pydantic.BaseModel):
|
|
34
30
|
- `ARCHIVED` - Archived
|
35
31
|
"""
|
36
32
|
|
37
|
-
environment: typing.Optional[EnvironmentEnum] =
|
33
|
+
environment: typing.Optional[EnvironmentEnum] = pydantic_v1.Field(default=None)
|
38
34
|
"""
|
39
35
|
The environment this document index is used in
|
40
36
|
|
@@ -43,7 +39,7 @@ class DocumentIndexRead(pydantic.BaseModel):
|
|
43
39
|
- `PRODUCTION` - Production
|
44
40
|
"""
|
45
41
|
|
46
|
-
indexing_config: typing.Dict[str, typing.Any] =
|
42
|
+
indexing_config: typing.Dict[str, typing.Any] = pydantic_v1.Field()
|
47
43
|
"""
|
48
44
|
Configuration representing how documents should be indexed
|
49
45
|
"""
|
@@ -59,5 +55,5 @@ class DocumentIndexRead(pydantic.BaseModel):
|
|
59
55
|
class Config:
|
60
56
|
frozen = True
|
61
57
|
smart_union = True
|
62
|
-
extra =
|
58
|
+
extra = pydantic_v1.Extra.allow
|
63
59
|
json_encoders = {dt.datetime: serialize_datetime}
|
vellum/types/document_read.py
CHANGED
@@ -4,30 +4,26 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
8
9
|
from .document_status import DocumentStatus
|
9
10
|
from .processing_state_enum import ProcessingStateEnum
|
10
11
|
|
11
|
-
try:
|
12
|
-
import pydantic.v1 as pydantic # type: ignore
|
13
|
-
except ImportError:
|
14
|
-
import pydantic # type: ignore
|
15
12
|
|
16
|
-
|
17
|
-
class DocumentRead(pydantic.BaseModel):
|
13
|
+
class DocumentRead(pydantic_v1.BaseModel):
|
18
14
|
id: str
|
19
|
-
external_id: typing.Optional[str] =
|
15
|
+
external_id: typing.Optional[str] = pydantic_v1.Field(default=None)
|
20
16
|
"""
|
21
17
|
The unique id of this document as it exists in the user's system.
|
22
18
|
"""
|
23
19
|
|
24
20
|
last_uploaded_at: dt.datetime
|
25
|
-
label: str =
|
21
|
+
label: str = pydantic_v1.Field()
|
26
22
|
"""
|
27
23
|
A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
28
24
|
"""
|
29
25
|
|
30
|
-
processing_state: typing.Optional[ProcessingStateEnum] =
|
26
|
+
processing_state: typing.Optional[ProcessingStateEnum] = pydantic_v1.Field(default=None)
|
31
27
|
"""
|
32
28
|
The current processing state of the document
|
33
29
|
|
@@ -37,7 +33,7 @@ class DocumentRead(pydantic.BaseModel):
|
|
37
33
|
- `FAILED` - Failed
|
38
34
|
"""
|
39
35
|
|
40
|
-
status: typing.Optional[DocumentStatus] =
|
36
|
+
status: typing.Optional[DocumentStatus] = pydantic_v1.Field(default=None)
|
41
37
|
"""
|
42
38
|
The current status of the document
|
43
39
|
|
@@ -47,7 +43,7 @@ class DocumentRead(pydantic.BaseModel):
|
|
47
43
|
original_file_url: typing.Optional[str] = None
|
48
44
|
processed_file_url: typing.Optional[str] = None
|
49
45
|
document_to_document_indexes: typing.List[DocumentDocumentToDocumentIndex]
|
50
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] =
|
46
|
+
metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field(default=None)
|
51
47
|
"""
|
52
48
|
A previously supplied JSON object containing metadata that can be filtered on when searching.
|
53
49
|
"""
|
@@ -63,5 +59,5 @@ class DocumentRead(pydantic.BaseModel):
|
|
63
59
|
class Config:
|
64
60
|
frozen = True
|
65
61
|
smart_union = True
|
66
|
-
extra =
|
62
|
+
extra = pydantic_v1.Extra.allow
|
67
63
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,33 +4,29 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .finish_reason_enum import FinishReasonEnum
|
8
9
|
from .normalized_log_probs import NormalizedLogProbs
|
9
10
|
from .vellum_variable_type import VellumVariableType
|
10
11
|
|
11
|
-
try:
|
12
|
-
import pydantic.v1 as pydantic # type: ignore
|
13
|
-
except ImportError:
|
14
|
-
import pydantic # type: ignore
|
15
12
|
|
16
|
-
|
17
|
-
|
18
|
-
id: str = pydantic.Field()
|
13
|
+
class EnrichedNormalizedCompletion(pydantic_v1.BaseModel):
|
14
|
+
id: str = pydantic_v1.Field()
|
19
15
|
"""
|
20
16
|
The Vellum-generated ID of the completion.
|
21
17
|
"""
|
22
18
|
|
23
|
-
external_id: typing.Optional[str] =
|
19
|
+
external_id: typing.Optional[str] = pydantic_v1.Field(default=None)
|
24
20
|
"""
|
25
21
|
The external ID that was originally provided along with the generation request, which uniquely identifies this generation in an external system.
|
26
22
|
"""
|
27
23
|
|
28
|
-
text: str =
|
24
|
+
text: str = pydantic_v1.Field()
|
29
25
|
"""
|
30
26
|
The text generated by the LLM.
|
31
27
|
"""
|
32
28
|
|
33
|
-
finish_reason: typing.Optional[FinishReasonEnum] =
|
29
|
+
finish_reason: typing.Optional[FinishReasonEnum] = pydantic_v1.Field(default=None)
|
34
30
|
"""
|
35
31
|
The reason the generation finished.
|
36
32
|
|
@@ -39,12 +35,12 @@ class EnrichedNormalizedCompletion(pydantic.BaseModel):
|
|
39
35
|
- `UNKNOWN` - UNKNOWN
|
40
36
|
"""
|
41
37
|
|
42
|
-
logprobs: typing.Optional[NormalizedLogProbs] =
|
38
|
+
logprobs: typing.Optional[NormalizedLogProbs] = pydantic_v1.Field(default=None)
|
43
39
|
"""
|
44
40
|
The logprobs of the completion. Only present if specified in the original request options.
|
45
41
|
"""
|
46
42
|
|
47
|
-
model_version_id: str =
|
43
|
+
model_version_id: str = pydantic_v1.Field()
|
48
44
|
"""
|
49
45
|
The ID of the model version used to generate this completion.
|
50
46
|
"""
|
@@ -65,5 +61,5 @@ class EnrichedNormalizedCompletion(pydantic.BaseModel):
|
|
65
61
|
class Config:
|
66
62
|
frozen = True
|
67
63
|
smart_union = True
|
68
|
-
extra =
|
64
|
+
extra = pydantic_v1.Extra.allow
|
69
65
|
json_encoders = {dt.datetime: serialize_datetime}
|
vellum/types/entity_status.py
CHANGED
@@ -1,22 +1,5 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
-
import enum
|
4
3
|
import typing
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
class EntityStatus(str, enum.Enum):
|
10
|
-
"""
|
11
|
-
- `ACTIVE` - Active
|
12
|
-
- `ARCHIVED` - Archived
|
13
|
-
"""
|
14
|
-
|
15
|
-
ACTIVE = "ACTIVE"
|
16
|
-
ARCHIVED = "ARCHIVED"
|
17
|
-
|
18
|
-
def visit(self, active: typing.Callable[[], T_Result], archived: typing.Callable[[], T_Result]) -> T_Result:
|
19
|
-
if self is EntityStatus.ACTIVE:
|
20
|
-
return active()
|
21
|
-
if self is EntityStatus.ARCHIVED:
|
22
|
-
return archived()
|
5
|
+
EntityStatus = typing.Union[typing.Literal["ACTIVE", "ARCHIVED"], typing.Any]
|
vellum/types/environment_enum.py
CHANGED
@@ -1,31 +1,5 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
-
import enum
|
4
3
|
import typing
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
class EnvironmentEnum(str, enum.Enum):
|
10
|
-
"""
|
11
|
-
- `DEVELOPMENT` - Development
|
12
|
-
- `STAGING` - Staging
|
13
|
-
- `PRODUCTION` - Production
|
14
|
-
"""
|
15
|
-
|
16
|
-
DEVELOPMENT = "DEVELOPMENT"
|
17
|
-
STAGING = "STAGING"
|
18
|
-
PRODUCTION = "PRODUCTION"
|
19
|
-
|
20
|
-
def visit(
|
21
|
-
self,
|
22
|
-
development: typing.Callable[[], T_Result],
|
23
|
-
staging: typing.Callable[[], T_Result],
|
24
|
-
production: typing.Callable[[], T_Result],
|
25
|
-
) -> T_Result:
|
26
|
-
if self is EnvironmentEnum.DEVELOPMENT:
|
27
|
-
return development()
|
28
|
-
if self is EnvironmentEnum.STAGING:
|
29
|
-
return staging()
|
30
|
-
if self is EnvironmentEnum.PRODUCTION:
|
31
|
-
return production()
|
5
|
+
EnvironmentEnum = typing.Union[typing.Literal["DEVELOPMENT", "STAGING", "PRODUCTION"], typing.Any]
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .vellum_error import VellumError
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class ErrorVariableValue(pydantic.BaseModel):
|
11
|
+
class ErrorVariableValue(pydantic_v1.BaseModel):
|
16
12
|
value: typing.Optional[VellumError] = None
|
17
13
|
|
18
14
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -26,5 +22,5 @@ class ErrorVariableValue(pydantic.BaseModel):
|
|
26
22
|
class Config:
|
27
23
|
frozen = True
|
28
24
|
smart_union = True
|
29
|
-
extra =
|
25
|
+
extra = pydantic_v1.Extra.allow
|
30
26
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
detail: str = pydantic.Field()
|
10
|
+
class ExecutePromptApiErrorResponse(pydantic_v1.BaseModel):
|
11
|
+
detail: str = pydantic_v1.Field()
|
16
12
|
"""
|
17
13
|
Details about why the request failed.
|
18
14
|
"""
|
@@ -28,5 +24,5 @@ class ExecutePromptApiErrorResponse(pydantic.BaseModel):
|
|
28
24
|
class Config:
|
29
25
|
frozen = True
|
30
26
|
smart_union = True
|
31
|
-
extra =
|
27
|
+
extra = pydantic_v1.Extra.allow
|
32
28
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
detail: str = pydantic.Field()
|
10
|
+
class ExecuteWorkflowErrorResponse(pydantic_v1.BaseModel):
|
11
|
+
detail: str = pydantic_v1.Field()
|
16
12
|
"""
|
17
13
|
Details about why the request failed.
|
18
14
|
"""
|
@@ -28,5 +24,5 @@ class ExecuteWorkflowErrorResponse(pydantic.BaseModel):
|
|
28
24
|
class Config:
|
29
25
|
frozen = True
|
30
26
|
smart_union = True
|
31
|
-
extra =
|
27
|
+
extra = pydantic_v1.Extra.allow
|
32
28
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .execute_workflow_workflow_result_event import ExecuteWorkflowWorkflowResultEvent
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
class ExecuteWorkflowResponse(pydantic.BaseModel):
|
11
|
+
class ExecuteWorkflowResponse(pydantic_v1.BaseModel):
|
16
12
|
execution_id: str
|
17
13
|
run_id: typing.Optional[str] = None
|
18
14
|
external_id: typing.Optional[str] = None
|
@@ -29,5 +25,5 @@ class ExecuteWorkflowResponse(pydantic.BaseModel):
|
|
29
25
|
class Config:
|
30
26
|
frozen = True
|
31
27
|
smart_union = True
|
32
|
-
extra =
|
28
|
+
extra = pydantic_v1.Extra.allow
|
33
29
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,15 +4,11 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
detail: str = pydantic.Field()
|
10
|
+
class ExecuteWorkflowStreamErrorResponse(pydantic_v1.BaseModel):
|
11
|
+
detail: str = pydantic_v1.Field()
|
16
12
|
"""
|
17
13
|
Details about why the request failed.
|
18
14
|
"""
|
@@ -28,5 +24,5 @@ class ExecuteWorkflowStreamErrorResponse(pydantic.BaseModel):
|
|
28
24
|
class Config:
|
29
25
|
frozen = True
|
30
26
|
smart_union = True
|
31
|
-
extra =
|
27
|
+
extra = pydantic_v1.Extra.allow
|
32
28
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,16 +4,12 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
7
8
|
from .array_variable_value_item import ArrayVariableValueItem
|
8
9
|
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
10
|
|
14
|
-
|
15
|
-
|
16
|
-
id: str = pydantic.Field()
|
11
|
+
class ExecutionArrayVellumValue(pydantic_v1.BaseModel):
|
12
|
+
id: str = pydantic_v1.Field()
|
17
13
|
"""
|
18
14
|
The variable's uniquely identifying internal id.
|
19
15
|
"""
|
@@ -32,5 +28,5 @@ class ExecutionArrayVellumValue(pydantic.BaseModel):
|
|
32
28
|
class Config:
|
33
29
|
frozen = True
|
34
30
|
smart_union = True
|
35
|
-
extra =
|
31
|
+
extra = pydantic_v1.Extra.allow
|
36
32
|
json_encoders = {dt.datetime: serialize_datetime}
|