vellum-ai 0.7.9__py3-none-any.whl → 0.7.10__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 (32) hide show
  1. vellum/__init__.py +8 -0
  2. vellum/core/client_wrapper.py +1 -1
  3. vellum/resources/ml_models/client.py +56 -4
  4. vellum/types/__init__.py +8 -0
  5. vellum/types/ml_model_display_config_labelled.py +4 -0
  6. vellum/types/ml_model_display_config_request.py +4 -0
  7. vellum/types/ml_model_exec_config.py +5 -0
  8. vellum/types/ml_model_exec_config_request.py +5 -0
  9. vellum/types/open_api_array_property.py +1 -1
  10. vellum/types/open_api_array_property_request.py +1 -1
  11. vellum/types/open_api_boolean_property.py +1 -1
  12. vellum/types/open_api_boolean_property_request.py +1 -1
  13. vellum/types/open_api_const_property.py +1 -1
  14. vellum/types/open_api_const_property_request.py +1 -1
  15. vellum/types/open_api_integer_property.py +1 -1
  16. vellum/types/open_api_integer_property_request.py +1 -1
  17. vellum/types/open_api_number_property.py +1 -1
  18. vellum/types/open_api_number_property_request.py +1 -1
  19. vellum/types/open_api_object_property.py +1 -1
  20. vellum/types/open_api_object_property_request.py +1 -1
  21. vellum/types/open_api_one_of_property.py +1 -1
  22. vellum/types/open_api_one_of_property_request.py +1 -1
  23. vellum/types/open_api_property.py +26 -0
  24. vellum/types/open_api_property_request.py +26 -0
  25. vellum/types/open_api_ref_property.py +35 -0
  26. vellum/types/open_api_ref_property_request.py +35 -0
  27. vellum/types/open_api_string_property.py +1 -1
  28. vellum/types/open_api_string_property_request.py +1 -1
  29. {vellum_ai-0.7.9.dist-info → vellum_ai-0.7.10.dist-info}/METADATA +1 -1
  30. {vellum_ai-0.7.9.dist-info → vellum_ai-0.7.10.dist-info}/RECORD +32 -30
  31. {vellum_ai-0.7.9.dist-info → vellum_ai-0.7.10.dist-info}/LICENSE +0 -0
  32. {vellum_ai-0.7.9.dist-info → vellum_ai-0.7.10.dist-info}/WHEEL +0 -0
