vellum-ai 0.9.16__py3-none-any.whl → 0.9.16rc2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1101) hide show
  1. vellum/client/README.md +242 -0
  2. vellum/client/core/__init__.py +47 -0
  3. vellum/client/core/api_error.py +15 -0
  4. vellum/client/core/client_wrapper.py +59 -0
  5. vellum/client/core/datetime_utils.py +28 -0
  6. vellum/client/core/file.py +62 -0
  7. vellum/client/core/http_client.py +487 -0
  8. vellum/client/core/jsonable_encoder.py +101 -0
  9. vellum/client/core/pydantic_utilities.py +296 -0
  10. vellum/client/core/query_encoder.py +58 -0
  11. vellum/client/core/remove_none_from_dict.py +11 -0
  12. vellum/client/core/request_options.py +32 -0
  13. vellum/client/core/serialization.py +272 -0
  14. vellum/client/environment.py +17 -0
  15. vellum/client/errors/__init__.py +8 -0
  16. vellum/client/errors/bad_request_error.py +9 -0
  17. vellum/client/errors/forbidden_error.py +9 -0
  18. vellum/client/errors/internal_server_error.py +9 -0
  19. vellum/client/errors/not_found_error.py +9 -0
  20. vellum/client/resources/__init__.py +47 -0
  21. vellum/client/resources/ad_hoc/__init__.py +2 -0
  22. vellum/client/resources/ad_hoc/client.py +459 -0
  23. vellum/client/resources/container_images/__init__.py +2 -0
  24. vellum/client/resources/container_images/client.py +502 -0
  25. vellum/client/resources/deployments/__init__.py +5 -0
  26. vellum/client/resources/deployments/client.py +975 -0
  27. vellum/client/resources/deployments/types/__init__.py +6 -0
  28. vellum/client/resources/deployments/types/deployments_list_request_status.py +5 -0
  29. vellum/client/resources/deployments/types/list_deployment_release_tags_request_source.py +5 -0
  30. vellum/client/resources/document_indexes/__init__.py +5 -0
  31. vellum/client/resources/document_indexes/client.py +1154 -0
  32. vellum/client/resources/document_indexes/types/__init__.py +5 -0
  33. vellum/client/resources/document_indexes/types/document_indexes_list_request_status.py +5 -0
  34. vellum/client/resources/documents/__init__.py +2 -0
  35. vellum/client/resources/documents/client.py +781 -0
  36. vellum/client/resources/folder_entities/__init__.py +5 -0
  37. vellum/client/resources/folder_entities/client.py +333 -0
  38. vellum/client/resources/folder_entities/types/__init__.py +5 -0
  39. vellum/client/resources/folder_entities/types/folder_entities_list_request_entity_status.py +5 -0
  40. vellum/client/resources/metric_definitions/__init__.py +2 -0
  41. vellum/client/resources/metric_definitions/client.py +178 -0
  42. vellum/client/resources/sandboxes/__init__.py +2 -0
  43. vellum/client/resources/sandboxes/client.py +481 -0
  44. vellum/client/resources/test_suite_runs/__init__.py +2 -0
  45. vellum/client/resources/test_suite_runs/client.py +445 -0
  46. vellum/client/resources/test_suites/__init__.py +2 -0
  47. vellum/client/resources/test_suites/client.py +688 -0
  48. vellum/client/resources/workflow_deployments/__init__.py +5 -0
  49. vellum/client/resources/workflow_deployments/client.py +693 -0
  50. vellum/client/resources/workflow_deployments/types/__init__.py +6 -0
  51. vellum/client/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py +5 -0
  52. vellum/client/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +5 -0
  53. vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
  54. vellum/client/resources/workflow_sandboxes/client.py +190 -0
  55. vellum/client/resources/workflows/__init__.py +5 -0
  56. vellum/client/resources/workflows/client.py +333 -0
  57. vellum/client/resources/workflows/types/__init__.py +5 -0
  58. vellum/client/resources/workflows/types/workflows_pull_request_format.py +5 -0
  59. vellum/client/resources/workspace_secrets/__init__.py +2 -0
  60. vellum/client/resources/workspace_secrets/client.py +266 -0
  61. vellum/client/types/__init__.py +979 -0
  62. vellum/client/types/ad_hoc_execute_prompt_event.py +14 -0
  63. vellum/client/types/ad_hoc_expand_meta.py +37 -0
  64. vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +27 -0
  65. vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +24 -0
  66. vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +25 -0
  67. vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +23 -0
  68. vellum/client/types/add_openai_api_key_enum.py +3 -0
  69. vellum/client/types/api_node_result.py +25 -0
  70. vellum/client/types/api_node_result_data.py +28 -0
  71. vellum/client/types/array_chat_message_content.py +25 -0
  72. vellum/client/types/array_chat_message_content_item.py +11 -0
  73. vellum/client/types/array_chat_message_content_item_request.py +14 -0
  74. vellum/client/types/array_chat_message_content_request.py +25 -0
  75. vellum/client/types/array_input.py +36 -0
  76. vellum/client/types/array_variable_value.py +27 -0
  77. vellum/client/types/array_variable_value_item.py +29 -0
  78. vellum/client/types/array_vellum_value.py +31 -0
  79. vellum/client/types/array_vellum_value_request.py +31 -0
  80. vellum/client/types/audio_chat_message_content.py +25 -0
  81. vellum/client/types/audio_chat_message_content_request.py +25 -0
  82. vellum/client/types/audio_variable_value.py +25 -0
  83. vellum/client/types/audio_vellum_value.py +25 -0
  84. vellum/client/types/audio_vellum_value_request.py +25 -0
  85. vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +24 -0
  86. vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +24 -0
  87. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +26 -0
  88. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +26 -0
  89. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +26 -0
  90. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +26 -0
  91. vellum/client/types/chat_history_input.py +30 -0
  92. vellum/client/types/chat_history_input_request.py +30 -0
  93. vellum/client/types/chat_history_variable_value.py +21 -0
  94. vellum/client/types/chat_history_vellum_value.py +25 -0
  95. vellum/client/types/chat_history_vellum_value_request.py +25 -0
  96. vellum/client/types/chat_message.py +27 -0
  97. vellum/client/types/chat_message_content.py +16 -0
  98. vellum/client/types/chat_message_content_request.py +16 -0
  99. vellum/client/types/chat_message_prompt_block.py +39 -0
  100. vellum/client/types/chat_message_request.py +27 -0
  101. vellum/client/types/chat_message_role.py +5 -0
  102. vellum/client/types/code_execution_node_array_result.py +28 -0
  103. vellum/client/types/code_execution_node_chat_history_result.py +22 -0
  104. vellum/client/types/code_execution_node_error_result.py +22 -0
  105. vellum/client/types/code_execution_node_function_call_result.py +22 -0
  106. vellum/client/types/code_execution_node_json_result.py +21 -0
  107. vellum/client/types/code_execution_node_number_result.py +21 -0
  108. vellum/client/types/code_execution_node_result.py +31 -0
  109. vellum/client/types/code_execution_node_result_data.py +27 -0
  110. vellum/client/types/code_execution_node_result_output.py +22 -0
  111. vellum/client/types/code_execution_node_search_results_result.py +22 -0
  112. vellum/client/types/code_execution_node_string_result.py +21 -0
  113. vellum/client/types/code_execution_package.py +20 -0
  114. vellum/client/types/code_execution_runtime.py +5 -0
  115. vellum/client/types/code_executor_input.py +24 -0
  116. vellum/client/types/code_executor_response.py +27 -0
  117. vellum/client/types/code_executor_secret_input.py +29 -0
  118. vellum/client/types/compile_prompt_deployment_expand_meta_request.py +32 -0
  119. vellum/client/types/compile_prompt_meta.py +25 -0
  120. vellum/client/types/components_schemas_pdf_search_result_meta_source.py +5 -0
  121. vellum/client/types/components_schemas_pdf_search_result_meta_source_request.py +5 -0
  122. vellum/client/types/condition_combinator.py +5 -0
  123. vellum/client/types/conditional_node_result.py +25 -0
  124. vellum/client/types/conditional_node_result_data.py +19 -0
  125. vellum/client/types/container_image_read.py +28 -0
  126. vellum/client/types/create_test_suite_test_case_request.py +48 -0
  127. vellum/client/types/deployment_provider_payload_response.py +22 -0
  128. vellum/client/types/deployment_provider_payload_response_payload.py +5 -0
  129. vellum/client/types/deployment_read.py +73 -0
  130. vellum/client/types/deployment_release_tag_deployment_history_item.py +21 -0
  131. vellum/client/types/deployment_release_tag_read.py +37 -0
  132. vellum/client/types/docker_service_token.py +21 -0
  133. vellum/client/types/document_document_to_document_index.py +39 -0
  134. vellum/client/types/document_index_chunking.py +8 -0
  135. vellum/client/types/document_index_chunking_request.py +10 -0
  136. vellum/client/types/document_index_indexing_config.py +22 -0
  137. vellum/client/types/document_index_indexing_config_request.py +22 -0
  138. vellum/client/types/document_index_read.py +52 -0
  139. vellum/client/types/document_processing_state.py +7 -0
  140. vellum/client/types/document_read.py +49 -0
  141. vellum/client/types/document_status.py +5 -0
  142. vellum/client/types/enriched_normalized_completion.py +59 -0
  143. vellum/client/types/entity_status.py +5 -0
  144. vellum/client/types/entity_visibility.py +5 -0
  145. vellum/client/types/environment_enum.py +5 -0
  146. vellum/client/types/ephemeral_prompt_cache_config.py +20 -0
  147. vellum/client/types/ephemeral_prompt_cache_config_type_enum.py +5 -0
  148. vellum/client/types/error_input.py +30 -0
  149. vellum/client/types/error_variable_value.py +21 -0
  150. vellum/client/types/error_vellum_value.py +25 -0
  151. vellum/client/types/error_vellum_value_request.py +25 -0
  152. vellum/client/types/execute_prompt_event.py +11 -0
  153. vellum/client/types/execute_prompt_response.py +7 -0
  154. vellum/client/types/execute_workflow_response.py +29 -0
  155. vellum/client/types/execute_workflow_workflow_result_event.py +9 -0
  156. vellum/client/types/execution_array_vellum_value.py +37 -0
  157. vellum/client/types/execution_chat_history_vellum_value.py +31 -0
  158. vellum/client/types/execution_error_vellum_value.py +31 -0
  159. vellum/client/types/execution_function_call_vellum_value.py +31 -0
  160. vellum/client/types/execution_json_vellum_value.py +30 -0
  161. vellum/client/types/execution_number_vellum_value.py +30 -0
  162. vellum/client/types/execution_search_results_vellum_value.py +31 -0
  163. vellum/client/types/execution_string_vellum_value.py +30 -0
  164. vellum/client/types/execution_vellum_value.py +22 -0
  165. vellum/client/types/external_test_case_execution.py +31 -0
  166. vellum/client/types/external_test_case_execution_request.py +31 -0
  167. vellum/client/types/finish_reason_enum.py +5 -0
  168. vellum/client/types/folder_entity.py +16 -0
  169. vellum/client/types/folder_entity_document_index.py +26 -0
  170. vellum/client/types/folder_entity_document_index_data.py +25 -0
  171. vellum/client/types/folder_entity_folder.py +26 -0
  172. vellum/client/types/folder_entity_folder_data.py +24 -0
  173. vellum/client/types/folder_entity_prompt_sandbox.py +26 -0
  174. vellum/client/types/folder_entity_prompt_sandbox_data.py +26 -0
  175. vellum/client/types/folder_entity_test_suite.py +26 -0
  176. vellum/client/types/folder_entity_test_suite_data.py +25 -0
  177. vellum/client/types/folder_entity_workflow_sandbox.py +26 -0
  178. vellum/client/types/folder_entity_workflow_sandbox_data.py +26 -0
  179. vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +28 -0
  180. vellum/client/types/fulfilled_enum.py +5 -0
  181. vellum/client/types/fulfilled_execute_prompt_event.py +28 -0
  182. vellum/client/types/fulfilled_execute_prompt_response.py +37 -0
  183. vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +36 -0
  184. vellum/client/types/fulfilled_prompt_execution_meta.py +27 -0
  185. vellum/client/types/fulfilled_workflow_node_result_event.py +40 -0
  186. vellum/client/types/function_call.py +27 -0
  187. vellum/client/types/function_call_chat_message_content.py +25 -0
  188. vellum/client/types/function_call_chat_message_content_request.py +25 -0
  189. vellum/client/types/function_call_chat_message_content_value.py +25 -0
  190. vellum/client/types/function_call_chat_message_content_value_request.py +25 -0
  191. vellum/client/types/function_call_input.py +30 -0
  192. vellum/client/types/function_call_request.py +27 -0
  193. vellum/client/types/function_call_variable_value.py +21 -0
  194. vellum/client/types/function_call_vellum_value.py +25 -0
  195. vellum/client/types/function_call_vellum_value_request.py +25 -0
  196. vellum/client/types/function_definition.py +31 -0
  197. vellum/client/types/generate_options_request.py +26 -0
  198. vellum/client/types/generate_request.py +33 -0
  199. vellum/client/types/generate_response.py +38 -0
  200. vellum/client/types/generate_result.py +29 -0
  201. vellum/client/types/generate_result_data.py +23 -0
  202. vellum/client/types/generate_result_error.py +22 -0
  203. vellum/client/types/generate_stream_response.py +20 -0
  204. vellum/client/types/generate_stream_result.py +23 -0
  205. vellum/client/types/generate_stream_result_data.py +21 -0
  206. vellum/client/types/google_vertex_ai_vectorizer_config.py +20 -0
  207. vellum/client/types/google_vertex_ai_vectorizer_config_request.py +20 -0
  208. vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +21 -0
  209. vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +21 -0
  210. vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +21 -0
  211. vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +21 -0
  212. vellum/client/types/hkunlp_instructor_xl_vectorizer.py +25 -0
  213. vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +25 -0
  214. vellum/client/types/image_chat_message_content.py +25 -0
  215. vellum/client/types/image_chat_message_content_request.py +25 -0
  216. vellum/client/types/image_variable_value.py +25 -0
  217. vellum/client/types/image_vellum_value.py +25 -0
  218. vellum/client/types/image_vellum_value_request.py +25 -0
  219. vellum/client/types/indexing_config_vectorizer.py +30 -0
  220. vellum/client/types/indexing_config_vectorizer_request.py +30 -0
  221. vellum/client/types/indexing_state_enum.py +7 -0
  222. vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +26 -0
  223. vellum/client/types/initiated_execute_prompt_event.py +26 -0
  224. vellum/client/types/initiated_prompt_execution_meta.py +26 -0
  225. vellum/client/types/initiated_workflow_node_result_event.py +39 -0
  226. vellum/client/types/instructor_vectorizer_config.py +25 -0
  227. vellum/client/types/instructor_vectorizer_config_request.py +25 -0
  228. vellum/client/types/iteration_state_enum.py +5 -0
  229. vellum/client/types/jinja_prompt_block.py +28 -0
  230. vellum/client/types/json_input.py +29 -0
  231. vellum/client/types/json_input_request.py +29 -0
  232. vellum/client/types/json_variable_value.py +20 -0
  233. vellum/client/types/json_vellum_value.py +24 -0
  234. vellum/client/types/json_vellum_value_request.py +24 -0
  235. vellum/client/types/logical_operator.py +29 -0
  236. vellum/client/types/logprobs_enum.py +5 -0
  237. vellum/client/types/map_node_result.py +25 -0
  238. vellum/client/types/map_node_result_data.py +21 -0
  239. vellum/client/types/merge_node_result.py +25 -0
  240. vellum/client/types/merge_node_result_data.py +19 -0
  241. vellum/client/types/metadata_filter_config_request.py +36 -0
  242. vellum/client/types/metadata_filter_rule_combinator.py +5 -0
  243. vellum/client/types/metadata_filter_rule_request.py +31 -0
  244. vellum/client/types/metadata_filters_request.py +7 -0
  245. vellum/client/types/metric_definition_execution.py +20 -0
  246. vellum/client/types/metric_definition_input.py +9 -0
  247. vellum/client/types/metric_node_result.py +23 -0
  248. vellum/client/types/ml_model_usage.py +25 -0
  249. vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +26 -0
  250. vellum/client/types/named_scenario_input_json_variable_value_request.py +25 -0
  251. vellum/client/types/named_scenario_input_request.py +12 -0
  252. vellum/client/types/named_scenario_input_string_variable_value_request.py +25 -0
  253. vellum/client/types/named_test_case_array_variable_value.py +32 -0
  254. vellum/client/types/named_test_case_array_variable_value_request.py +34 -0
  255. vellum/client/types/named_test_case_chat_history_variable_value.py +26 -0
  256. vellum/client/types/named_test_case_chat_history_variable_value_request.py +26 -0
  257. vellum/client/types/named_test_case_error_variable_value.py +26 -0
  258. vellum/client/types/named_test_case_error_variable_value_request.py +26 -0
  259. vellum/client/types/named_test_case_function_call_variable_value.py +26 -0
  260. vellum/client/types/named_test_case_function_call_variable_value_request.py +26 -0
  261. vellum/client/types/named_test_case_json_variable_value.py +25 -0
  262. vellum/client/types/named_test_case_json_variable_value_request.py +25 -0
  263. vellum/client/types/named_test_case_number_variable_value.py +25 -0
  264. vellum/client/types/named_test_case_number_variable_value_request.py +25 -0
  265. vellum/client/types/named_test_case_search_results_variable_value.py +26 -0
  266. vellum/client/types/named_test_case_search_results_variable_value_request.py +26 -0
  267. vellum/client/types/named_test_case_string_variable_value.py +25 -0
  268. vellum/client/types/named_test_case_string_variable_value_request.py +25 -0
  269. vellum/client/types/named_test_case_variable_value.py +22 -0
  270. vellum/client/types/named_test_case_variable_value_request.py +22 -0
  271. vellum/client/types/node_input_compiled_array_value.py +29 -0
  272. vellum/client/types/node_input_compiled_chat_history_value.py +23 -0
  273. vellum/client/types/node_input_compiled_error_value.py +23 -0
  274. vellum/client/types/node_input_compiled_function_call_value.py +23 -0
  275. vellum/client/types/node_input_compiled_json_value.py +22 -0
  276. vellum/client/types/node_input_compiled_number_value.py +22 -0
  277. vellum/client/types/node_input_compiled_search_results_value.py +23 -0
  278. vellum/client/types/node_input_compiled_string_value.py +22 -0
  279. vellum/client/types/node_input_variable_compiled_value.py +22 -0
  280. vellum/client/types/node_output_compiled_array_value.py +34 -0
  281. vellum/client/types/node_output_compiled_chat_history_value.py +28 -0
  282. vellum/client/types/node_output_compiled_error_value.py +28 -0
  283. vellum/client/types/node_output_compiled_function_call_value.py +28 -0
  284. vellum/client/types/node_output_compiled_json_value.py +27 -0
  285. vellum/client/types/node_output_compiled_number_value.py +27 -0
  286. vellum/client/types/node_output_compiled_search_results_value.py +28 -0
  287. vellum/client/types/node_output_compiled_string_value.py +27 -0
  288. vellum/client/types/node_output_compiled_value.py +22 -0
  289. vellum/client/types/normalized_log_probs.py +21 -0
  290. vellum/client/types/normalized_token_log_probs.py +22 -0
  291. vellum/client/types/number_input.py +29 -0
  292. vellum/client/types/number_variable_value.py +20 -0
  293. vellum/client/types/number_vellum_value.py +24 -0
  294. vellum/client/types/number_vellum_value_request.py +24 -0
  295. vellum/client/types/open_ai_vectorizer_config.py +24 -0
  296. vellum/client/types/open_ai_vectorizer_config_request.py +24 -0
  297. vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +25 -0
  298. vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +25 -0
  299. vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +25 -0
  300. vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +25 -0
  301. vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +25 -0
  302. vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +25 -0
  303. vellum/client/types/paginated_container_image_read_list.py +23 -0
  304. vellum/client/types/paginated_deployment_release_tag_read_list.py +23 -0
  305. vellum/client/types/paginated_document_index_read_list.py +23 -0
  306. vellum/client/types/paginated_folder_entity_list.py +23 -0
  307. vellum/client/types/paginated_slim_deployment_read_list.py +29 -0
  308. vellum/client/types/paginated_slim_document_list.py +23 -0
  309. vellum/client/types/paginated_slim_workflow_deployment_list.py +29 -0
  310. vellum/client/types/paginated_test_suite_run_execution_list.py +29 -0
  311. vellum/client/types/paginated_test_suite_test_case_list.py +29 -0
  312. vellum/client/types/paginated_workflow_release_tag_read_list.py +23 -0
  313. vellum/client/types/pdf_search_result_meta_source.py +32 -0
  314. vellum/client/types/pdf_search_result_meta_source_request.py +32 -0
  315. vellum/client/types/plain_text_prompt_block.py +28 -0
  316. vellum/client/types/price.py +21 -0
  317. vellum/client/types/processing_failure_reason_enum.py +5 -0
  318. vellum/client/types/prompt_block.py +12 -0
  319. vellum/client/types/prompt_block_state.py +5 -0
  320. vellum/client/types/prompt_deployment_expand_meta_request.py +52 -0
  321. vellum/client/types/prompt_deployment_input_request.py +8 -0
  322. vellum/client/types/prompt_execution_meta.py +32 -0
  323. vellum/client/types/prompt_node_execution_meta.py +24 -0
  324. vellum/client/types/prompt_node_result.py +25 -0
  325. vellum/client/types/prompt_node_result_data.py +25 -0
  326. vellum/client/types/prompt_output.py +9 -0
  327. vellum/client/types/prompt_parameters.py +27 -0
  328. vellum/client/types/prompt_request_chat_history_input.py +26 -0
  329. vellum/client/types/prompt_request_input.py +8 -0
  330. vellum/client/types/prompt_request_json_input.py +25 -0
  331. vellum/client/types/prompt_request_string_input.py +25 -0
  332. vellum/client/types/prompt_settings.py +19 -0
  333. vellum/client/types/raw_prompt_execution_overrides_request.py +28 -0
  334. vellum/client/types/reducto_chunker_config.py +23 -0
  335. vellum/client/types/reducto_chunker_config_request.py +23 -0
  336. vellum/client/types/reducto_chunking.py +25 -0
  337. vellum/client/types/reducto_chunking_request.py +25 -0
  338. vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +28 -0
  339. vellum/client/types/rejected_execute_prompt_event.py +28 -0
  340. vellum/client/types/rejected_execute_prompt_response.py +37 -0
  341. vellum/client/types/rejected_execute_workflow_workflow_result_event.py +28 -0
  342. vellum/client/types/rejected_prompt_execution_meta.py +25 -0
  343. vellum/client/types/rejected_workflow_node_result_event.py +39 -0
  344. vellum/client/types/release_tag_source.py +5 -0
  345. vellum/client/types/replace_test_suite_test_case_request.py +53 -0
  346. vellum/client/types/rich_text_child_block.py +7 -0
  347. vellum/client/types/rich_text_prompt_block.py +29 -0
  348. vellum/client/types/sandbox_scenario.py +33 -0
  349. vellum/client/types/scenario_input.py +10 -0
  350. vellum/client/types/scenario_input_chat_history_variable_value.py +26 -0
  351. vellum/client/types/scenario_input_json_variable_value.py +25 -0
  352. vellum/client/types/scenario_input_string_variable_value.py +25 -0
  353. vellum/client/types/search_filters_request.py +38 -0
  354. vellum/client/types/search_node_result.py +25 -0
  355. vellum/client/types/search_node_result_data.py +27 -0
  356. vellum/client/types/search_request_options_request.py +50 -0
  357. vellum/client/types/search_response.py +23 -0
  358. vellum/client/types/search_result.py +40 -0
  359. vellum/client/types/search_result_document.py +37 -0
  360. vellum/client/types/search_result_document_request.py +37 -0
  361. vellum/client/types/search_result_merging_request.py +22 -0
  362. vellum/client/types/search_result_meta.py +20 -0
  363. vellum/client/types/search_result_meta_request.py +20 -0
  364. vellum/client/types/search_result_request.py +40 -0
  365. vellum/client/types/search_results_input.py +30 -0
  366. vellum/client/types/search_results_variable_value.py +21 -0
  367. vellum/client/types/search_results_vellum_value.py +25 -0
  368. vellum/client/types/search_results_vellum_value_request.py +25 -0
  369. vellum/client/types/search_weights_request.py +27 -0
  370. vellum/client/types/secret_type_enum.py +5 -0
  371. vellum/client/types/sentence_chunker_config.py +24 -0
  372. vellum/client/types/sentence_chunker_config_request.py +24 -0
  373. vellum/client/types/sentence_chunking.py +25 -0
  374. vellum/client/types/sentence_chunking_request.py +25 -0
  375. vellum/client/types/slim_deployment_read.py +63 -0
  376. vellum/client/types/slim_document.py +70 -0
  377. vellum/client/types/slim_workflow_deployment.py +72 -0
  378. vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +33 -0
  379. vellum/client/types/streaming_execute_prompt_event.py +33 -0
  380. vellum/client/types/streaming_prompt_execution_meta.py +23 -0
  381. vellum/client/types/streaming_workflow_node_result_event.py +40 -0
  382. vellum/client/types/string_chat_message_content.py +24 -0
  383. vellum/client/types/string_chat_message_content_request.py +24 -0
  384. vellum/client/types/string_input.py +29 -0
  385. vellum/client/types/string_input_request.py +29 -0
  386. vellum/client/types/string_variable_value.py +20 -0
  387. vellum/client/types/string_vellum_value.py +24 -0
  388. vellum/client/types/string_vellum_value_request.py +24 -0
  389. vellum/client/types/submit_completion_actual_request.py +48 -0
  390. vellum/client/types/submit_workflow_execution_actual_request.py +10 -0
  391. vellum/client/types/subworkflow_node_result.py +25 -0
  392. vellum/client/types/subworkflow_node_result_data.py +19 -0
  393. vellum/client/types/templating_node_array_result.py +28 -0
  394. vellum/client/types/templating_node_chat_history_result.py +22 -0
  395. vellum/client/types/templating_node_error_result.py +22 -0
  396. vellum/client/types/templating_node_function_call_result.py +22 -0
  397. vellum/client/types/templating_node_json_result.py +21 -0
  398. vellum/client/types/templating_node_number_result.py +21 -0
  399. vellum/client/types/templating_node_result.py +31 -0
  400. vellum/client/types/templating_node_result_data.py +26 -0
  401. vellum/client/types/templating_node_result_output.py +22 -0
  402. vellum/client/types/templating_node_search_results_result.py +22 -0
  403. vellum/client/types/templating_node_string_result.py +21 -0
  404. vellum/client/types/terminal_node_array_result.py +33 -0
  405. vellum/client/types/terminal_node_chat_history_result.py +27 -0
  406. vellum/client/types/terminal_node_error_result.py +27 -0
  407. vellum/client/types/terminal_node_function_call_result.py +27 -0
  408. vellum/client/types/terminal_node_json_result.py +26 -0
  409. vellum/client/types/terminal_node_number_result.py +26 -0
  410. vellum/client/types/terminal_node_result.py +31 -0
  411. vellum/client/types/terminal_node_result_data.py +26 -0
  412. vellum/client/types/terminal_node_result_output.py +22 -0
  413. vellum/client/types/terminal_node_search_results_result.py +27 -0
  414. vellum/client/types/terminal_node_string_result.py +26 -0
  415. vellum/client/types/test_case_array_variable_value.py +33 -0
  416. vellum/client/types/test_case_chat_history_variable_value.py +27 -0
  417. vellum/client/types/test_case_error_variable_value.py +27 -0
  418. vellum/client/types/test_case_function_call_variable_value.py +27 -0
  419. vellum/client/types/test_case_json_variable_value.py +26 -0
  420. vellum/client/types/test_case_number_variable_value.py +26 -0
  421. vellum/client/types/test_case_search_results_variable_value.py +27 -0
  422. vellum/client/types/test_case_string_variable_value.py +26 -0
  423. vellum/client/types/test_case_variable_value.py +22 -0
  424. vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +29 -0
  425. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +27 -0
  426. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +27 -0
  427. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +31 -0
  428. vellum/client/types/test_suite_run_exec_config.py +10 -0
  429. vellum/client/types/test_suite_run_exec_config_request.py +12 -0
  430. vellum/client/types/test_suite_run_execution.py +30 -0
  431. vellum/client/types/test_suite_run_execution_array_output.py +33 -0
  432. vellum/client/types/test_suite_run_execution_chat_history_output.py +27 -0
  433. vellum/client/types/test_suite_run_execution_error_output.py +27 -0
  434. vellum/client/types/test_suite_run_execution_function_call_output.py +27 -0
  435. vellum/client/types/test_suite_run_execution_json_output.py +26 -0
  436. vellum/client/types/test_suite_run_execution_metric_definition.py +21 -0
  437. vellum/client/types/test_suite_run_execution_metric_result.py +24 -0
  438. vellum/client/types/test_suite_run_execution_number_output.py +26 -0
  439. vellum/client/types/test_suite_run_execution_output.py +22 -0
  440. vellum/client/types/test_suite_run_execution_search_results_output.py +27 -0
  441. vellum/client/types/test_suite_run_execution_string_output.py +26 -0
  442. vellum/client/types/test_suite_run_external_exec_config.py +36 -0
  443. vellum/client/types/test_suite_run_external_exec_config_data.py +29 -0
  444. vellum/client/types/test_suite_run_external_exec_config_data_request.py +31 -0
  445. vellum/client/types/test_suite_run_external_exec_config_request.py +38 -0
  446. vellum/client/types/test_suite_run_metric_error_output.py +26 -0
  447. vellum/client/types/test_suite_run_metric_json_output.py +25 -0
  448. vellum/client/types/test_suite_run_metric_number_output.py +25 -0
  449. vellum/client/types/test_suite_run_metric_output.py +14 -0
  450. vellum/client/types/test_suite_run_metric_string_output.py +25 -0
  451. vellum/client/types/test_suite_run_read.py +46 -0
  452. vellum/client/types/test_suite_run_state.py +5 -0
  453. vellum/client/types/test_suite_run_test_suite.py +21 -0
  454. vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +29 -0
  455. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +27 -0
  456. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +27 -0
  457. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +31 -0
  458. vellum/client/types/test_suite_test_case.py +30 -0
  459. vellum/client/types/test_suite_test_case_bulk_operation_request.py +14 -0
  460. vellum/client/types/test_suite_test_case_bulk_result.py +14 -0
  461. vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +38 -0
  462. vellum/client/types/test_suite_test_case_created_bulk_result.py +26 -0
  463. vellum/client/types/test_suite_test_case_created_bulk_result_data.py +23 -0
  464. vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +19 -0
  465. vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +33 -0
  466. vellum/client/types/test_suite_test_case_deleted_bulk_result.py +30 -0
  467. vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +23 -0
  468. vellum/client/types/test_suite_test_case_rejected_bulk_result.py +32 -0
  469. vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +38 -0
  470. vellum/client/types/test_suite_test_case_replaced_bulk_result.py +30 -0
  471. vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +23 -0
  472. vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +38 -0
  473. vellum/client/types/token_overlapping_window_chunker_config.py +24 -0
  474. vellum/client/types/token_overlapping_window_chunker_config_request.py +24 -0
  475. vellum/client/types/token_overlapping_window_chunking.py +25 -0
  476. vellum/client/types/token_overlapping_window_chunking_request.py +25 -0
  477. vellum/client/types/unit_enum.py +5 -0
  478. vellum/client/types/upload_document_response.py +22 -0
  479. vellum/client/types/upsert_test_suite_test_case_request.py +49 -0
  480. vellum/client/types/variable_prompt_block.py +28 -0
  481. vellum/client/types/vellum_audio.py +24 -0
  482. vellum/client/types/vellum_audio_request.py +24 -0
  483. vellum/client/types/vellum_error.py +21 -0
  484. vellum/client/types/vellum_error_code_enum.py +15 -0
  485. vellum/client/types/vellum_error_request.py +21 -0
  486. vellum/client/types/vellum_image.py +20 -0
  487. vellum/client/types/vellum_image_request.py +20 -0
  488. vellum/client/types/vellum_value.py +29 -0
  489. vellum/client/types/vellum_value_logical_condition_group_request.py +38 -0
  490. vellum/client/types/vellum_value_logical_condition_request.py +34 -0
  491. vellum/client/types/vellum_value_logical_expression_request.py +12 -0
  492. vellum/client/types/vellum_value_request.py +29 -0
  493. vellum/client/types/vellum_variable.py +33 -0
  494. vellum/client/types/vellum_variable_extensions.py +23 -0
  495. vellum/client/types/vellum_variable_type.py +20 -0
  496. vellum/client/types/workflow_deployment_read.py +77 -0
  497. vellum/client/types/workflow_event_error.py +21 -0
  498. vellum/client/types/workflow_execution_actual_chat_history_request.py +49 -0
  499. vellum/client/types/workflow_execution_actual_json_request.py +48 -0
  500. vellum/client/types/workflow_execution_actual_string_request.py +48 -0
  501. vellum/client/types/workflow_execution_event_error_code.py +17 -0
  502. vellum/client/types/workflow_execution_event_type.py +5 -0
  503. vellum/client/types/workflow_execution_node_result_event.py +34 -0
  504. vellum/client/types/workflow_execution_workflow_result_event.py +36 -0
  505. vellum/client/types/workflow_expand_meta_request.py +22 -0
  506. vellum/client/types/workflow_node_result_data.py +28 -0
  507. vellum/client/types/workflow_node_result_event.py +14 -0
  508. vellum/client/types/workflow_node_result_event_state.py +7 -0
  509. vellum/client/types/workflow_output.py +24 -0
  510. vellum/client/types/workflow_output_array.py +37 -0
  511. vellum/client/types/workflow_output_chat_history.py +31 -0
  512. vellum/client/types/workflow_output_error.py +31 -0
  513. vellum/client/types/workflow_output_function_call.py +31 -0
  514. vellum/client/types/workflow_output_image.py +31 -0
  515. vellum/client/types/workflow_output_json.py +30 -0
  516. vellum/client/types/workflow_output_number.py +30 -0
  517. vellum/client/types/workflow_output_search_results.py +31 -0
  518. vellum/client/types/workflow_output_string.py +30 -0
  519. vellum/client/types/workflow_push_deployment_config_request.py +22 -0
  520. vellum/client/types/workflow_push_exec_config.py +3 -0
  521. vellum/client/types/workflow_push_response.py +20 -0
  522. vellum/client/types/workflow_release_tag_read.py +37 -0
  523. vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +28 -0
  524. vellum/client/types/workflow_request_chat_history_input_request.py +30 -0
  525. vellum/client/types/workflow_request_input_request.py +14 -0
  526. vellum/client/types/workflow_request_json_input_request.py +29 -0
  527. vellum/client/types/workflow_request_number_input_request.py +29 -0
  528. vellum/client/types/workflow_request_string_input_request.py +29 -0
  529. vellum/client/types/workflow_result_event.py +39 -0
  530. vellum/client/types/workflow_result_event_output_data.py +22 -0
  531. vellum/client/types/workflow_result_event_output_data_array.py +41 -0
  532. vellum/client/types/workflow_result_event_output_data_chat_history.py +35 -0
  533. vellum/client/types/workflow_result_event_output_data_error.py +35 -0
  534. vellum/client/types/workflow_result_event_output_data_function_call.py +35 -0
  535. vellum/client/types/workflow_result_event_output_data_json.py +34 -0
  536. vellum/client/types/workflow_result_event_output_data_number.py +34 -0
  537. vellum/client/types/workflow_result_event_output_data_search_results.py +35 -0
  538. vellum/client/types/workflow_result_event_output_data_string.py +37 -0
  539. vellum/client/types/workflow_stream_event.py +7 -0
  540. vellum/client/types/workspace_secret_read.py +25 -0
  541. vellum/core/__init__.py +2 -46
  542. vellum/core/api_error.py +2 -14
  543. vellum/core/client_wrapper.py +2 -58
  544. vellum/core/datetime_utils.py +2 -27
  545. vellum/core/file.py +2 -61
  546. vellum/core/http_client.py +2 -486
  547. vellum/core/jsonable_encoder.py +2 -100
  548. vellum/core/pydantic_utilities.py +2 -295
  549. vellum/core/query_encoder.py +2 -57
  550. vellum/core/remove_none_from_dict.py +2 -10
  551. vellum/core/request_options.py +2 -31
  552. vellum/core/serialization.py +2 -271
  553. vellum/environment.py +2 -16
  554. vellum/errors/__init__.py +2 -7
  555. vellum/errors/bad_request_error.py +2 -8
  556. vellum/errors/forbidden_error.py +2 -8
  557. vellum/errors/internal_server_error.py +2 -8
  558. vellum/errors/not_found_error.py +2 -8
  559. vellum/{lib/test_suites → evaluations}/resources.py +20 -51
  560. vellum/plugins/vellum_mypy.py +11 -0
  561. vellum/resources/__init__.py +2 -46
  562. vellum/resources/ad_hoc/__init__.py +2 -1
  563. vellum/resources/ad_hoc/client.py +2 -458
  564. vellum/resources/container_images/__init__.py +2 -1
  565. vellum/resources/container_images/client.py +2 -501
  566. vellum/resources/deployments/__init__.py +2 -4
  567. vellum/resources/deployments/client.py +2 -974
  568. vellum/resources/deployments/types/__init__.py +2 -5
  569. vellum/resources/deployments/types/deployments_list_request_status.py +2 -4
  570. vellum/resources/deployments/types/list_deployment_release_tags_request_source.py +2 -4
  571. vellum/resources/document_indexes/__init__.py +2 -4
  572. vellum/resources/document_indexes/client.py +2 -1153
  573. vellum/resources/document_indexes/types/__init__.py +2 -4
  574. vellum/resources/document_indexes/types/document_indexes_list_request_status.py +2 -4
  575. vellum/resources/documents/__init__.py +2 -1
  576. vellum/resources/documents/client.py +2 -780
  577. vellum/resources/folder_entities/__init__.py +2 -4
  578. vellum/resources/folder_entities/client.py +2 -332
  579. vellum/resources/folder_entities/types/__init__.py +2 -4
  580. vellum/resources/folder_entities/types/folder_entities_list_request_entity_status.py +2 -4
  581. vellum/resources/metric_definitions/__init__.py +2 -1
  582. vellum/resources/metric_definitions/client.py +2 -177
  583. vellum/resources/sandboxes/__init__.py +2 -1
  584. vellum/resources/sandboxes/client.py +2 -480
  585. vellum/resources/test_suite_runs/__init__.py +2 -1
  586. vellum/resources/test_suite_runs/client.py +2 -444
  587. vellum/resources/test_suites/__init__.py +2 -1
  588. vellum/resources/test_suites/client.py +2 -687
  589. vellum/resources/workflow_deployments/__init__.py +2 -4
  590. vellum/resources/workflow_deployments/client.py +2 -692
  591. vellum/resources/workflow_deployments/types/__init__.py +2 -5
  592. vellum/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py +2 -4
  593. vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +2 -4
  594. vellum/resources/workflow_sandboxes/__init__.py +2 -1
  595. vellum/resources/workflow_sandboxes/client.py +2 -189
  596. vellum/resources/workflows/__init__.py +2 -4
  597. vellum/resources/workflows/client.py +2 -332
  598. vellum/resources/workflows/types/__init__.py +2 -4
  599. vellum/resources/workflows/types/workflows_pull_request_format.py +2 -4
  600. vellum/resources/workspace_secrets/__init__.py +2 -1
  601. vellum/resources/workspace_secrets/client.py +2 -265
  602. vellum/types/__init__.py +2 -978
  603. vellum/types/ad_hoc_execute_prompt_event.py +2 -13
  604. vellum/types/ad_hoc_expand_meta.py +2 -36
  605. vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py +2 -26
  606. vellum/types/ad_hoc_initiated_prompt_execution_meta.py +2 -23
  607. vellum/types/ad_hoc_rejected_prompt_execution_meta.py +2 -24
  608. vellum/types/ad_hoc_streaming_prompt_execution_meta.py +2 -22
  609. vellum/types/add_openai_api_key_enum.py +2 -2
  610. vellum/types/api_node_result.py +2 -24
  611. vellum/types/api_node_result_data.py +2 -27
  612. vellum/types/array_chat_message_content.py +2 -24
  613. vellum/types/array_chat_message_content_item.py +2 -10
  614. vellum/types/array_chat_message_content_item_request.py +2 -13
  615. vellum/types/array_chat_message_content_request.py +2 -24
  616. vellum/types/array_input.py +2 -35
  617. vellum/types/array_variable_value.py +2 -26
  618. vellum/types/array_variable_value_item.py +2 -28
  619. vellum/types/array_vellum_value.py +2 -30
  620. vellum/types/array_vellum_value_request.py +2 -30
  621. vellum/types/audio_chat_message_content.py +2 -24
  622. vellum/types/audio_chat_message_content_request.py +2 -24
  623. vellum/types/audio_variable_value.py +2 -24
  624. vellum/types/audio_vellum_value.py +2 -24
  625. vellum/types/audio_vellum_value_request.py +2 -24
  626. vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -23
  627. vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -23
  628. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -25
  629. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -25
  630. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -25
  631. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -25
  632. vellum/types/chat_history_input.py +2 -29
  633. vellum/types/chat_history_input_request.py +2 -29
  634. vellum/types/chat_history_variable_value.py +2 -20
  635. vellum/types/chat_history_vellum_value.py +2 -24
  636. vellum/types/chat_history_vellum_value_request.py +2 -24
  637. vellum/types/chat_message.py +2 -26
  638. vellum/types/chat_message_content.py +2 -15
  639. vellum/types/chat_message_content_request.py +2 -15
  640. vellum/types/chat_message_prompt_block.py +2 -38
  641. vellum/types/chat_message_request.py +2 -26
  642. vellum/types/chat_message_role.py +2 -4
  643. vellum/types/code_execution_node_array_result.py +2 -27
  644. vellum/types/code_execution_node_chat_history_result.py +2 -21
  645. vellum/types/code_execution_node_error_result.py +2 -21
  646. vellum/types/code_execution_node_function_call_result.py +2 -21
  647. vellum/types/code_execution_node_json_result.py +2 -20
  648. vellum/types/code_execution_node_number_result.py +2 -20
  649. vellum/types/code_execution_node_result.py +2 -30
  650. vellum/types/code_execution_node_result_data.py +2 -26
  651. vellum/types/code_execution_node_result_output.py +2 -21
  652. vellum/types/code_execution_node_search_results_result.py +2 -21
  653. vellum/types/code_execution_node_string_result.py +2 -20
  654. vellum/types/code_execution_package.py +2 -19
  655. vellum/types/code_execution_runtime.py +2 -4
  656. vellum/types/code_executor_input.py +2 -23
  657. vellum/types/code_executor_response.py +2 -26
  658. vellum/types/code_executor_secret_input.py +2 -28
  659. vellum/types/compile_prompt_deployment_expand_meta_request.py +2 -31
  660. vellum/types/compile_prompt_meta.py +2 -24
  661. vellum/types/components_schemas_pdf_search_result_meta_source.py +2 -4
  662. vellum/types/components_schemas_pdf_search_result_meta_source_request.py +2 -4
  663. vellum/types/condition_combinator.py +2 -4
  664. vellum/types/conditional_node_result.py +2 -24
  665. vellum/types/conditional_node_result_data.py +2 -18
  666. vellum/types/container_image_read.py +2 -27
  667. vellum/types/create_test_suite_test_case_request.py +2 -47
  668. vellum/types/deployment_provider_payload_response.py +2 -21
  669. vellum/types/deployment_provider_payload_response_payload.py +2 -4
  670. vellum/types/deployment_read.py +2 -72
  671. vellum/types/deployment_release_tag_deployment_history_item.py +2 -20
  672. vellum/types/deployment_release_tag_read.py +2 -36
  673. vellum/types/docker_service_token.py +2 -20
  674. vellum/types/document_document_to_document_index.py +2 -38
  675. vellum/types/document_index_chunking.py +2 -7
  676. vellum/types/document_index_chunking_request.py +2 -9
  677. vellum/types/document_index_indexing_config.py +2 -21
  678. vellum/types/document_index_indexing_config_request.py +2 -21
  679. vellum/types/document_index_read.py +2 -51
  680. vellum/types/document_processing_state.py +2 -6
  681. vellum/types/document_read.py +2 -48
  682. vellum/types/document_status.py +2 -4
  683. vellum/types/enriched_normalized_completion.py +2 -58
  684. vellum/types/entity_status.py +2 -4
  685. vellum/types/entity_visibility.py +2 -4
  686. vellum/types/environment_enum.py +2 -4
  687. vellum/types/ephemeral_prompt_cache_config.py +2 -19
  688. vellum/types/ephemeral_prompt_cache_config_type_enum.py +2 -4
  689. vellum/types/error_input.py +2 -29
  690. vellum/types/error_variable_value.py +2 -20
  691. vellum/types/error_vellum_value.py +2 -24
  692. vellum/types/error_vellum_value_request.py +2 -24
  693. vellum/types/execute_prompt_event.py +2 -10
  694. vellum/types/execute_prompt_response.py +2 -6
  695. vellum/types/execute_workflow_response.py +2 -28
  696. vellum/types/execute_workflow_workflow_result_event.py +2 -8
  697. vellum/types/execution_array_vellum_value.py +2 -36
  698. vellum/types/execution_chat_history_vellum_value.py +2 -30
  699. vellum/types/execution_error_vellum_value.py +2 -30
  700. vellum/types/execution_function_call_vellum_value.py +2 -30
  701. vellum/types/execution_json_vellum_value.py +2 -29
  702. vellum/types/execution_number_vellum_value.py +2 -29
  703. vellum/types/execution_search_results_vellum_value.py +2 -30
  704. vellum/types/execution_string_vellum_value.py +2 -29
  705. vellum/types/execution_vellum_value.py +2 -21
  706. vellum/types/external_test_case_execution.py +2 -30
  707. vellum/types/external_test_case_execution_request.py +2 -30
  708. vellum/types/finish_reason_enum.py +2 -4
  709. vellum/types/folder_entity.py +2 -15
  710. vellum/types/folder_entity_document_index.py +2 -25
  711. vellum/types/folder_entity_document_index_data.py +2 -24
  712. vellum/types/folder_entity_folder.py +2 -25
  713. vellum/types/folder_entity_folder_data.py +2 -23
  714. vellum/types/folder_entity_prompt_sandbox.py +2 -25
  715. vellum/types/folder_entity_prompt_sandbox_data.py +2 -25
  716. vellum/types/folder_entity_test_suite.py +2 -25
  717. vellum/types/folder_entity_test_suite_data.py +2 -24
  718. vellum/types/folder_entity_workflow_sandbox.py +2 -25
  719. vellum/types/folder_entity_workflow_sandbox_data.py +2 -25
  720. vellum/types/fulfilled_ad_hoc_execute_prompt_event.py +2 -27
  721. vellum/types/fulfilled_enum.py +2 -4
  722. vellum/types/fulfilled_execute_prompt_event.py +2 -27
  723. vellum/types/fulfilled_execute_prompt_response.py +2 -36
  724. vellum/types/fulfilled_execute_workflow_workflow_result_event.py +2 -35
  725. vellum/types/fulfilled_prompt_execution_meta.py +2 -26
  726. vellum/types/fulfilled_workflow_node_result_event.py +2 -39
  727. vellum/types/function_call.py +2 -26
  728. vellum/types/function_call_chat_message_content.py +2 -24
  729. vellum/types/function_call_chat_message_content_request.py +2 -24
  730. vellum/types/function_call_chat_message_content_value.py +2 -24
  731. vellum/types/function_call_chat_message_content_value_request.py +2 -24
  732. vellum/types/function_call_input.py +2 -29
  733. vellum/types/function_call_request.py +2 -26
  734. vellum/types/function_call_variable_value.py +2 -20
  735. vellum/types/function_call_vellum_value.py +2 -24
  736. vellum/types/function_call_vellum_value_request.py +2 -24
  737. vellum/types/function_definition.py +2 -30
  738. vellum/types/generate_options_request.py +2 -25
  739. vellum/types/generate_request.py +2 -32
  740. vellum/types/generate_response.py +2 -24
  741. vellum/types/generate_result.py +2 -28
  742. vellum/types/generate_result_data.py +2 -22
  743. vellum/types/generate_result_error.py +2 -21
  744. vellum/types/generate_stream_response.py +2 -19
  745. vellum/types/generate_stream_result.py +2 -22
  746. vellum/types/generate_stream_result_data.py +2 -20
  747. vellum/types/google_vertex_ai_vectorizer_config.py +2 -19
  748. vellum/types/google_vertex_ai_vectorizer_config_request.py +2 -19
  749. vellum/types/google_vertex_ai_vectorizer_text_embedding_004.py +2 -20
  750. vellum/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +2 -20
  751. vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +2 -20
  752. vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +2 -20
  753. vellum/types/hkunlp_instructor_xl_vectorizer.py +2 -24
  754. vellum/types/hkunlp_instructor_xl_vectorizer_request.py +2 -24
  755. vellum/types/image_chat_message_content.py +2 -24
  756. vellum/types/image_chat_message_content_request.py +2 -24
  757. vellum/types/image_variable_value.py +2 -24
  758. vellum/types/image_vellum_value.py +2 -24
  759. vellum/types/image_vellum_value_request.py +2 -24
  760. vellum/types/indexing_config_vectorizer.py +2 -29
  761. vellum/types/indexing_config_vectorizer_request.py +2 -29
  762. vellum/types/indexing_state_enum.py +2 -6
  763. vellum/types/initiated_ad_hoc_execute_prompt_event.py +2 -25
  764. vellum/types/initiated_execute_prompt_event.py +2 -25
  765. vellum/types/initiated_prompt_execution_meta.py +2 -25
  766. vellum/types/initiated_workflow_node_result_event.py +2 -38
  767. vellum/types/instructor_vectorizer_config.py +2 -24
  768. vellum/types/instructor_vectorizer_config_request.py +2 -24
  769. vellum/types/iteration_state_enum.py +2 -4
  770. vellum/types/jinja_prompt_block.py +2 -27
  771. vellum/types/json_input.py +2 -28
  772. vellum/types/json_input_request.py +2 -28
  773. vellum/types/json_variable_value.py +2 -19
  774. vellum/types/json_vellum_value.py +2 -23
  775. vellum/types/json_vellum_value_request.py +2 -23
  776. vellum/types/logical_operator.py +2 -28
  777. vellum/types/logprobs_enum.py +2 -4
  778. vellum/types/map_node_result.py +2 -24
  779. vellum/types/map_node_result_data.py +2 -20
  780. vellum/types/merge_node_result.py +2 -24
  781. vellum/types/merge_node_result_data.py +2 -18
  782. vellum/types/metadata_filter_config_request.py +2 -35
  783. vellum/types/metadata_filter_rule_combinator.py +2 -4
  784. vellum/types/metadata_filter_rule_request.py +2 -30
  785. vellum/types/metadata_filters_request.py +2 -6
  786. vellum/types/metric_definition_execution.py +2 -19
  787. vellum/types/metric_definition_input.py +2 -8
  788. vellum/types/metric_node_result.py +2 -22
  789. vellum/types/ml_model_usage.py +2 -24
  790. vellum/types/named_scenario_input_chat_history_variable_value_request.py +2 -25
  791. vellum/types/named_scenario_input_json_variable_value_request.py +2 -24
  792. vellum/types/named_scenario_input_request.py +2 -11
  793. vellum/types/named_scenario_input_string_variable_value_request.py +2 -24
  794. vellum/types/named_test_case_array_variable_value.py +2 -31
  795. vellum/types/named_test_case_array_variable_value_request.py +2 -33
  796. vellum/types/named_test_case_chat_history_variable_value.py +2 -25
  797. vellum/types/named_test_case_chat_history_variable_value_request.py +2 -25
  798. vellum/types/named_test_case_error_variable_value.py +2 -25
  799. vellum/types/named_test_case_error_variable_value_request.py +2 -25
  800. vellum/types/named_test_case_function_call_variable_value.py +2 -25
  801. vellum/types/named_test_case_function_call_variable_value_request.py +2 -25
  802. vellum/types/named_test_case_json_variable_value.py +2 -24
  803. vellum/types/named_test_case_json_variable_value_request.py +2 -24
  804. vellum/types/named_test_case_number_variable_value.py +2 -24
  805. vellum/types/named_test_case_number_variable_value_request.py +2 -24
  806. vellum/types/named_test_case_search_results_variable_value.py +2 -25
  807. vellum/types/named_test_case_search_results_variable_value_request.py +2 -25
  808. vellum/types/named_test_case_string_variable_value.py +2 -24
  809. vellum/types/named_test_case_string_variable_value_request.py +2 -24
  810. vellum/types/named_test_case_variable_value.py +2 -21
  811. vellum/types/named_test_case_variable_value_request.py +2 -21
  812. vellum/types/node_input_compiled_array_value.py +2 -28
  813. vellum/types/node_input_compiled_chat_history_value.py +2 -22
  814. vellum/types/node_input_compiled_error_value.py +2 -22
  815. vellum/types/node_input_compiled_function_call_value.py +2 -22
  816. vellum/types/node_input_compiled_json_value.py +2 -21
  817. vellum/types/node_input_compiled_number_value.py +2 -21
  818. vellum/types/node_input_compiled_search_results_value.py +2 -22
  819. vellum/types/node_input_compiled_string_value.py +2 -21
  820. vellum/types/node_input_variable_compiled_value.py +2 -21
  821. vellum/types/node_output_compiled_array_value.py +2 -33
  822. vellum/types/node_output_compiled_chat_history_value.py +2 -27
  823. vellum/types/node_output_compiled_error_value.py +2 -27
  824. vellum/types/node_output_compiled_function_call_value.py +2 -27
  825. vellum/types/node_output_compiled_json_value.py +2 -26
  826. vellum/types/node_output_compiled_number_value.py +2 -26
  827. vellum/types/node_output_compiled_search_results_value.py +2 -27
  828. vellum/types/node_output_compiled_string_value.py +2 -26
  829. vellum/types/node_output_compiled_value.py +2 -21
  830. vellum/types/normalized_log_probs.py +2 -20
  831. vellum/types/normalized_token_log_probs.py +2 -21
  832. vellum/types/number_input.py +2 -28
  833. vellum/types/number_variable_value.py +2 -19
  834. vellum/types/number_vellum_value.py +2 -23
  835. vellum/types/number_vellum_value_request.py +2 -23
  836. vellum/types/open_ai_vectorizer_config.py +2 -23
  837. vellum/types/open_ai_vectorizer_config_request.py +2 -23
  838. vellum/types/open_ai_vectorizer_text_embedding_3_large.py +2 -24
  839. vellum/types/open_ai_vectorizer_text_embedding_3_large_request.py +2 -24
  840. vellum/types/open_ai_vectorizer_text_embedding_3_small.py +2 -24
  841. vellum/types/open_ai_vectorizer_text_embedding_3_small_request.py +2 -24
  842. vellum/types/open_ai_vectorizer_text_embedding_ada_002.py +2 -24
  843. vellum/types/open_ai_vectorizer_text_embedding_ada_002_request.py +2 -24
  844. vellum/types/paginated_container_image_read_list.py +2 -22
  845. vellum/types/paginated_deployment_release_tag_read_list.py +2 -22
  846. vellum/types/paginated_document_index_read_list.py +2 -22
  847. vellum/types/paginated_folder_entity_list.py +2 -22
  848. vellum/types/paginated_slim_deployment_read_list.py +2 -28
  849. vellum/types/paginated_slim_document_list.py +2 -22
  850. vellum/types/paginated_slim_workflow_deployment_list.py +2 -28
  851. vellum/types/paginated_test_suite_run_execution_list.py +2 -28
  852. vellum/types/paginated_test_suite_test_case_list.py +2 -28
  853. vellum/types/paginated_workflow_release_tag_read_list.py +2 -22
  854. vellum/types/pdf_search_result_meta_source.py +2 -31
  855. vellum/types/pdf_search_result_meta_source_request.py +2 -31
  856. vellum/types/plain_text_prompt_block.py +2 -27
  857. vellum/types/price.py +2 -20
  858. vellum/types/processing_failure_reason_enum.py +2 -4
  859. vellum/types/prompt_block.py +2 -11
  860. vellum/types/prompt_block_state.py +2 -4
  861. vellum/types/prompt_deployment_expand_meta_request.py +2 -51
  862. vellum/types/prompt_deployment_input_request.py +2 -7
  863. vellum/types/prompt_execution_meta.py +2 -31
  864. vellum/types/prompt_node_execution_meta.py +2 -23
  865. vellum/types/prompt_node_result.py +2 -24
  866. vellum/types/prompt_node_result_data.py +2 -24
  867. vellum/types/prompt_output.py +2 -8
  868. vellum/types/prompt_parameters.py +2 -26
  869. vellum/types/prompt_request_chat_history_input.py +2 -25
  870. vellum/types/prompt_request_input.py +2 -7
  871. vellum/types/prompt_request_json_input.py +2 -24
  872. vellum/types/prompt_request_string_input.py +2 -24
  873. vellum/types/prompt_settings.py +2 -18
  874. vellum/types/raw_prompt_execution_overrides_request.py +2 -27
  875. vellum/types/reducto_chunker_config.py +2 -22
  876. vellum/types/reducto_chunker_config_request.py +2 -22
  877. vellum/types/reducto_chunking.py +2 -24
  878. vellum/types/reducto_chunking_request.py +2 -24
  879. vellum/types/rejected_ad_hoc_execute_prompt_event.py +2 -27
  880. vellum/types/rejected_execute_prompt_event.py +2 -27
  881. vellum/types/rejected_execute_prompt_response.py +2 -36
  882. vellum/types/rejected_execute_workflow_workflow_result_event.py +2 -27
  883. vellum/types/rejected_prompt_execution_meta.py +2 -24
  884. vellum/types/rejected_workflow_node_result_event.py +2 -38
  885. vellum/types/release_tag_source.py +2 -4
  886. vellum/types/replace_test_suite_test_case_request.py +2 -52
  887. vellum/types/rich_text_child_block.py +2 -6
  888. vellum/types/rich_text_prompt_block.py +2 -28
  889. vellum/types/sandbox_scenario.py +2 -32
  890. vellum/types/scenario_input.py +2 -9
  891. vellum/types/scenario_input_chat_history_variable_value.py +2 -25
  892. vellum/types/scenario_input_json_variable_value.py +2 -24
  893. vellum/types/scenario_input_string_variable_value.py +2 -24
  894. vellum/types/search_filters_request.py +2 -37
  895. vellum/types/search_node_result.py +2 -24
  896. vellum/types/search_node_result_data.py +2 -26
  897. vellum/types/search_request_options_request.py +2 -49
  898. vellum/types/search_response.py +2 -22
  899. vellum/types/search_result.py +2 -39
  900. vellum/types/search_result_document.py +2 -36
  901. vellum/types/search_result_document_request.py +2 -36
  902. vellum/types/search_result_merging_request.py +2 -21
  903. vellum/types/search_result_meta.py +2 -19
  904. vellum/types/search_result_meta_request.py +2 -19
  905. vellum/types/search_result_request.py +2 -39
  906. vellum/types/search_results_input.py +2 -29
  907. vellum/types/search_results_variable_value.py +2 -20
  908. vellum/types/search_results_vellum_value.py +2 -24
  909. vellum/types/search_results_vellum_value_request.py +2 -24
  910. vellum/types/search_weights_request.py +2 -26
  911. vellum/types/secret_type_enum.py +2 -4
  912. vellum/types/sentence_chunker_config.py +2 -23
  913. vellum/types/sentence_chunker_config_request.py +2 -23
  914. vellum/types/sentence_chunking.py +2 -24
  915. vellum/types/sentence_chunking_request.py +2 -24
  916. vellum/types/slim_deployment_read.py +2 -62
  917. vellum/types/slim_document.py +2 -69
  918. vellum/types/slim_workflow_deployment.py +2 -71
  919. vellum/types/streaming_ad_hoc_execute_prompt_event.py +2 -32
  920. vellum/types/streaming_execute_prompt_event.py +2 -32
  921. vellum/types/streaming_prompt_execution_meta.py +2 -22
  922. vellum/types/streaming_workflow_node_result_event.py +2 -39
  923. vellum/types/string_chat_message_content.py +2 -23
  924. vellum/types/string_chat_message_content_request.py +2 -23
  925. vellum/types/string_input.py +2 -28
  926. vellum/types/string_input_request.py +2 -28
  927. vellum/types/string_variable_value.py +2 -19
  928. vellum/types/string_vellum_value.py +2 -23
  929. vellum/types/string_vellum_value_request.py +2 -23
  930. vellum/types/submit_completion_actual_request.py +2 -47
  931. vellum/types/submit_workflow_execution_actual_request.py +2 -9
  932. vellum/types/subworkflow_node_result.py +2 -24
  933. vellum/types/subworkflow_node_result_data.py +2 -18
  934. vellum/types/templating_node_array_result.py +2 -27
  935. vellum/types/templating_node_chat_history_result.py +2 -21
  936. vellum/types/templating_node_error_result.py +2 -21
  937. vellum/types/templating_node_function_call_result.py +2 -21
  938. vellum/types/templating_node_json_result.py +2 -20
  939. vellum/types/templating_node_number_result.py +2 -20
  940. vellum/types/templating_node_result.py +2 -30
  941. vellum/types/templating_node_result_data.py +2 -25
  942. vellum/types/templating_node_result_output.py +2 -21
  943. vellum/types/templating_node_search_results_result.py +2 -21
  944. vellum/types/templating_node_string_result.py +2 -20
  945. vellum/types/terminal_node_array_result.py +2 -32
  946. vellum/types/terminal_node_chat_history_result.py +2 -26
  947. vellum/types/terminal_node_error_result.py +2 -26
  948. vellum/types/terminal_node_function_call_result.py +2 -26
  949. vellum/types/terminal_node_json_result.py +2 -25
  950. vellum/types/terminal_node_number_result.py +2 -25
  951. vellum/types/terminal_node_result.py +2 -30
  952. vellum/types/terminal_node_result_data.py +2 -25
  953. vellum/types/terminal_node_result_output.py +2 -21
  954. vellum/types/terminal_node_search_results_result.py +2 -26
  955. vellum/types/terminal_node_string_result.py +2 -25
  956. vellum/types/test_case_array_variable_value.py +2 -32
  957. vellum/types/test_case_chat_history_variable_value.py +2 -26
  958. vellum/types/test_case_error_variable_value.py +2 -26
  959. vellum/types/test_case_function_call_variable_value.py +2 -26
  960. vellum/types/test_case_json_variable_value.py +2 -25
  961. vellum/types/test_case_number_variable_value.py +2 -25
  962. vellum/types/test_case_search_results_variable_value.py +2 -26
  963. vellum/types/test_case_string_variable_value.py +2 -25
  964. vellum/types/test_case_variable_value.py +2 -21
  965. vellum/types/test_suite_run_deployment_release_tag_exec_config.py +2 -28
  966. vellum/types/test_suite_run_deployment_release_tag_exec_config_data.py +2 -26
  967. vellum/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +2 -26
  968. vellum/types/test_suite_run_deployment_release_tag_exec_config_request.py +2 -30
  969. vellum/types/test_suite_run_exec_config.py +2 -9
  970. vellum/types/test_suite_run_exec_config_request.py +2 -11
  971. vellum/types/test_suite_run_execution.py +2 -29
  972. vellum/types/test_suite_run_execution_array_output.py +2 -32
  973. vellum/types/test_suite_run_execution_chat_history_output.py +2 -26
  974. vellum/types/test_suite_run_execution_error_output.py +2 -26
  975. vellum/types/test_suite_run_execution_function_call_output.py +2 -26
  976. vellum/types/test_suite_run_execution_json_output.py +2 -25
  977. vellum/types/test_suite_run_execution_metric_definition.py +2 -20
  978. vellum/types/test_suite_run_execution_metric_result.py +2 -23
  979. vellum/types/test_suite_run_execution_number_output.py +2 -25
  980. vellum/types/test_suite_run_execution_output.py +2 -21
  981. vellum/types/test_suite_run_execution_search_results_output.py +2 -26
  982. vellum/types/test_suite_run_execution_string_output.py +2 -25
  983. vellum/types/test_suite_run_external_exec_config.py +2 -35
  984. vellum/types/test_suite_run_external_exec_config_data.py +2 -28
  985. vellum/types/test_suite_run_external_exec_config_data_request.py +2 -30
  986. vellum/types/test_suite_run_external_exec_config_request.py +2 -37
  987. vellum/types/test_suite_run_metric_error_output.py +2 -25
  988. vellum/types/test_suite_run_metric_json_output.py +2 -24
  989. vellum/types/test_suite_run_metric_number_output.py +2 -24
  990. vellum/types/test_suite_run_metric_output.py +2 -13
  991. vellum/types/test_suite_run_metric_string_output.py +2 -24
  992. vellum/types/test_suite_run_read.py +2 -45
  993. vellum/types/test_suite_run_state.py +2 -4
  994. vellum/types/test_suite_run_test_suite.py +2 -20
  995. vellum/types/test_suite_run_workflow_release_tag_exec_config.py +2 -28
  996. vellum/types/test_suite_run_workflow_release_tag_exec_config_data.py +2 -26
  997. vellum/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +2 -26
  998. vellum/types/test_suite_run_workflow_release_tag_exec_config_request.py +2 -30
  999. vellum/types/test_suite_test_case.py +2 -29
  1000. vellum/types/test_suite_test_case_bulk_operation_request.py +2 -13
  1001. vellum/types/test_suite_test_case_bulk_result.py +2 -13
  1002. vellum/types/test_suite_test_case_create_bulk_operation_request.py +2 -37
  1003. vellum/types/test_suite_test_case_created_bulk_result.py +2 -25
  1004. vellum/types/test_suite_test_case_created_bulk_result_data.py +2 -22
  1005. vellum/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -18
  1006. vellum/types/test_suite_test_case_delete_bulk_operation_request.py +2 -32
  1007. vellum/types/test_suite_test_case_deleted_bulk_result.py +2 -29
  1008. vellum/types/test_suite_test_case_deleted_bulk_result_data.py +2 -22
  1009. vellum/types/test_suite_test_case_rejected_bulk_result.py +2 -31
  1010. vellum/types/test_suite_test_case_replace_bulk_operation_request.py +2 -37
  1011. vellum/types/test_suite_test_case_replaced_bulk_result.py +2 -29
  1012. vellum/types/test_suite_test_case_replaced_bulk_result_data.py +2 -22
  1013. vellum/types/test_suite_test_case_upsert_bulk_operation_request.py +2 -37
  1014. vellum/types/token_overlapping_window_chunker_config.py +2 -23
  1015. vellum/types/token_overlapping_window_chunker_config_request.py +2 -23
  1016. vellum/types/token_overlapping_window_chunking.py +2 -24
  1017. vellum/types/token_overlapping_window_chunking_request.py +2 -24
  1018. vellum/types/unit_enum.py +2 -4
  1019. vellum/types/upload_document_response.py +2 -21
  1020. vellum/types/upsert_test_suite_test_case_request.py +2 -48
  1021. vellum/types/variable_prompt_block.py +2 -27
  1022. vellum/types/vellum_audio.py +2 -23
  1023. vellum/types/vellum_audio_request.py +2 -23
  1024. vellum/types/vellum_error.py +2 -20
  1025. vellum/types/vellum_error_code_enum.py +2 -14
  1026. vellum/types/vellum_error_request.py +2 -20
  1027. vellum/types/vellum_image.py +2 -19
  1028. vellum/types/vellum_image_request.py +2 -19
  1029. vellum/types/vellum_value.py +2 -28
  1030. vellum/types/vellum_value_logical_condition_group_request.py +2 -37
  1031. vellum/types/vellum_value_logical_condition_request.py +2 -33
  1032. vellum/types/vellum_value_logical_expression_request.py +2 -11
  1033. vellum/types/vellum_value_request.py +2 -28
  1034. vellum/types/vellum_variable.py +2 -32
  1035. vellum/types/vellum_variable_extensions.py +2 -22
  1036. vellum/types/vellum_variable_type.py +2 -19
  1037. vellum/types/workflow_deployment_read.py +2 -76
  1038. vellum/types/workflow_event_error.py +2 -20
  1039. vellum/types/workflow_execution_actual_chat_history_request.py +2 -48
  1040. vellum/types/workflow_execution_actual_json_request.py +2 -47
  1041. vellum/types/workflow_execution_actual_string_request.py +2 -47
  1042. vellum/types/workflow_execution_event_error_code.py +2 -16
  1043. vellum/types/workflow_execution_event_type.py +2 -4
  1044. vellum/types/workflow_execution_node_result_event.py +2 -33
  1045. vellum/types/workflow_execution_workflow_result_event.py +2 -35
  1046. vellum/types/workflow_expand_meta_request.py +2 -21
  1047. vellum/types/workflow_node_result_data.py +2 -27
  1048. vellum/types/workflow_node_result_event.py +2 -13
  1049. vellum/types/workflow_node_result_event_state.py +2 -6
  1050. vellum/types/workflow_output.py +2 -23
  1051. vellum/types/workflow_output_array.py +2 -36
  1052. vellum/types/workflow_output_chat_history.py +2 -30
  1053. vellum/types/workflow_output_error.py +2 -30
  1054. vellum/types/workflow_output_function_call.py +2 -30
  1055. vellum/types/workflow_output_image.py +2 -30
  1056. vellum/types/workflow_output_json.py +2 -29
  1057. vellum/types/workflow_output_number.py +2 -29
  1058. vellum/types/workflow_output_search_results.py +2 -30
  1059. vellum/types/workflow_output_string.py +2 -29
  1060. vellum/types/workflow_push_deployment_config_request.py +2 -21
  1061. vellum/types/workflow_push_exec_config.py +2 -2
  1062. vellum/types/workflow_push_response.py +2 -19
  1063. vellum/types/workflow_release_tag_read.py +2 -36
  1064. vellum/types/workflow_release_tag_workflow_deployment_history_item.py +2 -27
  1065. vellum/types/workflow_request_chat_history_input_request.py +2 -29
  1066. vellum/types/workflow_request_input_request.py +2 -13
  1067. vellum/types/workflow_request_json_input_request.py +2 -28
  1068. vellum/types/workflow_request_number_input_request.py +2 -28
  1069. vellum/types/workflow_request_string_input_request.py +2 -28
  1070. vellum/types/workflow_result_event.py +2 -38
  1071. vellum/types/workflow_result_event_output_data.py +2 -21
  1072. vellum/types/workflow_result_event_output_data_array.py +2 -40
  1073. vellum/types/workflow_result_event_output_data_chat_history.py +2 -34
  1074. vellum/types/workflow_result_event_output_data_error.py +2 -34
  1075. vellum/types/workflow_result_event_output_data_function_call.py +2 -34
  1076. vellum/types/workflow_result_event_output_data_json.py +2 -33
  1077. vellum/types/workflow_result_event_output_data_number.py +2 -33
  1078. vellum/types/workflow_result_event_output_data_search_results.py +2 -34
  1079. vellum/types/workflow_result_event_output_data_string.py +2 -36
  1080. vellum/types/workflow_stream_event.py +2 -6
  1081. vellum/types/workspace_secret_read.py +2 -24
  1082. {vellum_ai-0.9.16.dist-info → vellum_ai-0.9.16rc2.dist-info}/LICENSE +11 -3
  1083. vellum_ai-0.9.16rc2.dist-info/METADATA +119 -0
  1084. vellum_ai-0.9.16rc2.dist-info/RECORD +1101 -0
  1085. vellum_ai-0.9.16rc2.dist-info/entry_points.txt +3 -0
  1086. vellum_cli/__init__.py +0 -0
  1087. vellum_ee/__init__.py +0 -0
  1088. vellum/lib/__init__.py +0 -5
  1089. vellum_ai-0.9.16.dist-info/METADATA +0 -148
  1090. vellum_ai-0.9.16.dist-info/RECORD +0 -558
  1091. /vellum/{client.py → client/__init__.py} +0 -0
  1092. /vellum/{lib/test_suites → evaluations}/__init__.py +0 -0
  1093. /vellum/{lib/test_suites → evaluations}/constants.py +0 -0
  1094. /vellum/{lib/test_suites → evaluations}/exceptions.py +0 -0
  1095. /vellum/{lib → evaluations}/utils/__init__.py +0 -0
  1096. /vellum/{lib → evaluations}/utils/env.py +0 -0
  1097. /vellum/{lib → evaluations}/utils/exceptions.py +0 -0
  1098. /vellum/{lib → evaluations}/utils/paginator.py +0 -0
  1099. /vellum/{lib → evaluations}/utils/typing.py +0 -0
  1100. /vellum/{lib → evaluations}/utils/uuid.py +0 -0
  1101. {vellum_ai-0.9.16.dist-info → vellum_ai-0.9.16rc2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,781 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from ...core.client_wrapper import SyncClientWrapper
5
+ from ...core.request_options import RequestOptions
6
+ from ...types.paginated_slim_document_list import PaginatedSlimDocumentList
7
+ from ...core.pydantic_utilities import parse_obj_as
8
+ from json.decoder import JSONDecodeError
9
+ from ...core.api_error import ApiError
10
+ from ...types.document_read import DocumentRead
11
+ from ...core.jsonable_encoder import jsonable_encoder
12
+ from ...types.document_status import DocumentStatus
13
+ from ... import core
14
+ from ...types.upload_document_response import UploadDocumentResponse
15
+ from ...errors.bad_request_error import BadRequestError
16
+ from ...errors.not_found_error import NotFoundError
17
+ from ...errors.internal_server_error import InternalServerError
18
+ from ...core.client_wrapper import AsyncClientWrapper
19
+
20
+ # this is used as the default value for optional parameters
21
+ OMIT = typing.cast(typing.Any, ...)
22
+
23
+
24
+ class DocumentsClient:
25
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
26
+ self._client_wrapper = client_wrapper
27
+
28
+ def list(
29
+ self,
30
+ *,
31
+ document_index_id: typing.Optional[str] = None,
32
+ limit: typing.Optional[int] = None,
33
+ offset: typing.Optional[int] = None,
34
+ ordering: typing.Optional[str] = None,
35
+ request_options: typing.Optional[RequestOptions] = None,
36
+ ) -> PaginatedSlimDocumentList:
37
+ """
38
+ Used to list documents. Optionally filter on supported fields.
39
+
40
+ Parameters
41
+ ----------
42
+ document_index_id : typing.Optional[str]
43
+ Filter down to only those documents that are included in the specified index. You may provide either the Vellum-generated ID or the unique name of the index specified upon initial creation.
44
+
45
+ limit : typing.Optional[int]
46
+ Number of results to return per page.
47
+
48
+ offset : typing.Optional[int]
49
+ The initial index from which to return the results.
50
+
51
+ ordering : typing.Optional[str]
52
+ Which field to use when ordering the results.
53
+
54
+ request_options : typing.Optional[RequestOptions]
55
+ Request-specific configuration.
56
+
57
+ Returns
58
+ -------
59
+ PaginatedSlimDocumentList
60
+
61
+
62
+ Examples
63
+ --------
64
+ from vellum import Vellum
65
+
66
+ client = Vellum(
67
+ api_key="YOUR_API_KEY",
68
+ )
69
+ client.documents.list()
70
+ """
71
+ _response = self._client_wrapper.httpx_client.request(
72
+ "v1/documents",
73
+ base_url=self._client_wrapper.get_environment().default,
74
+ method="GET",
75
+ params={
76
+ "document_index_id": document_index_id,
77
+ "limit": limit,
78
+ "offset": offset,
79
+ "ordering": ordering,
80
+ },
81
+ request_options=request_options,
82
+ )
83
+ try:
84
+ if 200 <= _response.status_code < 300:
85
+ return typing.cast(
86
+ PaginatedSlimDocumentList,
87
+ parse_obj_as(
88
+ type_=PaginatedSlimDocumentList, # type: ignore
89
+ object_=_response.json(),
90
+ ),
91
+ )
92
+ _response_json = _response.json()
93
+ except JSONDecodeError:
94
+ raise ApiError(status_code=_response.status_code, body=_response.text)
95
+ raise ApiError(status_code=_response.status_code, body=_response_json)
96
+
97
+ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentRead:
98
+ """
99
+ Retrieve a Document, keying off of either its Vellum-generated ID or its external ID.
100
+
101
+ Parameters
102
+ ----------
103
+ id : str
104
+ A UUID string identifying this document.
105
+
106
+ request_options : typing.Optional[RequestOptions]
107
+ Request-specific configuration.
108
+
109
+ Returns
110
+ -------
111
+ DocumentRead
112
+
113
+
114
+ Examples
115
+ --------
116
+ from vellum import Vellum
117
+
118
+ client = Vellum(
119
+ api_key="YOUR_API_KEY",
120
+ )
121
+ client.documents.retrieve(
122
+ id="id",
123
+ )
124
+ """
125
+ _response = self._client_wrapper.httpx_client.request(
126
+ f"v1/documents/{jsonable_encoder(id)}",
127
+ base_url=self._client_wrapper.get_environment().default,
128
+ method="GET",
129
+ request_options=request_options,
130
+ )
131
+ try:
132
+ if 200 <= _response.status_code < 300:
133
+ return typing.cast(
134
+ DocumentRead,
135
+ parse_obj_as(
136
+ type_=DocumentRead, # type: ignore
137
+ object_=_response.json(),
138
+ ),
139
+ )
140
+ _response_json = _response.json()
141
+ except JSONDecodeError:
142
+ raise ApiError(status_code=_response.status_code, body=_response.text)
143
+ raise ApiError(status_code=_response.status_code, body=_response_json)
144
+
145
+ def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
146
+ """
147
+ Delete a Document, keying off of either its Vellum-generated ID or its external ID.
148
+
149
+ Parameters
150
+ ----------
151
+ id : str
152
+ A UUID string identifying this document.
153
+
154
+ request_options : typing.Optional[RequestOptions]
155
+ Request-specific configuration.
156
+
157
+ Returns
158
+ -------
159
+ None
160
+
161
+ Examples
162
+ --------
163
+ from vellum import Vellum
164
+
165
+ client = Vellum(
166
+ api_key="YOUR_API_KEY",
167
+ )
168
+ client.documents.destroy(
169
+ id="id",
170
+ )
171
+ """
172
+ _response = self._client_wrapper.httpx_client.request(
173
+ f"v1/documents/{jsonable_encoder(id)}",
174
+ base_url=self._client_wrapper.get_environment().documents,
175
+ method="DELETE",
176
+ request_options=request_options,
177
+ )
178
+ try:
179
+ if 200 <= _response.status_code < 300:
180
+ return
181
+ _response_json = _response.json()
182
+ except JSONDecodeError:
183
+ raise ApiError(status_code=_response.status_code, body=_response.text)
184
+ raise ApiError(status_code=_response.status_code, body=_response_json)
185
+
186
+ def partial_update(
187
+ self,
188
+ id: str,
189
+ *,
190
+ label: typing.Optional[str] = OMIT,
191
+ status: typing.Optional[DocumentStatus] = OMIT,
192
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
193
+ request_options: typing.Optional[RequestOptions] = None,
194
+ ) -> DocumentRead:
195
+ """
196
+ Update a Document, keying off of either its Vellum-generated ID or its external ID. Particularly useful for updating its metadata.
197
+
198
+ Parameters
199
+ ----------
200
+ id : str
201
+ A UUID string identifying this document.
202
+
203
+ label : typing.Optional[str]
204
+ A human-readable label for the document. Defaults to the originally uploaded file's file name.
205
+
206
+ status : typing.Optional[DocumentStatus]
207
+ The current status of the document
208
+
209
+ * `ACTIVE` - Active
210
+
211
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
212
+ A JSON object containing any metadata associated with the document that you'd like to filter upon later.
213
+
214
+ request_options : typing.Optional[RequestOptions]
215
+ Request-specific configuration.
216
+
217
+ Returns
218
+ -------
219
+ DocumentRead
220
+
221
+
222
+ Examples
223
+ --------
224
+ from vellum import Vellum
225
+
226
+ client = Vellum(
227
+ api_key="YOUR_API_KEY",
228
+ )
229
+ client.documents.partial_update(
230
+ id="id",
231
+ )
232
+ """
233
+ _response = self._client_wrapper.httpx_client.request(
234
+ f"v1/documents/{jsonable_encoder(id)}",
235
+ base_url=self._client_wrapper.get_environment().default,
236
+ method="PATCH",
237
+ json={
238
+ "label": label,
239
+ "status": status,
240
+ "metadata": metadata,
241
+ },
242
+ request_options=request_options,
243
+ omit=OMIT,
244
+ )
245
+ try:
246
+ if 200 <= _response.status_code < 300:
247
+ return typing.cast(
248
+ DocumentRead,
249
+ parse_obj_as(
250
+ type_=DocumentRead, # type: ignore
251
+ object_=_response.json(),
252
+ ),
253
+ )
254
+ _response_json = _response.json()
255
+ except JSONDecodeError:
256
+ raise ApiError(status_code=_response.status_code, body=_response.text)
257
+ raise ApiError(status_code=_response.status_code, body=_response_json)
258
+
259
+ def upload(
260
+ self,
261
+ *,
262
+ label: str,
263
+ contents: core.File,
264
+ add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
265
+ external_id: typing.Optional[str] = OMIT,
266
+ keywords: typing.Optional[typing.List[str]] = OMIT,
267
+ metadata: typing.Optional[str] = OMIT,
268
+ request_options: typing.Optional[RequestOptions] = None,
269
+ ) -> UploadDocumentResponse:
270
+ """
271
+ Upload a document to be indexed and used for search.
272
+
273
+ **Note:** Uses a base url of `https://documents.vellum.ai`.
274
+
275
+ This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
276
+
277
+ - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
278
+ - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
279
+ - `label: str` - A human-friendly name for this document. Typically the filename.
280
+ - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
281
+ - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
282
+
283
+ Parameters
284
+ ----------
285
+ label : str
286
+ A human-friendly name for this document. Typically the filename.
287
+
288
+ contents : core.File
289
+ See core.File for more documentation
290
+
291
+ add_to_index_names : typing.Optional[typing.List[str]]
292
+ Optionally include the names of all indexes that you'd like this document to be included in
293
+
294
+ external_id : typing.Optional[str]
295
+ Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
296
+
297
+ keywords : typing.Optional[typing.List[str]]
298
+ Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
299
+
300
+ metadata : typing.Optional[str]
301
+ A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
302
+
303
+ request_options : typing.Optional[RequestOptions]
304
+ Request-specific configuration.
305
+
306
+ Returns
307
+ -------
308
+ UploadDocumentResponse
309
+
310
+
311
+ Examples
312
+ --------
313
+ from vellum import Vellum
314
+
315
+ client = Vellum(
316
+ api_key="YOUR_API_KEY",
317
+ )
318
+ client.documents.upload(
319
+ label="label",
320
+ )
321
+ """
322
+ _response = self._client_wrapper.httpx_client.request(
323
+ "v1/upload-document",
324
+ base_url=self._client_wrapper.get_environment().documents,
325
+ method="POST",
326
+ data={
327
+ "add_to_index_names": add_to_index_names,
328
+ "external_id": external_id,
329
+ "label": label,
330
+ "keywords": keywords,
331
+ "metadata": metadata,
332
+ },
333
+ files={
334
+ "contents": contents,
335
+ },
336
+ request_options=request_options,
337
+ omit=OMIT,
338
+ )
339
+ try:
340
+ if 200 <= _response.status_code < 300:
341
+ return typing.cast(
342
+ UploadDocumentResponse,
343
+ parse_obj_as(
344
+ type_=UploadDocumentResponse, # type: ignore
345
+ object_=_response.json(),
346
+ ),
347
+ )
348
+ if _response.status_code == 400:
349
+ raise BadRequestError(
350
+ typing.cast(
351
+ typing.Optional[typing.Any],
352
+ parse_obj_as(
353
+ type_=typing.Optional[typing.Any], # type: ignore
354
+ object_=_response.json(),
355
+ ),
356
+ )
357
+ )
358
+ if _response.status_code == 404:
359
+ raise NotFoundError(
360
+ typing.cast(
361
+ typing.Optional[typing.Any],
362
+ parse_obj_as(
363
+ type_=typing.Optional[typing.Any], # type: ignore
364
+ object_=_response.json(),
365
+ ),
366
+ )
367
+ )
368
+ if _response.status_code == 500:
369
+ raise InternalServerError(
370
+ typing.cast(
371
+ typing.Optional[typing.Any],
372
+ parse_obj_as(
373
+ type_=typing.Optional[typing.Any], # type: ignore
374
+ object_=_response.json(),
375
+ ),
376
+ )
377
+ )
378
+ _response_json = _response.json()
379
+ except JSONDecodeError:
380
+ raise ApiError(status_code=_response.status_code, body=_response.text)
381
+ raise ApiError(status_code=_response.status_code, body=_response_json)
382
+
383
+
384
+ class AsyncDocumentsClient:
385
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
386
+ self._client_wrapper = client_wrapper
387
+
388
+ async def list(
389
+ self,
390
+ *,
391
+ document_index_id: typing.Optional[str] = None,
392
+ limit: typing.Optional[int] = None,
393
+ offset: typing.Optional[int] = None,
394
+ ordering: typing.Optional[str] = None,
395
+ request_options: typing.Optional[RequestOptions] = None,
396
+ ) -> PaginatedSlimDocumentList:
397
+ """
398
+ Used to list documents. Optionally filter on supported fields.
399
+
400
+ Parameters
401
+ ----------
402
+ document_index_id : typing.Optional[str]
403
+ Filter down to only those documents that are included in the specified index. You may provide either the Vellum-generated ID or the unique name of the index specified upon initial creation.
404
+
405
+ limit : typing.Optional[int]
406
+ Number of results to return per page.
407
+
408
+ offset : typing.Optional[int]
409
+ The initial index from which to return the results.
410
+
411
+ ordering : typing.Optional[str]
412
+ Which field to use when ordering the results.
413
+
414
+ request_options : typing.Optional[RequestOptions]
415
+ Request-specific configuration.
416
+
417
+ Returns
418
+ -------
419
+ PaginatedSlimDocumentList
420
+
421
+
422
+ Examples
423
+ --------
424
+ import asyncio
425
+
426
+ from vellum import AsyncVellum
427
+
428
+ client = AsyncVellum(
429
+ api_key="YOUR_API_KEY",
430
+ )
431
+
432
+
433
+ async def main() -> None:
434
+ await client.documents.list()
435
+
436
+
437
+ asyncio.run(main())
438
+ """
439
+ _response = await self._client_wrapper.httpx_client.request(
440
+ "v1/documents",
441
+ base_url=self._client_wrapper.get_environment().default,
442
+ method="GET",
443
+ params={
444
+ "document_index_id": document_index_id,
445
+ "limit": limit,
446
+ "offset": offset,
447
+ "ordering": ordering,
448
+ },
449
+ request_options=request_options,
450
+ )
451
+ try:
452
+ if 200 <= _response.status_code < 300:
453
+ return typing.cast(
454
+ PaginatedSlimDocumentList,
455
+ parse_obj_as(
456
+ type_=PaginatedSlimDocumentList, # type: ignore
457
+ object_=_response.json(),
458
+ ),
459
+ )
460
+ _response_json = _response.json()
461
+ except JSONDecodeError:
462
+ raise ApiError(status_code=_response.status_code, body=_response.text)
463
+ raise ApiError(status_code=_response.status_code, body=_response_json)
464
+
465
+ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentRead:
466
+ """
467
+ Retrieve a Document, keying off of either its Vellum-generated ID or its external ID.
468
+
469
+ Parameters
470
+ ----------
471
+ id : str
472
+ A UUID string identifying this document.
473
+
474
+ request_options : typing.Optional[RequestOptions]
475
+ Request-specific configuration.
476
+
477
+ Returns
478
+ -------
479
+ DocumentRead
480
+
481
+
482
+ Examples
483
+ --------
484
+ import asyncio
485
+
486
+ from vellum import AsyncVellum
487
+
488
+ client = AsyncVellum(
489
+ api_key="YOUR_API_KEY",
490
+ )
491
+
492
+
493
+ async def main() -> None:
494
+ await client.documents.retrieve(
495
+ id="id",
496
+ )
497
+
498
+
499
+ asyncio.run(main())
500
+ """
501
+ _response = await self._client_wrapper.httpx_client.request(
502
+ f"v1/documents/{jsonable_encoder(id)}",
503
+ base_url=self._client_wrapper.get_environment().default,
504
+ method="GET",
505
+ request_options=request_options,
506
+ )
507
+ try:
508
+ if 200 <= _response.status_code < 300:
509
+ return typing.cast(
510
+ DocumentRead,
511
+ parse_obj_as(
512
+ type_=DocumentRead, # type: ignore
513
+ object_=_response.json(),
514
+ ),
515
+ )
516
+ _response_json = _response.json()
517
+ except JSONDecodeError:
518
+ raise ApiError(status_code=_response.status_code, body=_response.text)
519
+ raise ApiError(status_code=_response.status_code, body=_response_json)
520
+
521
+ async def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
522
+ """
523
+ Delete a Document, keying off of either its Vellum-generated ID or its external ID.
524
+
525
+ Parameters
526
+ ----------
527
+ id : str
528
+ A UUID string identifying this document.
529
+
530
+ request_options : typing.Optional[RequestOptions]
531
+ Request-specific configuration.
532
+
533
+ Returns
534
+ -------
535
+ None
536
+
537
+ Examples
538
+ --------
539
+ import asyncio
540
+
541
+ from vellum import AsyncVellum
542
+
543
+ client = AsyncVellum(
544
+ api_key="YOUR_API_KEY",
545
+ )
546
+
547
+
548
+ async def main() -> None:
549
+ await client.documents.destroy(
550
+ id="id",
551
+ )
552
+
553
+
554
+ asyncio.run(main())
555
+ """
556
+ _response = await self._client_wrapper.httpx_client.request(
557
+ f"v1/documents/{jsonable_encoder(id)}",
558
+ base_url=self._client_wrapper.get_environment().documents,
559
+ method="DELETE",
560
+ request_options=request_options,
561
+ )
562
+ try:
563
+ if 200 <= _response.status_code < 300:
564
+ return
565
+ _response_json = _response.json()
566
+ except JSONDecodeError:
567
+ raise ApiError(status_code=_response.status_code, body=_response.text)
568
+ raise ApiError(status_code=_response.status_code, body=_response_json)
569
+
570
+ async def partial_update(
571
+ self,
572
+ id: str,
573
+ *,
574
+ label: typing.Optional[str] = OMIT,
575
+ status: typing.Optional[DocumentStatus] = OMIT,
576
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
577
+ request_options: typing.Optional[RequestOptions] = None,
578
+ ) -> DocumentRead:
579
+ """
580
+ Update a Document, keying off of either its Vellum-generated ID or its external ID. Particularly useful for updating its metadata.
581
+
582
+ Parameters
583
+ ----------
584
+ id : str
585
+ A UUID string identifying this document.
586
+
587
+ label : typing.Optional[str]
588
+ A human-readable label for the document. Defaults to the originally uploaded file's file name.
589
+
590
+ status : typing.Optional[DocumentStatus]
591
+ The current status of the document
592
+
593
+ * `ACTIVE` - Active
594
+
595
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
596
+ A JSON object containing any metadata associated with the document that you'd like to filter upon later.
597
+
598
+ request_options : typing.Optional[RequestOptions]
599
+ Request-specific configuration.
600
+
601
+ Returns
602
+ -------
603
+ DocumentRead
604
+
605
+
606
+ Examples
607
+ --------
608
+ import asyncio
609
+
610
+ from vellum import AsyncVellum
611
+
612
+ client = AsyncVellum(
613
+ api_key="YOUR_API_KEY",
614
+ )
615
+
616
+
617
+ async def main() -> None:
618
+ await client.documents.partial_update(
619
+ id="id",
620
+ )
621
+
622
+
623
+ asyncio.run(main())
624
+ """
625
+ _response = await self._client_wrapper.httpx_client.request(
626
+ f"v1/documents/{jsonable_encoder(id)}",
627
+ base_url=self._client_wrapper.get_environment().default,
628
+ method="PATCH",
629
+ json={
630
+ "label": label,
631
+ "status": status,
632
+ "metadata": metadata,
633
+ },
634
+ request_options=request_options,
635
+ omit=OMIT,
636
+ )
637
+ try:
638
+ if 200 <= _response.status_code < 300:
639
+ return typing.cast(
640
+ DocumentRead,
641
+ parse_obj_as(
642
+ type_=DocumentRead, # type: ignore
643
+ object_=_response.json(),
644
+ ),
645
+ )
646
+ _response_json = _response.json()
647
+ except JSONDecodeError:
648
+ raise ApiError(status_code=_response.status_code, body=_response.text)
649
+ raise ApiError(status_code=_response.status_code, body=_response_json)
650
+
651
+ async def upload(
652
+ self,
653
+ *,
654
+ label: str,
655
+ contents: core.File,
656
+ add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
657
+ external_id: typing.Optional[str] = OMIT,
658
+ keywords: typing.Optional[typing.List[str]] = OMIT,
659
+ metadata: typing.Optional[str] = OMIT,
660
+ request_options: typing.Optional[RequestOptions] = None,
661
+ ) -> UploadDocumentResponse:
662
+ """
663
+ Upload a document to be indexed and used for search.
664
+
665
+ **Note:** Uses a base url of `https://documents.vellum.ai`.
666
+
667
+ This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
668
+
669
+ - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
670
+ - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
671
+ - `label: str` - A human-friendly name for this document. Typically the filename.
672
+ - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
673
+ - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
674
+
675
+ Parameters
676
+ ----------
677
+ label : str
678
+ A human-friendly name for this document. Typically the filename.
679
+
680
+ contents : core.File
681
+ See core.File for more documentation
682
+
683
+ add_to_index_names : typing.Optional[typing.List[str]]
684
+ Optionally include the names of all indexes that you'd like this document to be included in
685
+
686
+ external_id : typing.Optional[str]
687
+ Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
688
+
689
+ keywords : typing.Optional[typing.List[str]]
690
+ Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
691
+
692
+ metadata : typing.Optional[str]
693
+ A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
694
+
695
+ request_options : typing.Optional[RequestOptions]
696
+ Request-specific configuration.
697
+
698
+ Returns
699
+ -------
700
+ UploadDocumentResponse
701
+
702
+
703
+ Examples
704
+ --------
705
+ import asyncio
706
+
707
+ from vellum import AsyncVellum
708
+
709
+ client = AsyncVellum(
710
+ api_key="YOUR_API_KEY",
711
+ )
712
+
713
+
714
+ async def main() -> None:
715
+ await client.documents.upload(
716
+ label="label",
717
+ )
718
+
719
+
720
+ asyncio.run(main())
721
+ """
722
+ _response = await self._client_wrapper.httpx_client.request(
723
+ "v1/upload-document",
724
+ base_url=self._client_wrapper.get_environment().documents,
725
+ method="POST",
726
+ data={
727
+ "add_to_index_names": add_to_index_names,
728
+ "external_id": external_id,
729
+ "label": label,
730
+ "keywords": keywords,
731
+ "metadata": metadata,
732
+ },
733
+ files={
734
+ "contents": contents,
735
+ },
736
+ request_options=request_options,
737
+ omit=OMIT,
738
+ )
739
+ try:
740
+ if 200 <= _response.status_code < 300:
741
+ return typing.cast(
742
+ UploadDocumentResponse,
743
+ parse_obj_as(
744
+ type_=UploadDocumentResponse, # type: ignore
745
+ object_=_response.json(),
746
+ ),
747
+ )
748
+ if _response.status_code == 400:
749
+ raise BadRequestError(
750
+ typing.cast(
751
+ typing.Optional[typing.Any],
752
+ parse_obj_as(
753
+ type_=typing.Optional[typing.Any], # type: ignore
754
+ object_=_response.json(),
755
+ ),
756
+ )
757
+ )
758
+ if _response.status_code == 404:
759
+ raise NotFoundError(
760
+ typing.cast(
761
+ typing.Optional[typing.Any],
762
+ parse_obj_as(
763
+ type_=typing.Optional[typing.Any], # type: ignore
764
+ object_=_response.json(),
765
+ ),
766
+ )
767
+ )
768
+ if _response.status_code == 500:
769
+ raise InternalServerError(
770
+ typing.cast(
771
+ typing.Optional[typing.Any],
772
+ parse_obj_as(
773
+ type_=typing.Optional[typing.Any], # type: ignore
774
+ object_=_response.json(),
775
+ ),
776
+ )
777
+ )
778
+ _response_json = _response.json()
779
+ except JSONDecodeError:
780
+ raise ApiError(status_code=_response.status_code, body=_response.text)
781
+ raise ApiError(status_code=_response.status_code, body=_response_json)