vellum-ai 0.0.43__tar.gz → 0.0.44__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/PKG-INFO +1 -1
  2. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/pyproject.toml +1 -1
  3. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/__init__.py +20 -2
  4. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/client_wrapper.py +1 -1
  5. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/registered_prompts/client.py +14 -2
  6. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/__init__.py +20 -2
  7. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/deployment_read.py +0 -2
  8. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/enriched_normalized_completion.py +1 -0
  9. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_build_config.py +1 -0
  10. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_read.py +2 -3
  11. vellum_ai-0.0.44/src/vellum/types/node_input_compiled_error_value.py +31 -0
  12. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_variable_compiled_value.py +11 -0
  13. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/provider_enum.py +10 -5
  14. vellum_ai-0.0.44/src/vellum/types/templating_node_error_result.py +30 -0
  15. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_result_output.py +11 -0
  16. vellum_ai-0.0.44/src/vellum/types/terminal_node_error_result.py +31 -0
  17. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_result_output.py +11 -0
  18. vellum_ai-0.0.44/src/vellum/types/vellum_error.py +30 -0
  19. vellum_ai-0.0.44/src/vellum/types/vellum_error_code_enum.py +31 -0
  20. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/vellum_variable_type.py +5 -0
  21. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data.py +11 -0
  22. vellum_ai-0.0.44/src/vellum/types/workflow_result_event_output_data_error.py +37 -0
  23. vellum_ai-0.0.43/src/vellum/types/model_type_deprecated.py +0 -22
  24. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/README.md +0 -0
  25. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/client.py +0 -0
  26. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/__init__.py +0 -0
  27. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/api_error.py +0 -0
  28. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/datetime_utils.py +0 -0
  29. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/jsonable_encoder.py +0 -0
  30. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/core/remove_none_from_dict.py +0 -0
  31. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/environment.py +0 -0
  32. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/__init__.py +0 -0
  33. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/bad_request_error.py +0 -0
  34. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/conflict_error.py +0 -0
  35. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/forbidden_error.py +0 -0
  36. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/internal_server_error.py +0 -0
  37. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/errors/not_found_error.py +0 -0
  38. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/py.typed +0 -0
  39. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/__init__.py +0 -0
  40. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/deployments/__init__.py +0 -0
  41. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/deployments/client.py +0 -0
  42. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/document_indexes/__init__.py +0 -0
  43. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/document_indexes/client.py +0 -0
  44. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/documents/__init__.py +0 -0
  45. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/documents/client.py +0 -0
  46. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/model_versions/__init__.py +0 -0
  47. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/model_versions/client.py +0 -0
  48. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/registered_prompts/__init__.py +0 -0
  49. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/sandboxes/__init__.py +0 -0
  50. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/sandboxes/client.py +0 -0
  51. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/test_suites/__init__.py +0 -0
  52. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/resources/test_suites/client.py +0 -0
  53. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/api_node_result.py +0 -0
  54. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/api_node_result_data.py +0 -0
  55. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/block_type_enum.py +0 -0
  56. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/chat_message.py +0 -0
  57. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/chat_message_request.py +0 -0
  58. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/chat_message_role.py +0 -0
  59. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/conditional_node_result.py +0 -0
  60. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/conditional_node_result_data.py +0 -0
  61. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/deployment_status.py +0 -0
  62. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/document_document_to_document_index.py +0 -0
  63. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/document_index_read.py +0 -0
  64. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/document_index_status.py +0 -0
  65. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/document_read.py +0 -0
  66. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/document_status.py +0 -0
  67. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/environment_enum.py +0 -0
  68. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/evaluation_params.py +0 -0
  69. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/evaluation_params_request.py +0 -0
  70. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/execute_workflow_stream_error_response.py +0 -0
  71. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/finish_reason_enum.py +0 -0
  72. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_error_response.py +0 -0
  73. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_options_request.py +0 -0
  74. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_request.py +0 -0
  75. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_response.py +0 -0
  76. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_result.py +0 -0
  77. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_result_data.py +0 -0
  78. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_result_error.py +0 -0
  79. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_stream_response.py +0 -0
  80. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_stream_result.py +0 -0
  81. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/generate_stream_result_data.py +0 -0
  82. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/indexing_state_enum.py +0 -0
  83. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/logical_operator.py +0 -0
  84. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/logprobs_enum.py +0 -0
  85. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/metadata_filter_config_request.py +0 -0
  86. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/metadata_filter_rule_combinator.py +0 -0
  87. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/metadata_filter_rule_request.py +0 -0
  88. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_compile_prompt_response.py +0 -0
  89. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_compiled_prompt.py +0 -0
  90. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_exec_config.py +0 -0
  91. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_exec_config_parameters.py +0 -0
  92. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_read_status_enum.py +0 -0
  93. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/model_version_sandbox_snapshot.py +0 -0
  94. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_compiled_chat_history_value.py +0 -0
  95. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_compiled_json_value.py +0 -0
  96. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_compiled_number_value.py +0 -0
  97. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_compiled_search_results_value.py +0 -0
  98. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/node_input_compiled_string_value.py +0 -0
  99. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/normalized_log_probs.py +0 -0
  100. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/normalized_token_log_probs.py +0 -0
  101. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/paginated_slim_document_list.py +0 -0
  102. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/processing_failure_reason_enum.py +0 -0
  103. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/processing_state_enum.py +0 -0
  104. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_node_result.py +0 -0
  105. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_node_result_data.py +0 -0
  106. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block.py +0 -0
  107. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block_data.py +0 -0
  108. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block_data_request.py +0 -0
  109. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block_properties.py +0 -0
  110. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block_properties_request.py +0 -0
  111. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/prompt_template_block_request.py +0 -0
  112. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/register_prompt_error_response.py +0 -0
  113. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/register_prompt_model_parameters_request.py +0 -0
  114. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/register_prompt_prompt.py +0 -0
  115. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/register_prompt_prompt_info_request.py +0 -0
  116. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/register_prompt_response.py +0 -0
  117. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/registered_prompt_deployment.py +0 -0
  118. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/registered_prompt_input_variable_request.py +0 -0
  119. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/registered_prompt_model_version.py +0 -0
  120. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/registered_prompt_sandbox.py +0 -0
  121. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/registered_prompt_sandbox_snapshot.py +0 -0
  122. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/sandbox_metric_input_params.py +0 -0
  123. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/sandbox_metric_input_params_request.py +0 -0
  124. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/sandbox_scenario.py +0 -0
  125. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/scenario_input.py +0 -0
  126. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/scenario_input_request.py +0 -0
  127. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/scenario_input_type_enum.py +0 -0
  128. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_error_response.py +0 -0
  129. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_filters_request.py +0 -0
  130. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_node_result.py +0 -0
  131. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_node_result_data.py +0 -0
  132. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_request_options_request.py +0 -0
  133. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_response.py +0 -0
  134. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_result.py +0 -0
  135. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_result_document.py +0 -0
  136. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_result_merging_request.py +0 -0
  137. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/search_weights_request.py +0 -0
  138. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/slim_document.py +0 -0
  139. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/submit_completion_actual_request.py +0 -0
  140. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/submit_completion_actuals_error_response.py +0 -0
  141. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/submit_workflow_execution_actual_request.py +0 -0
  142. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_chat_history_result.py +0 -0
  143. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_json_result.py +0 -0
  144. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_number_result.py +0 -0
  145. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_result.py +0 -0
  146. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_result_data.py +0 -0
  147. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_search_results_result.py +0 -0
  148. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/templating_node_string_result.py +0 -0
  149. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_chat_history_result.py +0 -0
  150. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_json_result.py +0 -0
  151. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_number_result.py +0 -0
  152. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_result.py +0 -0
  153. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_result_data.py +0 -0
  154. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_search_results_result.py +0 -0
  155. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/terminal_node_string_result.py +0 -0
  156. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/test_suite_test_case.py +0 -0
  157. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/upload_document_error_response.py +0 -0
  158. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/upload_document_response.py +0 -0
  159. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/vellum_variable.py +0 -0
  160. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_event_error.py +0 -0
  161. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_actual_chat_history_request.py +0 -0
  162. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_actual_json_request.py +0 -0
  163. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_actual_string_request.py +0 -0
  164. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_event_error_code.py +0 -0
  165. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_event_type.py +0 -0
  166. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_node_result_event.py +0 -0
  167. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_execution_workflow_result_event.py +0 -0
  168. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_node_result_data.py +0 -0
  169. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_node_result_event.py +0 -0
  170. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_node_result_event_state.py +0 -0
  171. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_request_chat_history_input_request.py +0 -0
  172. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_request_input_request.py +0 -0
  173. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_request_json_input_request.py +0 -0
  174. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_request_string_input_request.py +0 -0
  175. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event.py +0 -0
  176. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data_chat_history.py +0 -0
  177. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data_json.py +0 -0
  178. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data_number.py +0 -0
  179. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data_search_results.py +0 -0
  180. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/src/vellum/types/workflow_result_event_output_data_string.py +0 -0
  181. {vellum_ai-0.0.43 → vellum_ai-0.0.44}/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.43
