vellum-ai 0.0.30__tar.gz → 0.0.31__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/PKG-INFO +1 -1
  2. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/pyproject.toml +1 -1
  3. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/client.py +8 -4
  4. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/client_wrapper.py +5 -1
  5. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_chat_history_result.py +1 -1
  6. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_json_result.py +1 -1
  7. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_string_result.py +1 -1
  8. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/README.md +0 -0
  9. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/__init__.py +0 -0
  10. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/__init__.py +0 -0
  11. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/api_error.py +0 -0
  12. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/datetime_utils.py +0 -0
  13. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/jsonable_encoder.py +0 -0
  14. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/core/remove_none_from_dict.py +0 -0
  15. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/environment.py +0 -0
  16. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/__init__.py +0 -0
  17. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/bad_request_error.py +0 -0
  18. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/conflict_error.py +0 -0
  19. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/forbidden_error.py +0 -0
  20. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/internal_server_error.py +0 -0
  21. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/errors/not_found_error.py +0 -0
  22. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/py.typed +0 -0
  23. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/__init__.py +0 -0
  24. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/deployments/__init__.py +0 -0
  25. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/deployments/client.py +0 -0
  26. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/document_indexes/__init__.py +0 -0
  27. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/document_indexes/client.py +0 -0
  28. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/documents/__init__.py +0 -0
  29. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/documents/client.py +0 -0
  30. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/model_versions/__init__.py +0 -0
  31. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/model_versions/client.py +0 -0
  32. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/registered_prompts/__init__.py +0 -0
  33. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/registered_prompts/client.py +0 -0
  34. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/sandboxes/__init__.py +0 -0
  35. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/sandboxes/client.py +0 -0
  36. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/test_suites/__init__.py +0 -0
  37. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/resources/test_suites/client.py +0 -0
  38. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/__init__.py +0 -0
  39. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/block_type_enum.py +0 -0
  40. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/chat_message.py +0 -0
  41. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/chat_message_request.py +0 -0
  42. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/chat_message_role.py +0 -0
  43. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/conditional_node_result.py +0 -0
  44. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/conditional_node_result_data.py +0 -0
  45. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/content_type.py +0 -0
  46. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/deployment_node_result.py +0 -0
  47. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/deployment_node_result_data.py +0 -0
  48. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/deployment_read.py +0 -0
  49. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/deployment_status.py +0 -0
  50. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document.py +0 -0
  51. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document_document_to_document_index.py +0 -0
  52. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document_index_read.py +0 -0
  53. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document_index_status.py +0 -0
  54. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document_read.py +0 -0
  55. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/document_status.py +0 -0
  56. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/enriched_normalized_completion.py +0 -0
  57. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/environment_enum.py +0 -0
  58. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/evaluation_params.py +0 -0
  59. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/evaluation_params_request.py +0 -0
  60. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/execute_workflow_stream_error_response.py +0 -0
  61. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/finish_reason_enum.py +0 -0
  62. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_error_response.py +0 -0
  63. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_options_request.py +0 -0
  64. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_request.py +0 -0
  65. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_response.py +0 -0
  66. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_result.py +0 -0
  67. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_result_data.py +0 -0
  68. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_result_error.py +0 -0
  69. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_stream_response.py +0 -0
  70. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_stream_result.py +0 -0
  71. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/generate_stream_result_data.py +0 -0
  72. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/indexing_state_enum.py +0 -0
  73. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/input_variable.py +0 -0
  74. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/input_variable_type.py +0 -0
  75. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/logprobs_enum.py +0 -0
  76. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/metadata_filter_config_request.py +0 -0
  77. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/metadata_filter_rule_combinator.py +0 -0
  78. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/metadata_filter_rule_request.py +0 -0
  79. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_type_enum.py +0 -0
  80. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_build_config.py +0 -0
  81. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_compile_prompt_response.py +0 -0
  82. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_compiled_prompt.py +0 -0
  83. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_exec_config.py +0 -0
  84. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_exec_config_parameters.py +0 -0
  85. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_read.py +0 -0
  86. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_read_status_enum.py +0 -0
  87. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/model_version_sandbox_snapshot.py +0 -0
  88. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/normalized_log_probs.py +0 -0
  89. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/normalized_token_log_probs.py +0 -0
  90. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/paginated_slim_document_list.py +0 -0
  91. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/processing_failure_reason_enum.py +0 -0
  92. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/processing_state_enum.py +0 -0
  93. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_node_result.py +0 -0
  94. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_node_result_data.py +0 -0
  95. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block.py +0 -0
  96. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block_data.py +0 -0
  97. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block_data_request.py +0 -0
  98. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block_properties.py +0 -0
  99. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block_properties_request.py +0 -0
  100. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/prompt_template_block_request.py +0 -0
  101. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/provider_enum.py +0 -0
  102. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/register_prompt_error_response.py +0 -0
  103. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/register_prompt_model_parameters_request.py +0 -0
  104. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/register_prompt_prompt.py +0 -0
  105. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/register_prompt_prompt_info_request.py +0 -0
  106. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/register_prompt_response.py +0 -0
  107. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/registered_prompt_deployment.py +0 -0
  108. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/registered_prompt_input_variable_request.py +0 -0
  109. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/registered_prompt_model_version.py +0 -0
  110. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/registered_prompt_sandbox.py +0 -0
  111. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/registered_prompt_sandbox_snapshot.py +0 -0
  112. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/sandbox_metric_input_params.py +0 -0
  113. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/sandbox_metric_input_params_request.py +0 -0
  114. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/sandbox_node_result.py +0 -0
  115. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/sandbox_node_result_data.py +0 -0
  116. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/sandbox_scenario.py +0 -0
  117. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/scenario_input.py +0 -0
  118. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/scenario_input_request.py +0 -0
  119. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/scenario_input_type_enum.py +0 -0
  120. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_error_response.py +0 -0
  121. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_filters_request.py +0 -0
  122. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_node_result.py +0 -0
  123. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_node_result_data.py +0 -0
  124. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_request_options_request.py +0 -0
  125. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_response.py +0 -0
  126. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_result.py +0 -0
  127. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_result_merging_request.py +0 -0
  128. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/search_weights_request.py +0 -0
  129. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/slim_document.py +0 -0
  130. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/submit_completion_actual_request.py +0 -0
  131. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/submit_completion_actuals_error_response.py +0 -0
  132. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_result.py +0 -0
  133. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_result_data.py +0 -0
  134. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/terminal_node_result_output.py +0 -0
  135. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/test_suite_test_case.py +0 -0
  136. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/upload_document_error_response.py +0 -0
  137. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/upload_document_response.py +0 -0
  138. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_event_error.py +0 -0
  139. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_execution_event_error_code.py +0 -0
  140. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_execution_event_type.py +0 -0
  141. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_execution_node_result_event.py +0 -0
  142. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_execution_workflow_result_event.py +0 -0
  143. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_node_result_data.py +0 -0
  144. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_node_result_event.py +0 -0
  145. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_node_result_event_state.py +0 -0
  146. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_request_chat_history_input_request.py +0 -0
  147. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_request_input_request.py +0 -0
  148. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_request_json_input_request.py +0 -0
  149. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_request_string_input_request.py +0 -0
  150. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_result_event.py +0 -0
  151. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_result_event_output_data.py +0 -0
  152. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_result_event_output_data_chat_history.py +0 -0
  153. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_result_event_output_data_json.py +0 -0
  154. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_result_event_output_data_string.py +0 -0
  155. {vellum_ai-0.0.30 → vellum_ai-0.0.31}/src/vellum/types/workflow_stream_event.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.0.30
