vellum-ai 0.8.10__py3-none-any.whl → 0.8.12__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.
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "vellum-ai",
20
- "X-Fern-SDK-Version": "0.8.10",
20
+ "X-Fern-SDK-Version": "0.8.12",
21
21
  }
22
22
  headers["X_API_KEY"] = self.api_key
23
23
  return headers
vellum/environment.py CHANGED
@@ -6,12 +6,12 @@ from __future__ import annotations
6
6
  class VellumEnvironment:
7
7
  PRODUCTION: VellumEnvironment
8
8
 
9
- def __init__(self, *, default: str, predict: str, documents: str):
9
+ def __init__(self, *, default: str, documents: str, predict: str):
10
10
  self.default = default
11
- self.predict = predict
12
11
  self.documents = documents
12
+ self.predict = predict
13
13
 
14
14
 
15
15
  VellumEnvironment.PRODUCTION = VellumEnvironment(
16
- default="https://api.vellum.ai", predict="https://predict.vellum.ai", documents="https://documents.vellum.ai"
16
+ default="https://api.vellum.ai", documents="https://documents.vellum.ai", predict="https://predict.vellum.ai"
17
17
  )
@@ -367,7 +367,7 @@ class DocumentIndexesClient:
367
367
  """
368
368
  _response = self._client_wrapper.httpx_client.request(
369
369
  f"v1/document-indexes/{jsonable_encoder(id)}",
370
- base_url=self._client_wrapper.get_environment().default,
370
+ base_url=self._client_wrapper.get_environment().documents,
371
371
  method="DELETE",
372
372
  request_options=request_options,
373
373
  )
@@ -539,7 +539,7 @@ class DocumentIndexesClient:
539
539
  """
540
540
  _response = self._client_wrapper.httpx_client.request(
541
541
  f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
542
- base_url=self._client_wrapper.get_environment().default,
542
+ base_url=self._client_wrapper.get_environment().documents,
543
543
  method="DELETE",
544
544
  request_options=request_options,
545
545
  )
@@ -940,7 +940,7 @@ class AsyncDocumentIndexesClient:
940
940
  """
941
941
  _response = await self._client_wrapper.httpx_client.request(
942
942
  f"v1/document-indexes/{jsonable_encoder(id)}",
943
- base_url=self._client_wrapper.get_environment().default,
943
+ base_url=self._client_wrapper.get_environment().documents,
944
944
  method="DELETE",
945
945
  request_options=request_options,
946
946
  )
@@ -1136,7 +1136,7 @@ class AsyncDocumentIndexesClient:
1136
1136
  """
1137
1137
  _response = await self._client_wrapper.httpx_client.request(
1138
1138
  f"v1/document-indexes/{jsonable_encoder(id)}/documents/{jsonable_encoder(document_id)}",
1139
- base_url=self._client_wrapper.get_environment().default,
1139
+ base_url=self._client_wrapper.get_environment().documents,
1140
1140
  method="DELETE",
1141
1141
  request_options=request_options,
1142
1142
  )
@@ -171,7 +171,7 @@ class DocumentsClient:
171
171
  """
172
172
  _response = self._client_wrapper.httpx_client.request(
173
173
  f"v1/documents/{jsonable_encoder(id)}",
174
- base_url=self._client_wrapper.get_environment().default,
174
+ base_url=self._client_wrapper.get_environment().documents,
175
175
  method="DELETE",
176
176
  request_options=request_options,
177
177
  )
@@ -555,7 +555,7 @@ class AsyncDocumentsClient:
555
555
  """