vellum/__init__.py CHANGED
@@ -346,6 +346,7 @@ from .types import (
346
346
  OpenApiPropertyRequest_Number,
347
347
  OpenApiPropertyRequest_Object,
348
348
  OpenApiPropertyRequest_OneOf,
349
+ OpenApiPropertyRequest_Ref,
349
350
  OpenApiPropertyRequest_String,
350
351
  OpenApiProperty_Array,
351
352
  OpenApiProperty_Boolean,
@@ -354,7 +355,10 @@ from .types import (
354
355
  OpenApiProperty_Number,
355
356
  OpenApiProperty_Object,
356
357
  OpenApiProperty_OneOf,
358
+ OpenApiProperty_Ref,
357
359
  OpenApiProperty_String,
360
+ OpenApiRefProperty,
361
+ OpenApiRefPropertyRequest,
358
362
  OpenApiStringProperty,
359
363
  OpenApiStringPropertyRequest,
360
364
  PaginatedDocumentIndexReadList,
@@ -1037,6 +1041,7 @@ __all__ = [
1037
1041
  "OpenApiPropertyRequest_Number",
1038
1042
  "OpenApiPropertyRequest_Object",
1039
1043
  "OpenApiPropertyRequest_OneOf",
1044
+ "OpenApiPropertyRequest_Ref",
1040
1045
  "OpenApiPropertyRequest_String",
1041
1046
  "OpenApiProperty_Array",
1042
1047
  "OpenApiProperty_Boolean",
@@ -1045,7 +1050,10 @@ __all__ = [
1045
1050
  "OpenApiProperty_Number",
1046
1051
  "OpenApiProperty_Object",
1047
1052
  "OpenApiProperty_OneOf",
1053
+ "OpenApiProperty_Ref",
1048
1054
  "OpenApiProperty_String",
1055
+ "OpenApiRefProperty",
1056
+ "OpenApiRefPropertyRequest",
1049
1057
  "OpenApiStringProperty",
1050
1058
  "OpenApiStringPropertyRequest",
1051
1059
  "PaginatedDocumentIndexReadList",
@@ -18,7 +18,7 @@ class BaseClientWrapper:
18
18
  headers: typing.Dict[str, str] = {
19
19
  "X-Fern-Language": "Python",
20
20
  "X-Fern-SDK-Name": "vellum-ai",
21
- "X-Fern-SDK-Version": "0.7.9",
21
+ "X-Fern-SDK-Version": "0.7.10",
22
22
  }
23
23
  headers["X_API_KEY"] = self.api_key
24
24
  return headers
@@ -285,6 +285,8 @@ class MlModelsClient:
285
285
  self,
286
286
  id: str,
287
287
  *,
288
+ exec_config: typing.Optional[MlModelExecConfigRequest] = OMIT,
289
+ parameter_config: typing.Optional[MlModelParameterConfigRequest] = OMIT,
288
290
  display_config: typing.Optional[MlModelDisplayConfigRequest] = OMIT,
289
291
  visibility: typing.Optional[VisibilityEnum] = OMIT,
290
292
  request_options: typing.Optional[RequestOptions] = None,
@@ -297,6 +299,12 @@ class MlModelsClient:
297
299
  id : str
298
300
  Either the ML Model's ID or its unique name
299
301
 
302
+ exec_config : typing.Optional[MlModelExecConfigRequest]
303
+ Configuration for how to execute the ML Model.
304
+
305
+ parameter_config : typing.Optional[MlModelParameterConfigRequest]
306
+ Configuration for the ML Model's parameters.
307
+
300
308
  display_config : typing.Optional[MlModelDisplayConfigRequest]
301
309
  Configuration for how to display the ML Model.
302
310
 
@@ -331,7 +339,12 @@ class MlModelsClient:
331
339
  f"v1/ml-models/{jsonable_encoder(id)}",
332
340
  base_url=self._client_wrapper.get_environment().default,
333
341
  method="PUT",
334
- json={"display_config": display_config, "visibility": visibility},
342
+ json={
343
+ "exec_config": exec_config,
344
+ "parameter_config": parameter_config,
345
+ "display_config": display_config,
346
+ "visibility": visibility,
347
+ },
335
348
  request_options=request_options,
336
349
  omit=OMIT,
337
350
  )
@@ -347,6 +360,8 @@ class MlModelsClient:
347
360
  self,
348
361
  id: str,
349
362
  *,
363
+ exec_config: typing.Optional[MlModelExecConfigRequest] = OMIT,
364
+ parameter_config: typing.Optional[MlModelParameterConfigRequest] = OMIT,
350
365
  display_config: typing.Optional[MlModelDisplayConfigRequest] = OMIT,
351
366
  visibility: typing.Optional[VisibilityEnum] = OMIT,
352
367
  request_options: typing.Optional[RequestOptions] = None,
@@ -359,6 +374,12 @@ class MlModelsClient:
359
374
  id : str
360
375
  Either the ML Model's ID or its unique name
361
376
 
377
+ exec_config : typing.Optional[MlModelExecConfigRequest]
378
+ Configuration for how to execute the ML Model.
379
+
380
+ parameter_config : typing.Optional[MlModelParameterConfigRequest]
381
+ Configuration for the ML Model's parameters.
382
+
362
383
  display_config : typing.Optional[MlModelDisplayConfigRequest]
363
384
  Configuration for how to display the ML Model.
364
385
 
@@ -393,7 +414,12 @@ class MlModelsClient:
393
414
  f"v1/ml-models/{jsonable_encoder(id)}",
394
415
  base_url=self._client_wrapper.get_environment().default,
395
416
  method="PATCH",
396
- json={"display_config": display_config, "visibility": visibility},
417
+ json={
418
+ "exec_config": exec_config,
419
+ "parameter_config": parameter_config,
420
+ "display_config": display_config,
421
+ "visibility": visibility,
422
+ },
397
423
  request_options=request_options,
398
424
  omit=OMIT,
399
425
  )
@@ -693,6 +719,8 @@ class AsyncMlModelsClient:
693
719
  self,
694
720
  id: str,
695
721
  *,
722
+ exec_config: typing.Optional[MlModelExecConfigRequest] = OMIT,
723
+ parameter_config: typing.Optional[MlModelParameterConfigRequest] = OMIT,
696
724
  display_config: typing.Optional[MlModelDisplayConfigRequest] = OMIT,
697
725
  visibility: typing.Optional[VisibilityEnum] = OMIT,
698
726
  request_options: typing.Optional[RequestOptions] = None,
@@ -705,6 +733,12 @@ class AsyncMlModelsClient:
705
733
  id : str
706
734
  Either the ML Model's ID or its unique name
707
735
 
736
+ exec_config : typing.Optional[MlModelExecConfigRequest]
737
+ Configuration for how to execute the ML Model.
738
+
739
+ parameter_config : typing.Optional[MlModelParameterConfigRequest]
740
+ Configuration for the ML Model's parameters.
741
+
708
742
  display_config : typing.Optional[MlModelDisplayConfigRequest]
709
743
  Configuration for how to display the ML Model.
710
744
 
@@ -747,7 +781,12 @@ class AsyncMlModelsClient:
747
781
  f"v1/ml-models/{jsonable_encoder(id)}",
748
782
  base_url=self._client_wrapper.get_environment().default,
749
783
  method="PUT",
750
- json={"display_config": display_config, "visibility": visibility},
784
+ json={
785
+ "exec_config": exec_config,
786
+ "parameter_config": parameter_config,
787
+ "display_config": display_config,
788
+ "visibility": visibility,
789
+ },
751
790
  request_options=request_options,
752
791
  omit=OMIT,
753
792
  )
@@ -763,6 +802,8 @@ class AsyncMlModelsClient:
763
802
  self,
764
803
  id: str,
765
804
  *,
805
+ exec_config: typing.Optional[MlModelExecConfigRequest] = OMIT,
806
+ parameter_config: typing.Optional[MlModelParameterConfigRequest] = OMIT,
766
807
  display_config: typing.Optional[MlModelDisplayConfigRequest] = OMIT,
767
808
  visibility: typing.Optional[VisibilityEnum] = OMIT,
768
809
  request_options: typing.Optional[RequestOptions] = None,
@@ -775,6 +816,12 @@ class AsyncMlModelsClient:
775
816
  id : str
776
817
  Either the ML Model's ID or its unique name
777
818
 
819
+ exec_config : typing.Optional[MlModelExecConfigRequest]
820
+ Configuration for how to execute the ML Model.
821
+
822
+ parameter_config : typing.Optional[MlModelParameterConfigRequest]
823
+ Configuration for the ML Model's parameters.
824
+
778
825
  display_config : typing.Optional[MlModelDisplayConfigRequest]
779
826
  Configuration for how to display the ML Model.
780
827
 
@@ -817,7 +864,12 @@ class AsyncMlModelsClient:
817
864
  f"v1/ml-models/{jsonable_encoder(id)}",
818
865
  base_url=self._client_wrapper.get_environment().default,
819
866
  method="PATCH",
820
- json={"display_config": display_config, "visibility": visibility},
867
+ json={
868
+ "exec_config": exec_config,
869
+ "parameter_config": parameter_config,
870
+ "display_config": display_config,
871
+ "visibility": visibility,
872
+ },
821
873
  request_options=request_options,
822
874
  omit=OMIT,
823
875
  )
