vellum-ai 0.7.2__py3-none-any.whl → 0.7.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
vellum/__init__.py CHANGED
@@ -76,6 +76,8 @@ from .types import (
76
76
  CodeExecutionNodeResultOutput_String,
77
77
  CodeExecutionNodeSearchResultsResult,
78
78
  CodeExecutionNodeStringResult,
79
+ CompilePromptDeploymentExpandMetaRequest,
80
+ CompilePromptMeta,
79
81
  ConditionalNodeResult,
80
82
  ConditionalNodeResultData,
81
83
  CreateEnum,
@@ -734,6 +736,8 @@ __all__ = [
734
736
  "CodeExecutionNodeResultOutput_String",
735
737
  "CodeExecutionNodeSearchResultsResult",
736
738
  "CodeExecutionNodeStringResult",
739
+ "CompilePromptDeploymentExpandMetaRequest",
740
+ "CompilePromptMeta",
737
741
  "ConditionalNodeResult",
738
742
  "ConditionalNodeResultData",
739
743
  "CreateEnum",
@@ -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.2",
21
+ "X-Fern-SDK-Version": "0.7.3",
22
22
  }
23
23
  headers["X_API_KEY"] = self.api_key
24
24
  return headers
@@ -14,6 +14,7 @@ from ...errors.bad_request_error import BadRequestError
14
14
  from ...errors.forbidden_error import ForbiddenError
15
15
  from ...errors.internal_server_error import InternalServerError
16
16
  from ...errors.not_found_error import NotFoundError
17
+ from ...types.compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
17
18
  from ...types.deployment_provider_payload_response import DeploymentProviderPayloadResponse
18
19
  from ...types.deployment_read import DeploymentRead
19
20
  from ...types.deployment_release_tag_read import DeploymentReleaseTagRead
@@ -276,6 +277,7 @@ class DeploymentsClient:
276
277
  deployment_name: typing.Optional[str] = OMIT,
277
278
  inputs: typing.Sequence[PromptDeploymentInputRequest],
278
279
  release_tag: typing.Optional[str] = OMIT,
280
+ expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest] = OMIT,
279
281
  request_options: typing.Optional[RequestOptions] = None,
280
282
  ) -> DeploymentProviderPayloadResponse:
281
283
  """
@@ -288,6 +290,8 @@ class DeploymentsClient:
288
290
 
289
291
  - release_tag: typing.Optional[str]. Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
290
292
 
293
+ - expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest].
294
+
291
295
  - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
292
296
  ---
293
297
  from vellum.client import Vellum
@@ -306,6 +310,8 @@ class DeploymentsClient:
306
310
  _request["deployment_name"] = deployment_name
307
311
  if release_tag is not OMIT:
308
312
  _request["release_tag"] = release_tag
313
+ if expand_meta is not OMIT:
314
+ _request["expand_meta"] = expand_meta
309
315
  _response = self._client_wrapper.httpx_client.request(
310
316
  method="POST",
311
317
  url=urllib.parse.urljoin(
@@ -602,6 +608,7 @@ class AsyncDeploymentsClient:
602
608
  deployment_name: typing.Optional[str] = OMIT,
603
609
  inputs: typing.Sequence[PromptDeploymentInputRequest],
604
610
  release_tag: typing.Optional[str] = OMIT,
611
+ expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest] = OMIT,
605
612
  request_options: typing.Optional[RequestOptions] = None,
606
613
  ) -> DeploymentProviderPayloadResponse:
607
614
  """
@@ -614,6 +621,8 @@ class AsyncDeploymentsClient:
614
621
 
615
622
  - release_tag: typing.Optional[str]. Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
616
623
 
624
+ - expand_meta: typing.Optional[CompilePromptDeploymentExpandMetaRequest].
625
+
617
626
  - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
618
627
  ---
619
628
  from vellum.client import AsyncVellum
@@ -632,6 +641,8 @@ class AsyncDeploymentsClient:
632
641
  _request["deployment_name"] = deployment_name
633
642
  if release_tag is not OMIT:
634
643
  _request["release_tag"] = release_tag
644
+ if expand_meta is not OMIT:
645
+ _request["expand_meta"] = expand_meta
635
646
  _response = await self._client_wrapper.httpx_client.request(
636
647
  method="POST",
637
648
  url=urllib.parse.urljoin(
vellum/types/__init__.py CHANGED
@@ -99,6 +99,8 @@ from .code_execution_node_result_output import (
99
99
  )
100
100
  from .code_execution_node_search_results_result import CodeExecutionNodeSearchResultsResult
101
101
  from .code_execution_node_string_result import CodeExecutionNodeStringResult
102
+ from .compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
103
+ from .compile_prompt_meta import CompilePromptMeta
102
104
  from .conditional_node_result import ConditionalNodeResult
103
105
  from .conditional_node_result_data import ConditionalNodeResultData
104
106
  from .create_enum import CreateEnum
@@ -798,6 +800,8 @@ __all__ = [
798
800
  "CodeExecutionNodeResultOutput_String",
799
801
  "CodeExecutionNodeSearchResultsResult",
800
802
  "CodeExecutionNodeStringResult",
803
+ "CompilePromptDeploymentExpandMetaRequest",
804
+ "CompilePromptMeta",
801
805
  "ConditionalNodeResult",
802
806
  "ConditionalNodeResultData",
803
807
  "CreateEnum",
@@ -0,0 +1,38 @@
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 pydantic_v1
8
+
9
+
10
+ class CompilePromptDeploymentExpandMetaRequest(pydantic_v1.BaseModel):
11
+ model_name: typing.Optional[bool] = pydantic_v1.Field(default=None)
12
+ """
13
+ If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt.
14
+ """
15
+
16
+ deployment_release_tag: typing.Optional[bool] = pydantic_v1.Field(default=None)
17
+ """
18
+ If enabled, the response will include the release tag of the Prompt Deployment.
19
+ """
20
+
21
+ prompt_version_id: typing.Optional[bool] = pydantic_v1.Field(default=None)
22
+ """
23
+ If enabled, the response will include the ID of the Prompt Version backing the deployment.
24
+ """
25
+
26
+ def json(self, **kwargs: typing.Any) -> str:
27
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
+ return super().json(**kwargs_with_defaults)
29
+
30
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
+ return super().dict(**kwargs_with_defaults)
33
+
34
+ class Config:
35
+ frozen = True
36
+ smart_union = True
37
+ extra = pydantic_v1.Extra.allow
38
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,31 @@
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 pydantic_v1
8
+
9
+
10
+ class CompilePromptMeta(pydantic_v1.BaseModel):
11
+ """
12
+ The subset of the metadata tracked by Vellum during Prompt Deployment compilation that the request opted into with `expand_meta`.
13
+ """
14
+
15
+ model_name: typing.Optional[str] = None
16
+ deployment_release_tag: typing.Optional[str] = None
17
+ prompt_version_id: typing.Optional[str] = None
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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ return super().dict(**kwargs_with_defaults)
26
+
27
+ class Config:
28
+ frozen = True
29
+ smart_union = True
30
+ extra = pydantic_v1.Extra.allow
31
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -5,11 +5,13 @@ import typing
5
5
 
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
  from ..core.pydantic_utilities import pydantic_v1
8
+ from .compile_prompt_meta import CompilePromptMeta
8
9
  from .deployment_provider_payload_response_payload import DeploymentProviderPayloadResponsePayload
9
10
 
10
11
 
11
12
  class DeploymentProviderPayloadResponse(pydantic_v1.BaseModel):
12
13
  payload: DeploymentProviderPayloadResponsePayload
14
+ meta: typing.Optional[CompilePromptMeta] = None
13
15
 
14
16
  def json(self, **kwargs: typing.Any) -> str:
15
17
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,8 +1,8 @@
1
- vellum/__init__.py,sha256=NeNNbUP3-lOs1TT9Kj8W9ARH06wIHl1Bn7hxx5kdVZg,47755
1
+ vellum/__init__.py,sha256=rIWJOrL92yjgdD7LvFC2j2WhlCe0IeWFyRkNUyv-IO8,47897
2
2
  vellum/client.py,sha256=Go36j4cYimrlAZ_k_jZe9pE56pJZKJukwuixq7lngso,102237
3
3
  vellum/core/__init__.py,sha256=1pNSKkwyQvMl_F0wohBqmoQAITptg3zlvCwsoSSzy7c,853
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=NjqwHHAMtMbEEPLtsMmBkvF2S95VQfRWs94jdu6TgLk,1697
5
+ vellum/core/client_wrapper.py,sha256=psuDNoW8kHKhxBiyKsygUleQggJMYaK9CJlbk9eZjiY,1697
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=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
@@ -28,7 +28,7 @@ vellum/lib/utils/paginator.py,sha256=yDvgehocYBDclLt5SewZH4hCIyq0yLHdBzkyPCoYPjs
28
28
  vellum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  vellum/resources/__init__.py,sha256=K9Pl_nZ5i7-cdT-rzttq8bZxustkIxPjDhcDEitCLoA,780
30
30
  vellum/resources/deployments/__init__.py,sha256=AE0TcFwLrLBljM0ZDX-pPw4Kqt-1f5JDpIok2HS80QI,157
31
- vellum/resources/deployments/client.py,sha256=p-n2k6RQIwNBDm9dU-wE6pI0kRhNjQiARBeQYWX9wuM,30612
31
+ vellum/resources/deployments/client.py,sha256=wsKy1SXcr1Lt-e0ms7IyA4SXAzqnmusM2LTBnrTeD1I,31240
32
32
  vellum/resources/deployments/types/__init__.py,sha256=IhwnmoXJ0r_QEhh1b2tBcaAm_x3fWMVuIhYmAapp_ZA,183
33
33
  vellum/resources/deployments/types/deployments_list_request_status.py,sha256=CxlQD16KZXme7x31YYCe_3aAgEueutDTeJo5A4Au-aU,174
34
34
  vellum/resources/document_indexes/__init__.py,sha256=YpOl_9IV7xOlH4OmusQxtAJB11kxQfCSMDyT1_UD0oM,165
@@ -60,7 +60,7 @@ vellum/terraform/document_index/__init__.py,sha256=qq2zENI22bUvqGk_a1lmsoTr5O_xC
60
60
  vellum/terraform/provider/__init__.py,sha256=K1yLlTZkYBxhD4bhUV1v23hxDGgbfsAIGsSyeB54dNQ,10298
61
61
  vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
62
62
  vellum/terraform/versions.json,sha256=STW6Mg3BKDacFmbWHXziHxE90GWncZf4AIzCLiXm_7o,56
63
- vellum/types/__init__.py,sha256=9eP-kNmjOF5ETQfu8adSu3bMr0S60tjJALH3zgzwoWs,64070
63
+ vellum/types/__init__.py,sha256=euLAWtWd419o4Aev3JfzcF36pl3FcPJisvj0A0joGJA,64294
64
64
  vellum/types/add_openai_api_key_enum.py,sha256=GB7sLK_Ou7-Xn73sKJHUo6Gx3TjyhU7uJvWZAg4UeaI,92
65
65
  vellum/types/api_node_result.py,sha256=SvYIi1T-N_P3FVjzv9I91PaCT0IN958A3easp5Q7jqE,983
66
66
  vellum/types/api_node_result_data.py,sha256=KFBmmizcEg73GwQMXUtEdJ4e9YGFpRLYAnalwxIcDug,1161
@@ -96,6 +96,8 @@ vellum/types/code_execution_node_result_data.py,sha256=mQ3I1kKh7UeZjKfxlZ5W3Uhk3
96
96
  vellum/types/code_execution_node_result_output.py,sha256=JlqgCO5Og1fo_fHgrn5Dq-g8UfYBaamaHw_xdyDAhNQ,3377
97
97
  vellum/types/code_execution_node_search_results_result.py,sha256=sX2alyDbwH6M8X-LZLJZMgiS2otjJMFpv0KTItGli5I,972
98
98
  vellum/types/code_execution_node_string_result.py,sha256=w_FeNnHyjpc-bjXPKBxHywO6lLszNGqia9xgYInIs0w,903
99
+ vellum/types/compile_prompt_deployment_expand_meta_request.py,sha256=flkepAeBAEPRW6Z-Shr8A__zdhuHYSw2f7398WRnn3Y,1439
100
+ vellum/types/compile_prompt_meta.py,sha256=Xil3NW1lJuNdW7ha2d7FfzcMfxFLjnjd1vPCTpKVsqM,1142
99
101
  vellum/types/conditional_node_result.py,sha256=mR8FHOnTwLDO8U5uVNB2SkDrJSDRkcyLqXPSSL8Dil4,1022
100
102
  vellum/types/conditional_node_result_data.py,sha256=BoSK8B_qDx-CztZw5qwl2Gk0Ow56gifNu2Ahg-P15iE,898
101
103
  vellum/types/create_enum.py,sha256=38jp66mStym6pDxoXS4z6y7bfArh1jgjjV8xgf4KBBw,118
@@ -103,7 +105,7 @@ vellum/types/create_test_suite_test_case_request.py,sha256=10jAv5EDKNFcS42q_oggc
103
105
  vellum/types/created_enum.py,sha256=_dfKJhEenYcIUYY1uKQuq1uNS3k9HbPGCxXnW-Tu5uo,120
104
106
  vellum/types/delete_enum.py,sha256=g6Rnc2pbgXkEbqhG0Bx1z-ZGr4DMkb8QK8du9dQQcpQ,118
105
107
  vellum/types/deleted_enum.py,sha256=F7VTcnxIkXrwyQr5CjGikBbCnlo6To_rP0pibWm-ioo,120
106
- vellum/types/deployment_provider_payload_response.py,sha256=Y1gNhvAKlreRXchZZpX_5QHCu9Tbs887E6_Ghs3Dlbg,1009
108
+ vellum/types/deployment_provider_payload_response.py,sha256=Isu9eqW0ScdyMmuuK4Y15h_HGPccsIHqY_7K7ZLmBlo,1112
107
109
  vellum/types/deployment_provider_payload_response_payload.py,sha256=Jpu_z0WZ0Uu0Xu5h77GrNNAjP1R8pn4K-aHJPqk8c50,171
108
110
  vellum/types/deployment_read.py,sha256=Ob9ArdqKJb5vjRx26hX_iOnPF2MwtBYxB5xx2LVNbEk,2100
109
111
  vellum/types/deployment_release_tag_deployment_history_item.py,sha256=997C-J0NOEvOm7Y_dyyaqYvKMIEHCDj0JEpAcmOjOEQ,903
@@ -488,7 +490,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=gazaUrC5
488
490
  vellum/types/workflow_result_event_output_data_string.py,sha256=aVWIIGbLj4TJJhTTj6WzhbYXQkcZatKuhhNy8UYwXbw,1482
489
491
  vellum/types/workflow_stream_event.py,sha256=KA6Bkk_XA6AIPWR-1vKnwF1A8l_Bm5y0arQCWWWRpsk,911
490
492
  vellum/version.py,sha256=neLt8HBHHUtDF9M5fsyUzHT-pKooEPvceaLDqqIGb0s,77
491
- vellum_ai-0.7.2.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
492
- vellum_ai-0.7.2.dist-info/METADATA,sha256=b-QWLFz6tkU0EO2E-ZmEpoB7xFRJPwHgFbO0KfGv0sw,3872
493
- vellum_ai-0.7.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
494
- vellum_ai-0.7.2.dist-info/RECORD,,
493
+ vellum_ai-0.7.3.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
494
+ vellum_ai-0.7.3.dist-info/METADATA,sha256=1HTODOr4j6vufjMxOf6FzGVUXLeJfA-ipi4n_UupRUA,3872
495
+ vellum_ai-0.7.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
496
+ vellum_ai-0.7.3.dist-info/RECORD,,