3
+ Version: 0.0.44
4
4
  Summary:
5
5
  Requires-Python: >=3.7,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "vellum-ai"
3
- version = "v0.0.43"
3
+ version = "v0.0.44"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -38,7 +38,6 @@ from .types import (
38
38
  MetadataFilterConfigRequest,
39
39
  MetadataFilterRuleCombinator,
40
40
  MetadataFilterRuleRequest,
41
- ModelTypeDeprecated,
42
41
  ModelVersionBuildConfig,
43
42
  ModelVersionCompilePromptResponse,
44
43
  ModelVersionCompiledPrompt,
@@ -48,12 +47,14 @@ from .types import (
48
47
  ModelVersionReadStatusEnum,
49
48
  ModelVersionSandboxSnapshot,
50
49
  NodeInputCompiledChatHistoryValue,
50
+ NodeInputCompiledErrorValue,
51
51
  NodeInputCompiledJsonValue,
52
52
  NodeInputCompiledNumberValue,
53
53
  NodeInputCompiledSearchResultsValue,
54
54
  NodeInputCompiledStringValue,
55
55
  NodeInputVariableCompiledValue,
56
56
  NodeInputVariableCompiledValue_ChatHistory,
57
+ NodeInputVariableCompiledValue_Error,
57
58
  NodeInputVariableCompiledValue_Json,
58
59
  NodeInputVariableCompiledValue_Number,
59
60
  NodeInputVariableCompiledValue_SearchResults,
@@ -106,12 +107,14 @@ from .types import (
106
107
  SubmitWorkflowExecutionActualRequest_Json,
107
108
  SubmitWorkflowExecutionActualRequest_String,
108
109
  TemplatingNodeChatHistoryResult,
110
+ TemplatingNodeErrorResult,
109
111
  TemplatingNodeJsonResult,
110
112
  TemplatingNodeNumberResult,
111
113
  TemplatingNodeResult,
112
114
  TemplatingNodeResultData,
113
115
  TemplatingNodeResultOutput,
114
116
  TemplatingNodeResultOutput_ChatHistory,
117
+ TemplatingNodeResultOutput_Error,
115
118
  TemplatingNodeResultOutput_Json,
116
119
  TemplatingNodeResultOutput_Number,
117
120
  TemplatingNodeResultOutput_SearchResults,
@@ -119,12 +122,14 @@ from .types import (
119
122
  TemplatingNodeSearchResultsResult,
120
123
  TemplatingNodeStringResult,
121
124
  TerminalNodeChatHistoryResult,
125
+ TerminalNodeErrorResult,
122
126
  TerminalNodeJsonResult,
123
127
  TerminalNodeNumberResult,
124
128
  TerminalNodeResult,
125
129
  TerminalNodeResultData,
126
130
  TerminalNodeResultOutput,
127
131
  TerminalNodeResultOutput_ChatHistory,
132
+ TerminalNodeResultOutput_Error,
128
133
  TerminalNodeResultOutput_Json,
129
134
  TerminalNodeResultOutput_Number,
130
135
  TerminalNodeResultOutput_SearchResults,
@@ -134,6 +139,8 @@ from .types import (
134
139
  TestSuiteTestCase,
135
140
  UploadDocumentErrorResponse,
136
141
  UploadDocumentResponse,
142
+ VellumError,
143
+ VellumErrorCodeEnum,
137
144
  VellumVariable,
138
145
  VellumVariableType,
139
146
  WorkflowEventError,
@@ -163,11 +170,13 @@ from .types import (
163
170
  WorkflowResultEvent,
164
171
  WorkflowResultEventOutputData,
165
172
  WorkflowResultEventOutputDataChatHistory,
173
+ WorkflowResultEventOutputDataError,
166
174
  WorkflowResultEventOutputDataJson,
167
175
  WorkflowResultEventOutputDataNumber,
168
176
  WorkflowResultEventOutputDataSearchResults,
169
177
  WorkflowResultEventOutputDataString,
170
178
  WorkflowResultEventOutputData_ChatHistory,
179
+ WorkflowResultEventOutputData_Error,
171
180
  WorkflowResultEventOutputData_Json,
172
181
  WorkflowResultEventOutputData_Number,
173
182
  WorkflowResultEventOutputData_SearchResults,
@@ -230,7 +239,6 @@ __all__ = [
230
239
  "MetadataFilterConfigRequest",
231
240
  "MetadataFilterRuleCombinator",
232
241
  "MetadataFilterRuleRequest",
233
- "ModelTypeDeprecated",
234
242
  "ModelVersionBuildConfig",
235
243
  "ModelVersionCompilePromptResponse",
236
244
  "ModelVersionCompiledPrompt",
@@ -240,12 +248,14 @@ __all__ = [
240
248
  "ModelVersionReadStatusEnum",
241
249
  "ModelVersionSandboxSnapshot",
242
250
  "NodeInputCompiledChatHistoryValue",
251
+ "NodeInputCompiledErrorValue",
243
252
  "NodeInputCompiledJsonValue",
244
253
  "NodeInputCompiledNumberValue",
245
254
  "NodeInputCompiledSearchResultsValue",
246
255
  "NodeInputCompiledStringValue",
247
256
  "NodeInputVariableCompiledValue",
248
257
  "NodeInputVariableCompiledValue_ChatHistory",
258
+ "NodeInputVariableCompiledValue_Error",
249
259
  "NodeInputVariableCompiledValue_Json",
250
260
  "NodeInputVariableCompiledValue_Number",
251
261
  "NodeInputVariableCompiledValue_SearchResults",
@@ -299,12 +309,14 @@ __all__ = [
299
309
  "SubmitWorkflowExecutionActualRequest_Json",
300
310
  "SubmitWorkflowExecutionActualRequest_String",
301
311
  "TemplatingNodeChatHistoryResult",
312
+ "TemplatingNodeErrorResult",
302
313
  "TemplatingNodeJsonResult",
303
314
  "TemplatingNodeNumberResult",
304
315
  "TemplatingNodeResult",
305
316
  "TemplatingNodeResultData",
306
317
  "TemplatingNodeResultOutput",
307
318
  "TemplatingNodeResultOutput_ChatHistory",
319
+ "TemplatingNodeResultOutput_Error",
308
320
  "TemplatingNodeResultOutput_Json",
309
321
  "TemplatingNodeResultOutput_Number",
310
322
  "TemplatingNodeResultOutput_SearchResults",
@@ -312,12 +324,14 @@ __all__ = [
312
324
  "TemplatingNodeSearchResultsResult",
313
325
  "TemplatingNodeStringResult",
314
326
  "TerminalNodeChatHistoryResult",
327
+ "TerminalNodeErrorResult",
315
328
  "TerminalNodeJsonResult",
316
329
  "TerminalNodeNumberResult",
317
330
  "TerminalNodeResult",
318
331
  "TerminalNodeResultData",
319
332
  "TerminalNodeResultOutput",
320
333
  "TerminalNodeResultOutput_ChatHistory",
334
+ "TerminalNodeResultOutput_Error",
321
335
  "TerminalNodeResultOutput_Json",
322
336
  "TerminalNodeResultOutput_Number",
323
337
  "TerminalNodeResultOutput_SearchResults",
@@ -328,6 +342,8 @@ __all__ = [
328
342
  "UploadDocumentErrorResponse",
329
343
  "UploadDocumentResponse",
330
344
  "VellumEnvironment",
345
+ "VellumError",
346
+ "VellumErrorCodeEnum",
331
347
  "VellumVariable",
332
348
  "VellumVariableType",
333
349
  "WorkflowEventError",
@@ -357,11 +373,13 @@ __all__ = [
357
373
  "WorkflowResultEvent",
358
374
  "WorkflowResultEventOutputData",
359
375
  "WorkflowResultEventOutputDataChatHistory",
376
+ "WorkflowResultEventOutputDataError",
360
377
  "WorkflowResultEventOutputDataJson",
361
378
  "WorkflowResultEventOutputDataNumber",
362
379
  "WorkflowResultEventOutputDataSearchResults",
363
380
  "WorkflowResultEventOutputDataString",
364
381
  "WorkflowResultEventOutputData_ChatHistory",
382
+ "WorkflowResultEventOutputData_Error",
365
383
  "WorkflowResultEventOutputData_Json",
366
384
  "WorkflowResultEventOutputData_Number",
367
385
  "WorkflowResultEventOutputData_SearchResults",
@@ -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.43",
19
+ "X-Fern-SDK-Version": "v0.0.44",
20
20
  }
21
21
  headers["X_API_KEY"] = self.api_key
22
22
  return headers
@@ -7,7 +7,9 @@ from json.decoder import JSONDecodeError
7
7
  from ...core.api_error import ApiError
8
8
  from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
9
9
  from ...core.jsonable_encoder import jsonable_encoder
10
+ from ...errors.bad_request_error import BadRequestError
10
11
  from ...errors.conflict_error import ConflictError
12
+ from ...errors.not_found_error import NotFoundError
11
13
  from ...types.provider_enum import ProviderEnum
12
14
  from ...types.register_prompt_error_response import RegisterPromptErrorResponse
13
15
  from ...types.register_prompt_model_parameters_request import RegisterPromptModelParametersRequest
@@ -58,8 +60,9 @@ class RegisteredPromptsClient:
58
60
  * `GOOGLE` - Google
59
61
  * `HOSTED` - Hosted
60
62
  * `MOSAICML` - MosaicML
61
- * `MYSTIC` - Mystic
62
63
  * `OPENAI` - OpenAI
64
+ * `HUGGINGFACE` - HuggingFace
65
+ * `MYSTIC` - Mystic
63
66
  * `PYQ` - Pyq
64
67
  - model: str. The initial model to use for this prompt
65
68
 
@@ -88,6 +91,10 @@ class RegisteredPromptsClient:
88
91
  )
89
92
  if 200 <= _response.status_code < 300:
90
93
  return pydantic.parse_obj_as(RegisterPromptResponse, _response.json()) # type: ignore
94
+ if _response.status_code == 400:
95
+ raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
96
+ if _response.status_code == 404:
97
+ raise NotFoundError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
91
98
  if _response.status_code == 409:
92
99
  raise ConflictError(pydantic.parse_obj_as(RegisterPromptErrorResponse, _response.json())) # type: ignore
93
100
  try:
@@ -132,8 +139,9 @@ class AsyncRegisteredPromptsClient:
132
139
  * `GOOGLE` - Google
133
140
  * `HOSTED` - Hosted
134
141
  * `MOSAICML` - MosaicML
135
- * `MYSTIC` - Mystic
136
142
  * `OPENAI` - OpenAI
143
+ * `HUGGINGFACE` - HuggingFace
144
+ * `MYSTIC` - Mystic
137
145
  * `PYQ` - Pyq
138
146
  - model: str. The initial model to use for this prompt
139
147
 
@@ -162,6 +170,10 @@ class AsyncRegisteredPromptsClient:
162
170
  )
163
171
  if 200 <= _response.status_code < 300:
164
172
  return pydantic.parse_obj_as(RegisterPromptResponse, _response.json()) # type: ignore
173
+ if _response.status_code == 400:
174
+ raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
175
+ if _response.status_code == 404:
176
+ raise NotFoundError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
165
177
  if _response.status_code == 409:
166
178
  raise ConflictError(pydantic.parse_obj_as(RegisterPromptErrorResponse, _response.json())) # type: ignore
167
179
  try:
@@ -37,7 +37,6 @@ from .logprobs_enum import LogprobsEnum
37
37
  from .metadata_filter_config_request import MetadataFilterConfigRequest
38
38
  from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
39
39
  from .metadata_filter_rule_request import MetadataFilterRuleRequest
40
- from .model_type_deprecated import ModelTypeDeprecated
41
40
  from .model_version_build_config import ModelVersionBuildConfig
42
41
  from .model_version_compile_prompt_response import ModelVersionCompilePromptResponse
43
42
  from .model_version_compiled_prompt import ModelVersionCompiledPrompt
@@ -47,6 +46,7 @@ from .model_version_read import ModelVersionRead
47
46
  from .model_version_read_status_enum import ModelVersionReadStatusEnum
48
47
  from .model_version_sandbox_snapshot import ModelVersionSandboxSnapshot
49
48
  from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
49
+ from .node_input_compiled_error_value import NodeInputCompiledErrorValue
50
50
  from .node_input_compiled_json_value import NodeInputCompiledJsonValue
51
51
  from .node_input_compiled_number_value import NodeInputCompiledNumberValue
52
52
  from .node_input_compiled_search_results_value import NodeInputCompiledSearchResultsValue
@@ -54,6 +54,7 @@ from .node_input_compiled_string_value import NodeInputCompiledStringValue
54
54
  from .node_input_variable_compiled_value import (
55
55
  NodeInputVariableCompiledValue,
56
56
  NodeInputVariableCompiledValue_ChatHistory,
57
+ NodeInputVariableCompiledValue_Error,
57
58
  NodeInputVariableCompiledValue_Json,
58
59
  NodeInputVariableCompiledValue_Number,
59
60
  NodeInputVariableCompiledValue_SearchResults,
@@ -109,6 +110,7 @@ from .submit_workflow_execution_actual_request import (
109
110
  SubmitWorkflowExecutionActualRequest_String,
110
111
  )
111
112
  from .templating_node_chat_history_result import TemplatingNodeChatHistoryResult
113
+ from .templating_node_error_result import TemplatingNodeErrorResult
112
114
  from .templating_node_json_result import TemplatingNodeJsonResult
113
115
  from .templating_node_number_result import TemplatingNodeNumberResult
114
116
  from .templating_node_result import TemplatingNodeResult
@@ -116,6 +118,7 @@ from .templating_node_result_data import TemplatingNodeResultData
116
118
  from .templating_node_result_output import (
117
119
  TemplatingNodeResultOutput,
118
120
  TemplatingNodeResultOutput_ChatHistory,
121
+ TemplatingNodeResultOutput_Error,
119
122
  TemplatingNodeResultOutput_Json,
120
123
  TemplatingNodeResultOutput_Number,
121
124
  TemplatingNodeResultOutput_SearchResults,
@@ -124,6 +127,7 @@ from .templating_node_result_output import (
124
127
  from .templating_node_search_results_result import TemplatingNodeSearchResultsResult
125
128
  from .templating_node_string_result import TemplatingNodeStringResult
126
129
  from .terminal_node_chat_history_result import TerminalNodeChatHistoryResult
130
+ from .terminal_node_error_result import TerminalNodeErrorResult
127
131
  from .terminal_node_json_result import TerminalNodeJsonResult
128
132
  from .terminal_node_number_result import TerminalNodeNumberResult
129
133
  from .terminal_node_result import TerminalNodeResult
@@ -131,6 +135,7 @@ from .terminal_node_result_data import TerminalNodeResultData
131
135
  from .terminal_node_result_output import (
132
136
  TerminalNodeResultOutput,
133
137
  TerminalNodeResultOutput_ChatHistory,
138
+ TerminalNodeResultOutput_Error,
134
139
  TerminalNodeResultOutput_Json,
135
140
  TerminalNodeResultOutput_Number,
136
141
  TerminalNodeResultOutput_SearchResults,
@@ -141,6 +146,8 @@ from .terminal_node_string_result import TerminalNodeStringResult
141
146
  from .test_suite_test_case import TestSuiteTestCase
142
147
  from .upload_document_error_response import UploadDocumentErrorResponse
143
148
  from .upload_document_response import UploadDocumentResponse
149
+ from .vellum_error import VellumError
150
+ from .vellum_error_code_enum import VellumErrorCodeEnum
144
151
  from .vellum_variable import VellumVariable
145
152
  from .vellum_variable_type import VellumVariableType
146
153
  from .workflow_event_error import WorkflowEventError
@@ -175,12 +182,14 @@ from .workflow_result_event import WorkflowResultEvent
175
182
  from .workflow_result_event_output_data import (
176
183
  WorkflowResultEventOutputData,
177
184
  WorkflowResultEventOutputData_ChatHistory,
185
+ WorkflowResultEventOutputData_Error,
178
186
  WorkflowResultEventOutputData_Json,
179
187
  WorkflowResultEventOutputData_Number,
180
188
  WorkflowResultEventOutputData_SearchResults,
181
189
  WorkflowResultEventOutputData_String,
182
190
  )
183
191
  from .workflow_result_event_output_data_chat_history import WorkflowResultEventOutputDataChatHistory
192
+ from .workflow_result_event_output_data_error import WorkflowResultEventOutputDataError
184
193
  from .workflow_result_event_output_data_json import WorkflowResultEventOutputDataJson
185
194
  from .workflow_result_event_output_data_number import WorkflowResultEventOutputDataNumber
186
195
  from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
@@ -225,7 +234,6 @@ __all__ = [
225
234
  "MetadataFilterConfigRequest",
226
235
  "MetadataFilterRuleCombinator",
227
236
  "MetadataFilterRuleRequest",
228
- "ModelTypeDeprecated",
229
237
  "ModelVersionBuildConfig",
230
238
  "ModelVersionCompilePromptResponse",
231
239
  "ModelVersionCompiledPrompt",
@@ -235,12 +243,14 @@ __all__ = [
235
243
  "ModelVersionReadStatusEnum",
236
244
  "ModelVersionSandboxSnapshot",
237
245
  "NodeInputCompiledChatHistoryValue",
246
+ "NodeInputCompiledErrorValue",
238
247
  "NodeInputCompiledJsonValue",
239
248
  "NodeInputCompiledNumberValue",
240
249
  "NodeInputCompiledSearchResultsValue",
241
250
  "NodeInputCompiledStringValue",
242
251
  "NodeInputVariableCompiledValue",
243
252
  "NodeInputVariableCompiledValue_ChatHistory",
253
+ "NodeInputVariableCompiledValue_Error",
244
254
  "NodeInputVariableCompiledValue_Json",
245
255
  "NodeInputVariableCompiledValue_Number",
246
256
  "NodeInputVariableCompiledValue_SearchResults",
@@ -293,12 +303,14 @@ __all__ = [
293
303
  "SubmitWorkflowExecutionActualRequest_Json",
294
304
  "SubmitWorkflowExecutionActualRequest_String",
295
305
  "TemplatingNodeChatHistoryResult",
306
+ "TemplatingNodeErrorResult",
296
307
  "TemplatingNodeJsonResult",
297
308
  "TemplatingNodeNumberResult",
298
309
  "TemplatingNodeResult",
299
310
  "TemplatingNodeResultData",
300
311
  "TemplatingNodeResultOutput",
301
312
  "TemplatingNodeResultOutput_ChatHistory",
313
+ "TemplatingNodeResultOutput_Error",
302
314
  "TemplatingNodeResultOutput_Json",
303
315
  "TemplatingNodeResultOutput_Number",
304
316
  "TemplatingNodeResultOutput_SearchResults",
@@ -306,12 +318,14 @@ __all__ = [
306
318
  "TemplatingNodeSearchResultsResult",
307
319
  "TemplatingNodeStringResult",
308
320
  "TerminalNodeChatHistoryResult",
321
+ "TerminalNodeErrorResult",
309
322
  "TerminalNodeJsonResult",
310
323
  "TerminalNodeNumberResult",
311
324
  "TerminalNodeResult",
312
325
  "TerminalNodeResultData",
313
326
  "TerminalNodeResultOutput",
314
327
  "TerminalNodeResultOutput_ChatHistory",
328
+ "TerminalNodeResultOutput_Error",
315
329
  "TerminalNodeResultOutput_Json",
316
330
  "TerminalNodeResultOutput_Number",
317
331
  "TerminalNodeResultOutput_SearchResults",
@@ -321,6 +335,8 @@ __all__ = [
321
335
  "TestSuiteTestCase",
322
336
  "UploadDocumentErrorResponse",
323
337
  "UploadDocumentResponse",
338
+ "VellumError",
339
+ "VellumErrorCodeEnum",
324
340
  "VellumVariable",
325
341
  "VellumVariableType",
326
342
  "WorkflowEventError",
@@ -350,11 +366,13 @@ __all__ = [
350
366
  "WorkflowResultEvent",
351
367
  "WorkflowResultEventOutputData",
352
368
  "WorkflowResultEventOutputDataChatHistory",
369
+ "WorkflowResultEventOutputDataError",
353
370
  "WorkflowResultEventOutputDataJson",
354
371
  "WorkflowResultEventOutputDataNumber",
355
372
  "WorkflowResultEventOutputDataSearchResults",
356
373
  "WorkflowResultEventOutputDataString",
357
374
  "WorkflowResultEventOutputData_ChatHistory",
375
+ "WorkflowResultEventOutputData_Error",
358
376
  "WorkflowResultEventOutputData_Json",
359
377
  "WorkflowResultEventOutputData_Number",
360
378
  "WorkflowResultEventOutputData_SearchResults",
@@ -6,7 +6,6 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
  from .deployment_status import DeploymentStatus
8
8
  from .environment_enum import EnvironmentEnum
9
- from .model_type_deprecated import ModelTypeDeprecated
10
9
  from .vellum_variable import VellumVariable
11
10
 
12
11
  try:
@@ -38,7 +37,6 @@ class DeploymentRead(pydantic.BaseModel):
38
37
  "* `PRODUCTION` - Production\n"
39
38
  )
40
39
  )
41
- model_type: ModelTypeDeprecated
42
40
  active_model_version_ids: typing.List[str]
43
41
  last_deployed_on: dt.datetime
44
42
  input_variables: typing.List[VellumVariable]
@@ -33,6 +33,7 @@ class EnrichedNormalizedCompletion(pydantic.BaseModel):
33
33
  description="The logprobs of the completion. Only present if specified in the original request options."
34
34
  )
35
35
  model_version_id: str = pydantic.Field(description="The ID of the model version used to generate this completion.")
36
+ prompt_version_id: typing.Optional[str]
36
37
  type: typing.Optional[VellumVariableType]
37
38
 
38
39
  def json(self, **kwargs: typing.Any) -> str:
@@ -19,6 +19,7 @@ class ModelVersionBuildConfig(pydantic.BaseModel):
19
19
  sandbox_snapshot: typing.Optional[ModelVersionSandboxSnapshot] = pydantic.Field(
20
20
  description="Information about the sandbox snapshot that was used to create this model version, if applicable."
21
21
  )
22
+ prompt_version_id: typing.Optional[str]
22
23
 
23
24
  def json(self, **kwargs: typing.Any) -> str:
24
25
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -4,7 +4,6 @@ import datetime as dt
4
4
  import typing
5
5
 
6
6
  from ..core.datetime_utils import serialize_datetime
7
- from .model_type_deprecated import ModelTypeDeprecated
8
7
  from .model_version_build_config import ModelVersionBuildConfig
9
8
  from .model_version_exec_config import ModelVersionExecConfig
10
9
  from .model_version_read_status_enum import ModelVersionReadStatusEnum
@@ -20,7 +19,6 @@ class ModelVersionRead(pydantic.BaseModel):
20
19
  id: str = pydantic.Field(description="Vellum-generated ID that uniquely identifies this model version.")
21
20
  created: dt.datetime = pydantic.Field(description="Timestamp of when this model version was created.")
22
21
  label: str = pydantic.Field(description="Human-friendly name for this model version.")
23
- model_type: ModelTypeDeprecated
24
22
  provider: ProviderEnum = pydantic.Field(
25
23
  description=(
26
24
  "Which LLM provider this model version is associated with.\n"
@@ -30,8 +28,9 @@ class ModelVersionRead(pydantic.BaseModel):
30
28
  "* `GOOGLE` - Google\n"
31
29
  "* `HOSTED` - Hosted\n"
32
30
  "* `MOSAICML` - MosaicML\n"
33
- "* `MYSTIC` - Mystic\n"
34
31
  "* `OPENAI` - OpenAI\n"
32
+ "* `HUGGINGFACE` - HuggingFace\n"
33
+ "* `MYSTIC` - Mystic\n"
35
34
  "* `PYQ` - Pyq\n"
36
35
  )
37
36
  )
@@ -0,0 +1,31 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .vellum_error import VellumError
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class NodeInputCompiledErrorValue(pydantic.BaseModel):
16
+ node_input_id: str
17
+ key: str
18
+ value: typing.Optional[VellumError]
19
+
20
+ def json(self, **kwargs: typing.Any) -> str:
21
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
+ return super().json(**kwargs_with_defaults)
23
+
24
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
+ return super().dict(**kwargs_with_defaults)
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -7,6 +7,7 @@ import typing
7
7
  import typing_extensions
8
8
 
9
9
  from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
10
+ from .node_input_compiled_error_value import NodeInputCompiledErrorValue
10
11
  from .node_input_compiled_json_value import NodeInputCompiledJsonValue
11
12
  from .node_input_compiled_number_value import NodeInputCompiledNumberValue
12
13
  from .node_input_compiled_search_results_value import NodeInputCompiledSearchResultsValue
@@ -58,10 +59,20 @@ class NodeInputVariableCompiledValue_SearchResults(NodeInputCompiledSearchResult
58
59
  allow_population_by_field_name = True
59
60
 
60
61
 
62
+ class NodeInputVariableCompiledValue_Error(NodeInputCompiledErrorValue):
63
+ type: typing_extensions.Literal["ERROR"]
64
+
65
+ class Config:
66
+ frozen = True
67
+ smart_union = True
68
+ allow_population_by_field_name = True
69
+
70
+
61
71
  NodeInputVariableCompiledValue = typing.Union[
62
72
  NodeInputVariableCompiledValue_String,
63
73
  NodeInputVariableCompiledValue_Number,
64
74
  NodeInputVariableCompiledValue_Json,
65
75
  NodeInputVariableCompiledValue_ChatHistory,
66
76
  NodeInputVariableCompiledValue_SearchResults,
77
+ NodeInputVariableCompiledValue_Error,
67
78
  ]
@@ -13,8 +13,9 @@ class ProviderEnum(str, enum.Enum):
13
13
  * `GOOGLE` - Google
14
14
  * `HOSTED` - Hosted
15
15
  * `MOSAICML` - MosaicML
16
- * `MYSTIC` - Mystic
17
16
  * `OPENAI` - OpenAI
17
+ * `HUGGINGFACE` - HuggingFace
18
+ * `MYSTIC` - Mystic
18
19
  * `PYQ` - Pyq
19
20
  """
20
21
 
@@ -23,8 +24,9 @@ class ProviderEnum(str, enum.Enum):
23
24
  GOOGLE = "GOOGLE"
24
25
  HOSTED = "HOSTED"
25
26
  MOSAICML = "MOSAICML"
26
- MYSTIC = "MYSTIC"
27
27
  OPENAI = "OPENAI"
28
+ HUGGINGFACE = "HUGGINGFACE"
29
+ MYSTIC = "MYSTIC"
28
30
  PYQ = "PYQ"
29
31
 
30
32
  def visit(
@@ -34,8 +36,9 @@ class ProviderEnum(str, enum.Enum):
34
36
  google: typing.Callable[[], T_Result],
35
37
  hosted: typing.Callable[[], T_Result],
36
38
  mosaicml: typing.Callable[[], T_Result],
37
- mystic: typing.Callable[[], T_Result],
38
39
  openai: typing.Callable[[], T_Result],
40
+ huggingface: typing.Callable[[], T_Result],
41
+ mystic: typing.Callable[[], T_Result],
39
42
  pyq: typing.Callable[[], T_Result],
40
43
  ) -> T_Result:
41
44
  if self is ProviderEnum.ANTHROPIC:
@@ -48,9 +51,11 @@ class ProviderEnum(str, enum.Enum):
48
51
  return hosted()
49
52
  if self is ProviderEnum.MOSAICML:
50
53
  return mosaicml()
51
- if self is ProviderEnum.MYSTIC:
52
- return mystic()
53
54
  if self is ProviderEnum.OPENAI:
54
55
  return openai()
56
+ if self is ProviderEnum.HUGGINGFACE:
57
+ return huggingface()
58
+ if self is ProviderEnum.MYSTIC:
59
+ return mystic()
55
60
  if self is ProviderEnum.PYQ:
56
61
  return pyq()
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .vellum_error import VellumError
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class TemplatingNodeErrorResult(pydantic.BaseModel):
16
+ id: str
17
+ value: typing.Optional[VellumError]
18
+
19
+ def json(self, **kwargs: typing.Any) -> str:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().json(**kwargs_with_defaults)
22
+
23
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ return super().dict(**kwargs_with_defaults)
26
+
27
+ class Config:
28
+ frozen = True
29
+ smart_union = True
30
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -7,6 +7,7 @@ import typing
7
7
  import typing_extensions
8
8
 
9
9
  from .templating_node_chat_history_result import TemplatingNodeChatHistoryResult
10
+ from .templating_node_error_result import TemplatingNodeErrorResult
10
11
  from .templating_node_json_result import TemplatingNodeJsonResult
11
12
  from .templating_node_number_result import TemplatingNodeNumberResult
12
13
  from .templating_node_search_results_result import TemplatingNodeSearchResultsResult
@@ -58,10 +59,20 @@ class TemplatingNodeResultOutput_SearchResults(TemplatingNodeSearchResultsResult
58
59
  allow_population_by_field_name = True
59
60
 
60
61
 
62
+ class TemplatingNodeResultOutput_Error(TemplatingNodeErrorResult):
63
+ type: typing_extensions.Literal["ERROR"]
64
+
65
+ class Config:
66
+ frozen = True
67
+ smart_union = True
68
+ allow_population_by_field_name = True
69
+
70
+
61
71
  TemplatingNodeResultOutput = typing.Union[
62
72
  TemplatingNodeResultOutput_String,
63
73
  TemplatingNodeResultOutput_Number,
64
74
  TemplatingNodeResultOutput_Json,
65
75
  TemplatingNodeResultOutput_ChatHistory,
66
76
  TemplatingNodeResultOutput_SearchResults,
77
+ TemplatingNodeResultOutput_Error,
67
78
  ]
@@ -0,0 +1,31 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .vellum_error import VellumError
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class TerminalNodeErrorResult(pydantic.BaseModel):
16
+ id: typing.Optional[str]
17
+ name: str = pydantic.Field(description="The unique name given to the terminal node that produced this output.")
18
+ value: typing.Optional[VellumError]
19
+
20
+ def json(self, **kwargs: typing.Any) -> str:
21
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
+ return super().json(**kwargs_with_defaults)
23
+
24
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
+ return super().dict(**kwargs_with_defaults)
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -7,6 +7,7 @@ import typing
7
7
  import typing_extensions
8
8
 
9
9
  from .terminal_node_chat_history_result import TerminalNodeChatHistoryResult
10
+ from .terminal_node_error_result import TerminalNodeErrorResult
10
11
  from .terminal_node_json_result import TerminalNodeJsonResult
11
12
  from .terminal_node_number_result import TerminalNodeNumberResult
12
13
  from .terminal_node_search_results_result import TerminalNodeSearchResultsResult
@@ -58,10 +59,20 @@ class TerminalNodeResultOutput_SearchResults(TerminalNodeSearchResultsResult):
58
59
  allow_population_by_field_name = True
59
60
 
60
61
 
62
+ class TerminalNodeResultOutput_Error(TerminalNodeErrorResult):
63
+ type: typing_extensions.Literal["ERROR"]
64
+
65
+ class Config:
66
+ frozen = True
67
+ smart_union = True
68
+ allow_population_by_field_name = True
69
+
70
+
61
71
  TerminalNodeResultOutput = typing.Union[
62
72
  TerminalNodeResultOutput_String,
63
73
  TerminalNodeResultOutput_Number,
64
74
  TerminalNodeResultOutput_Json,
65
75
  TerminalNodeResultOutput_ChatHistory,
66
76
  TerminalNodeResultOutput_SearchResults,
77
+ TerminalNodeResultOutput_Error,
67
78
  ]