vellum/types/__init__.py CHANGED
@@ -399,6 +399,7 @@ from .open_api_property import (
399
399
  OpenApiProperty_Number,
400
400
  OpenApiProperty_Object,
401
401
  OpenApiProperty_OneOf,
402
+ OpenApiProperty_Ref,
402
403
  OpenApiProperty_String,
403
404
  )
404
405
  from .open_api_property_request import (
@@ -410,8 +411,11 @@ from .open_api_property_request import (
410
411
  OpenApiPropertyRequest_Number,
411
412
  OpenApiPropertyRequest_Object,
412
413
  OpenApiPropertyRequest_OneOf,
414
+ OpenApiPropertyRequest_Ref,
413
415
  OpenApiPropertyRequest_String,
414
416
  )
417
+ from .open_api_ref_property import OpenApiRefProperty
418
+ from .open_api_ref_property_request import OpenApiRefPropertyRequest
415
419
  from .open_api_string_property import OpenApiStringProperty
416
420
  from .open_api_string_property_request import OpenApiStringPropertyRequest
417
421
  from .paginated_document_index_read_list import PaginatedDocumentIndexReadList
@@ -1100,6 +1104,7 @@ __all__ = [
1100
1104
  "OpenApiPropertyRequest_Number",
1101
1105
  "OpenApiPropertyRequest_Object",
1102
1106
  "OpenApiPropertyRequest_OneOf",
1107
+ "OpenApiPropertyRequest_Ref",
1103
1108
  "OpenApiPropertyRequest_String",
1104
1109
  "OpenApiProperty_Array",
1105
1110
  "OpenApiProperty_Boolean",
@@ -1108,7 +1113,10 @@ __all__ = [
1108
1113
  "OpenApiProperty_Number",
1109
1114
  "OpenApiProperty_Object",
1110
1115
  "OpenApiProperty_OneOf",
1116
+ "OpenApiProperty_Ref",
1111
1117
  "OpenApiProperty_String",
1118
+ "OpenApiRefProperty",
1119
+ "OpenApiRefPropertyRequest",
1112
1120
  "OpenApiStringProperty",
1113
1121
  "OpenApiStringPropertyRequest",
1114
1122
  "PaginatedDocumentIndexReadList",
@@ -12,6 +12,10 @@ class MlModelDisplayConfigLabelled(pydantic_v1.BaseModel):
12
12
  label: str
13
13
  description: str
14
14
  tags: typing.List[MlModelDisplayTagEnumValueLabel]
15
+ default_display_priority: typing.Optional[float] = pydantic_v1.Field(default=None)
16
+ """
17
+ Can only be set when using an internal service token.
18
+ """
15
19
 
16
20
  def json(self, **kwargs: typing.Any) -> str:
17
21
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -12,6 +12,10 @@ class MlModelDisplayConfigRequest(pydantic_v1.BaseModel):
12
12
  label: str
13
13
  description: str
14
14
  tags: typing.List[MlModelDisplayTag]
15
+ default_display_priority: typing.Optional[float] = pydantic_v1.Field(default=None)
16
+ """
17
+ Can only be set when using an internal service token.
18
+ """
15
19
 
16
20
  def json(self, **kwargs: typing.Any) -> str:
17
21
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -16,6 +16,11 @@ class MlModelExecConfig(pydantic_v1.BaseModel):
16
16
  base_url: str
17
17
  metadata: typing.Dict[str, typing.Any]
18
18
  features: typing.List[MlModelFeature]
19
+ force_system_credentials: typing.Optional[bool] = pydantic_v1.Field(default=None)
20
+ """
21
+ Can only be set when using an internal service token.
22
+ """
23
+
19
24
  tokenizer_config: typing.Optional[MlModelTokenizerConfig] = None
20
25
  request_config: typing.Optional[MlModelRequestConfig] = None
21
26
  response_config: typing.Optional[MlModelResponseConfig] = None
@@ -16,6 +16,11 @@ class MlModelExecConfigRequest(pydantic_v1.BaseModel):
16
16
  base_url: str
17
17
  metadata: typing.Dict[str, typing.Any]
18
18
  features: typing.List[MlModelFeature]
19
+ force_system_credentials: typing.Optional[bool] = pydantic_v1.Field(default=None)
20
+ """
21
+ Can only be set when using an internal service token.
22
+ """
23
+
19
24
  tokenizer_config: typing.Optional[MlModelTokenizerConfigRequest] = None
20
25
  request_config: typing.Optional[MlModelRequestConfigRequest] = None
21
26
  response_config: typing.Optional[MlModelResponseConfigRequest] = None
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiArrayProperty(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'array'
14
+ An OpenAPI specification of a property with type 'array'
15
15
  """
16
16
 
17
17
  min_items: typing.Optional[int] = None
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiArrayPropertyRequest(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'array'
14
+ An OpenAPI specification of a property with type 'array'
15
15
  """
16
16
 
17
17
  min_items: typing.Optional[int] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiBooleanProperty(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'boolean'
12
+ An OpenAPI specification of a property with type 'boolean'
13
13
  """
14
14
 
15
15
  default: typing.Optional[bool] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiBooleanPropertyRequest(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'boolean'
12
+ An OpenAPI specification of a property with type 'boolean'
13
13
  """
14
14
 
15
15
  default: typing.Optional[bool] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiConstProperty(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'const'
12
+ An OpenAPI specification of a property with type 'const'
13
13
  """
14
14
 
15
15
  title: typing.Optional[str] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiConstPropertyRequest(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'const'
12
+ An OpenAPI specification of a property with type 'const'
13
13
  """
14
14
 
15
15
  title: typing.Optional[str] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiIntegerProperty(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'integer'
12
+ An OpenAPI specification of a property with type 'integer'
13
13
  """
14
14
 
15
15
  minimum: typing.Optional[int] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiIntegerPropertyRequest(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'integer'
12
+ An OpenAPI specification of a property with type 'integer'
13
13
  """
14
14
 
15
15
  minimum: typing.Optional[int] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiNumberProperty(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'number'
12
+ An OpenAPI specification of a property with type 'number'
13
13
  """
14
14
 
15
15
  minimum: typing.Optional[float] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiNumberPropertyRequest(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'number'
12
+ An OpenAPI specification of a property with type 'number'
13
13
  """
14
14
 
15
15
  minimum: typing.Optional[float] = None
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiObjectProperty(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'object'
14
+ An OpenAPI specification of a property with type 'object'
15
15
  """
16
16
 
17
17
  properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiProperty]]] = None
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiObjectPropertyRequest(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'object'
14
+ An OpenAPI specification of a property with type 'object'
15
15
  """
16
16
 
17
17
  properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiOneOfProperty(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'oneOf'
14
+ An OpenAPI specification of a property with type 'oneOf'
15
15
  """
16
16
 
17
17
  one_of: typing.List[OpenApiProperty] = pydantic_v1.Field(alias="oneOf")
@@ -11,7 +11,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
11
11
 
12
12
  class OpenApiOneOfPropertyRequest(pydantic_v1.BaseModel):
13
13
  """
14
- An OpenAPI specification of a parameter with type 'oneOf'
14
+ An OpenAPI specification of a property with type 'oneOf'
15
15
  """
16
16
 
17
17
  one_of: typing.List[OpenApiPropertyRequest] = pydantic_v1.Field(alias="oneOf")
@@ -239,6 +239,31 @@ class OpenApiProperty_Const(pydantic_v1.BaseModel):
239
239
  json_encoders = {dt.datetime: serialize_datetime}
240
240
 
241
241
 
242
+ class OpenApiProperty_Ref(pydantic_v1.BaseModel):
243
+ title: typing.Optional[str] = None
244
+ description: typing.Optional[str] = None
245
+ ref: str
246
+ type: typing.Literal["ref"] = "ref"
247
+
248
+ def json(self, **kwargs: typing.Any) -> str:
249
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
250
+ return super().json(**kwargs_with_defaults)
251
+
252
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
253
+ kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
254
+ kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
255
+
256
+ return deep_union_pydantic_dicts(
257
+ super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
258
+ )
259
+
260
+ class Config:
261
+ frozen = True
262
+ smart_union = True
263
+ extra = pydantic_v1.Extra.allow
264
+ json_encoders = {dt.datetime: serialize_datetime}
265
+
266
+
242
267
  OpenApiProperty = typing.Union[
243
268
  OpenApiProperty_Array,
244
269
  OpenApiProperty_Object,
@@ -248,4 +273,5 @@ OpenApiProperty = typing.Union[
248
273
  OpenApiProperty_Boolean,
249
274
  OpenApiProperty_OneOf,
250
275
  OpenApiProperty_Const,
276
+ OpenApiProperty_Ref,
251
277
  ]
@@ -239,6 +239,31 @@ class OpenApiPropertyRequest_Const(pydantic_v1.BaseModel):
239
239
  json_encoders = {dt.datetime: serialize_datetime}
240
240
 
241
241
 
242
+ class OpenApiPropertyRequest_Ref(pydantic_v1.BaseModel):
243
+ title: typing.Optional[str] = None
244
+ description: typing.Optional[str] = None
245
+ ref: str
246
+ type: typing.Literal["ref"] = "ref"
247
+
248
+ def json(self, **kwargs: typing.Any) -> str:
249
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
250
+ return super().json(**kwargs_with_defaults)
251
+
252
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
253
+ kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
254
+ kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
255
+
256
+ return deep_union_pydantic_dicts(
257
+ super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
258
+ )
259
+
260
+ class Config:
261
+ frozen = True
262
+ smart_union = True
263
+ extra = pydantic_v1.Extra.allow
264
+ json_encoders = {dt.datetime: serialize_datetime}
265
+
266
+
242
267
  OpenApiPropertyRequest = typing.Union[
243
268
  OpenApiPropertyRequest_Array,
244
269
  OpenApiPropertyRequest_Object,
@@ -248,4 +273,5 @@ OpenApiPropertyRequest = typing.Union[
248
273
  OpenApiPropertyRequest_Boolean,
249
274
  OpenApiPropertyRequest_OneOf,
250
275
  OpenApiPropertyRequest_Const,
276
+ OpenApiPropertyRequest_Ref,
251
277
  ]
@@ -0,0 +1,35 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
8
+
9
+
10
+ class OpenApiRefProperty(pydantic_v1.BaseModel):
11
+ """
12
+ An OpenAPI specification of a property that is a URI-reference to another schema
13
+ """
14
+
15
+ title: typing.Optional[str] = None
16
+ description: typing.Optional[str] = None
17
+ ref: str
18
+
19
+ def json(self, **kwargs: typing.Any) -> str:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().json(**kwargs_with_defaults)
22
+
23
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
+ kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
26
+
27
+ return deep_union_pydantic_dicts(
28
+ super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
29
+ )
30
+
31
+ class Config:
32
+ frozen = True
33
+ smart_union = True
34
+ extra = pydantic_v1.Extra.allow
35
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,35 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
8
+
9
+
10
+ class OpenApiRefPropertyRequest(pydantic_v1.BaseModel):
11
+ """
12
+ An OpenAPI specification of a property that is a URI-reference to another schema
13
+ """
14
+
15
+ title: typing.Optional[str] = None
16
+ description: typing.Optional[str] = None
17
+ ref: str
18
+
19
+ def json(self, **kwargs: typing.Any) -> str:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().json(**kwargs_with_defaults)
22
+
23
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
+ kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
26
+
27
+ return deep_union_pydantic_dicts(
28
+ super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
29
+ )
30
+
31
+ class Config:
32
+ frozen = True
33
+ smart_union = True
34
+ extra = pydantic_v1.Extra.allow
35
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiStringProperty(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'string'
12
+ An OpenAPI specification of a property with type 'string'
13
13
  """
14
14
 
15
15
  min_length: typing.Optional[int] = None
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
9
9
 
10
10
  class OpenApiStringPropertyRequest(pydantic_v1.BaseModel):
11
11
  """
12
- An OpenAPI specification of a parameter with type 'string'
12
+ An OpenAPI specification of a property with type 'string'
13
13
  """
14
14
 
15
15
  min_length: typing.Optional[int] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,8 +1,8 @@
1
- vellum/__init__.py,sha256=Y08IiuMhi07kjouldi6dHJvZRt8cwdEVSKrG0N9BzGM,49953
1
+ vellum/__init__.py,sha256=WSiaCxloCf8VJlJ03KLPJKY-YJQ4U6gfbcCWKtdlJNs,50185
2
2
  vellum/client.py,sha256=FEelOptuh8ylBnqSznSXvIUj2LWGTEPDTPrK5sgQkSE,83651
3
3
  vellum/core/__init__.py,sha256=UFXpYzcGxWQUucU1TkjOQ9mGWN3A5JohluOIWVYKU4I,973
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=TshKM4FuO_rvSDVpe6U2PLHVp7rOLUWGNlzkwbZDJcQ,1873
5
+ vellum/core/client_wrapper.py,sha256=QxEeVkCA-x_SymC6ESe3_YtByZuiPAaCI20zpkLl7oI,1874
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
8
8
  vellum/core/http_client.py,sha256=46CyqS5Y8MwWTclAXnb1z5-ODJfwfHYbyhvjhb7RY1c,18753
@@ -41,7 +41,7 @@ vellum/resources/documents/client.py,sha256=lrRR9wp5nnMnENycYm-FrWwKIy7tKrfpHQ5L
41
41
  vellum/resources/folder_entities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
42
42
  vellum/resources/folder_entities/client.py,sha256=EZ_RjrB87rPLoaqNC44Dkrhp7aWEqEqI2pm5bekMqLw,4359
43
43
  vellum/resources/ml_models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
44
- vellum/resources/ml_models/client.py,sha256=ygrjdLSoUBJIHjT4AtofxcWezx-E1pO5-tgpt4XvwvI,26644
44
+ vellum/resources/ml_models/client.py,sha256=HB0Zto_rnewdLsu9LHjPv5AH-mitcAVWsPCWJxB9e4o,28856
45
45
  vellum/resources/sandboxes/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
46
46
  vellum/resources/sandboxes/client.py,sha256=Vn80xkXWKZ8llBQSSoSqs9NU62mP1BBpNxgRBpDdLy8,15204
47
47
  vellum/resources/test_suite_runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -65,7 +65,7 @@ vellum/terraform/ml_model/__init__.py,sha256=I8h1Ru-Rb-Hi_HusK6G7nJQZEKQGsAAHMmw
65
65
  vellum/terraform/provider/__init__.py,sha256=-06xKmAmknpohVzw5TD-t1bnUHta8OrQYqvMd04XM-U,12684
66
66
  vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
67
67
  vellum/terraform/versions.json,sha256=45c7jjRD5i4w9DJQHs5ZqLLVXRnQwP9Rirq3mWY-xEo,56
68
- vellum/types/__init__.py,sha256=74SSEdsGGOEXMsJZJwqRExTDFUxadMjmPdS_YpK5710,66645
68
+ vellum/types/__init__.py,sha256=wmq6GHqA4E4NXuAfsDVu6d__t89XMWE6gknyRz2Fr4k,66945
69
69
  vellum/types/add_openai_api_key_enum.py,sha256=GB7sLK_Ou7-Xn73sKJHUo6Gx3TjyhU7uJvWZAg4UeaI,92
70
70
  vellum/types/api_node_result.py,sha256=H25_pCtZ9xT6GTbQG1Gae89yjK-45yKipSLNqfc2PTk,1246
71
71
  vellum/types/api_node_result_data.py,sha256=1MIuC_rN_4ul7PQVWPbQySrLKzwwVb5sjXO6G6v13z4,1424
@@ -198,12 +198,12 @@ vellum/types/metadata_filter_rule_request.py,sha256=wmavl7ehQ-7KuLLV8oR8G_yOwYNB
198
198
  vellum/types/metric_node_result.py,sha256=6svCJQnyc5X8W-LBWHe5tRGnH3mmpVIwJiIFYrBSu8U,1170
199
199
  vellum/types/ml_model_developer.py,sha256=W7-VLqym4IJ_ZokaHjItz3RTo8SSmjJ3c1CLxMrRUnc,509
200
200
  vellum/types/ml_model_developer_enum_value_label.py,sha256=cfkbgrS3oJuhhIPQmWBOqqs7U6FYt6iWN2jtCXz8zWE,1208
201
- vellum/types/ml_model_display_config_labelled.py,sha256=SleUaRCUTc3nFAqU6R8UOOzR2J4RusTVJtPLj6clAVE,1288
202
- vellum/types/ml_model_display_config_request.py,sha256=WfPdaLzX0X0w4V-3hQ1A8JOuej1mqsevEzkj8pW-ry4,1242
201
+ vellum/types/ml_model_display_config_labelled.py,sha256=8NYOmt0L0Lc8YBmEhdjmWHD_FZjGE8MHsPVWjoPrBNo,1449
202
+ vellum/types/ml_model_display_config_request.py,sha256=QZbFrQIg8c9ULt8uwxa9aMiBxKwSxIA7CFVFx9i61Cc,1403
203
203
  vellum/types/ml_model_display_tag.py,sha256=mvxWDmFB7nxMiO9f9XEueWoXL3YmkPfqvroDVzVXNyE,229
204
204
  vellum/types/ml_model_display_tag_enum_value_label.py,sha256=r8_Nxz3TOBcEhWmVVgCbrI0h2x85Q8RsGA-TLZOBBe0,1213
205
- vellum/types/ml_model_exec_config.py,sha256=bZiGQ2XQ2M67eJHzOM9wZIE3oq2Mee9B-9InNj5-Ew4,1658
206
- vellum/types/ml_model_exec_config_request.py,sha256=Fy5nGCj7zXCnB6N1fs0cmdRCRV_hvYYNzS2NMXH47jE,1731
205
+ vellum/types/ml_model_exec_config.py,sha256=tLvKERlF034VgkUS02MKZ5DyAE6MkcLPx3jMnCWjlcg,1819
206
+ vellum/types/ml_model_exec_config_request.py,sha256=6q5cCMwoWI9_uXAtVoff0R-Nan4Mc_q7cuqm8Y5JV8M,1892
207
207
  vellum/types/ml_model_family.py,sha256=96a6cigZeoGoM4VLvwvSmIKnEVBAI8RsW7xaS3EZZDI,513
208
208
  vellum/types/ml_model_family_enum_value_label.py,sha256=ldXOZN0ZV277Q9qSjli3kJJ47ozzDe50d1DanB_l9v4,1196
209
209
  vellum/types/ml_model_feature.py,sha256=s3DTCKk5m8MBdVV4-gHGe3Oj4B38fS6I1LLj8pps4Lo,441
@@ -273,24 +273,26 @@ vellum/types/open_ai_vectorizer_text_embedding_3_small.py,sha256=KQB1peq6UW_Mh_8
273
273
  vellum/types/open_ai_vectorizer_text_embedding_3_small_request.py,sha256=vYL0Od7bEiCdoTgNatr0ilu1DHJiW_1hFVNdPWzaXHQ,1314
274
274
  vellum/types/open_ai_vectorizer_text_embedding_ada_002.py,sha256=Emh6qBhrfIKthnnmiv5MrGMvEnK-S1hF7ZyxL3o5ho4,1285
275
275
  vellum/types/open_ai_vectorizer_text_embedding_ada_002_request.py,sha256=X5159JwHZVtuoifSImStj-cVVpgsXeUu_NahL9SHLV8,1314
276
- vellum/types/open_api_array_property.py,sha256=kJtt-e74htQ7mY6b8pFc0Y-0AQNtnf4ysemO5-QsKlI,1850
277
- vellum/types/open_api_array_property_request.py,sha256=NDeVS8NDc_kMK-KmvLZZHqGNcfZ1OVo356xNBRZVewY,1900
278
- vellum/types/open_api_boolean_property.py,sha256=iUSyWfNUFBLKJTdq6lYtVJ6elyzR4R-CNp4KzY20cKk,1315
279
- vellum/types/open_api_boolean_property_request.py,sha256=iigM_229G5PTtDAQphzvHz4lVVAGMAhW-Mk5iVuBIxI,1322
280
- vellum/types/open_api_const_property.py,sha256=eBFMgzI7WSMb6RvAqRwHEQCPMGJu51Rq16RkIBtBSnc,1284
281
- vellum/types/open_api_const_property_request.py,sha256=ViW88FXXkLuB6GKMReXuu0mreEkJHQc-_j-GMf3RF-g,1291
282
- vellum/types/open_api_integer_property.py,sha256=QoOjTGCVtY_L7FBUp7-8a8TiuFGfIc9v9kzz3vAO1Gw,1500
283
- vellum/types/open_api_integer_property_request.py,sha256=ueOKEv98S0O7TIg5Fmjgq29RAiWVjxyjX88vgLQQQe8,1507
284
- vellum/types/open_api_number_property.py,sha256=J8icyoEW8ejnZvKQNic6oPhvVjCYWi_LN4n4-cVC71Y,1544
285
- vellum/types/open_api_number_property_request.py,sha256=RlrjiCXYQ-oDjtsC9AfAC28G2VfQcLkpyzFCVtL7Z-Q,1551
286
- vellum/types/open_api_object_property.py,sha256=tpDiRf0TTrFvJLNfgiGhfUA6fbUJg2cIgkzb1ex4aws,1949
287
- vellum/types/open_api_object_property_request.py,sha256=NGCLBRCfXBB5u7_RgJlpjPaZtzuZhpT0ca-j0ZSS28I,2006
288
- vellum/types/open_api_one_of_property.py,sha256=9ZESth_rArcwHtf1LbBQX-20yuLJJAdwcQ4foFlxpFA,1566
289
- vellum/types/open_api_one_of_property_request.py,sha256=owOoM1p2tl4JNLrKV1NfDGvILypRs8sdMzPZtI38hA8,1602
290
- vellum/types/open_api_property.py,sha256=GBXQwwyrFIIuMyNwy6qazcAeLL0qPnoVUzSHKXXozAw,10465
291
- vellum/types/open_api_property_request.py,sha256=2efWKDVm4MzG-QttSNHJbkKnDWAfr8pX1tU_MWMHLec,10640
292
- vellum/types/open_api_string_property.py,sha256=PUPglBSu_wPqz1mUZDQjjgl3UWfb---vgIHGjOfxgH8,1481
293
- vellum/types/open_api_string_property_request.py,sha256=ippb-dGSh74LDPqgbhK_3juCVCXmoDvL00jkMuFJkhU,1488
276
+ vellum/types/open_api_array_property.py,sha256=SY2l1tJ1USQxp25cxeGxUKjm1XvZFPQq5knzPVT6HK8,1849
277
+ vellum/types/open_api_array_property_request.py,sha256=GJ_JvSoSMFcosX57bnRZgxDXmlopHQGo6gxR-941OT0,1899
278
+ vellum/types/open_api_boolean_property.py,sha256=Z5eP7po3_Y_AFOhYyVF_nbionh5rU_m8QHdBUYfYoI8,1314
279
+ vellum/types/open_api_boolean_property_request.py,sha256=RdUHvHGjyVPqlorJwcckr8qrzzu0W2DyrS9DqIz_nbU,1321
280
+ vellum/types/open_api_const_property.py,sha256=SFVp5YtJjEm6W7TD8bC0k3kLtyqRV5wqeU76wHAa05s,1283
281
+ vellum/types/open_api_const_property_request.py,sha256=7saue0PIBVFCcP-AeXoynazOPaeuB9FkuQGkXTVLZQ4,1290
282
+ vellum/types/open_api_integer_property.py,sha256=efNgsXqr8BmNBONTmcmGSwWc9cmdlcebbLkx6RHaPKI,1499
283
+ vellum/types/open_api_integer_property_request.py,sha256=wVNoySSg77RtdpvEeWZE9Bj6762VCguC1nfHSXihxdA,1506
284
+ vellum/types/open_api_number_property.py,sha256=WMTQRT_M1QWA9TPiBwyA0WvPaEnPONlSD7UTEd0fsLg,1543
285
+ vellum/types/open_api_number_property_request.py,sha256=nd6JChsuY1b6YJtv9XoGUY1_FImGDxU2-HZbqjXKjSc,1550
286
+ vellum/types/open_api_object_property.py,sha256=YXciDNQpeyPg-zRVYXZI1DS6jJo4jIxogIStgMJUjfA,1948
287
+ vellum/types/open_api_object_property_request.py,sha256=KXvT4xYC7gcmj9qSPdzmtrDPt2czJkkHgsIXjFbHLHc,2005
288
+ vellum/types/open_api_one_of_property.py,sha256=jSLLY-nXRkY3AcDy5pbpnfB0IekdtFdeR9laXIsEJd4,1565
289
+ vellum/types/open_api_one_of_property_request.py,sha256=H-r2PYcgLNrXKgv5aunsd35bTmISqg3Y_lDyHZaWgBQ,1601
290
+ vellum/types/open_api_property.py,sha256=9ZGTfCautNzT1jOMe03PRxkywvZpbuq9Q3Q4poNf6PM,11500
291
+ vellum/types/open_api_property_request.py,sha256=bMRmFensolc9A8_diaHUAztMlhNEZgQ836Bp8ikBDMk,11689
292
+ vellum/types/open_api_ref_property.py,sha256=e2b3a2zPTA1MRrm6fVYSerZlwtagoECqnOqCarixsCs,1303
293
+ vellum/types/open_api_ref_property_request.py,sha256=v2nzMLxyxdnjLxEAfBaNUALnd-oCkegzNt7kJdM-R8I,1310
294
+ vellum/types/open_api_string_property.py,sha256=GGbug7AmyoUO6qcw3DrXorw1bwAT5EjI7mh59r1b07M,1480
295
+ vellum/types/open_api_string_property_request.py,sha256=fQ7jckHjjZak3pYHhNKD8ezIlXfm7IYoNrsddEr3yiE,1487
294
296
  vellum/types/paginated_document_index_read_list.py,sha256=5VvTenBN6VtwoT0f0NrKSarhJT1hBl_lOBVExWMtGgQ,1354
295
297
  vellum/types/paginated_ml_model_read_list.py,sha256=zgNxt2XdS8-NOqJWLuhJB0-VKU_oCxgFRxaDcQCSx9I,1330
296
298
  vellum/types/paginated_slim_deployment_read_list.py,sha256=Fdc65RHA1vsIKES80K2VZryxa6V663WVequZqjwno_4,1358
@@ -498,7 +500,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=_C4ueKK8
498
500
  vellum/types/workflow_result_event_output_data_string.py,sha256=AAWHZT3X9HOIRA3UuIqw0VpfSGwGemsJM71WDNbWYTc,1745
499
501
  vellum/types/workflow_stream_event.py,sha256=5K-Mtn9fvJDq8m5nhURDbChL01PXIiuIZDkfAC1d6fU,2610
500
502
  vellum/version.py,sha256=neLt8HBHHUtDF9M5fsyUzHT-pKooEPvceaLDqqIGb0s,77
501
- vellum_ai-0.7.9.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
502
- vellum_ai-0.7.9.dist-info/METADATA,sha256=kCzrQ7GtPq0wmvCuxb56RWUg3DrSvORC8gvPUJZyB1o,4398
503
- vellum_ai-0.7.9.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
504
- vellum_ai-0.7.9.dist-info/RECORD,,
503
+ vellum_ai-0.7.10.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
504
+ vellum_ai-0.7.10.dist-info/METADATA,sha256=YOJMr6C9gKrN8iGQkmbUkHVcRH1IX8W4E5nyHGeMLZc,4399
505
+ vellum_ai-0.7.10.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
506
+ vellum_ai-0.7.10.dist-info/RECORD,,