vellum-ai 0.3.13__py3-none-any.whl → 0.3.15__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +22 -0
- vellum/client.py +846 -100
- vellum/core/__init__.py +8 -0
- vellum/core/client_wrapper.py +27 -8
- vellum/core/file.py +38 -0
- vellum/core/http_client.py +130 -0
- vellum/core/jsonable_encoder.py +2 -2
- vellum/core/request_options.py +32 -0
- vellum/resources/deployments/client.py +161 -24
- vellum/resources/document_indexes/client.py +337 -80
- vellum/resources/documents/client.py +278 -58
- vellum/resources/folder_entities/client.py +60 -10
- vellum/resources/model_versions/client.py +48 -8
- vellum/resources/registered_prompts/client.py +52 -6
- vellum/resources/sandboxes/client.py +108 -26
- vellum/resources/test_suite_runs/client.py +221 -38
- vellum/resources/test_suites/client.py +110 -24
- vellum/resources/workflow_deployments/client.py +110 -14
- vellum/types/__init__.py +20 -0
- vellum/types/api_node_result.py +1 -0
- vellum/types/api_node_result_data.py +4 -2
- vellum/types/array_chat_message_content.py +1 -0
- vellum/types/array_chat_message_content_item.py +6 -5
- vellum/types/array_chat_message_content_item_request.py +6 -5
- vellum/types/array_chat_message_content_request.py +1 -0
- vellum/types/array_enum.py +2 -2
- vellum/types/array_variable_value_item.py +16 -10
- vellum/types/chat_history_enum.py +2 -2
- vellum/types/chat_history_input_request.py +6 -1
- vellum/types/chat_history_variable_value.py +2 -1
- vellum/types/chat_message.py +7 -5
- vellum/types/chat_message_content.py +8 -6
- vellum/types/chat_message_content_request.py +8 -6
- vellum/types/chat_message_request.py +7 -5
- vellum/types/code_execution_node_array_result.py +31 -0
- vellum/types/code_execution_node_chat_history_result.py +2 -1
- vellum/types/code_execution_node_error_result.py +2 -1
- vellum/types/code_execution_node_function_call_result.py +31 -0
- vellum/types/code_execution_node_json_result.py +2 -1
- vellum/types/code_execution_node_number_result.py +2 -1
- vellum/types/code_execution_node_result.py +1 -0
- vellum/types/code_execution_node_result_data.py +2 -1
- vellum/types/code_execution_node_result_output.py +36 -8
- vellum/types/code_execution_node_search_results_result.py +2 -1
- vellum/types/code_execution_node_string_result.py +2 -1
- vellum/types/conditional_node_result.py +1 -0
- vellum/types/conditional_node_result_data.py +2 -1
- vellum/types/deployment_provider_payload_response.py +1 -0
- vellum/types/deployment_read.py +32 -17
- vellum/types/document_document_to_document_index.py +21 -15
- vellum/types/document_index_read.py +32 -19
- vellum/types/document_read.py +34 -24
- vellum/types/document_status.py +2 -2
- vellum/types/enriched_normalized_completion.py +36 -19
- vellum/types/error_enum.py +2 -2
- vellum/types/error_variable_value.py +2 -1
- vellum/types/execute_prompt_api_error_response.py +5 -1
- vellum/types/execute_prompt_event.py +8 -6
- vellum/types/execute_prompt_response.py +4 -4
- vellum/types/execute_workflow_error_response.py +5 -1
- vellum/types/execute_workflow_response.py +3 -2
- vellum/types/execute_workflow_stream_error_response.py +5 -1
- vellum/types/execute_workflow_workflow_result_event.py +4 -4
- vellum/types/execution_array_vellum_value.py +7 -2
- vellum/types/execution_chat_history_vellum_value.py +7 -2
- vellum/types/execution_error_vellum_value.py +7 -2
- vellum/types/execution_function_call_vellum_value.py +7 -2
- vellum/types/execution_json_vellum_value.py +7 -2
- vellum/types/execution_number_vellum_value.py +7 -2
- vellum/types/execution_search_results_vellum_value.py +7 -2
- vellum/types/execution_string_vellum_value.py +7 -2
- vellum/types/execution_vellum_value.py +16 -10
- vellum/types/fulfilled_enum.py +2 -2
- vellum/types/fulfilled_execute_prompt_event.py +2 -1
- vellum/types/fulfilled_execute_prompt_response.py +12 -5
- vellum/types/fulfilled_execute_workflow_workflow_result_event.py +1 -0
- vellum/types/fulfilled_function_call.py +2 -1
- vellum/types/fulfilled_prompt_execution_meta.py +3 -2
- vellum/types/fulfilled_workflow_node_result_event.py +6 -5
- vellum/types/function_call.py +4 -4
- vellum/types/function_call_chat_message_content.py +1 -0
- vellum/types/function_call_chat_message_content_request.py +1 -0
- vellum/types/function_call_chat_message_content_value.py +2 -1
- vellum/types/function_call_chat_message_content_value_request.py +2 -1
- vellum/types/function_call_enum.py +2 -2
- vellum/types/function_call_variable_value.py +1 -0
- vellum/types/generate_error_response.py +5 -1
- vellum/types/generate_options_request.py +8 -5
- vellum/types/generate_request.py +15 -9
- vellum/types/generate_result.py +10 -6
- vellum/types/generate_result_data.py +5 -3
- vellum/types/generate_result_error.py +5 -1
- vellum/types/generate_stream_response.py +1 -0
- vellum/types/generate_stream_result.py +3 -2
- vellum/types/generate_stream_result_data.py +1 -0
- vellum/types/image_chat_message_content.py +1 -0
- vellum/types/image_chat_message_content_request.py +1 -0
- vellum/types/image_enum.py +2 -2
- vellum/types/image_variable_value.py +2 -1
- vellum/types/initiated_enum.py +2 -2
- vellum/types/initiated_execute_prompt_event.py +2 -1
- vellum/types/initiated_prompt_execution_meta.py +5 -4
- vellum/types/initiated_workflow_node_result_event.py +5 -4
- vellum/types/json_enum.py +2 -2
- vellum/types/json_input_request.py +6 -1
- vellum/types/json_variable_value.py +2 -1
- vellum/types/logprobs_enum.py +2 -2
- vellum/types/metadata_filter_config_request.py +7 -6
- vellum/types/metadata_filter_rule_request.py +7 -6
- vellum/types/model_version_build_config.py +12 -7
- vellum/types/model_version_exec_config.py +18 -11
- vellum/types/model_version_exec_config_parameters.py +7 -6
- vellum/types/model_version_read.py +51 -32
- vellum/types/model_version_sandbox_snapshot.py +17 -4
- vellum/types/named_test_case_chat_history_variable_value_request.py +2 -1
- vellum/types/named_test_case_error_variable_value_request.py +2 -1
- vellum/types/named_test_case_json_variable_value_request.py +2 -1
- vellum/types/named_test_case_number_variable_value_request.py +2 -1
- vellum/types/named_test_case_search_results_variable_value_request.py +2 -1
- vellum/types/named_test_case_string_variable_value_request.py +2 -1
- vellum/types/named_test_case_variable_value_request.py +12 -8
- vellum/types/node_input_compiled_array_value.py +2 -1
- vellum/types/node_input_compiled_chat_history_value.py +2 -1
- vellum/types/node_input_compiled_error_value.py +2 -1
- vellum/types/node_input_compiled_function_call.py +32 -0
- vellum/types/node_input_compiled_json_value.py +2 -1
- vellum/types/node_input_compiled_number_value.py +2 -1
- vellum/types/node_input_compiled_search_results_value.py +2 -1
- vellum/types/node_input_compiled_string_value.py +2 -1
- vellum/types/node_input_variable_compiled_value.py +26 -9
- vellum/types/node_output_compiled_array_value.py +2 -1
- vellum/types/node_output_compiled_chat_history_value.py +2 -1
- vellum/types/node_output_compiled_error_value.py +2 -1
- vellum/types/node_output_compiled_function_value.py +2 -1
- vellum/types/node_output_compiled_json_value.py +2 -1
- vellum/types/node_output_compiled_number_value.py +2 -1
- vellum/types/node_output_compiled_search_results_value.py +2 -1
- vellum/types/node_output_compiled_string_value.py +2 -1
- vellum/types/node_output_compiled_value.py +16 -10
- vellum/types/normalized_log_probs.py +2 -1
- vellum/types/normalized_token_log_probs.py +3 -2
- vellum/types/number_enum.py +2 -2
- vellum/types/number_variable_value.py +2 -1
- vellum/types/paginated_document_index_read_list.py +5 -4
- vellum/types/paginated_slim_deployment_read_list.py +5 -4
- vellum/types/paginated_slim_document_list.py +5 -4
- vellum/types/paginated_slim_workflow_deployment_list.py +5 -4
- vellum/types/paginated_test_suite_run_execution_list.py +5 -4
- vellum/types/prompt_deployment_expand_meta_request_request.py +25 -15
- vellum/types/prompt_deployment_input_request.py +6 -5
- vellum/types/prompt_execution_meta.py +6 -5
- vellum/types/prompt_node_result.py +1 -0
- vellum/types/prompt_node_result_data.py +4 -3
- vellum/types/prompt_output.py +8 -6
- vellum/types/prompt_template_block.py +1 -0
- vellum/types/prompt_template_block_data.py +1 -0
- vellum/types/prompt_template_block_data_request.py +1 -0
- vellum/types/prompt_template_block_properties.py +11 -10
- vellum/types/prompt_template_block_properties_request.py +11 -10
- vellum/types/prompt_template_block_request.py +1 -0
- vellum/types/raw_prompt_execution_overrides_request.py +11 -5
- vellum/types/register_prompt_error_response.py +5 -1
- vellum/types/register_prompt_model_parameters_request.py +5 -4
- vellum/types/register_prompt_prompt.py +10 -2
- vellum/types/register_prompt_prompt_info_request.py +5 -3
- vellum/types/register_prompt_response.py +30 -10
- vellum/types/registered_prompt_deployment.py +15 -3
- vellum/types/registered_prompt_input_variable_request.py +3 -2
- vellum/types/registered_prompt_model_version.py +10 -2
- vellum/types/registered_prompt_sandbox.py +10 -2
- vellum/types/registered_prompt_sandbox_snapshot.py +5 -1
- vellum/types/rejected_enum.py +2 -2
- vellum/types/rejected_execute_prompt_event.py +2 -1
- vellum/types/rejected_execute_prompt_response.py +12 -5
- vellum/types/rejected_execute_workflow_workflow_result_event.py +1 -0
- vellum/types/rejected_function_call.py +2 -1
- vellum/types/rejected_prompt_execution_meta.py +3 -2
- vellum/types/rejected_workflow_node_result_event.py +4 -3
- vellum/types/sandbox_scenario.py +11 -3
- vellum/types/scenario_input.py +4 -3
- vellum/types/scenario_input_request.py +4 -3
- vellum/types/search_error_response.py +5 -1
- vellum/types/search_filters_request.py +10 -6
- vellum/types/search_node_result.py +1 -0
- vellum/types/search_node_result_data.py +7 -4
- vellum/types/search_request_options_request.py +20 -8
- vellum/types/search_response.py +5 -3
- vellum/types/search_result.py +15 -5
- vellum/types/search_result_document.py +20 -8
- vellum/types/search_result_document_request.py +15 -7
- vellum/types/search_result_merging_request.py +5 -1
- vellum/types/search_result_request.py +15 -5
- vellum/types/search_results_enum.py +2 -2
- vellum/types/search_results_variable_value.py +2 -1
- vellum/types/search_weights_request.py +10 -4
- vellum/types/slim_deployment_read.py +28 -14
- vellum/types/slim_document.py +56 -35
- vellum/types/slim_workflow_deployment.py +37 -24
- vellum/types/streaming_enum.py +2 -2
- vellum/types/streaming_execute_prompt_event.py +6 -4
- vellum/types/streaming_prompt_execution_meta.py +2 -1
- vellum/types/streaming_workflow_node_result_event.py +6 -5
- vellum/types/string_chat_message_content.py +1 -0
- vellum/types/string_chat_message_content_request.py +1 -0
- vellum/types/string_enum.py +2 -2
- vellum/types/string_input_request.py +6 -1
- vellum/types/string_variable_value.py +2 -1
- vellum/types/submit_completion_actual_request.py +25 -13
- vellum/types/submit_completion_actuals_error_response.py +1 -0
- vellum/types/submit_workflow_execution_actual_request.py +6 -5
- vellum/types/subworkflow_enum.py +2 -2
- vellum/types/subworkflow_node_result.py +1 -0
- vellum/types/templating_node_array_result.py +31 -0
- vellum/types/templating_node_chat_history_result.py +2 -1
- vellum/types/templating_node_error_result.py +2 -1
- vellum/types/templating_node_function_call_result.py +31 -0
- vellum/types/templating_node_json_result.py +2 -1
- vellum/types/templating_node_number_result.py +2 -1
- vellum/types/templating_node_result.py +1 -0
- vellum/types/templating_node_result_data.py +1 -0
- vellum/types/templating_node_result_output.py +36 -8
- vellum/types/templating_node_search_results_result.py +2 -1
- vellum/types/templating_node_string_result.py +2 -1
- vellum/types/terminal_node_array_result.py +8 -3
- vellum/types/terminal_node_chat_history_result.py +8 -3
- vellum/types/terminal_node_error_result.py +8 -3
- vellum/types/terminal_node_function_call_result.py +8 -3
- vellum/types/terminal_node_json_result.py +8 -3
- vellum/types/terminal_node_number_result.py +8 -3
- vellum/types/terminal_node_result.py +1 -0
- vellum/types/terminal_node_result_data.py +1 -0
- vellum/types/terminal_node_result_output.py +16 -10
- vellum/types/terminal_node_search_results_result.py +8 -3
- vellum/types/terminal_node_string_result.py +8 -3
- vellum/types/test_case_chat_history_variable_value.py +2 -1
- vellum/types/test_case_error_variable_value.py +2 -1
- vellum/types/test_case_json_variable_value.py +2 -1
- vellum/types/test_case_number_variable_value.py +2 -1
- vellum/types/test_case_search_results_variable_value.py +2 -1
- vellum/types/test_case_string_variable_value.py +2 -1
- vellum/types/test_case_variable_value.py +12 -8
- vellum/types/test_suite_run_deployment_release_tag_exec_config.py +5 -3
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data.py +10 -4
- vellum/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +10 -4
- vellum/types/test_suite_run_deployment_release_tag_exec_config_request.py +5 -3
- vellum/types/test_suite_run_deployment_release_tag_exec_config_type_enum.py +2 -2
- vellum/types/test_suite_run_exec_config.py +4 -4
- vellum/types/test_suite_run_exec_config_request.py +4 -4
- vellum/types/test_suite_run_execution.py +1 -0
- vellum/types/test_suite_run_execution_chat_history_output.py +2 -1
- vellum/types/test_suite_run_execution_error_output.py +2 -1
- vellum/types/test_suite_run_execution_json_output.py +2 -1
- vellum/types/test_suite_run_execution_metric_result.py +1 -0
- vellum/types/test_suite_run_execution_number_output.py +2 -1
- vellum/types/test_suite_run_execution_output.py +12 -8
- vellum/types/test_suite_run_execution_search_results_output.py +2 -1
- vellum/types/test_suite_run_execution_string_output.py +2 -1
- vellum/types/test_suite_run_metric_error_output.py +1 -0
- vellum/types/test_suite_run_metric_error_output_type_enum.py +2 -2
- vellum/types/test_suite_run_metric_number_output.py +1 -0
- vellum/types/test_suite_run_metric_number_output_type_enum.py +2 -2
- vellum/types/test_suite_run_metric_output.py +4 -4
- vellum/types/test_suite_run_read.py +16 -14
- vellum/types/test_suite_run_test_suite.py +1 -0
- vellum/types/test_suite_run_workflow_release_tag_exec_config.py +5 -3
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data.py +10 -6
- vellum/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +10 -6
- vellum/types/test_suite_run_workflow_release_tag_exec_config_request.py +5 -3
- vellum/types/test_suite_run_workflow_release_tag_exec_config_type_enum.py +2 -2
- vellum/types/test_suite_test_case.py +3 -2
- vellum/types/upload_document_error_response.py +1 -0
- vellum/types/upload_document_response.py +5 -1
- vellum/types/vellum_error.py +1 -0
- vellum/types/vellum_error_request.py +1 -0
- vellum/types/vellum_image.py +2 -1
- vellum/types/vellum_image_request.py +2 -1
- vellum/types/vellum_variable.py +1 -0
- vellum/types/workflow_deployment_read.py +37 -24
- vellum/types/workflow_event_error.py +1 -0
- vellum/types/workflow_execution_actual_chat_history_request.py +25 -15
- vellum/types/workflow_execution_actual_json_request.py +25 -15
- vellum/types/workflow_execution_actual_string_request.py +25 -15
- vellum/types/workflow_execution_node_result_event.py +3 -2
- vellum/types/workflow_execution_workflow_result_event.py +3 -2
- vellum/types/workflow_node_result_data.py +16 -10
- vellum/types/workflow_node_result_event.py +8 -6
- vellum/types/workflow_output.py +18 -11
- vellum/types/workflow_output_array.py +7 -2
- vellum/types/workflow_output_chat_history.py +7 -2
- vellum/types/workflow_output_error.py +7 -2
- vellum/types/workflow_output_function_call.py +7 -2
- vellum/types/workflow_output_image.py +7 -2
- vellum/types/workflow_output_json.py +7 -2
- vellum/types/workflow_output_number.py +7 -2
- vellum/types/workflow_output_search_results.py +7 -2
- vellum/types/workflow_output_string.py +7 -2
- vellum/types/workflow_request_chat_history_input_request.py +6 -1
- vellum/types/workflow_request_input_request.py +8 -6
- vellum/types/workflow_request_json_input_request.py +6 -1
- vellum/types/workflow_request_number_input_request.py +6 -1
- vellum/types/workflow_request_string_input_request.py +6 -1
- vellum/types/workflow_result_event.py +5 -4
- vellum/types/workflow_result_event_output_data.py +16 -10
- vellum/types/workflow_result_event_output_data_array.py +8 -5
- vellum/types/workflow_result_event_output_data_chat_history.py +8 -5
- vellum/types/workflow_result_event_output_data_error.py +8 -5
- vellum/types/workflow_result_event_output_data_function_call.py +8 -5
- vellum/types/workflow_result_event_output_data_json.py +8 -5
- vellum/types/workflow_result_event_output_data_number.py +8 -5
- vellum/types/workflow_result_event_output_data_search_results.py +8 -5
- vellum/types/workflow_result_event_output_data_string.py +11 -7
- vellum/types/workflow_stream_event.py +4 -4
- vellum/version.py +4 -0
- {vellum_ai-0.3.13.dist-info → vellum_ai-0.3.15.dist-info}/METADATA +4 -4
- vellum_ai-0.3.15.dist-info/RECORD +365 -0
- vellum_ai-0.3.13.dist-info/RECORD +0 -356
- {vellum_ai-0.3.13.dist-info → vellum_ai-0.3.15.dist-info}/LICENSE +0 -0
- {vellum_ai-0.3.13.dist-info → vellum_ai-0.3.15.dist-info}/WHEEL +0 -0
vellum/types/document_read.py
CHANGED
@@ -16,32 +16,41 @@ except ImportError:
|
|
16
16
|
|
17
17
|
class DocumentRead(pydantic.BaseModel):
|
18
18
|
id: str
|
19
|
-
external_id: typing.Optional[str] = pydantic.Field(
|
20
|
-
|
21
|
-
|
19
|
+
external_id: typing.Optional[str] = pydantic.Field(default=None)
|
20
|
+
"""
|
21
|
+
The unique id of this document as it exists in the user's system.
|
22
|
+
"""
|
23
|
+
|
22
24
|
last_uploaded_at: dt.datetime
|
23
|
-
label: str = pydantic.Field(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
)
|
39
|
-
|
40
|
-
|
25
|
+
label: str = pydantic.Field()
|
26
|
+
"""
|
27
|
+
A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
28
|
+
"""
|
29
|
+
|
30
|
+
processing_state: typing.Optional[ProcessingStateEnum] = pydantic.Field(default=None)
|
31
|
+
"""
|
32
|
+
The current processing state of the document
|
33
|
+
|
34
|
+
- `QUEUED` - Queued
|
35
|
+
- `PROCESSING` - Processing
|
36
|
+
- `PROCESSED` - Processed
|
37
|
+
- `FAILED` - Failed
|
38
|
+
"""
|
39
|
+
|
40
|
+
status: typing.Optional[DocumentStatus] = pydantic.Field(default=None)
|
41
|
+
"""
|
42
|
+
The current status of the document
|
43
|
+
|
44
|
+
- `ACTIVE` - Active
|
45
|
+
"""
|
46
|
+
|
47
|
+
original_file_url: typing.Optional[str] = None
|
48
|
+
processed_file_url: typing.Optional[str] = None
|
41
49
|
document_to_document_indexes: typing.List[DocumentDocumentToDocumentIndex]
|
42
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(
|
43
|
-
|
44
|
-
|
50
|
+
metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
|
51
|
+
"""
|
52
|
+
A previously supplied JSON object containing metadata that can be filtered on when searching.
|
53
|
+
"""
|
45
54
|
|
46
55
|
def json(self, **kwargs: typing.Any) -> str:
|
47
56
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -54,4 +63,5 @@ class DocumentRead(pydantic.BaseModel):
|
|
54
63
|
class Config:
|
55
64
|
frozen = True
|
56
65
|
smart_union = True
|
66
|
+
extra = pydantic.Extra.allow
|
57
67
|
json_encoders = {dt.datetime: serialize_datetime}
|
vellum/types/document_status.py
CHANGED
@@ -15,26 +15,42 @@ except ImportError:
|
|
15
15
|
|
16
16
|
|
17
17
|
class EnrichedNormalizedCompletion(pydantic.BaseModel):
|
18
|
-
id: str = pydantic.Field(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
18
|
+
id: str = pydantic.Field()
|
19
|
+
"""
|
20
|
+
The Vellum-generated ID of the completion.
|
21
|
+
"""
|
22
|
+
|
23
|
+
external_id: typing.Optional[str] = pydantic.Field(default=None)
|
24
|
+
"""
|
25
|
+
The external ID that was originally provided along with the generation request, which uniquely identifies this generation in an external system.
|
26
|
+
"""
|
27
|
+
|
28
|
+
text: str = pydantic.Field()
|
29
|
+
"""
|
30
|
+
The text generated by the LLM.
|
31
|
+
"""
|
32
|
+
|
33
|
+
finish_reason: typing.Optional[FinishReasonEnum] = pydantic.Field(default=None)
|
34
|
+
"""
|
35
|
+
The reason the generation finished.
|
36
|
+
|
37
|
+
- `LENGTH` - LENGTH
|
38
|
+
- `STOP` - STOP
|
39
|
+
- `UNKNOWN` - UNKNOWN
|
40
|
+
"""
|
41
|
+
|
42
|
+
logprobs: typing.Optional[NormalizedLogProbs] = pydantic.Field(default=None)
|
43
|
+
"""
|
44
|
+
The logprobs of the completion. Only present if specified in the original request options.
|
45
|
+
"""
|
46
|
+
|
47
|
+
model_version_id: str = pydantic.Field()
|
48
|
+
"""
|
49
|
+
The ID of the model version used to generate this completion.
|
50
|
+
"""
|
51
|
+
|
36
52
|
prompt_version_id: str
|
37
|
-
type: typing.Optional[VellumVariableType]
|
53
|
+
type: typing.Optional[VellumVariableType] = None
|
38
54
|
deployment_release_tag: str
|
39
55
|
model_name: str
|
40
56
|
|
@@ -49,4 +65,5 @@ class EnrichedNormalizedCompletion(pydantic.BaseModel):
|
|
49
65
|
class Config:
|
50
66
|
frozen = True
|
51
67
|
smart_union = True
|
68
|
+
extra = pydantic.Extra.allow
|
52
69
|
json_encoders = {dt.datetime: serialize_datetime}
|
vellum/types/error_enum.py
CHANGED
@@ -13,7 +13,7 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ErrorVariableValue(pydantic.BaseModel):
|
16
|
-
value: typing.Optional[VellumError]
|
16
|
+
value: typing.Optional[VellumError] = None
|
17
17
|
|
18
18
|
def json(self, **kwargs: typing.Any) -> str:
|
19
19
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -26,4 +26,5 @@ class ErrorVariableValue(pydantic.BaseModel):
|
|
26
26
|
class Config:
|
27
27
|
frozen = True
|
28
28
|
smart_union = True
|
29
|
+
extra = pydantic.Extra.allow
|
29
30
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,7 +12,10 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecutePromptApiErrorResponse(pydantic.BaseModel):
|
15
|
-
detail: str = pydantic.Field(
|
15
|
+
detail: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
Details about why the request failed.
|
18
|
+
"""
|
16
19
|
|
17
20
|
def json(self, **kwargs: typing.Any) -> str:
|
18
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -25,4 +28,5 @@ class ExecutePromptApiErrorResponse(pydantic.BaseModel):
|
|
25
28
|
class Config:
|
26
29
|
frozen = True
|
27
30
|
smart_union = True
|
31
|
+
extra = pydantic.Extra.allow
|
28
32
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,8 +4,6 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
import typing_extensions
|
8
|
-
|
9
7
|
from .fulfilled_execute_prompt_event import FulfilledExecutePromptEvent
|
10
8
|
from .initiated_execute_prompt_event import InitiatedExecutePromptEvent
|
11
9
|
from .rejected_execute_prompt_event import RejectedExecutePromptEvent
|
@@ -13,39 +11,43 @@ from .streaming_execute_prompt_event import StreamingExecutePromptEvent
|
|
13
11
|
|
14
12
|
|
15
13
|
class ExecutePromptEvent_Initiated(InitiatedExecutePromptEvent):
|
16
|
-
state:
|
14
|
+
state: typing.Literal["INITIATED"] = "INITIATED"
|
17
15
|
|
18
16
|
class Config:
|
19
17
|
frozen = True
|
20
18
|
smart_union = True
|
21
19
|
allow_population_by_field_name = True
|
20
|
+
populate_by_name = True
|
22
21
|
|
23
22
|
|
24
23
|
class ExecutePromptEvent_Streaming(StreamingExecutePromptEvent):
|
25
|
-
state:
|
24
|
+
state: typing.Literal["STREAMING"] = "STREAMING"
|
26
25
|
|
27
26
|
class Config:
|
28
27
|
frozen = True
|
29
28
|
smart_union = True
|
30
29
|
allow_population_by_field_name = True
|
30
|
+
populate_by_name = True
|
31
31
|
|
32
32
|
|
33
33
|
class ExecutePromptEvent_Fulfilled(FulfilledExecutePromptEvent):
|
34
|
-
state:
|
34
|
+
state: typing.Literal["FULFILLED"] = "FULFILLED"
|
35
35
|
|
36
36
|
class Config:
|
37
37
|
frozen = True
|
38
38
|
smart_union = True
|
39
39
|
allow_population_by_field_name = True
|
40
|
+
populate_by_name = True
|
40
41
|
|
41
42
|
|
42
43
|
class ExecutePromptEvent_Rejected(RejectedExecutePromptEvent):
|
43
|
-
state:
|
44
|
+
state: typing.Literal["REJECTED"] = "REJECTED"
|
44
45
|
|
45
46
|
class Config:
|
46
47
|
frozen = True
|
47
48
|
smart_union = True
|
48
49
|
allow_population_by_field_name = True
|
50
|
+
populate_by_name = True
|
49
51
|
|
50
52
|
|
51
53
|
ExecutePromptEvent = typing.Union[
|
@@ -4,28 +4,28 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
import typing_extensions
|
8
|
-
|
9
7
|
from .fulfilled_execute_prompt_response import FulfilledExecutePromptResponse
|
10
8
|
from .rejected_execute_prompt_response import RejectedExecutePromptResponse
|
11
9
|
|
12
10
|
|
13
11
|
class ExecutePromptResponse_Fulfilled(FulfilledExecutePromptResponse):
|
14
|
-
state:
|
12
|
+
state: typing.Literal["FULFILLED"] = "FULFILLED"
|
15
13
|
|
16
14
|
class Config:
|
17
15
|
frozen = True
|
18
16
|
smart_union = True
|
19
17
|
allow_population_by_field_name = True
|
18
|
+
populate_by_name = True
|
20
19
|
|
21
20
|
|
22
21
|
class ExecutePromptResponse_Rejected(RejectedExecutePromptResponse):
|
23
|
-
state:
|
22
|
+
state: typing.Literal["REJECTED"] = "REJECTED"
|
24
23
|
|
25
24
|
class Config:
|
26
25
|
frozen = True
|
27
26
|
smart_union = True
|
28
27
|
allow_population_by_field_name = True
|
28
|
+
populate_by_name = True
|
29
29
|
|
30
30
|
|
31
31
|
ExecutePromptResponse = typing.Union[ExecutePromptResponse_Fulfilled, ExecutePromptResponse_Rejected]
|
@@ -12,7 +12,10 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecuteWorkflowErrorResponse(pydantic.BaseModel):
|
15
|
-
detail: str = pydantic.Field(
|
15
|
+
detail: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
Details about why the request failed.
|
18
|
+
"""
|
16
19
|
|
17
20
|
def json(self, **kwargs: typing.Any) -> str:
|
18
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -25,4 +28,5 @@ class ExecuteWorkflowErrorResponse(pydantic.BaseModel):
|
|
25
28
|
class Config:
|
26
29
|
frozen = True
|
27
30
|
smart_union = True
|
31
|
+
extra = pydantic.Extra.allow
|
28
32
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -14,8 +14,8 @@ except ImportError:
|
|
14
14
|
|
15
15
|
class ExecuteWorkflowResponse(pydantic.BaseModel):
|
16
16
|
execution_id: str
|
17
|
-
run_id: typing.Optional[str]
|
18
|
-
external_id: typing.Optional[str]
|
17
|
+
run_id: typing.Optional[str] = None
|
18
|
+
external_id: typing.Optional[str] = None
|
19
19
|
data: ExecuteWorkflowWorkflowResultEvent
|
20
20
|
|
21
21
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -29,4 +29,5 @@ class ExecuteWorkflowResponse(pydantic.BaseModel):
|
|
29
29
|
class Config:
|
30
30
|
frozen = True
|
31
31
|
smart_union = True
|
32
|
+
extra = pydantic.Extra.allow
|
32
33
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,7 +12,10 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecuteWorkflowStreamErrorResponse(pydantic.BaseModel):
|
15
|
-
detail: str = pydantic.Field(
|
15
|
+
detail: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
Details about why the request failed.
|
18
|
+
"""
|
16
19
|
|
17
20
|
def json(self, **kwargs: typing.Any) -> str:
|
18
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -25,4 +28,5 @@ class ExecuteWorkflowStreamErrorResponse(pydantic.BaseModel):
|
|
25
28
|
class Config:
|
26
29
|
frozen = True
|
27
30
|
smart_union = True
|
31
|
+
extra = pydantic.Extra.allow
|
28
32
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,28 +4,28 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
import typing_extensions
|
8
|
-
|
9
7
|
from .fulfilled_execute_workflow_workflow_result_event import FulfilledExecuteWorkflowWorkflowResultEvent
|
10
8
|
from .rejected_execute_workflow_workflow_result_event import RejectedExecuteWorkflowWorkflowResultEvent
|
11
9
|
|
12
10
|
|
13
11
|
class ExecuteWorkflowWorkflowResultEvent_Fulfilled(FulfilledExecuteWorkflowWorkflowResultEvent):
|
14
|
-
state:
|
12
|
+
state: typing.Literal["FULFILLED"] = "FULFILLED"
|
15
13
|
|
16
14
|
class Config:
|
17
15
|
frozen = True
|
18
16
|
smart_union = True
|
19
17
|
allow_population_by_field_name = True
|
18
|
+
populate_by_name = True
|
20
19
|
|
21
20
|
|
22
21
|
class ExecuteWorkflowWorkflowResultEvent_Rejected(RejectedExecuteWorkflowWorkflowResultEvent):
|
23
|
-
state:
|
22
|
+
state: typing.Literal["REJECTED"] = "REJECTED"
|
24
23
|
|
25
24
|
class Config:
|
26
25
|
frozen = True
|
27
26
|
smart_union = True
|
28
27
|
allow_population_by_field_name = True
|
28
|
+
populate_by_name = True
|
29
29
|
|
30
30
|
|
31
31
|
ExecuteWorkflowWorkflowResultEvent = typing.Union[
|
@@ -13,9 +13,13 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ExecutionArrayVellumValue(pydantic.BaseModel):
|
16
|
-
id: str = pydantic.Field(
|
16
|
+
id: str = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The variable's uniquely identifying internal id.
|
19
|
+
"""
|
20
|
+
|
17
21
|
name: str
|
18
|
-
value: typing.Optional[typing.List[ArrayVariableValueItem]]
|
22
|
+
value: typing.Optional[typing.List[ArrayVariableValueItem]] = None
|
19
23
|
|
20
24
|
def json(self, **kwargs: typing.Any) -> str:
|
21
25
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -28,4 +32,5 @@ class ExecutionArrayVellumValue(pydantic.BaseModel):
|
|
28
32
|
class Config:
|
29
33
|
frozen = True
|
30
34
|
smart_union = True
|
35
|
+
extra = pydantic.Extra.allow
|
31
36
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -13,9 +13,13 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ExecutionChatHistoryVellumValue(pydantic.BaseModel):
|
16
|
-
id: str = pydantic.Field(
|
16
|
+
id: str = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The variable's uniquely identifying internal id.
|
19
|
+
"""
|
20
|
+
|
17
21
|
name: str
|
18
|
-
value: typing.Optional[typing.List[ChatMessage]]
|
22
|
+
value: typing.Optional[typing.List[ChatMessage]] = None
|
19
23
|
|
20
24
|
def json(self, **kwargs: typing.Any) -> str:
|
21
25
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -28,4 +32,5 @@ class ExecutionChatHistoryVellumValue(pydantic.BaseModel):
|
|
28
32
|
class Config:
|
29
33
|
frozen = True
|
30
34
|
smart_union = True
|
35
|
+
extra = pydantic.Extra.allow
|
31
36
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -13,9 +13,13 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ExecutionErrorVellumValue(pydantic.BaseModel):
|
16
|
-
id: str = pydantic.Field(
|
16
|
+
id: str = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The variable's uniquely identifying internal id.
|
19
|
+
"""
|
20
|
+
|
17
21
|
name: str
|
18
|
-
value: typing.Optional[VellumError]
|
22
|
+
value: typing.Optional[VellumError] = None
|
19
23
|
|
20
24
|
def json(self, **kwargs: typing.Any) -> str:
|
21
25
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -28,4 +32,5 @@ class ExecutionErrorVellumValue(pydantic.BaseModel):
|
|
28
32
|
class Config:
|
29
33
|
frozen = True
|
30
34
|
smart_union = True
|
35
|
+
extra = pydantic.Extra.allow
|
31
36
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -13,9 +13,13 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ExecutionFunctionCallVellumValue(pydantic.BaseModel):
|
16
|
-
id: str = pydantic.Field(
|
16
|
+
id: str = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The variable's uniquely identifying internal id.
|
19
|
+
"""
|
20
|
+
|
17
21
|
name: str
|
18
|
-
value: typing.Optional[FunctionCall]
|
22
|
+
value: typing.Optional[FunctionCall] = None
|
19
23
|
|
20
24
|
def json(self, **kwargs: typing.Any) -> str:
|
21
25
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -28,4 +32,5 @@ class ExecutionFunctionCallVellumValue(pydantic.BaseModel):
|
|
28
32
|
class Config:
|
29
33
|
frozen = True
|
30
34
|
smart_union = True
|
35
|
+
extra = pydantic.Extra.allow
|
31
36
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,9 +12,13 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecutionJsonVellumValue(pydantic.BaseModel):
|
15
|
-
id: str = pydantic.Field(
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
16
20
|
name: str
|
17
|
-
value: typing.Optional[typing.Dict[str, typing.Any]]
|
21
|
+
value: typing.Optional[typing.Dict[str, typing.Any]] = None
|
18
22
|
|
19
23
|
def json(self, **kwargs: typing.Any) -> str:
|
20
24
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -27,4 +31,5 @@ class ExecutionJsonVellumValue(pydantic.BaseModel):
|
|
27
31
|
class Config:
|
28
32
|
frozen = True
|
29
33
|
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
30
35
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,9 +12,13 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecutionNumberVellumValue(pydantic.BaseModel):
|
15
|
-
id: str = pydantic.Field(
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
16
20
|
name: str
|
17
|
-
value: typing.Optional[float]
|
21
|
+
value: typing.Optional[float] = None
|
18
22
|
|
19
23
|
def json(self, **kwargs: typing.Any) -> str:
|
20
24
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -27,4 +31,5 @@ class ExecutionNumberVellumValue(pydantic.BaseModel):
|
|
27
31
|
class Config:
|
28
32
|
frozen = True
|
29
33
|
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
30
35
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -13,9 +13,13 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class ExecutionSearchResultsVellumValue(pydantic.BaseModel):
|
16
|
-
id: str = pydantic.Field(
|
16
|
+
id: str = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The variable's uniquely identifying internal id.
|
19
|
+
"""
|
20
|
+
|
17
21
|
name: str
|
18
|
-
value: typing.Optional[typing.List[SearchResult]]
|
22
|
+
value: typing.Optional[typing.List[SearchResult]] = None
|
19
23
|
|
20
24
|
def json(self, **kwargs: typing.Any) -> str:
|
21
25
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -28,4 +32,5 @@ class ExecutionSearchResultsVellumValue(pydantic.BaseModel):
|
|
28
32
|
class Config:
|
29
33
|
frozen = True
|
30
34
|
smart_union = True
|
35
|
+
extra = pydantic.Extra.allow
|
31
36
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,9 +12,13 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class ExecutionStringVellumValue(pydantic.BaseModel):
|
15
|
-
id: str = pydantic.Field(
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
16
20
|
name: str
|
17
|
-
value: typing.Optional[str]
|
21
|
+
value: typing.Optional[str] = None
|
18
22
|
|
19
23
|
def json(self, **kwargs: typing.Any) -> str:
|
20
24
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -27,4 +31,5 @@ class ExecutionStringVellumValue(pydantic.BaseModel):
|
|
27
31
|
class Config:
|
28
32
|
frozen = True
|
29
33
|
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
30
35
|
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,8 +4,6 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
import typing_extensions
|
8
|
-
|
9
7
|
from .execution_array_vellum_value import ExecutionArrayVellumValue
|
10
8
|
from .execution_chat_history_vellum_value import ExecutionChatHistoryVellumValue
|
11
9
|
from .execution_error_vellum_value import ExecutionErrorVellumValue
|
@@ -17,75 +15,83 @@ from .execution_string_vellum_value import ExecutionStringVellumValue
|
|
17
15
|
|
18
16
|
|
19
17
|
class ExecutionVellumValue_String(ExecutionStringVellumValue):
|
20
|
-
type:
|
18
|
+
type: typing.Literal["STRING"] = "STRING"
|
21
19
|
|
22
20
|
class Config:
|
23
21
|
frozen = True
|
24
22
|
smart_union = True
|
25
23
|
allow_population_by_field_name = True
|
24
|
+
populate_by_name = True
|
26
25
|
|
27
26
|
|
28
27
|
class ExecutionVellumValue_Number(ExecutionNumberVellumValue):
|
29
|
-
type:
|
28
|
+
type: typing.Literal["NUMBER"] = "NUMBER"
|
30
29
|
|
31
30
|
class Config:
|
32
31
|
frozen = True
|
33
32
|
smart_union = True
|
34
33
|
allow_population_by_field_name = True
|
34
|
+
populate_by_name = True
|
35
35
|
|
36
36
|
|
37
37
|
class ExecutionVellumValue_Json(ExecutionJsonVellumValue):
|
38
|
-
type:
|
38
|
+
type: typing.Literal["JSON"] = "JSON"
|
39
39
|
|
40
40
|
class Config:
|
41
41
|
frozen = True
|
42
42
|
smart_union = True
|
43
43
|
allow_population_by_field_name = True
|
44
|
+
populate_by_name = True
|
44
45
|
|
45
46
|
|
46
47
|
class ExecutionVellumValue_ChatHistory(ExecutionChatHistoryVellumValue):
|
47
|
-
type:
|
48
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
48
49
|
|
49
50
|
class Config:
|
50
51
|
frozen = True
|
51
52
|
smart_union = True
|
52
53
|
allow_population_by_field_name = True
|
54
|
+
populate_by_name = True
|
53
55
|
|
54
56
|
|
55
57
|
class ExecutionVellumValue_SearchResults(ExecutionSearchResultsVellumValue):
|
56
|
-
type:
|
58
|
+
type: typing.Literal["SEARCH_RESULTS"] = "SEARCH_RESULTS"
|
57
59
|
|
58
60
|
class Config:
|
59
61
|
frozen = True
|
60
62
|
smart_union = True
|
61
63
|
allow_population_by_field_name = True
|
64
|
+
populate_by_name = True
|
62
65
|
|
63
66
|
|
64
67
|
class ExecutionVellumValue_Error(ExecutionErrorVellumValue):
|
65
|
-
type:
|
68
|
+
type: typing.Literal["ERROR"] = "ERROR"
|
66
69
|
|
67
70
|
class Config:
|
68
71
|
frozen = True
|
69
72
|
smart_union = True
|
70
73
|
allow_population_by_field_name = True
|
74
|
+
populate_by_name = True
|
71
75
|
|
72
76
|
|
73
77
|
class ExecutionVellumValue_Array(ExecutionArrayVellumValue):
|
74
|
-
type:
|
78
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
75
79
|
|
76
80
|
class Config:
|
77
81
|
frozen = True
|
78
82
|
smart_union = True
|
79
83
|
allow_population_by_field_name = True
|
84
|
+
populate_by_name = True
|
80
85
|
|
81
86
|
|
82
87
|
class ExecutionVellumValue_FunctionCall(ExecutionFunctionCallVellumValue):
|
83
|
-
type:
|
88
|
+
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
84
89
|
|
85
90
|
class Config:
|
86
91
|
frozen = True
|
87
92
|
smart_union = True
|
88
93
|
allow_population_by_field_name = True
|
94
|
+
populate_by_name = True
|
89
95
|
|
90
96
|
|
91
97
|
ExecutionVellumValue = typing.Union[
|
vellum/types/fulfilled_enum.py
CHANGED