3
+ Version: 0.0.31
4
4
  Summary:
5
5
  Requires-Python: >=3.7,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "vellum-ai"
3
- version = "v0.0.30"
3
+ version = "v0.0.31"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -109,12 +109,14 @@ class Vellum:
109
109
  continue
110
110
  yield pydantic.parse_obj_as(WorkflowStreamEvent, json.loads(_text)) # type: ignore
111
111
  return
112
+ _response.read()
113
+ if _response.status_code == 400:
114
+ raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
112
115
  if _response.status_code == 404:
113
116
  raise NotFoundError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
114
117
  if _response.status_code == 500:
115
118
  raise InternalServerError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
116
119
  try:
117
- _response.read()
118
120
  _response_json = _response.json()
119
121
  except JSONDecodeError:
120
122
  raise ApiError(status_code=_response.status_code, body=_response.text)
@@ -218,6 +220,7 @@ class Vellum:
218
220
  continue
219
221
  yield pydantic.parse_obj_as(GenerateStreamResponse, json.loads(_text)) # type: ignore
220
222
  return
223
+ _response.read()
221
224
  if _response.status_code == 400:
222
225
  raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
223
226
  if _response.status_code == 403:
@@ -227,7 +230,6 @@ class Vellum:
227
230
  if _response.status_code == 500:
228
231
  raise InternalServerError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
229
232
  try:
230
- _response.read()
231
233
  _response_json = _response.json()
232
234
  except JSONDecodeError:
233
235
  raise ApiError(status_code=_response.status_code, body=_response.text)
@@ -405,12 +407,14 @@ class AsyncVellum:
405
407
  continue
406
408
  yield pydantic.parse_obj_as(WorkflowStreamEvent, json.loads(_text)) # type: ignore
407
409
  return
410
+ await _response.aread()
411
+ if _response.status_code == 400:
412
+ raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
408
413
  if _response.status_code == 404:
409
414
  raise NotFoundError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
410
415
  if _response.status_code == 500:
411
416
  raise InternalServerError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
412
417
  try:
413
- await _response.aread()
414
418
  _response_json = _response.json()
415
419
  except JSONDecodeError:
416
420
  raise ApiError(status_code=_response.status_code, body=_response.text)
@@ -514,6 +518,7 @@ class AsyncVellum:
514
518
  continue
515
519
  yield pydantic.parse_obj_as(GenerateStreamResponse, json.loads(_text)) # type: ignore
516
520
  return
521
+ await _response.aread()
517
522
  if _response.status_code == 400:
518
523
  raise BadRequestError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
519
524
  if _response.status_code == 403:
@@ -523,7 +528,6 @@ class AsyncVellum:
523
528
  if _response.status_code == 500:
524
529
  raise InternalServerError(pydantic.parse_obj_as(typing.Any, _response.json())) # type: ignore
525
530
  try:
526
- await _response.aread()
527
531
  _response_json = _response.json()
528
532
  except JSONDecodeError:
529
533
  raise ApiError(status_code=_response.status_code, body=_response.text)
@@ -10,7 +10,11 @@ class BaseClientWrapper:
10
10
  self.api_key = api_key
11
11
 
12
12
  def get_headers(self) -> typing.Dict[str, str]:
13
- headers: typing.Dict[str, str] = {}
13
+ headers: typing.Dict[str, str] = {
14
+ "X-Fern-Language": "Python",
15
+ "X-Fern-SDK-Name": "vellum-ai",
16
+ "X-Fern-SDK-Version": "v0.0.31",
17
+ }
14
18
  headers["X_API_KEY"] = self.api_key
15
19
  return headers
16
20
 
@@ -11,7 +11,7 @@ from .chat_message import ChatMessage
11
11
 
12
12
  class TerminalNodeChatHistoryResult(pydantic.BaseModel):
13
13
  name: str = pydantic.Field(description="The unique name given to the terminal node that produced this output.")
14
- value: typing.List[ChatMessage]
14
+ value: typing.Optional[typing.List[ChatMessage]]
15
15
 
16
16
  def json(self, **kwargs: typing.Any) -> str:
17
17
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -10,7 +10,7 @@ from ..core.datetime_utils import serialize_datetime
10
10
 
11
11
  class TerminalNodeJsonResult(pydantic.BaseModel):
12
12
  name: str = pydantic.Field(description="The unique name given to the terminal node that produced this output.")
13
- value: typing.Dict[str, typing.Any]
13
+ value: typing.Optional[typing.Dict[str, typing.Any]]
14
14
 
15
15
  def json(self, **kwargs: typing.Any) -> str:
16
16
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -10,7 +10,7 @@ from ..core.datetime_utils import serialize_datetime
10
10
 
11
11
  class TerminalNodeStringResult(pydantic.BaseModel):
12
12
  name: str = pydantic.Field(description="The unique name given to the terminal node that produced this output.")
13
- value: str
13
+ value: typing.Optional[str]
14
14
 
15
15
  def json(self, **kwargs: typing.Any) -> str:
16
16
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
File without changes