vellum-ai 1.1.3__py3-none-any.whl → 1.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (660) hide show
  1. vellum/__init__.py +2 -0
  2. vellum/client/README.md +22 -0
  3. vellum/client/__init__.py +89 -99
  4. vellum/client/core/__init__.py +2 -0
  5. vellum/client/core/api_error.py +13 -5
  6. vellum/client/core/client_wrapper.py +16 -4
  7. vellum/client/core/force_multipart.py +16 -0
  8. vellum/client/core/http_client.py +70 -24
  9. vellum/client/core/http_response.py +19 -11
  10. vellum/client/core/pydantic_utilities.py +71 -114
  11. vellum/client/core/serialization.py +6 -1
  12. vellum/client/errors/__init__.py +2 -0
  13. vellum/client/errors/bad_request_error.py +4 -3
  14. vellum/client/errors/forbidden_error.py +4 -3
  15. vellum/client/errors/internal_server_error.py +4 -3
  16. vellum/client/errors/not_found_error.py +4 -3
  17. vellum/client/raw_client.py +270 -201
  18. vellum/client/resources/__init__.py +2 -0
  19. vellum/client/resources/ad_hoc/__init__.py +2 -0
  20. vellum/client/resources/ad_hoc/client.py +16 -17
  21. vellum/client/resources/ad_hoc/raw_client.py +68 -53
  22. vellum/client/resources/container_images/__init__.py +2 -0
  23. vellum/client/resources/container_images/client.py +24 -21
  24. vellum/client/resources/container_images/raw_client.py +23 -24
  25. vellum/client/resources/deployments/__init__.py +2 -0
  26. vellum/client/resources/deployments/client.py +43 -44
  27. vellum/client/resources/deployments/raw_client.py +73 -66
  28. vellum/client/resources/deployments/types/__init__.py +2 -0
  29. vellum/client/resources/document_indexes/__init__.py +2 -0
  30. vellum/client/resources/document_indexes/client.py +38 -39
  31. vellum/client/resources/document_indexes/raw_client.py +42 -43
  32. vellum/client/resources/document_indexes/types/__init__.py +2 -0
  33. vellum/client/resources/documents/__init__.py +2 -0
  34. vellum/client/resources/documents/client.py +25 -26
  35. vellum/client/resources/documents/raw_client.py +51 -44
  36. vellum/client/resources/folder_entities/__init__.py +2 -0
  37. vellum/client/resources/folder_entities/client.py +12 -13
  38. vellum/client/resources/folder_entities/raw_client.py +15 -16
  39. vellum/client/resources/folder_entities/types/__init__.py +2 -0
  40. vellum/client/resources/metric_definitions/__init__.py +2 -0
  41. vellum/client/resources/metric_definitions/client.py +12 -13
  42. vellum/client/resources/metric_definitions/raw_client.py +17 -18
  43. vellum/client/resources/ml_models/__init__.py +2 -0
  44. vellum/client/resources/ml_models/client.py +7 -8
  45. vellum/client/resources/ml_models/raw_client.py +11 -12
  46. vellum/client/resources/organizations/__init__.py +2 -0
  47. vellum/client/resources/organizations/client.py +7 -8
  48. vellum/client/resources/organizations/raw_client.py +10 -11
  49. vellum/client/resources/prompts/__init__.py +2 -0
  50. vellum/client/resources/prompts/client.py +13 -12
  51. vellum/client/resources/prompts/raw_client.py +40 -33
  52. vellum/client/resources/sandboxes/__init__.py +2 -0
  53. vellum/client/resources/sandboxes/client.py +15 -16
  54. vellum/client/resources/sandboxes/raw_client.py +20 -21
  55. vellum/client/resources/test_suite_runs/__init__.py +2 -0
  56. vellum/client/resources/test_suite_runs/client.py +17 -18
  57. vellum/client/resources/test_suite_runs/raw_client.py +20 -21
  58. vellum/client/resources/test_suites/__init__.py +2 -0
  59. vellum/client/resources/test_suites/client.py +20 -19
  60. vellum/client/resources/test_suites/raw_client.py +46 -31
  61. vellum/client/resources/workflow_deployments/__init__.py +2 -0
  62. vellum/client/resources/workflow_deployments/client.py +45 -46
  63. vellum/client/resources/workflow_deployments/raw_client.py +48 -49
  64. vellum/client/resources/workflow_deployments/types/__init__.py +2 -0
  65. vellum/client/resources/workflow_executions/__init__.py +2 -0
  66. vellum/client/resources/workflow_executions/client.py +7 -8
  67. vellum/client/resources/workflow_executions/raw_client.py +11 -12
  68. vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
  69. vellum/client/resources/workflow_sandboxes/client.py +12 -13
  70. vellum/client/resources/workflow_sandboxes/raw_client.py +16 -17
  71. vellum/client/resources/workflow_sandboxes/types/__init__.py +2 -0
  72. vellum/client/resources/workflows/__init__.py +2 -0
  73. vellum/client/resources/workflows/client.py +11 -12
  74. vellum/client/resources/workflows/raw_client.py +34 -27
  75. vellum/client/resources/workspace_secrets/__init__.py +2 -0
  76. vellum/client/resources/workspace_secrets/client.py +11 -12
  77. vellum/client/resources/workspace_secrets/raw_client.py +15 -16
  78. vellum/client/resources/workspaces/__init__.py +2 -0
  79. vellum/client/resources/workspaces/client.py +7 -8
  80. vellum/client/resources/workspaces/raw_client.py +10 -11
  81. vellum/client/types/__init__.py +2 -0
  82. vellum/client/types/ad_hoc_execute_prompt_event.py +3 -2
  83. vellum/client/types/ad_hoc_expand_meta.py +2 -2
  84. vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +3 -3
  85. vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +2 -2
  86. vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +3 -3
  87. vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +2 -2
  88. vellum/client/types/api_node_result.py +3 -3
  89. vellum/client/types/api_node_result_data.py +4 -4
  90. vellum/client/types/api_request_parent_context.py +11 -11
  91. vellum/client/types/array_chat_message_content.py +3 -3
  92. vellum/client/types/array_chat_message_content_item.py +5 -4
  93. vellum/client/types/array_chat_message_content_item_request.py +5 -4
  94. vellum/client/types/array_chat_message_content_request.py +3 -3
  95. vellum/client/types/array_input.py +12 -6
  96. vellum/client/types/array_vellum_value.py +4 -4
  97. vellum/client/types/array_vellum_value_request.py +4 -4
  98. vellum/client/types/audio_chat_message_content.py +3 -3
  99. vellum/client/types/audio_chat_message_content_request.py +3 -3
  100. vellum/client/types/audio_prompt_block.py +4 -4
  101. vellum/client/types/audio_vellum_value.py +3 -3
  102. vellum/client/types/audio_vellum_value_request.py +3 -3
  103. vellum/client/types/base_output.py +2 -2
  104. vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -2
  105. vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -2
  106. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -2
  107. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -2
  108. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -2
  109. vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -2
  110. vellum/client/types/chat_history_input.py +3 -3
  111. vellum/client/types/chat_history_input_request.py +3 -3
  112. vellum/client/types/chat_history_vellum_value.py +3 -3
  113. vellum/client/types/chat_history_vellum_value_request.py +3 -3
  114. vellum/client/types/chat_message.py +4 -4
  115. vellum/client/types/chat_message_content.py +5 -4
  116. vellum/client/types/chat_message_content_request.py +5 -4
  117. vellum/client/types/chat_message_prompt_block.py +7 -7
  118. vellum/client/types/chat_message_request.py +4 -4
  119. vellum/client/types/code_execution_node_array_result.py +11 -5
  120. vellum/client/types/code_execution_node_chat_history_result.py +3 -3
  121. vellum/client/types/code_execution_node_error_result.py +3 -3
  122. vellum/client/types/code_execution_node_function_call_result.py +3 -3
  123. vellum/client/types/code_execution_node_json_result.py +2 -2
  124. vellum/client/types/code_execution_node_number_result.py +2 -2
  125. vellum/client/types/code_execution_node_result.py +10 -4
  126. vellum/client/types/code_execution_node_result_data.py +10 -4
  127. vellum/client/types/code_execution_node_result_output.py +6 -5
  128. vellum/client/types/code_execution_node_search_results_result.py +3 -3
  129. vellum/client/types/code_execution_node_string_result.py +2 -2
  130. vellum/client/types/code_execution_package.py +2 -2
  131. vellum/client/types/code_executor_input.py +7 -6
  132. vellum/client/types/code_executor_response.py +11 -5
  133. vellum/client/types/code_executor_secret_input.py +3 -3
  134. vellum/client/types/code_resource_definition.py +3 -3
  135. vellum/client/types/compile_prompt_deployment_expand_meta_request.py +2 -2
  136. vellum/client/types/compile_prompt_meta.py +2 -2
  137. vellum/client/types/conditional_node_result.py +3 -3
  138. vellum/client/types/conditional_node_result_data.py +2 -2
  139. vellum/client/types/container_image_build_config.py +3 -3
  140. vellum/client/types/container_image_container_image_tag.py +2 -2
  141. vellum/client/types/container_image_read.py +5 -5
  142. vellum/client/types/create_test_suite_test_case_request.py +9 -3
  143. vellum/client/types/deployment_history_item.py +10 -4
  144. vellum/client/types/deployment_provider_payload_response.py +4 -4
  145. vellum/client/types/deployment_read.py +10 -4
  146. vellum/client/types/deployment_release_tag_deployment_history_item.py +2 -2
  147. vellum/client/types/deployment_release_tag_read.py +4 -4
  148. vellum/client/types/docker_service_token.py +2 -2
  149. vellum/client/types/document_chat_message_content.py +3 -3
  150. vellum/client/types/document_chat_message_content_request.py +3 -3
  151. vellum/client/types/document_document_to_document_index.py +3 -3
  152. vellum/client/types/document_index_chunking.py +1 -0
  153. vellum/client/types/document_index_chunking_request.py +1 -0
  154. vellum/client/types/document_index_indexing_config.py +4 -4
  155. vellum/client/types/document_index_indexing_config_request.py +4 -4
  156. vellum/client/types/document_index_read.py +4 -4
  157. vellum/client/types/document_prompt_block.py +4 -4
  158. vellum/client/types/document_read.py +4 -4
  159. vellum/client/types/document_vellum_value.py +3 -3
  160. vellum/client/types/document_vellum_value_request.py +3 -3
  161. vellum/client/types/enriched_normalized_completion.py +3 -3
  162. vellum/client/types/ephemeral_prompt_cache_config.py +3 -3
  163. vellum/client/types/error_input.py +3 -3
  164. vellum/client/types/error_vellum_value.py +3 -3
  165. vellum/client/types/error_vellum_value_request.py +3 -3
  166. vellum/client/types/execute_api_request_bearer_token.py +1 -0
  167. vellum/client/types/execute_api_request_headers_value.py +1 -0
  168. vellum/client/types/execute_api_response.py +5 -5
  169. vellum/client/types/execute_prompt_event.py +3 -2
  170. vellum/client/types/execute_prompt_response.py +1 -0
  171. vellum/client/types/execute_workflow_response.py +10 -4
  172. vellum/client/types/execute_workflow_workflow_result_event.py +1 -0
  173. vellum/client/types/execution_array_vellum_value.py +12 -6
  174. vellum/client/types/execution_chat_history_vellum_value.py +3 -3
  175. vellum/client/types/execution_error_vellum_value.py +3 -3
  176. vellum/client/types/execution_function_call_vellum_value.py +3 -3
  177. vellum/client/types/execution_json_vellum_value.py +3 -3
  178. vellum/client/types/execution_number_vellum_value.py +3 -3
  179. vellum/client/types/execution_search_results_vellum_value.py +3 -3
  180. vellum/client/types/execution_string_vellum_value.py +3 -3
  181. vellum/client/types/execution_thinking_vellum_value.py +3 -3
  182. vellum/client/types/execution_vellum_value.py +6 -5
  183. vellum/client/types/external_input_descriptor.py +3 -3
  184. vellum/client/types/external_parent_context.py +11 -11
  185. vellum/client/types/external_test_case_execution.py +10 -4
  186. vellum/client/types/external_test_case_execution_request.py +10 -4
  187. vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15.py +2 -2
  188. vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15_request.py +2 -2
  189. vellum/client/types/folder_entity.py +4 -3
  190. vellum/client/types/folder_entity_dataset.py +3 -3
  191. vellum/client/types/folder_entity_dataset_data.py +3 -3
  192. vellum/client/types/folder_entity_document_index.py +3 -3
  193. vellum/client/types/folder_entity_document_index_data.py +4 -4
  194. vellum/client/types/folder_entity_folder.py +3 -3
  195. vellum/client/types/folder_entity_folder_data.py +2 -2
  196. vellum/client/types/folder_entity_prompt_sandbox.py +3 -3
  197. vellum/client/types/folder_entity_prompt_sandbox_data.py +3 -3
  198. vellum/client/types/folder_entity_test_suite.py +3 -3
  199. vellum/client/types/folder_entity_test_suite_data.py +3 -3
  200. vellum/client/types/folder_entity_workflow_sandbox.py +3 -3
  201. vellum/client/types/folder_entity_workflow_sandbox_data.py +3 -3
  202. vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +4 -4
  203. vellum/client/types/fulfilled_execute_prompt_event.py +4 -4
  204. vellum/client/types/fulfilled_execute_prompt_response.py +3 -3
  205. vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +11 -5
  206. vellum/client/types/fulfilled_prompt_execution_meta.py +3 -3
  207. vellum/client/types/fulfilled_workflow_node_result_event.py +12 -6
  208. vellum/client/types/function_call.py +2 -2
  209. vellum/client/types/function_call_chat_message_content.py +3 -3
  210. vellum/client/types/function_call_chat_message_content_request.py +3 -3
  211. vellum/client/types/function_call_chat_message_content_value.py +2 -2
  212. vellum/client/types/function_call_chat_message_content_value_request.py +2 -2
  213. vellum/client/types/function_call_input.py +3 -3
  214. vellum/client/types/function_call_prompt_block.py +4 -4
  215. vellum/client/types/function_call_request.py +2 -2
  216. vellum/client/types/function_call_vellum_value.py +3 -3
  217. vellum/client/types/function_call_vellum_value_request.py +3 -3
  218. vellum/client/types/function_definition.py +4 -4
  219. vellum/client/types/generate_options_request.py +3 -3
  220. vellum/client/types/generate_request.py +2 -2
  221. vellum/client/types/generate_response.py +3 -3
  222. vellum/client/types/generate_result.py +3 -3
  223. vellum/client/types/generate_result_data.py +3 -3
  224. vellum/client/types/generate_result_error.py +3 -3
  225. vellum/client/types/generate_stream_response.py +3 -3
  226. vellum/client/types/generate_stream_result.py +4 -4
  227. vellum/client/types/generate_stream_result_data.py +3 -3
  228. vellum/client/types/google_vertex_ai_vectorizer_config.py +2 -2
  229. vellum/client/types/google_vertex_ai_vectorizer_config_request.py +2 -2
  230. vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001.py +3 -3
  231. vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001_request.py +3 -3
  232. vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +3 -3
  233. vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +3 -3
  234. vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +3 -3
  235. vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +3 -3
  236. vellum/client/types/hkunlp_instructor_xl_vectorizer.py +3 -3
  237. vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +3 -3
  238. vellum/client/types/image_chat_message_content.py +3 -3
  239. vellum/client/types/image_chat_message_content_request.py +3 -3
  240. vellum/client/types/image_prompt_block.py +4 -4
  241. vellum/client/types/image_vellum_value.py +3 -3
  242. vellum/client/types/image_vellum_value_request.py +3 -3
  243. vellum/client/types/indexing_config_vectorizer.py +7 -6
  244. vellum/client/types/indexing_config_vectorizer_request.py +7 -6
  245. vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +3 -3
  246. vellum/client/types/initiated_execute_prompt_event.py +3 -3
  247. vellum/client/types/initiated_prompt_execution_meta.py +2 -2
  248. vellum/client/types/initiated_workflow_node_result_event.py +12 -6
  249. vellum/client/types/instructor_vectorizer_config.py +2 -2
  250. vellum/client/types/instructor_vectorizer_config_request.py +2 -2
  251. vellum/client/types/invoked_port.py +2 -2
  252. vellum/client/types/jinja_prompt_block.py +4 -4
  253. vellum/client/types/json_input.py +3 -3
  254. vellum/client/types/json_input_request.py +3 -3
  255. vellum/client/types/json_vellum_value.py +2 -2
  256. vellum/client/types/json_vellum_value_request.py +2 -2
  257. vellum/client/types/map_node_result.py +3 -3
  258. vellum/client/types/map_node_result_data.py +3 -3
  259. vellum/client/types/merge_node_result.py +3 -3
  260. vellum/client/types/merge_node_result_data.py +2 -2
  261. vellum/client/types/metadata_filter_config_request.py +12 -6
  262. vellum/client/types/metadata_filter_rule_request.py +5 -5
  263. vellum/client/types/metadata_filters_request.py +1 -0
  264. vellum/client/types/metric_definition_execution.py +10 -4
  265. vellum/client/types/metric_definition_history_item.py +10 -4
  266. vellum/client/types/metric_definition_input.py +3 -2
  267. vellum/client/types/metric_node_result.py +2 -2
  268. vellum/client/types/ml_model_read.py +6 -3
  269. vellum/client/types/ml_model_usage.py +2 -2
  270. vellum/client/types/ml_model_usage_wrapper.py +3 -3
  271. vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +3 -3
  272. vellum/client/types/named_scenario_input_json_variable_value_request.py +2 -2
  273. vellum/client/types/named_scenario_input_request.py +3 -2
  274. vellum/client/types/named_scenario_input_string_variable_value_request.py +2 -2
  275. vellum/client/types/named_test_case_array_variable_value.py +11 -5
  276. vellum/client/types/named_test_case_array_variable_value_request.py +11 -5
  277. vellum/client/types/named_test_case_chat_history_variable_value.py +3 -3
  278. vellum/client/types/named_test_case_chat_history_variable_value_request.py +3 -3
  279. vellum/client/types/named_test_case_error_variable_value.py +3 -3
  280. vellum/client/types/named_test_case_error_variable_value_request.py +3 -3
  281. vellum/client/types/named_test_case_function_call_variable_value.py +3 -3
  282. vellum/client/types/named_test_case_function_call_variable_value_request.py +3 -3
  283. vellum/client/types/named_test_case_json_variable_value.py +2 -2
  284. vellum/client/types/named_test_case_json_variable_value_request.py +2 -2
  285. vellum/client/types/named_test_case_number_variable_value.py +2 -2
  286. vellum/client/types/named_test_case_number_variable_value_request.py +2 -2
  287. vellum/client/types/named_test_case_search_results_variable_value.py +3 -3
  288. vellum/client/types/named_test_case_search_results_variable_value_request.py +3 -3
  289. vellum/client/types/named_test_case_string_variable_value.py +2 -2
  290. vellum/client/types/named_test_case_string_variable_value_request.py +2 -2
  291. vellum/client/types/named_test_case_variable_value.py +6 -5
  292. vellum/client/types/named_test_case_variable_value_request.py +6 -5
  293. vellum/client/types/node_execution_fulfilled_body.py +4 -4
  294. vellum/client/types/node_execution_fulfilled_event.py +22 -16
  295. vellum/client/types/node_execution_initiated_body.py +3 -3
  296. vellum/client/types/node_execution_initiated_event.py +22 -16
  297. vellum/client/types/node_execution_paused_body.py +3 -3
  298. vellum/client/types/node_execution_paused_event.py +22 -16
  299. vellum/client/types/node_execution_rejected_body.py +4 -4
  300. vellum/client/types/node_execution_rejected_event.py +22 -16
  301. vellum/client/types/node_execution_resumed_body.py +3 -3
  302. vellum/client/types/node_execution_resumed_event.py +22 -16
  303. vellum/client/types/node_execution_span.py +19 -13
  304. vellum/client/types/node_execution_span_attributes.py +2 -2
  305. vellum/client/types/node_execution_streaming_body.py +4 -4
  306. vellum/client/types/node_execution_streaming_event.py +22 -16
  307. vellum/client/types/node_input_compiled_array_value.py +11 -5
  308. vellum/client/types/node_input_compiled_chat_history_value.py +3 -3
  309. vellum/client/types/node_input_compiled_error_value.py +3 -3
  310. vellum/client/types/node_input_compiled_function_call_value.py +3 -3
  311. vellum/client/types/node_input_compiled_json_value.py +2 -2
  312. vellum/client/types/node_input_compiled_number_value.py +2 -2
  313. vellum/client/types/node_input_compiled_search_results_value.py +3 -3
  314. vellum/client/types/node_input_compiled_secret_value.py +3 -3
  315. vellum/client/types/node_input_compiled_string_value.py +2 -2
  316. vellum/client/types/node_input_variable_compiled_value.py +6 -5
  317. vellum/client/types/node_output_compiled_array_value.py +12 -6
  318. vellum/client/types/node_output_compiled_chat_history_value.py +3 -3
  319. vellum/client/types/node_output_compiled_error_value.py +3 -3
  320. vellum/client/types/node_output_compiled_function_call_value.py +3 -3
  321. vellum/client/types/node_output_compiled_json_value.py +3 -3
  322. vellum/client/types/node_output_compiled_number_value.py +3 -3
  323. vellum/client/types/node_output_compiled_search_results_value.py +3 -3
  324. vellum/client/types/node_output_compiled_string_value.py +3 -3
  325. vellum/client/types/node_output_compiled_thinking_value.py +3 -3
  326. vellum/client/types/node_output_compiled_value.py +6 -5
  327. vellum/client/types/node_parent_context.py +12 -12
  328. vellum/client/types/normalized_log_probs.py +3 -3
  329. vellum/client/types/normalized_token_log_probs.py +2 -2
  330. vellum/client/types/number_input.py +3 -3
  331. vellum/client/types/number_vellum_value.py +2 -2
  332. vellum/client/types/number_vellum_value_request.py +2 -2
  333. vellum/client/types/open_ai_vectorizer_config.py +3 -3
  334. vellum/client/types/open_ai_vectorizer_config_request.py +3 -3
  335. vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +3 -3
  336. vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +3 -3
  337. vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +3 -3
  338. vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +3 -3
  339. vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +3 -3
  340. vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +3 -3
  341. vellum/client/types/organization_read.py +4 -4
  342. vellum/client/types/paginated_container_image_read_list.py +3 -3
  343. vellum/client/types/paginated_deployment_release_tag_read_list.py +3 -3
  344. vellum/client/types/paginated_document_index_read_list.py +3 -3
  345. vellum/client/types/paginated_folder_entity_list.py +3 -3
  346. vellum/client/types/paginated_slim_deployment_read_list.py +10 -4
  347. vellum/client/types/paginated_slim_document_list.py +3 -3
  348. vellum/client/types/paginated_slim_workflow_deployment_list.py +10 -4
  349. vellum/client/types/paginated_test_suite_run_execution_list.py +10 -4
  350. vellum/client/types/paginated_test_suite_test_case_list.py +10 -4
  351. vellum/client/types/paginated_workflow_release_tag_read_list.py +3 -3
  352. vellum/client/types/paginated_workflow_sandbox_example_list.py +3 -3
  353. vellum/client/types/parent_context.py +5 -5
  354. vellum/client/types/pdf_search_result_meta_source.py +2 -2
  355. vellum/client/types/pdf_search_result_meta_source_request.py +2 -2
  356. vellum/client/types/plain_text_prompt_block.py +4 -4
  357. vellum/client/types/price.py +3 -3
  358. vellum/client/types/prompt_block.py +7 -6
  359. vellum/client/types/prompt_deployment_expand_meta_request.py +2 -2
  360. vellum/client/types/prompt_deployment_input_request.py +3 -2
  361. vellum/client/types/prompt_deployment_parent_context.py +11 -11
  362. vellum/client/types/prompt_deployment_release.py +6 -6
  363. vellum/client/types/prompt_deployment_release_prompt_deployment.py +2 -2
  364. vellum/client/types/prompt_deployment_release_prompt_version.py +4 -4
  365. vellum/client/types/prompt_exec_config.py +15 -9
  366. vellum/client/types/prompt_execution_meta.py +3 -3
  367. vellum/client/types/prompt_node_execution_meta.py +3 -3
  368. vellum/client/types/prompt_node_result.py +3 -3
  369. vellum/client/types/prompt_node_result_data.py +3 -3
  370. vellum/client/types/prompt_output.py +3 -2
  371. vellum/client/types/prompt_parameters.py +2 -2
  372. vellum/client/types/prompt_push_response.py +2 -2
  373. vellum/client/types/prompt_request_chat_history_input.py +3 -3
  374. vellum/client/types/prompt_request_input.py +3 -2
  375. vellum/client/types/prompt_request_json_input.py +3 -3
  376. vellum/client/types/prompt_request_string_input.py +3 -3
  377. vellum/client/types/prompt_settings.py +2 -2
  378. vellum/client/types/prompt_version_build_config_sandbox.py +2 -2
  379. vellum/client/types/raw_prompt_execution_overrides_request.py +2 -2
  380. vellum/client/types/reducto_chunker_config.py +2 -2
  381. vellum/client/types/reducto_chunker_config_request.py +2 -2
  382. vellum/client/types/reducto_chunking.py +3 -3
  383. vellum/client/types/reducto_chunking_request.py +3 -3
  384. vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +4 -4
  385. vellum/client/types/rejected_execute_prompt_event.py +4 -4
  386. vellum/client/types/rejected_execute_prompt_response.py +3 -3
  387. vellum/client/types/rejected_execute_workflow_workflow_result_event.py +4 -4
  388. vellum/client/types/rejected_prompt_execution_meta.py +3 -3
  389. vellum/client/types/rejected_workflow_node_result_event.py +12 -6
  390. vellum/client/types/release_created_by.py +2 -2
  391. vellum/client/types/release_environment.py +2 -2
  392. vellum/client/types/release_release_tag.py +3 -3
  393. vellum/client/types/release_review_reviewer.py +2 -2
  394. vellum/client/types/release_tag_release.py +2 -2
  395. vellum/client/types/replace_test_suite_test_case_request.py +9 -3
  396. vellum/client/types/rich_text_child_block.py +2 -1
  397. vellum/client/types/rich_text_prompt_block.py +4 -4
  398. vellum/client/types/sandbox_scenario.py +3 -3
  399. vellum/client/types/scenario_input.py +3 -2
  400. vellum/client/types/scenario_input_chat_history_variable_value.py +3 -3
  401. vellum/client/types/scenario_input_json_variable_value.py +2 -2
  402. vellum/client/types/scenario_input_string_variable_value.py +2 -2
  403. vellum/client/types/search_filters_request.py +11 -5
  404. vellum/client/types/search_node_result.py +3 -3
  405. vellum/client/types/search_node_result_data.py +3 -3
  406. vellum/client/types/search_request_options_request.py +13 -7
  407. vellum/client/types/search_response.py +3 -3
  408. vellum/client/types/search_result.py +3 -3
  409. vellum/client/types/search_result_document.py +2 -2
  410. vellum/client/types/search_result_document_request.py +2 -2
  411. vellum/client/types/search_result_merging_request.py +2 -2
  412. vellum/client/types/search_result_meta.py +3 -3
  413. vellum/client/types/search_result_meta_request.py +3 -3
  414. vellum/client/types/search_result_request.py +3 -3
  415. vellum/client/types/search_results_input.py +3 -3
  416. vellum/client/types/search_results_vellum_value.py +3 -3
  417. vellum/client/types/search_results_vellum_value_request.py +3 -3
  418. vellum/client/types/search_weights_request.py +2 -2
  419. vellum/client/types/sentence_chunker_config.py +2 -2
  420. vellum/client/types/sentence_chunker_config_request.py +2 -2
  421. vellum/client/types/sentence_chunking.py +3 -3
  422. vellum/client/types/sentence_chunking_request.py +3 -3
  423. vellum/client/types/slim_deployment_read.py +10 -4
  424. vellum/client/types/slim_document.py +5 -5
  425. vellum/client/types/slim_document_document_to_document_index.py +3 -3
  426. vellum/client/types/slim_release_review.py +4 -4
  427. vellum/client/types/slim_workflow_deployment.py +11 -5
  428. vellum/client/types/slim_workflow_execution_read.py +21 -15
  429. vellum/client/types/span_link.py +12 -12
  430. vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +4 -4
  431. vellum/client/types/streaming_execute_prompt_event.py +3 -3
  432. vellum/client/types/streaming_prompt_execution_meta.py +2 -2
  433. vellum/client/types/streaming_workflow_node_result_event.py +12 -6
  434. vellum/client/types/string_chat_message_content.py +2 -2
  435. vellum/client/types/string_chat_message_content_request.py +2 -2
  436. vellum/client/types/string_input.py +3 -3
  437. vellum/client/types/string_input_request.py +3 -3
  438. vellum/client/types/string_vellum_value.py +2 -2
  439. vellum/client/types/string_vellum_value_request.py +2 -2
  440. vellum/client/types/submit_completion_actual_request.py +3 -3
  441. vellum/client/types/submit_workflow_execution_actual_request.py +3 -2
  442. vellum/client/types/subworkflow_node_result.py +3 -3
  443. vellum/client/types/subworkflow_node_result_data.py +2 -2
  444. vellum/client/types/templating_node_array_result.py +11 -5
  445. vellum/client/types/templating_node_chat_history_result.py +3 -3
  446. vellum/client/types/templating_node_error_result.py +3 -3
  447. vellum/client/types/templating_node_function_call_result.py +3 -3
  448. vellum/client/types/templating_node_json_result.py +2 -2
  449. vellum/client/types/templating_node_number_result.py +2 -2
  450. vellum/client/types/templating_node_result.py +10 -4
  451. vellum/client/types/templating_node_result_data.py +10 -4
  452. vellum/client/types/templating_node_result_output.py +6 -5
  453. vellum/client/types/templating_node_search_results_result.py +3 -3
  454. vellum/client/types/templating_node_string_result.py +2 -2
  455. vellum/client/types/terminal_node_array_result.py +11 -5
  456. vellum/client/types/terminal_node_chat_history_result.py +2 -2
  457. vellum/client/types/terminal_node_error_result.py +2 -2
  458. vellum/client/types/terminal_node_function_call_result.py +2 -2
  459. vellum/client/types/terminal_node_json_result.py +2 -2
  460. vellum/client/types/terminal_node_number_result.py +2 -2
  461. vellum/client/types/terminal_node_result.py +10 -4
  462. vellum/client/types/terminal_node_result_data.py +10 -4
  463. vellum/client/types/terminal_node_result_output.py +6 -5
  464. vellum/client/types/terminal_node_search_results_result.py +2 -2
  465. vellum/client/types/terminal_node_string_result.py +2 -2
  466. vellum/client/types/test_case_array_variable_value.py +11 -5
  467. vellum/client/types/test_case_chat_history_variable_value.py +3 -3
  468. vellum/client/types/test_case_error_variable_value.py +3 -3
  469. vellum/client/types/test_case_function_call_variable_value.py +3 -3
  470. vellum/client/types/test_case_json_variable_value.py +2 -2
  471. vellum/client/types/test_case_number_variable_value.py +2 -2
  472. vellum/client/types/test_case_search_results_variable_value.py +3 -3
  473. vellum/client/types/test_case_string_variable_value.py +2 -2
  474. vellum/client/types/test_case_variable_value.py +6 -5
  475. vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +3 -3
  476. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +3 -3
  477. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +3 -3
  478. vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +3 -3
  479. vellum/client/types/test_suite_run_exec_config.py +2 -1
  480. vellum/client/types/test_suite_run_exec_config_request.py +2 -1
  481. vellum/client/types/test_suite_run_execution.py +11 -5
  482. vellum/client/types/test_suite_run_execution_array_output.py +11 -5
  483. vellum/client/types/test_suite_run_execution_chat_history_output.py +3 -3
  484. vellum/client/types/test_suite_run_execution_error_output.py +3 -3
  485. vellum/client/types/test_suite_run_execution_function_call_output.py +3 -3
  486. vellum/client/types/test_suite_run_execution_json_output.py +2 -2
  487. vellum/client/types/test_suite_run_execution_metric_definition.py +2 -2
  488. vellum/client/types/test_suite_run_execution_metric_result.py +11 -5
  489. vellum/client/types/test_suite_run_execution_number_output.py +2 -2
  490. vellum/client/types/test_suite_run_execution_output.py +6 -5
  491. vellum/client/types/test_suite_run_execution_search_results_output.py +3 -3
  492. vellum/client/types/test_suite_run_execution_string_output.py +2 -2
  493. vellum/client/types/test_suite_run_external_exec_config.py +10 -4
  494. vellum/client/types/test_suite_run_external_exec_config_data.py +10 -4
  495. vellum/client/types/test_suite_run_external_exec_config_data_request.py +10 -4
  496. vellum/client/types/test_suite_run_external_exec_config_request.py +10 -4
  497. vellum/client/types/test_suite_run_metric_array_output.py +11 -5
  498. vellum/client/types/test_suite_run_metric_error_output.py +3 -3
  499. vellum/client/types/test_suite_run_metric_json_output.py +2 -2
  500. vellum/client/types/test_suite_run_metric_number_output.py +2 -2
  501. vellum/client/types/test_suite_run_metric_output.py +5 -4
  502. vellum/client/types/test_suite_run_metric_string_output.py +2 -2
  503. vellum/client/types/test_suite_run_progress.py +2 -2
  504. vellum/client/types/test_suite_run_prompt_sandbox_exec_config_data_request.py +3 -3
  505. vellum/client/types/test_suite_run_prompt_sandbox_exec_config_request.py +3 -3
  506. vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config.py +3 -3
  507. vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data.py +3 -3
  508. vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data_request.py +3 -3
  509. vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_request.py +3 -3
  510. vellum/client/types/test_suite_run_read.py +12 -6
  511. vellum/client/types/test_suite_run_test_suite.py +2 -2
  512. vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +3 -3
  513. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +3 -3
  514. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +3 -3
  515. vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +3 -3
  516. vellum/client/types/test_suite_run_workflow_sandbox_exec_config_data_request.py +3 -3
  517. vellum/client/types/test_suite_run_workflow_sandbox_exec_config_request.py +3 -3
  518. vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config.py +3 -3
  519. vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data.py +3 -3
  520. vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data_request.py +3 -3
  521. vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_request.py +3 -3
  522. vellum/client/types/test_suite_test_case.py +10 -4
  523. vellum/client/types/test_suite_test_case_bulk_operation_request.py +2 -1
  524. vellum/client/types/test_suite_test_case_bulk_result.py +2 -1
  525. vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +10 -4
  526. vellum/client/types/test_suite_test_case_created_bulk_result.py +3 -3
  527. vellum/client/types/test_suite_test_case_created_bulk_result_data.py +2 -2
  528. vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -2
  529. vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +3 -3
  530. vellum/client/types/test_suite_test_case_deleted_bulk_result.py +3 -3
  531. vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +2 -2
  532. vellum/client/types/test_suite_test_case_rejected_bulk_result.py +2 -2
  533. vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +10 -4
  534. vellum/client/types/test_suite_test_case_replaced_bulk_result.py +3 -3
  535. vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +2 -2
  536. vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +10 -4
  537. vellum/client/types/thinking_vellum_value.py +3 -3
  538. vellum/client/types/thinking_vellum_value_request.py +3 -3
  539. vellum/client/types/token_overlapping_window_chunker_config.py +2 -2
  540. vellum/client/types/token_overlapping_window_chunker_config_request.py +2 -2
  541. vellum/client/types/token_overlapping_window_chunking.py +3 -3
  542. vellum/client/types/token_overlapping_window_chunking_request.py +3 -3
  543. vellum/client/types/upload_document_response.py +3 -3
  544. vellum/client/types/upsert_test_suite_test_case_request.py +9 -3
  545. vellum/client/types/variable_prompt_block.py +4 -4
  546. vellum/client/types/vellum_audio.py +3 -3
  547. vellum/client/types/vellum_audio_request.py +3 -3
  548. vellum/client/types/vellum_code_resource_definition.py +2 -2
  549. vellum/client/types/vellum_document.py +2 -2
  550. vellum/client/types/vellum_document_request.py +2 -2
  551. vellum/client/types/vellum_error.py +3 -3
  552. vellum/client/types/vellum_error_request.py +3 -3
  553. vellum/client/types/vellum_image.py +2 -2
  554. vellum/client/types/vellum_image_request.py +2 -2
  555. vellum/client/types/vellum_node_execution_event.py +4 -3
  556. vellum/client/types/vellum_sdk_error.py +3 -3
  557. vellum/client/types/vellum_secret.py +2 -2
  558. vellum/client/types/vellum_span.py +2 -1
  559. vellum/client/types/vellum_value.py +9 -8
  560. vellum/client/types/vellum_value_logical_condition_group_request.py +6 -6
  561. vellum/client/types/vellum_value_logical_condition_request.py +13 -7
  562. vellum/client/types/vellum_value_logical_expression_request.py +2 -1
  563. vellum/client/types/vellum_value_request.py +9 -8
  564. vellum/client/types/vellum_variable.py +13 -7
  565. vellum/client/types/vellum_variable_extensions.py +2 -2
  566. vellum/client/types/vellum_video.py +3 -3
  567. vellum/client/types/vellum_video_request.py +3 -3
  568. vellum/client/types/vellum_workflow_execution_event.py +4 -3
  569. vellum/client/types/video_chat_message_content.py +3 -3
  570. vellum/client/types/video_chat_message_content_request.py +3 -3
  571. vellum/client/types/video_prompt_block.py +4 -4
  572. vellum/client/types/video_vellum_value.py +3 -3
  573. vellum/client/types/video_vellum_value_request.py +3 -3
  574. vellum/client/types/workflow_deployment_event_executions_response.py +18 -12
  575. vellum/client/types/workflow_deployment_history_item.py +10 -4
  576. vellum/client/types/workflow_deployment_parent_context.py +11 -11
  577. vellum/client/types/workflow_deployment_read.py +11 -5
  578. vellum/client/types/workflow_deployment_release.py +13 -7
  579. vellum/client/types/workflow_deployment_release_workflow_deployment.py +2 -2
  580. vellum/client/types/workflow_deployment_release_workflow_version.py +10 -4
  581. vellum/client/types/workflow_error.py +1 -0
  582. vellum/client/types/workflow_event_error.py +3 -3
  583. vellum/client/types/workflow_event_execution_read.py +22 -16
  584. vellum/client/types/workflow_execution_actual.py +10 -4
  585. vellum/client/types/workflow_execution_actual_chat_history_request.py +2 -2
  586. vellum/client/types/workflow_execution_actual_json_request.py +2 -2
  587. vellum/client/types/workflow_execution_actual_string_request.py +2 -2
  588. vellum/client/types/workflow_execution_detail.py +22 -16
  589. vellum/client/types/workflow_execution_fulfilled_body.py +3 -3
  590. vellum/client/types/workflow_execution_fulfilled_event.py +22 -16
  591. vellum/client/types/workflow_execution_initiated_body.py +3 -3
  592. vellum/client/types/workflow_execution_initiated_event.py +22 -16
  593. vellum/client/types/workflow_execution_node_result_event.py +10 -4
  594. vellum/client/types/workflow_execution_paused_body.py +4 -4
  595. vellum/client/types/workflow_execution_paused_event.py +22 -16
  596. vellum/client/types/workflow_execution_rejected_body.py +4 -4
  597. vellum/client/types/workflow_execution_rejected_event.py +22 -16
  598. vellum/client/types/workflow_execution_resumed_body.py +3 -3
  599. vellum/client/types/workflow_execution_resumed_event.py +22 -16
  600. vellum/client/types/workflow_execution_snapshotted_body.py +3 -3
  601. vellum/client/types/workflow_execution_snapshotted_event.py +22 -16
  602. vellum/client/types/workflow_execution_span.py +18 -12
  603. vellum/client/types/workflow_execution_span_attributes.py +2 -2
  604. vellum/client/types/workflow_execution_streaming_body.py +4 -4
  605. vellum/client/types/workflow_execution_streaming_event.py +22 -16
  606. vellum/client/types/workflow_execution_usage_calculation_error.py +3 -3
  607. vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -3
  608. vellum/client/types/workflow_execution_usage_result.py +3 -3
  609. vellum/client/types/workflow_execution_view_online_eval_metric_result.py +10 -4
  610. vellum/client/types/workflow_execution_workflow_result_event.py +10 -4
  611. vellum/client/types/workflow_expand_meta_request.py +2 -2
  612. vellum/client/types/workflow_initialization_error.py +2 -2
  613. vellum/client/types/workflow_node_result_data.py +8 -7
  614. vellum/client/types/workflow_node_result_event.py +3 -2
  615. vellum/client/types/workflow_output.py +6 -5
  616. vellum/client/types/workflow_output_array.py +12 -6
  617. vellum/client/types/workflow_output_chat_history.py +3 -3
  618. vellum/client/types/workflow_output_error.py +3 -3
  619. vellum/client/types/workflow_output_function_call.py +3 -3
  620. vellum/client/types/workflow_output_image.py +3 -3
  621. vellum/client/types/workflow_output_json.py +3 -3
  622. vellum/client/types/workflow_output_number.py +3 -3
  623. vellum/client/types/workflow_output_search_results.py +3 -3
  624. vellum/client/types/workflow_output_string.py +3 -3
  625. vellum/client/types/workflow_parent_context.py +12 -12
  626. vellum/client/types/workflow_push_deployment_config_request.py +2 -2
  627. vellum/client/types/workflow_push_response.py +2 -2
  628. vellum/client/types/workflow_release_tag_read.py +4 -4
  629. vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +2 -2
  630. vellum/client/types/workflow_request_chat_history_input_request.py +3 -3
  631. vellum/client/types/workflow_request_input_request.py +3 -2
  632. vellum/client/types/workflow_request_json_input_request.py +3 -3
  633. vellum/client/types/workflow_request_number_input_request.py +3 -3
  634. vellum/client/types/workflow_request_string_input_request.py +3 -3
  635. vellum/client/types/workflow_result_event.py +13 -7
  636. vellum/client/types/workflow_result_event_output_data.py +7 -6
  637. vellum/client/types/workflow_result_event_output_data_array.py +12 -6
  638. vellum/client/types/workflow_result_event_output_data_chat_history.py +3 -3
  639. vellum/client/types/workflow_result_event_output_data_error.py +3 -3
  640. vellum/client/types/workflow_result_event_output_data_function_call.py +3 -3
  641. vellum/client/types/workflow_result_event_output_data_json.py +3 -3
  642. vellum/client/types/workflow_result_event_output_data_number.py +3 -3
  643. vellum/client/types/workflow_result_event_output_data_search_results.py +3 -3
  644. vellum/client/types/workflow_result_event_output_data_string.py +3 -3
  645. vellum/client/types/workflow_sandbox_example.py +2 -2
  646. vellum/client/types/workflow_sandbox_parent_context.py +11 -11
  647. vellum/client/types/workflow_stream_event.py +2 -1
  648. vellum/client/types/workspace_read.py +3 -3
  649. vellum/client/types/workspace_secret_read.py +3 -3
  650. vellum/core/force_multipart.py +3 -0
  651. vellum/workflows/events/node.py +25 -10
  652. vellum/workflows/events/tests/test_event.py +19 -19
  653. vellum/workflows/state/encoder.py +2 -4
  654. vellum/workflows/utils/functions.py +1 -1
  655. {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/METADATA +2 -2
  656. {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/RECORD +660 -658
  657. vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +154 -0
  658. {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/LICENSE +0 -0
  659. {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/WHEEL +0 -0
  660. {vellum_ai-1.1.3.dist-info → vellum_ai-1.1.4.dist-info}/entry_points.txt +0 -0
vellum/__init__.py CHANGED
@@ -3,6 +3,8 @@ from .plugins.utils import load_runtime_plugins
3
3
 
4
4
  load_runtime_plugins()
5
5
 
6
+ # isort: skip_file
7
+
6
8
  from .client.types import (
7
9
  AdHocExecutePromptEvent,
8
10
  AdHocExpandMeta,
vellum/client/README.md CHANGED
@@ -152,6 +152,28 @@ for chunk in response.data:
152
152
 
153
153
  ## Advanced
154
154
 
155
+ ### Access Raw Response Data
156
+
157
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
158
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
159
+
160
+ ```python
161
+ from vellum import Vellum
162
+
163
+ client = Vellum(
164
+ ...,
165
+ )
166
+ response = client.with_raw_response.execute_prompt(...)
167
+ print(response.headers) # access the response headers
168
+ print(response.data) # access the underlying object
169
+ with client.ad_hoc.with_raw_response.adhoc_execute_prompt_stream(
170
+ ...
171
+ ) as response:
172
+ print(response.headers) # access the response headers
173
+ for chunk in response.data:
174
+ print(chunk) # access the underlying object(s)
175
+ ```
176
+
155
177
  ### Retries
156
178
 
157
179
  The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
vellum/client/__init__.py CHANGED
@@ -1,82 +1,62 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- import typing
4
- from .environment import VellumEnvironment
5
- from .types.api_version_enum import ApiVersionEnum
6
3
  import os
4
+ import typing
5
+
7
6
  import httpx
8
7
  from .core.api_error import ApiError
9
- from .core.client_wrapper import SyncClientWrapper
10
- from .raw_client import RawVellum
11
- from .resources.ad_hoc.client import AdHocClient
12
- from .resources.container_images.client import ContainerImagesClient
13
- from .resources.deployments.client import DeploymentsClient
14
- from .resources.document_indexes.client import DocumentIndexesClient
15
- from .resources.documents.client import DocumentsClient
16
- from .resources.folder_entities.client import FolderEntitiesClient
17
- from .resources.metric_definitions.client import MetricDefinitionsClient
18
- from .resources.ml_models.client import MlModelsClient
19
- from .resources.organizations.client import OrganizationsClient
20
- from .resources.prompts.client import PromptsClient
21
- from .resources.sandboxes.client import SandboxesClient
22
- from .resources.test_suite_runs.client import TestSuiteRunsClient
23
- from .resources.test_suites.client import TestSuitesClient
24
- from .resources.workflow_deployments.client import WorkflowDeploymentsClient
25
- from .resources.workflow_executions.client import WorkflowExecutionsClient
26
- from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
27
- from .resources.workflows.client import WorkflowsClient
28
- from .resources.workspace_secrets.client import WorkspaceSecretsClient
29
- from .resources.workspaces.client import WorkspacesClient
30
- from .types.method_enum import MethodEnum
31
- from .types.execute_api_request_body import ExecuteApiRequestBody
32
- from .types.execute_api_request_headers_value import ExecuteApiRequestHeadersValue
33
- from .types.execute_api_request_bearer_token import ExecuteApiRequestBearerToken
8
+ from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
34
9
  from .core.request_options import RequestOptions
35
- from .types.execute_api_response import ExecuteApiResponse
10
+ from .environment import VellumEnvironment
11
+ from .raw_client import AsyncRawVellum, RawVellum
12
+ from .resources.ad_hoc.client import AdHocClient, AsyncAdHocClient
13
+ from .resources.container_images.client import AsyncContainerImagesClient, ContainerImagesClient
14
+ from .resources.deployments.client import AsyncDeploymentsClient, DeploymentsClient
15
+ from .resources.document_indexes.client import AsyncDocumentIndexesClient, DocumentIndexesClient
16
+ from .resources.documents.client import AsyncDocumentsClient, DocumentsClient
17
+ from .resources.folder_entities.client import AsyncFolderEntitiesClient, FolderEntitiesClient
18
+ from .resources.metric_definitions.client import AsyncMetricDefinitionsClient, MetricDefinitionsClient
19
+ from .resources.ml_models.client import AsyncMlModelsClient, MlModelsClient
20
+ from .resources.organizations.client import AsyncOrganizationsClient, OrganizationsClient
21
+ from .resources.prompts.client import AsyncPromptsClient, PromptsClient
22
+ from .resources.sandboxes.client import AsyncSandboxesClient, SandboxesClient
23
+ from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient, TestSuiteRunsClient
24
+ from .resources.test_suites.client import AsyncTestSuitesClient, TestSuitesClient
25
+ from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient, WorkflowDeploymentsClient
26
+ from .resources.workflow_executions.client import AsyncWorkflowExecutionsClient, WorkflowExecutionsClient
27
+ from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient, WorkflowSandboxesClient
28
+ from .resources.workflows.client import AsyncWorkflowsClient, WorkflowsClient
29
+ from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient, WorkspaceSecretsClient
30
+ from .resources.workspaces.client import AsyncWorkspacesClient, WorkspacesClient
31
+ from .types.api_version_enum import ApiVersionEnum
32
+ from .types.code_execution_package import CodeExecutionPackage
36
33
  from .types.code_execution_runtime import CodeExecutionRuntime
37
34
  from .types.code_executor_input import CodeExecutorInput
38
- from .types.code_execution_package import CodeExecutionPackage
39
- from .types.vellum_variable_type import VellumVariableType
40
35
  from .types.code_executor_response import CodeExecutorResponse
41
- from .types.prompt_deployment_input_request import PromptDeploymentInputRequest
42
- from .types.prompt_deployment_expand_meta_request import PromptDeploymentExpandMetaRequest
43
- from .types.raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
44
- from .types.execute_prompt_response import ExecutePromptResponse
36
+ from .types.execute_api_request_bearer_token import ExecuteApiRequestBearerToken
37
+ from .types.execute_api_request_body import ExecuteApiRequestBody
38
+ from .types.execute_api_request_headers_value import ExecuteApiRequestHeadersValue
39
+ from .types.execute_api_response import ExecuteApiResponse
45
40
  from .types.execute_prompt_event import ExecutePromptEvent
46
- from .types.workflow_request_input_request import WorkflowRequestInputRequest
47
- from .types.workflow_expand_meta_request import WorkflowExpandMetaRequest
41
+ from .types.execute_prompt_response import ExecutePromptResponse
48
42
  from .types.execute_workflow_response import ExecuteWorkflowResponse
49
- from .types.workflow_execution_event_type import WorkflowExecutionEventType
50
- from .types.workflow_stream_event import WorkflowStreamEvent
51
- from .types.generate_request import GenerateRequest
52
43
  from .types.generate_options_request import GenerateOptionsRequest
44
+ from .types.generate_request import GenerateRequest
53
45
  from .types.generate_response import GenerateResponse
54
46
  from .types.generate_stream_response import GenerateStreamResponse
47
+ from .types.method_enum import MethodEnum
48
+ from .types.prompt_deployment_expand_meta_request import PromptDeploymentExpandMetaRequest
49
+ from .types.prompt_deployment_input_request import PromptDeploymentInputRequest
50
+ from .types.raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
55
51
  from .types.search_request_options_request import SearchRequestOptionsRequest
56
52
  from .types.search_response import SearchResponse
57
53
  from .types.submit_completion_actual_request import SubmitCompletionActualRequest
58
54
  from .types.submit_workflow_execution_actual_request import SubmitWorkflowExecutionActualRequest
59
- from .core.client_wrapper import AsyncClientWrapper
60
- from .raw_client import AsyncRawVellum
61
- from .resources.ad_hoc.client import AsyncAdHocClient
62
- from .resources.container_images.client import AsyncContainerImagesClient
63
- from .resources.deployments.client import AsyncDeploymentsClient
64
- from .resources.document_indexes.client import AsyncDocumentIndexesClient
65
- from .resources.documents.client import AsyncDocumentsClient
66
- from .resources.folder_entities.client import AsyncFolderEntitiesClient
67
- from .resources.metric_definitions.client import AsyncMetricDefinitionsClient
68
- from .resources.ml_models.client import AsyncMlModelsClient
69
- from .resources.organizations.client import AsyncOrganizationsClient
70
- from .resources.prompts.client import AsyncPromptsClient
71
- from .resources.sandboxes.client import AsyncSandboxesClient
72
- from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
73
- from .resources.test_suites.client import AsyncTestSuitesClient
74
- from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient
75
- from .resources.workflow_executions.client import AsyncWorkflowExecutionsClient
76
- from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
77
- from .resources.workflows.client import AsyncWorkflowsClient
78
- from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
79
- from .resources.workspaces.client import AsyncWorkspacesClient
55
+ from .types.vellum_variable_type import VellumVariableType
56
+ from .types.workflow_execution_event_type import WorkflowExecutionEventType
57
+ from .types.workflow_expand_meta_request import WorkflowExpandMetaRequest
58
+ from .types.workflow_request_input_request import WorkflowRequestInputRequest
59
+ from .types.workflow_stream_event import WorkflowStreamEvent
80
60
 
81
61
  # this is used as the default value for optional parameters
82
62
  OMIT = typing.cast(typing.Any, ...)
@@ -99,6 +79,9 @@ class Vellum:
99
79
 
100
80
  api_version : typing.Optional[ApiVersionEnum]
101
81
  api_key : str
82
+ headers : typing.Optional[typing.Dict[str, str]]
83
+ Additional headers to send with every request.
84
+
102
85
  timeout : typing.Optional[float]
103
86
  The timeout to be used, in seconds, for requests. By default there is no timeout set, unless a custom httpx client is used, in which case this default is not enforced.
104
87
 
@@ -124,6 +107,7 @@ class Vellum:
124
107
  environment: VellumEnvironment = VellumEnvironment.PRODUCTION,
125
108
  api_version: typing.Optional[ApiVersionEnum] = os.getenv("VELLUM_API_VERSION", "2025-07-30"),
126
109
  api_key: str,
110
+ headers: typing.Optional[typing.Dict[str, str]] = None,
127
111
  timeout: typing.Optional[float] = None,
128
112
  follow_redirects: typing.Optional[bool] = True,
129
113
  httpx_client: typing.Optional[httpx.Client] = None,
@@ -135,6 +119,7 @@ class Vellum:
135
119
  environment=environment,
136
120
  api_version=api_version,
137
121
  api_key=api_key,
122
+ headers=headers,
138
123
  httpx_client=httpx_client
139
124
  if httpx_client is not None
140
125
  else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
@@ -217,7 +202,7 @@ class Vellum:
217
202
  url="x",
218
203
  )
219
204
  """
220
- response = self._raw_client.execute_api(
205
+ _response = self._raw_client.execute_api(
221
206
  url=url,
222
207
  method=method,
223
208
  body=body,
@@ -225,7 +210,7 @@ class Vellum:
225
210
  bearer_token=bearer_token,
226
211
  request_options=request_options,
227
212
  )
228
- return response.data
213
+ return _response.data
229
214
 
230
215
  def execute_code(
231
216
  self,
@@ -292,7 +277,7 @@ class Vellum:
292
277
  output_type="STRING",
293
278
  )
294
279
  """
295
- response = self._raw_client.execute_code(
280
+ _response = self._raw_client.execute_code(
296
281
  code=code,
297
282
  runtime=runtime,
298
283
  input_values=input_values,
@@ -300,7 +285,7 @@ class Vellum:
300
285
  output_type=output_type,
301
286
  request_options=request_options,
302
287
  )
303
- return response.data
288
+ return _response.data
304
289
 
305
290
  def execute_prompt(
306
291
  self,
@@ -377,7 +362,7 @@ class Vellum:
377
362
  ],
378
363
  )
379
364
  """
380
- response = self._raw_client.execute_prompt(
365
+ _response = self._raw_client.execute_prompt(
381
366
  inputs=inputs,
382
367
  prompt_deployment_id=prompt_deployment_id,
383
368
  prompt_deployment_name=prompt_deployment_name,
@@ -389,7 +374,7 @@ class Vellum:
389
374
  metadata=metadata,
390
375
  request_options=request_options,
391
376
  )
392
- return response.data
377
+ return _response.data
393
378
 
394
379
  def execute_prompt_stream(
395
380
  self,
@@ -549,7 +534,7 @@ class Vellum:
549
534
  ],
550
535
  )
551
536
  """
552
- response = self._raw_client.execute_workflow(
537
+ _response = self._raw_client.execute_workflow(
553
538
  inputs=inputs,
554
539
  expand_meta=expand_meta,
555
540
  workflow_deployment_id=workflow_deployment_id,
@@ -559,7 +544,7 @@ class Vellum:
559
544
  metadata=metadata,
560
545
  request_options=request_options,
561
546
  )
562
- return response.data
547
+ return _response.data
563
548
 
564
549
  def execute_workflow_stream(
565
550
  self,
@@ -703,14 +688,14 @@ class Vellum:
703
688
  ],
704
689
  )
705
690
  """
706
- response = self._raw_client.generate(
691
+ _response = self._raw_client.generate(
707
692
  requests=requests,
708
693
  deployment_id=deployment_id,
709
694
  deployment_name=deployment_name,
710
695
  options=options,
711
696
  request_options=request_options,
712
697
  )
713
- return response.data
698
+ return _response.data
714
699
 
715
700
  def generate_stream(
716
701
  self,
@@ -829,7 +814,7 @@ class Vellum:
829
814
  query="x",
830
815
  )
831
816
  """
832
- response = self._raw_client.search(
817
+ _response = self._raw_client.search(
833
818
  query=query,
834
819
  index_id=index_id,
835
820
  index_name=index_name,
@@ -837,7 +822,7 @@ class Vellum:
837
822
  document_index=document_index,
838
823
  request_options=request_options,
839
824
  )
840
- return response.data
825
+ return _response.data
841
826
 
842
827
  def submit_completion_actuals(
843
828
  self,
@@ -880,13 +865,13 @@ class Vellum:
880
865
  actuals=[SubmitCompletionActualRequest(), SubmitCompletionActualRequest()],
881
866
  )
882
867
  """
883
- response = self._raw_client.submit_completion_actuals(
868
+ _response = self._raw_client.submit_completion_actuals(
884
869
  actuals=actuals,
885
870
  deployment_id=deployment_id,
886
871
  deployment_name=deployment_name,
887
872
  request_options=request_options,
888
873
  )
889
- return response.data
874
+ return _response.data
890
875
 
891
876
  def submit_workflow_execution_actuals(
892
877
  self,
@@ -934,10 +919,10 @@ class Vellum:
934
919
  ],
935
920
  )
936
921
  """
937
- response = self._raw_client.submit_workflow_execution_actuals(
922
+ _response = self._raw_client.submit_workflow_execution_actuals(
938
923
  actuals=actuals, execution_id=execution_id, external_id=external_id, request_options=request_options
939
924
  )
940
- return response.data
925
+ return _response.data
941
926
 
942
927
 
943
928
  class AsyncVellum:
@@ -957,6 +942,9 @@ class AsyncVellum:
957
942
 
958
943
  api_version : typing.Optional[ApiVersionEnum]
959
944
  api_key : str
945
+ headers : typing.Optional[typing.Dict[str, str]]
946
+ Additional headers to send with every request.
947
+
960
948
  timeout : typing.Optional[float]
961
949
  The timeout to be used, in seconds, for requests. By default there is no timeout set, unless a custom httpx client is used, in which case this default is not enforced.
962
950
 
@@ -982,6 +970,7 @@ class AsyncVellum:
982
970
  environment: VellumEnvironment = VellumEnvironment.PRODUCTION,
983
971
  api_version: typing.Optional[ApiVersionEnum] = os.getenv("VELLUM_API_VERSION", "2025-07-30"),
984
972
  api_key: str,
973
+ headers: typing.Optional[typing.Dict[str, str]] = None,
985
974
  timeout: typing.Optional[float] = None,
986
975
  follow_redirects: typing.Optional[bool] = True,
987
976
  httpx_client: typing.Optional[httpx.AsyncClient] = None,
@@ -993,6 +982,7 @@ class AsyncVellum:
993
982
  environment=environment,
994
983
  api_version=api_version,
995
984
  api_key=api_key,
985
+ headers=headers,
996
986
  httpx_client=httpx_client
997
987
  if httpx_client is not None
998
988
  else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
@@ -1083,7 +1073,7 @@ class AsyncVellum:
1083
1073
 
1084
1074
  asyncio.run(main())
1085
1075
  """
1086
- response = await self._raw_client.execute_api(
1076
+ _response = await self._raw_client.execute_api(
1087
1077
  url=url,
1088
1078
  method=method,
1089
1079
  body=body,
@@ -1091,7 +1081,7 @@ class AsyncVellum:
1091
1081
  bearer_token=bearer_token,
1092
1082
  request_options=request_options,
1093
1083
  )
1094
- return response.data
1084
+ return _response.data
1095
1085
 
1096
1086
  async def execute_code(
1097
1087
  self,
@@ -1166,7 +1156,7 @@ class AsyncVellum:
1166
1156
 
1167
1157
  asyncio.run(main())
1168
1158
  """
1169
- response = await self._raw_client.execute_code(
1159
+ _response = await self._raw_client.execute_code(
1170
1160
  code=code,
1171
1161
  runtime=runtime,
1172
1162
  input_values=input_values,
@@ -1174,7 +1164,7 @@ class AsyncVellum:
1174
1164
  output_type=output_type,
1175
1165
  request_options=request_options,
1176
1166
  )
1177
- return response.data
1167
+ return _response.data
1178
1168
 
1179
1169
  async def execute_prompt(
1180
1170
  self,
@@ -1259,7 +1249,7 @@ class AsyncVellum:
1259
1249
 
1260
1250
  asyncio.run(main())
1261
1251
  """
1262
- response = await self._raw_client.execute_prompt(
1252
+ _response = await self._raw_client.execute_prompt(
1263
1253
  inputs=inputs,
1264
1254
  prompt_deployment_id=prompt_deployment_id,
1265
1255
  prompt_deployment_name=prompt_deployment_name,
@@ -1271,7 +1261,7 @@ class AsyncVellum:
1271
1261
  metadata=metadata,
1272
1262
  request_options=request_options,
1273
1263
  )
1274
- return response.data
1264
+ return _response.data
1275
1265
 
1276
1266
  async def execute_prompt_stream(
1277
1267
  self,
@@ -1370,8 +1360,8 @@ class AsyncVellum:
1370
1360
  metadata=metadata,
1371
1361
  request_options=request_options,
1372
1362
  ) as r:
1373
- async for data in r.data:
1374
- yield data
1363
+ async for _chunk in r.data:
1364
+ yield _chunk
1375
1365
 
1376
1366
  async def execute_workflow(
1377
1367
  self,
@@ -1448,7 +1438,7 @@ class AsyncVellum:
1448
1438
 
1449
1439
  asyncio.run(main())
1450
1440
  """
1451
- response = await self._raw_client.execute_workflow(
1441
+ _response = await self._raw_client.execute_workflow(
1452
1442
  inputs=inputs,
1453
1443
  expand_meta=expand_meta,
1454
1444
  workflow_deployment_id=workflow_deployment_id,
@@ -1458,7 +1448,7 @@ class AsyncVellum:
1458
1448
  metadata=metadata,
1459
1449
  request_options=request_options,
1460
1450
  )
1461
- return response.data
1451
+ return _response.data
1462
1452
 
1463
1453
  async def execute_workflow_stream(
1464
1454
  self,
@@ -1552,8 +1542,8 @@ class AsyncVellum:
1552
1542
  metadata=metadata,
1553
1543
  request_options=request_options,
1554
1544
  ) as r:
1555
- async for data in r.data:
1556
- yield data
1545
+ async for _chunk in r.data:
1546
+ yield _chunk
1557
1547
 
1558
1548
  async def generate(
1559
1549
  self,
@@ -1619,14 +1609,14 @@ class AsyncVellum:
1619
1609
 
1620
1610
  asyncio.run(main())
1621
1611
  """
1622
- response = await self._raw_client.generate(
1612
+ _response = await self._raw_client.generate(
1623
1613
  requests=requests,
1624
1614
  deployment_id=deployment_id,
1625
1615
  deployment_name=deployment_name,
1626
1616
  options=options,
1627
1617
  request_options=request_options,
1628
1618
  )
1629
- return response.data
1619
+ return _response.data
1630
1620
 
1631
1621
  async def generate_stream(
1632
1622
  self,
@@ -1701,8 +1691,8 @@ class AsyncVellum:
1701
1691
  options=options,
1702
1692
  request_options=request_options,
1703
1693
  ) as r:
1704
- async for data in r.data:
1705
- yield data
1694
+ async for _chunk in r.data:
1695
+ yield _chunk
1706
1696
 
1707
1697
  async def search(
1708
1698
  self,
@@ -1762,7 +1752,7 @@ class AsyncVellum:
1762
1752
 
1763
1753
  asyncio.run(main())
1764
1754
  """
1765
- response = await self._raw_client.search(
1755
+ _response = await self._raw_client.search(
1766
1756
  query=query,
1767
1757
  index_id=index_id,
1768
1758
  index_name=index_name,
@@ -1770,7 +1760,7 @@ class AsyncVellum:
1770
1760
  document_index=document_index,
1771
1761
  request_options=request_options,
1772
1762
  )
1773
- return response.data
1763
+ return _response.data
1774
1764
 
1775
1765
  async def submit_completion_actuals(
1776
1766
  self,
@@ -1824,13 +1814,13 @@ class AsyncVellum:
1824
1814
 
1825
1815
  asyncio.run(main())
1826
1816
  """
1827
- response = await self._raw_client.submit_completion_actuals(
1817
+ _response = await self._raw_client.submit_completion_actuals(
1828
1818
  actuals=actuals,
1829
1819
  deployment_id=deployment_id,
1830
1820
  deployment_name=deployment_name,
1831
1821
  request_options=request_options,
1832
1822
  )
1833
- return response.data
1823
+ return _response.data
1834
1824
 
1835
1825
  async def submit_workflow_execution_actuals(
1836
1826
  self,
@@ -1886,7 +1876,7 @@ class AsyncVellum:
1886
1876
 
1887
1877
  asyncio.run(main())
1888
1878
  """
1889
- response = await self._raw_client.submit_workflow_execution_actuals(
1879
+ _response = await self._raw_client.submit_workflow_execution_actuals(
1890
1880
  actuals=actuals, execution_id=execution_id, external_id=external_id, request_options=request_options
1891
1881
  )
1892
- return response.data
1882
+ return _response.data
@@ -1,5 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
+ # isort: skip_file
4
+
3
5
  from .api_error import ApiError
4
6
  from .client_wrapper import AsyncClientWrapper, BaseClientWrapper, SyncClientWrapper
5
7
  from .datetime_utils import serialize_datetime
@@ -1,15 +1,23 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- import typing
3
+ from typing import Any, Dict, Optional
4
4
 
5
5
 
6
6
  class ApiError(Exception):
7
- status_code: typing.Optional[int]
8
- body: typing.Any
7
+ headers: Optional[Dict[str, str]]
8
+ status_code: Optional[int]
9
+ body: Any
9
10
 
10
- def __init__(self, *, status_code: typing.Optional[int] = None, body: typing.Any = None):
11
+ def __init__(
12
+ self,
13
+ *,
14
+ headers: Optional[Dict[str, str]] = None,
15
+ status_code: Optional[int] = None,
16
+ body: Any = None,
17
+ ) -> None:
18
+ self.headers = headers
11
19
  self.status_code = status_code
12
20
  self.body = body
13
21
 
14
22
  def __str__(self) -> str:
15
- return f"status_code: {self.status_code}, body: {self.body}"
23
+ return f"headers: {self.headers}, status_code: {self.status_code}, body: {self.body}"
@@ -15,26 +15,32 @@ class BaseClientWrapper:
15
15
  *,
16
16
  api_version: typing.Optional[ApiVersionEnum] = None,
17
17
  api_key: str,
18
+ headers: typing.Optional[typing.Dict[str, str]] = None,
18
19
  environment: VellumEnvironment,
19
20
  timeout: typing.Optional[float] = None,
20
21
  ):
21
22
  self._api_version = api_version
22
23
  self.api_key = api_key
24
+ self._headers = headers
23
25
  self._environment = environment
24
26
  self._timeout = timeout
25
27
 
26
28
  def get_headers(self) -> typing.Dict[str, str]:
27
29
  headers: typing.Dict[str, str] = {
28
- "User-Agent": "vellum-ai/1.1.3",
30
+ "User-Agent": "vellum-ai/1.1.4",
29
31
  "X-Fern-Language": "Python",
30
32
  "X-Fern-SDK-Name": "vellum-ai",
31
- "X-Fern-SDK-Version": "1.1.3",
33
+ "X-Fern-SDK-Version": "1.1.4",
34
+ **(self.get_custom_headers() or {}),
32
35
  }
33
36
  if self._api_version is not None:
34
37
  headers["X-API-Version"] = self._api_version
35
38
  headers["X-API-KEY"] = self.api_key
36
39
  return headers
37
40
 
41
+ def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]:
42
+ return self._headers
43
+
38
44
  def get_environment(self) -> VellumEnvironment:
39
45
  return self._environment
40
46
 
@@ -48,11 +54,14 @@ class SyncClientWrapper(BaseClientWrapper):
48
54
  *,
49
55
  api_version: typing.Optional[ApiVersionEnum] = None,
50
56
  api_key: str,
57
+ headers: typing.Optional[typing.Dict[str, str]] = None,
51
58
  environment: VellumEnvironment,
52
59
  timeout: typing.Optional[float] = None,
53
60
  httpx_client: httpx.Client,
54
61
  ):
55
- super().__init__(api_version=api_version, api_key=api_key, environment=environment, timeout=timeout)
62
+ super().__init__(
63
+ api_version=api_version, api_key=api_key, headers=headers, environment=environment, timeout=timeout
64
+ )
56
65
  self.httpx_client = HttpClient(
57
66
  httpx_client=httpx_client, base_headers=self.get_headers, base_timeout=self.get_timeout
58
67
  )
@@ -64,11 +73,14 @@ class AsyncClientWrapper(BaseClientWrapper):
64
73
  *,
65
74
  api_version: typing.Optional[ApiVersionEnum] = None,
66
75
  api_key: str,
76
+ headers: typing.Optional[typing.Dict[str, str]] = None,
67
77
  environment: VellumEnvironment,
68
78
  timeout: typing.Optional[float] = None,
69
79
  httpx_client: httpx.AsyncClient,
70
80
  ):
71
- super().__init__(api_version=api_version, api_key=api_key, environment=environment, timeout=timeout)
81
+ super().__init__(
82
+ api_version=api_version, api_key=api_key, headers=headers, environment=environment, timeout=timeout
83
+ )
72
84
  self.httpx_client = AsyncHttpClient(
73
85
  httpx_client=httpx_client, base_headers=self.get_headers, base_timeout=self.get_timeout
74
86
  )
@@ -0,0 +1,16 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+
4
+ class ForceMultipartDict(dict):
5
+ """
6
+ A dictionary subclass that always evaluates to True in boolean contexts.
7
+
8
+ This is used to force multipart/form-data encoding in HTTP requests even when
9
+ the dictionary is empty, which would normally evaluate to False.
10
+ """
11
+
12
+ def __bool__(self):
13
+ return True
14
+
15
+
16
+ FORCE_MULTIPART = ForceMultipartDict()