556
556
  _response = await self._client_wrapper.httpx_client.request(
557
557
  f"v1/documents/{jsonable_encoder(id)}",
558
- base_url=self._client_wrapper.get_environment().default,
558
+ base_url=self._client_wrapper.get_environment().documents,
559
559
  method="DELETE",
560
560
  request_options=request_options,
561
561
  )
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- IterationStateEnum = typing.Union[typing.Literal["INITIATED", "FULFILLED"], typing.Any]
5
+ IterationStateEnum = typing.Union[typing.Literal["INITIATED", "FULFILLED", "REJECTED"], typing.Any]
@@ -17,7 +17,7 @@ class JsonInputRequest(UniversalBaseModel):
17
17
  """
18
18
 
19
19
  type: typing.Literal["JSON"] = "JSON"
20
- value: typing.Dict[str, typing.Optional[typing.Any]]
20
+ value: typing.Optional[typing.Any] = None
21
21
 
22
22
  if IS_PYDANTIC_V2:
23
23
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.8.10
3
+ Version: 0.8.12
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -2,7 +2,7 @@ vellum/__init__.py,sha256=ZjILSZ1gKX9YUZjjOzr0wngRMV7aYaCvuCXgoxt7n2o,30148
2
2
  vellum/client.py,sha256=tsLLtZbwPASP8Cdh1RF19pOuNmZbBKFkUiplU9X190Q,101256
3
3
  vellum/core/__init__.py,sha256=FzSvKbXjuM18Hdk3iGK-jsGY_DfouyRS659thZV5c1Y,1394
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=M-BpiKCvswDs5lRLcJdm1cAw-R1gKHfMTOJcWjskwVk,1898
5
+ vellum/core/client_wrapper.py,sha256=AuN9LYKE9lLj2X1LuT8k7Hrp64I2xyYaq4BbPfGZZEQ,1898
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=vliNmlB7PbDfi4EKiVPNq5QaGXJ4zlDBGupv7Qciy7g,1520
8
8
  vellum/core/http_client.py,sha256=rZSidd9LazCjduvdBhZ7GDs4iGfn-OAfRGsDXB1z8f4,18882
@@ -12,7 +12,7 @@ vellum/core/query_encoder.py,sha256=ekulqNd0j8TgD7ox-Qbz7liqX8-KP9blvT9DsRCenYM,
12
12
  vellum/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3Vppd864mS6vQZw,342
13
13
  vellum/core/request_options.py,sha256=5cCGt5AEGgtP5xifDl4oVQUmSjlIA8FmRItAlJawM18,1417
14
14
  vellum/core/serialization.py,sha256=5evS9ZBT8F0_GUAfzb6FQvdgw4JKuHFBlEoqZ8Y8-DU,8970
15
- vellum/environment.py,sha256=bcAFjoE9XXd7tiysYS90Os669IJmUMZS2JZ_ZQn0Dpg,498
15
+ vellum/environment.py,sha256=vkEIsMFufsklAMQJxa_E9R60LQsbeqKbWqtyXjffZp8,498
16
16
  vellum/errors/__init__.py,sha256=HZB8vVqzDNx0M2uFJ05S5RcGTH95iVDl4v3rQ4xRqSw,343
17
17
  vellum/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
18
18
  vellum/errors/forbidden_error.py,sha256=QO1kKlhClAPES6zsEK7g9pglWnxn3KWaOCAawWOg6Aw,263
@@ -36,11 +36,11 @@ vellum/resources/deployments/client.py,sha256=A_x9lFFFNiiwggPcrMfP88vv5F0FuLo39E
36
36
  vellum/resources/deployments/types/__init__.py,sha256=IhwnmoXJ0r_QEhh1b2tBcaAm_x3fWMVuIhYmAapp_ZA,183
37
37
  vellum/resources/deployments/types/deployments_list_request_status.py,sha256=CxlQD16KZXme7x31YYCe_3aAgEueutDTeJo5A4Au-aU,174
38
38
  vellum/resources/document_indexes/__init__.py,sha256=YpOl_9IV7xOlH4OmusQxtAJB11kxQfCSMDyT1_UD0oM,165
39
- vellum/resources/document_indexes/client.py,sha256=8ZbmGdhprMunPw7eN-AYPT0Mg4xEV4R4WXShvLh5MY4,37132
39
+ vellum/resources/document_indexes/client.py,sha256=MoqaMRDP0eLSh1f8YE9P2Wxj4xlObtd3aMJHxTNqQlQ,37140
40
40
  vellum/resources/document_indexes/types/__init__.py,sha256=IoFqKHN_VBdEhC7VL8_6Jbatrn0e0zuYEJAJUahcUR0,196
41
41
  vellum/resources/document_indexes/types/document_indexes_list_request_status.py,sha256=sfUEB0cvOSmlE2iITqnMVyHv05Zy2fWP4QjCIYqMg0M,178
42
42
  vellum/resources/documents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
43
- vellum/resources/documents/client.py,sha256=bd4lTPPyev-qrfVClppf6RWxe6JPkuSZDf-MoBg7Tqo,27570
43
+ vellum/resources/documents/client.py,sha256=C5hDZw1y_iNlPdSuePK-0hEwve4JIbKcx72kMNAo-Rg,27574
44
44
  vellum/resources/folder_entities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
45
45
  vellum/resources/folder_entities/client.py,sha256=yxkHRAx8frCk-WvgcRD-WzMhA2kxvY_j42S436-j4EQ,4440
46
46
  vellum/resources/sandboxes/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -195,10 +195,10 @@ vellum/types/initiated_prompt_execution_meta.py,sha256=pnRjcPnVRp650k0W7kfwg9f24
195
195
  vellum/types/initiated_workflow_node_result_event.py,sha256=8fQ1m0TxaFa0p0uZqIPdVuUDnGfKva0tv4N27qp5ShM,1158
196
196
  vellum/types/instructor_vectorizer_config.py,sha256=7udlosXv4CUWTW_Q9m0mz3VRi1FKSbBhDIOhtxRd0-U,731
197
197
  vellum/types/instructor_vectorizer_config_request.py,sha256=6LGFFQKntMfX7bdetUqEMVdr3KJHEps0oDp2bNmqWbM,738
198
- vellum/types/iteration_state_enum.py,sha256=yjwnPhqKQQbWgQUqP2qws4kVMhRY8sFTGK_diuSrsR0,168
198
+ vellum/types/iteration_state_enum.py,sha256=83JSh842OJgQiLtNn1KMimy6RlEYRVH3mDmYWS6Ewzo,180
199
199
  vellum/types/jinja_prompt_block_properties_request.py,sha256=2nb9gp224ADPi0aNTKNMaOe159EDB8JSHzDkMzR0QxI,719
200
200
  vellum/types/jinja_prompt_block_request.py,sha256=VQPrZOZJaEw2ILrebKT53CM8hRyQ5RuUeZZt0mzRd3Q,1097
201
- vellum/types/json_input_request.py,sha256=37JriRoVx8QPmCpEaDzaIhaHOQMFS8HlWuoSSvuf_o4,810
201
+ vellum/types/json_input_request.py,sha256=pnOWSzeBSz1pYtQPxYrUVFGW1_8bQAH_VpAQLjGEdj4,799
202
202
  vellum/types/json_variable_value.py,sha256=X7eBEWxuozfvIdqD5sIZ5L-L77Ou6IIsZaQVNXh5G2k,634
203
203
  vellum/types/json_vellum_value.py,sha256=8irlw6NkRRVafysfTc1Q5BFFhRrWJYzdwrDYTdJK4JY,689
204
204
  vellum/types/json_vellum_value_request.py,sha256=IUlkdwFGgBeLl9sCmAJhoaxomWiEMpWgRcLa_WnlK8g,696
@@ -484,7 +484,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=U34IK7Zv
484
484
  vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb_7UU0-UspeN4pUdINCcCrD64W74,1228
485
485
  vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
486
486
  vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
487
- vellum_ai-0.8.10.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
488
- vellum_ai-0.8.10.dist-info/METADATA,sha256=QHpzDwJPFH8HiKsH-zgInPuvI39uSU4MtqDrQpIJzwI,4395
489
- vellum_ai-0.8.10.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
490
- vellum_ai-0.8.10.dist-info/RECORD,,
487
+ vellum_ai-0.8.12.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
488
+ vellum_ai-0.8.12.dist-info/METADATA,sha256=Q4I9cG53NFMg2M3Ou5evvwNdGADJ2LueJ5fSYh146Hw,4395
489
+ vellum_ai-0.8.12.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
490
+ vellum_ai-0.8.12.dist-info/RECORD,,