vellum-ai 0.8.25__py3-none-any.whl → 0.8.27__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.
vellum/__init__.py CHANGED
@@ -262,6 +262,7 @@ from .types import (
262
262
  PromptRequestInputRequest,
263
263
  PromptRequestJsonInputRequest,
264
264
  PromptRequestStringInputRequest,
265
+ PromptSettingsRequest,
265
266
  RawPromptExecutionOverridesRequest,
266
267
  ReductoChunkerConfig,
267
268
  ReductoChunkerConfigRequest,
@@ -299,6 +300,7 @@ from .types import (
299
300
  SearchResultsVellumValue,
300
301
  SearchResultsVellumValueRequest,
301
302
  SearchWeightsRequest,
303
+ SecretTypeEnum,
302
304
  SentenceChunkerConfig,
303
305
  SentenceChunkerConfigRequest,
304
306
  SentenceChunking,
@@ -446,6 +448,8 @@ from .types import (
446
448
  WorkflowOutputNumber,
447
449
  WorkflowOutputSearchResults,
448
450
  WorkflowOutputString,
451
+ WorkflowPushExecConfig,
452
+ WorkflowPushResponse,
449
453
  WorkflowReleaseTagRead,
450
454
  WorkflowReleaseTagWorkflowDeploymentHistoryItem,
451
455
  WorkflowRequestChatHistoryInputRequest,
@@ -464,6 +468,7 @@ from .types import (
464
468
  WorkflowResultEventOutputDataSearchResults,
465
469
  WorkflowResultEventOutputDataString,
466
470
  WorkflowStreamEvent,
471
+ WorkspaceSecretRead,
467
472
  )
468
473
  from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError
469
474
  from .resources import (
@@ -482,6 +487,8 @@ from .resources import (
482
487
  test_suites,
483
488
  workflow_deployments,
484
489
  workflow_sandboxes,
490
+ workflows,
491
+ workspace_secrets,
485
492
  )
486
493
  from .client import AsyncVellum, Vellum
487
494
  from .environment import VellumEnvironment
@@ -757,6 +764,7 @@ __all__ = [
757
764
  "PromptRequestInputRequest",
758
765
  "PromptRequestJsonInputRequest",
759
766
  "PromptRequestStringInputRequest",
767
+ "PromptSettingsRequest",
760
768
  "RawPromptExecutionOverridesRequest",
761
769
  "ReductoChunkerConfig",
762
770
  "ReductoChunkerConfigRequest",
@@ -794,6 +802,7 @@ __all__ = [
794
802
  "SearchResultsVellumValue",
795
803
  "SearchResultsVellumValueRequest",
796
804
  "SearchWeightsRequest",
805
+ "SecretTypeEnum",
797
806
  "SentenceChunkerConfig",
798
807
  "SentenceChunkerConfigRequest",
799
808
  "SentenceChunking",
@@ -944,6 +953,8 @@ __all__ = [
944
953
  "WorkflowOutputNumber",
945
954
  "WorkflowOutputSearchResults",
946
955
  "WorkflowOutputString",
956
+ "WorkflowPushExecConfig",
957
+ "WorkflowPushResponse",
947
958
  "WorkflowReleaseTagRead",
948
959
  "WorkflowReleaseTagWorkflowDeploymentHistoryItem",
949
960
  "WorkflowRequestChatHistoryInputRequest",
@@ -962,6 +973,7 @@ __all__ = [
962
973
  "WorkflowResultEventOutputDataSearchResults",
963
974
  "WorkflowResultEventOutputDataString",
964
975
  "WorkflowStreamEvent",
976
+ "WorkspaceSecretRead",
965
977
  "__version__",
966
978
  "ad_hoc",
967
979
  "deployments",
@@ -974,4 +986,6 @@ __all__ = [
974
986
  "test_suites",
975
987
  "workflow_deployments",
976
988
  "workflow_sandboxes",
989
+ "workflows",
990
+ "workspace_secrets",
977
991
  ]
vellum/client.py CHANGED
@@ -15,6 +15,8 @@ from .resources.test_suite_runs.client import TestSuiteRunsClient
15
15
  from .resources.test_suites.client import TestSuitesClient
16
16
  from .resources.workflow_deployments.client import WorkflowDeploymentsClient
17
17
  from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
18
+ from .resources.workflows.client import WorkflowsClient
19
+ from .resources.workspace_secrets.client import WorkspaceSecretsClient
18
20
  from .types.code_execution_runtime import CodeExecutionRuntime
19
21
  from .types.code_executor_input_request import CodeExecutorInputRequest
20
22
  from .types.code_execution_package_request import CodeExecutionPackageRequest
@@ -60,6 +62,8 @@ from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
60
62
  from .resources.test_suites.client import AsyncTestSuitesClient
61
63
  from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient
62
64
  from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
65
+ from .resources.workflows.client import AsyncWorkflowsClient
66
+ from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
63
67
 
64
68
  # this is used as the default value for optional parameters
65
69
  OMIT = typing.cast(typing.Any, ...)
@@ -130,6 +134,8 @@ class Vellum:
130
134
  self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
131
135
  self.workflow_deployments = WorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
132
136
  self.workflow_sandboxes = WorkflowSandboxesClient(client_wrapper=self._client_wrapper)
137
+ self.workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
138
+ self.workspace_secrets = WorkspaceSecretsClient(client_wrapper=self._client_wrapper)
133
139
 
134
140
  def execute_code(
135
141
  self,
@@ -1446,6 +1452,8 @@ class AsyncVellum:
1446
1452
  self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
1447
1453
  self.workflow_deployments = AsyncWorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
1448
1454
  self.workflow_sandboxes = AsyncWorkflowSandboxesClient(client_wrapper=self._client_wrapper)
1455
+ self.workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
1456
+ self.workspace_secrets = AsyncWorkspaceSecretsClient(client_wrapper=self._client_wrapper)
1449
1457
 
1450
1458
  async def execute_code(
1451
1459
  self,
@@ -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.25",
20
+ "X-Fern-SDK-Version": "0.8.27",
21
21
  }
22
22
  headers["X_API_KEY"] = self.api_key
23
23
  return headers
@@ -12,6 +12,8 @@ from . import (
12
12
  test_suites,
13
13
  workflow_deployments,
14
14
  workflow_sandboxes,
15
+ workflows,
16
+ workspace_secrets,
15
17
  )
16
18
  from .deployments import DeploymentsListRequestStatus
17
19
  from .document_indexes import DocumentIndexesListRequestStatus
@@ -34,4 +36,6 @@ __all__ = [
34
36
  "test_suites",
35
37
  "workflow_deployments",
36
38
  "workflow_sandboxes",
39
+ "workflows",
40
+ "workspace_secrets",
37
41
  ]
@@ -6,6 +6,7 @@ from ...types.prompt_request_input_request import PromptRequestInputRequest
6
6
  from ...types.vellum_variable_request import VellumVariableRequest
7
7
  from ...types.prompt_parameters_request import PromptParametersRequest
8
8
  from ...types.prompt_block_request import PromptBlockRequest
9
+ from ...types.prompt_settings_request import PromptSettingsRequest
9
10
  from ...types.ad_hoc_expand_meta_request import AdHocExpandMetaRequest
10
11
  from ...core.request_options import RequestOptions
11
12
  from ...types.ad_hoc_execute_prompt_event import AdHocExecutePromptEvent
@@ -35,6 +36,7 @@ class AdHocClient:
35
36
  input_variables: typing.Sequence[VellumVariableRequest],
36
37
  parameters: PromptParametersRequest,
37
38
  blocks: typing.Sequence[PromptBlockRequest],
39
+ settings: typing.Optional[PromptSettingsRequest] = OMIT,
38
40
  expand_meta: typing.Optional[AdHocExpandMetaRequest] = OMIT,
39
41
  request_options: typing.Optional[RequestOptions] = None,
40
42
  ) -> typing.Iterator[AdHocExecutePromptEvent]:
@@ -53,6 +55,8 @@ class AdHocClient:
53
55
 
54
56
  blocks : typing.Sequence[PromptBlockRequest]
55
57
 
58
+ settings : typing.Optional[PromptSettingsRequest]
59
+
56
60
  expand_meta : typing.Optional[AdHocExpandMetaRequest]
57
61
 
58
62
  request_options : typing.Optional[RequestOptions]
@@ -72,6 +76,7 @@ class AdHocClient:
72
76
  JinjaPromptBlockRequest,
73
77
  PromptParametersRequest,
74
78
  PromptRequestStringInputRequest,
79
+ PromptSettingsRequest,
75
80
  StringVellumValueRequest,
76
81
  Vellum,
77
82
  VellumVariableExtensionsRequest,
@@ -114,6 +119,9 @@ class AdHocClient:
114
119
  logit_bias={"string": {"key": "value"}},
115
120
  custom_parameters={"string": {"key": "value"}},
116
121
  ),
122
+ settings=PromptSettingsRequest(
123
+ timeout=1.1,
124
+ ),
117
125
  blocks=[
118
126
  JinjaPromptBlockRequest(
119
127
  properties=JinjaPromptBlockPropertiesRequest(
@@ -152,6 +160,9 @@ class AdHocClient:
152
160
  "parameters": convert_and_respect_annotation_metadata(
153
161
  object_=parameters, annotation=PromptParametersRequest, direction="write"
154
162
  ),
163
+ "settings": convert_and_respect_annotation_metadata(
164
+ object_=settings, annotation=PromptSettingsRequest, direction="write"
165
+ ),
155
166
  "blocks": convert_and_respect_annotation_metadata(
156
167
  object_=blocks, annotation=typing.Sequence[PromptBlockRequest], direction="write"
157
168
  ),
@@ -227,6 +238,7 @@ class AsyncAdHocClient:
227
238
  input_variables: typing.Sequence[VellumVariableRequest],
228
239
  parameters: PromptParametersRequest,
229
240
  blocks: typing.Sequence[PromptBlockRequest],
241
+ settings: typing.Optional[PromptSettingsRequest] = OMIT,
230
242
  expand_meta: typing.Optional[AdHocExpandMetaRequest] = OMIT,
231
243
  request_options: typing.Optional[RequestOptions] = None,
232
244
  ) -> typing.AsyncIterator[AdHocExecutePromptEvent]:
@@ -245,6 +257,8 @@ class AsyncAdHocClient:
245
257
 
246
258
  blocks : typing.Sequence[PromptBlockRequest]
247
259
 
260
+ settings : typing.Optional[PromptSettingsRequest]
261
+
248
262
  expand_meta : typing.Optional[AdHocExpandMetaRequest]
249
263
 
250
264
  request_options : typing.Optional[RequestOptions]
@@ -267,6 +281,7 @@ class AsyncAdHocClient:
267
281
  JinjaPromptBlockRequest,
268
282
  PromptParametersRequest,
269
283
  PromptRequestStringInputRequest,
284
+ PromptSettingsRequest,
270
285
  StringVellumValueRequest,
271
286
  VellumVariableExtensionsRequest,
272
287
  VellumVariableRequest,
@@ -311,6 +326,9 @@ class AsyncAdHocClient:
311
326
  logit_bias={"string": {"key": "value"}},
312
327
  custom_parameters={"string": {"key": "value"}},
313
328
  ),
329
+ settings=PromptSettingsRequest(
330
+ timeout=1.1,
331
+ ),
314
332
  blocks=[
315
333
  JinjaPromptBlockRequest(
316
334
  properties=JinjaPromptBlockPropertiesRequest(
@@ -352,6 +370,9 @@ class AsyncAdHocClient:
352
370
  "parameters": convert_and_respect_annotation_metadata(
353
371
  object_=parameters, annotation=PromptParametersRequest, direction="write"
354
372
  ),
373
+ "settings": convert_and_respect_annotation_metadata(
374
+ object_=settings, annotation=PromptSettingsRequest, direction="write"
375
+ ),
355
376
  "blocks": convert_and_respect_annotation_metadata(
356
377
  object_=blocks, annotation=typing.Sequence[PromptBlockRequest], direction="write"
357
378
  ),
@@ -0,0 +1,2 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
@@ -0,0 +1,154 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from ...core.client_wrapper import SyncClientWrapper
5
+ from ...types.workflow_push_exec_config import WorkflowPushExecConfig
6
+ from ...core.request_options import RequestOptions
7
+ from ...types.workflow_push_response import WorkflowPushResponse
8
+ from ...core.pydantic_utilities import parse_obj_as
9
+ from json.decoder import JSONDecodeError
10
+ from ...core.api_error import ApiError
11
+ from ...core.client_wrapper import AsyncClientWrapper
12
+
13
+ # this is used as the default value for optional parameters
14
+ OMIT = typing.cast(typing.Any, ...)
15
+
16
+
17
+ class WorkflowsClient:
18
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
19
+ self._client_wrapper = client_wrapper
20
+
21
+ def push(
22
+ self,
23
+ *,
24
+ exec_config: WorkflowPushExecConfig,
25
+ label: str,
26
+ request_options: typing.Optional[RequestOptions] = None,
27
+ ) -> WorkflowPushResponse:
28
+ """
29
+ An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
30
+
31
+ Parameters
32
+ ----------
33
+ exec_config : WorkflowPushExecConfig
34
+
35
+ label : str
36
+
37
+ request_options : typing.Optional[RequestOptions]
38
+ Request-specific configuration.
39
+
40
+ Returns
41
+ -------
42
+ WorkflowPushResponse
43
+
44
+
45
+ Examples
46
+ --------
47
+ from vellum import Vellum
48
+
49
+ client = Vellum(
50
+ api_key="YOUR_API_KEY",
51
+ )
52
+ client.workflows.push(
53
+ exec_config={"key": "value"},
54
+ label="label",
55
+ )
56
+ """
57
+ _response = self._client_wrapper.httpx_client.request(
58
+ "v1/workflows/push",
59
+ base_url=self._client_wrapper.get_environment().default,
60
+ method="POST",
61
+ json={
62
+ "exec_config": exec_config,
63
+ "label": label,
64
+ },
65
+ request_options=request_options,
66
+ omit=OMIT,
67
+ )
68
+ try:
69
+ if 200 <= _response.status_code < 300:
70
+ return typing.cast(
71
+ WorkflowPushResponse,
72
+ parse_obj_as(
73
+ type_=WorkflowPushResponse, # type: ignore
74
+ object_=_response.json(),
75
+ ),
76
+ )
77
+ _response_json = _response.json()
78
+ except JSONDecodeError:
79
+ raise ApiError(status_code=_response.status_code, body=_response.text)
80
+ raise ApiError(status_code=_response.status_code, body=_response_json)
81
+
82
+
83
+ class AsyncWorkflowsClient:
84
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
85
+ self._client_wrapper = client_wrapper
86
+
87
+ async def push(
88
+ self,
89
+ *,
90
+ exec_config: WorkflowPushExecConfig,
91
+ label: str,
92
+ request_options: typing.Optional[RequestOptions] = None,
93
+ ) -> WorkflowPushResponse:
94
+ """
95
+ An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
96
+
97
+ Parameters
98
+ ----------
99
+ exec_config : WorkflowPushExecConfig
100
+
101
+ label : str
102
+
103
+ request_options : typing.Optional[RequestOptions]
104
+ Request-specific configuration.
105
+
106
+ Returns
107
+ -------
108
+ WorkflowPushResponse
109
+
110
+
111
+ Examples
112
+ --------
113
+ import asyncio
114
+
115
+ from vellum import AsyncVellum
116
+
117
+ client = AsyncVellum(
118
+ api_key="YOUR_API_KEY",
119
+ )
120
+
121
+
122
+ async def main() -> None:
123
+ await client.workflows.push(
124
+ exec_config={"key": "value"},
125
+ label="label",
126
+ )
127
+
128
+
129
+ asyncio.run(main())
130
+ """
131
+ _response = await self._client_wrapper.httpx_client.request(
132
+ "v1/workflows/push",
133
+ base_url=self._client_wrapper.get_environment().default,
134
+ method="POST",
135
+ json={
136
+ "exec_config": exec_config,
137
+ "label": label,
138
+ },
139
+ request_options=request_options,
140
+ omit=OMIT,
141
+ )
142
+ try:
143
+ if 200 <= _response.status_code < 300:
144
+ return typing.cast(
145
+ WorkflowPushResponse,
146
+ parse_obj_as(
147
+ type_=WorkflowPushResponse, # type: ignore
148
+ object_=_response.json(),
149
+ ),
150
+ )
151
+ _response_json = _response.json()
152
+ except JSONDecodeError:
153
+ raise ApiError(status_code=_response.status_code, body=_response.text)
154
+ raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -0,0 +1,2 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
@@ -0,0 +1,127 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ...core.client_wrapper import SyncClientWrapper
4
+ import typing
5
+ from ...core.request_options import RequestOptions
6
+ from ...types.workspace_secret_read import WorkspaceSecretRead
7
+ from ...core.jsonable_encoder import jsonable_encoder
8
+ from ...core.pydantic_utilities import parse_obj_as
9
+ from json.decoder import JSONDecodeError
10
+ from ...core.api_error import ApiError
11
+ from ...core.client_wrapper import AsyncClientWrapper
12
+
13
+
14
+ class WorkspaceSecretsClient:
15
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
16
+ self._client_wrapper = client_wrapper
17
+
18
+ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> WorkspaceSecretRead:
19
+ """
20
+ Used to retrieve a Workspace Secret given its ID or name.
21
+
22
+ Parameters
23
+ ----------
24
+ id : str
25
+ Either the Workspace Secret's ID or its unique name
26
+
27
+ request_options : typing.Optional[RequestOptions]
28
+ Request-specific configuration.
29
+
30
+ Returns
31
+ -------
32
+ WorkspaceSecretRead
33
+
34
+
35
+ Examples
36
+ --------
37
+ from vellum import Vellum
38
+
39
+ client = Vellum(
40
+ api_key="YOUR_API_KEY",
41
+ )
42
+ client.workspace_secrets.retrieve(
43
+ id="id",
44
+ )
45
+ """
46
+ _response = self._client_wrapper.httpx_client.request(
47
+ f"v1/workspace-secrets/{jsonable_encoder(id)}",
48
+ base_url=self._client_wrapper.get_environment().default,
49
+ method="GET",
50
+ request_options=request_options,
51
+ )
52
+ try:
53
+ if 200 <= _response.status_code < 300:
54
+ return typing.cast(
55
+ WorkspaceSecretRead,
56
+ parse_obj_as(
57
+ type_=WorkspaceSecretRead, # type: ignore
58
+ object_=_response.json(),
59
+ ),
60
+ )
61
+ _response_json = _response.json()
62
+ except JSONDecodeError:
63
+ raise ApiError(status_code=_response.status_code, body=_response.text)
64
+ raise ApiError(status_code=_response.status_code, body=_response_json)
65
+
66
+
67
+ class AsyncWorkspaceSecretsClient:
68
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
69
+ self._client_wrapper = client_wrapper
70
+
71
+ async def retrieve(
72
+ self, id: str, *, request_options: typing.Optional[RequestOptions] = None
73
+ ) -> WorkspaceSecretRead:
74
+ """
75
+ Used to retrieve a Workspace Secret given its ID or name.
76
+
77
+ Parameters
78
+ ----------
79
+ id : str
80
+ Either the Workspace Secret's ID or its unique name
81
+
82
+ request_options : typing.Optional[RequestOptions]
83
+ Request-specific configuration.
84
+
85
+ Returns
86
+ -------
87
+ WorkspaceSecretRead
88
+
89
+
90
+ Examples
91
+ --------
92
+ import asyncio
93
+
94
+ from vellum import AsyncVellum
95
+
96
+ client = AsyncVellum(
97
+ api_key="YOUR_API_KEY",
98
+ )
99
+
100
+
101
+ async def main() -> None:
102
+ await client.workspace_secrets.retrieve(
103
+ id="id",
104
+ )
105
+
106
+
107
+ asyncio.run(main())
108
+ """
109
+ _response = await self._client_wrapper.httpx_client.request(
110
+ f"v1/workspace-secrets/{jsonable_encoder(id)}",
111
+ base_url=self._client_wrapper.get_environment().default,
112
+ method="GET",
113
+ request_options=request_options,
114
+ )
115
+ try:
116
+ if 200 <= _response.status_code < 300:
117
+ return typing.cast(
118
+ WorkspaceSecretRead,
119
+ parse_obj_as(
120
+ type_=WorkspaceSecretRead, # type: ignore
121
+ object_=_response.json(),
122
+ ),
123
+ )
124
+ _response_json = _response.json()
125
+ except JSONDecodeError:
126
+ raise ApiError(status_code=_response.status_code, body=_response.text)
127
+ raise ApiError(status_code=_response.status_code, body=_response_json)
vellum/types/__init__.py CHANGED
@@ -273,6 +273,7 @@ from .prompt_request_chat_history_input_request import PromptRequestChatHistoryI
273
273
  from .prompt_request_input_request import PromptRequestInputRequest
274
274
  from .prompt_request_json_input_request import PromptRequestJsonInputRequest
275
275
  from .prompt_request_string_input_request import PromptRequestStringInputRequest
276
+ from .prompt_settings_request import PromptSettingsRequest
276
277
  from .raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
277
278
  from .reducto_chunker_config import ReductoChunkerConfig
278
279
  from .reducto_chunker_config_request import ReductoChunkerConfigRequest
@@ -310,6 +311,7 @@ from .search_results_variable_value import SearchResultsVariableValue
310
311
  from .search_results_vellum_value import SearchResultsVellumValue
311
312
  from .search_results_vellum_value_request import SearchResultsVellumValueRequest
312
313
  from .search_weights_request import SearchWeightsRequest
314
+ from .secret_type_enum import SecretTypeEnum
313
315
  from .sentence_chunker_config import SentenceChunkerConfig
314
316
  from .sentence_chunker_config_request import SentenceChunkerConfigRequest
315
317
  from .sentence_chunking import SentenceChunking
@@ -461,6 +463,8 @@ from .workflow_output_json import WorkflowOutputJson
461
463
  from .workflow_output_number import WorkflowOutputNumber
462
464
  from .workflow_output_search_results import WorkflowOutputSearchResults
463
465
  from .workflow_output_string import WorkflowOutputString
466
+ from .workflow_push_exec_config import WorkflowPushExecConfig
467
+ from .workflow_push_response import WorkflowPushResponse
464
468
  from .workflow_release_tag_read import WorkflowReleaseTagRead
465
469
  from .workflow_release_tag_workflow_deployment_history_item import WorkflowReleaseTagWorkflowDeploymentHistoryItem
466
470
  from .workflow_request_chat_history_input_request import WorkflowRequestChatHistoryInputRequest
@@ -479,6 +483,7 @@ from .workflow_result_event_output_data_number import WorkflowResultEventOutputD
479
483
  from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
480
484
  from .workflow_result_event_output_data_string import WorkflowResultEventOutputDataString
481
485
  from .workflow_stream_event import WorkflowStreamEvent
486
+ from .workspace_secret_read import WorkspaceSecretRead
482
487
 
483
488
  __all__ = [
484
489
  "AdHocExecutePromptEvent",
@@ -742,6 +747,7 @@ __all__ = [
742
747
  "PromptRequestInputRequest",
743
748
  "PromptRequestJsonInputRequest",
744
749
  "PromptRequestStringInputRequest",
750
+ "PromptSettingsRequest",
745
751
  "RawPromptExecutionOverridesRequest",
746
752
  "ReductoChunkerConfig",
747
753
  "ReductoChunkerConfigRequest",
@@ -779,6 +785,7 @@ __all__ = [
779
785
  "SearchResultsVellumValue",
780
786
  "SearchResultsVellumValueRequest",
781
787
  "SearchWeightsRequest",
788
+ "SecretTypeEnum",
782
789
  "SentenceChunkerConfig",
783
790
  "SentenceChunkerConfigRequest",
784
791
  "SentenceChunking",
@@ -926,6 +933,8 @@ __all__ = [
926
933
  "WorkflowOutputNumber",
927
934
  "WorkflowOutputSearchResults",
928
935
  "WorkflowOutputString",
936
+ "WorkflowPushExecConfig",
937
+ "WorkflowPushResponse",
929
938
  "WorkflowReleaseTagRead",
930
939
  "WorkflowReleaseTagWorkflowDeploymentHistoryItem",
931
940
  "WorkflowRequestChatHistoryInputRequest",
@@ -944,4 +953,5 @@ __all__ = [
944
953
  "WorkflowResultEventOutputDataSearchResults",
945
954
  "WorkflowResultEventOutputDataString",
946
955
  "WorkflowStreamEvent",
956
+ "WorkspaceSecretRead",
947
957
  ]
@@ -1,20 +1,20 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
4
  import typing_extensions
5
+ import typing
6
6
  from ..core.serialization import FieldMetadata
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
  import pydantic
9
9
 
10
10
 
11
11
  class ApiNodeResultData(UniversalBaseModel):
12
- text_output_id: str
13
- text: typing.Optional[str] = None
14
- json_output_id: str
15
12
  json_: typing_extensions.Annotated[
16
13
  typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="json")
17
14
  ] = None
15
+ text_output_id: str
16
+ text: typing.Optional[str] = None
17
+ json_output_id: str
18
18
  status_code_output_id: str
19
19
  status_code: int
20
20
 
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class PromptSettingsRequest(UniversalBaseModel):
10
+ timeout: typing.Optional[float] = None
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ SecretTypeEnum = typing.Union[typing.Literal["USER_DEFINED", "HMAC", "INTERNAL_API_KEY"], typing.Any]
@@ -3,5 +3,8 @@
3
3
  import typing
4
4
 
5
5
  VellumErrorCodeEnum = typing.Union[
6
- typing.Literal["INVALID_REQUEST", "PROVIDER_ERROR", "INTERNAL_SERVER_ERROR", "USER_DEFINED_ERROR"], typing.Any
6
+ typing.Literal[
7
+ "INVALID_REQUEST", "PROVIDER_ERROR", "REQUEST_TIMEOUT", "INTERNAL_SERVER_ERROR", "USER_DEFINED_ERROR"
8
+ ],
9
+ typing.Any,
7
10
  ]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ WorkflowPushExecConfig = typing.Dict[str, typing.Optional[typing.Any]]
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class WorkflowPushResponse(UniversalBaseModel):
10
+ workflow_sandbox_id: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,25 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import datetime as dt
5
+ from .secret_type_enum import SecretTypeEnum
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+ import pydantic
9
+
10
+
11
+ class WorkspaceSecretRead(UniversalBaseModel):
12
+ id: str
13
+ modified: dt.datetime
14
+ name: str
15
+ label: str
16
+ secret_type: SecretTypeEnum
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
+ else:
21
+
22
+ class Config:
23
+ frozen = True
24
+ smart_union = True
25
+ extra = pydantic.Extra.allow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.8.25
3
+ Version: 0.8.27
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,8 +1,8 @@
1
- vellum/__init__.py,sha256=Xwhije2oWv8vv2_FipbeWUctQ9KqoAik8PONMipyxus,33434
2
- vellum/client.py,sha256=cMrzyQ7GUnByOLvgoe9lCf569uk5e17I4TIgA74awKg,114255
1
+ vellum/__init__.py,sha256=hBu10_MnFB2tcHfZr4sP4v3zZ7ZaJIHfHesWWbkPd4o,33776
2
+ vellum/client.py,sha256=oyKQasaHZqssc_CiZdvIcrGePxzg9k7GfB7_ik1jsH0,114871
3
3
  vellum/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=Kx9aa371E_mOTEMMnK0-ZBcwrYjDsnV-olT344DkZTk,1890
5
+ vellum/core/client_wrapper.py,sha256=JL2vky28aLqxKhlzY0omtf8ifOvDSq_LYmvtRaetvmY,1890
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=X9IbmkZmB2bB_DpmZAO3crWdXagOakAyn6UCOCImCPg,2322
8
8
  vellum/core/http_client.py,sha256=R0pQpCppnEtxccGvXl4uJ76s7ro_65Fo_erlNNLp_AI,19228
@@ -30,9 +30,9 @@ vellum/lib/utils/paginator.py,sha256=yDvgehocYBDclLt5SewZH4hCIyq0yLHdBzkyPCoYPjs
30
30
  vellum/lib/utils/typing.py,sha256=qngWnFwrWLUeu1nmixXGj173mwg7BXKTAyQkxK8AtfQ,327
31
31
  vellum/lib/utils/uuid.py,sha256=nedyhTNQDS2YvrU5gL3PtvG9cgGH87yKOcpGDJAe44E,214
32
32
  vellum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- vellum/resources/__init__.py,sha256=202WddnB8daP4pLM4aQEkqvWaqRUBxEN2e5Ju__FyqM,968
33
+ vellum/resources/__init__.py,sha256=WgEjN7hU-7e0BpBfHGxN6S4lBhRv3kYF3jcf6Bsil2U,1048
34
34
  vellum/resources/ad_hoc/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
35
- vellum/resources/ad_hoc/client.py,sha256=TP5Mr94keCqcIi3_1zGEApyPJhvax7NHUb1396X4ypQ,16342
35
+ vellum/resources/ad_hoc/client.py,sha256=maNoWMHH8LSFlr5rDfoJybiPaoWuUiWFkt-IFq8dNMA,17271
36
36
  vellum/resources/deployments/__init__.py,sha256=AE0TcFwLrLBljM0ZDX-pPw4Kqt-1f5JDpIok2HS80QI,157
37
37
  vellum/resources/deployments/client.py,sha256=tF3llT_g6rfzDHpLhlEoz9gJDy8vIdNGKfICMJp3iEw,29236
38
38
  vellum/resources/deployments/types/__init__.py,sha256=IhwnmoXJ0r_QEhh1b2tBcaAm_x3fWMVuIhYmAapp_ZA,183
@@ -61,6 +61,10 @@ vellum/resources/workflow_deployments/types/__init__.py,sha256=rmS_4dtbgLHGNQJ_p
61
61
  vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py,sha256=FXVkVmGM6DZ2RpTGnZXWJYiVlLQ-K5fDtX3WMaBPaWk,182
62
62
  vellum/resources/workflow_sandboxes/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
63
63
  vellum/resources/workflow_sandboxes/client.py,sha256=3wVQxkjrJ5bIS8fB5FpKXCP2dX38299ghWrJ8YmXxwQ,7435
64
+ vellum/resources/workflows/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
65
+ vellum/resources/workflows/client.py,sha256=ZOUOWKdQRv7tFks5c8gwU6JMSLeskYu7Om9gk8t1oCM,4639
66
+ vellum/resources/workspace_secrets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
67
+ vellum/resources/workspace_secrets/client.py,sha256=XPrvVh-Pvgt_may5ktpOQm_b1GgqP6lHit2g_5CsbTI,4022
64
68
  vellum/terraform/__init__.py,sha256=CxzT0rkV9cXwAtxZ3gv46DCRt9vBl_Sx1SOj5MJtl0Y,498
65
69
  vellum/terraform/_jsii/__init__.py,sha256=AV9B1-EC-DQ2MSTWojcpbHjahvoZxNaYeZ6aCi5SXEQ,473
66
70
  vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz,sha256=igWevhMxZD8GCX4KWzOG3vfQFDj5ic91sNmj2uFVwow,32056
@@ -72,7 +76,7 @@ vellum/terraform/ml_model/__init__.py,sha256=I8h1Ru-Rb-Hi_HusK6G7nJQZEKQGsAAHMmw
72
76
  vellum/terraform/provider/__init__.py,sha256=-06xKmAmknpohVzw5TD-t1bnUHta8OrQYqvMd04XM-U,12684
73
77
  vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
74
78
  vellum/terraform/versions.json,sha256=45c7jjRD5i4w9DJQHs5ZqLLVXRnQwP9Rirq3mWY-xEo,56
75
- vellum/types/__init__.py,sha256=0OFQSJe437PosE8l2TDQo1nrA1p5HQkx13Fq2wT1Rg4,51034
79
+ vellum/types/__init__.py,sha256=rqbSF4lK1Bu25umMTLedzseBf_j_KOoyegr3kgIhPnc,51448
76
80
  vellum/types/ad_hoc_execute_prompt_event.py,sha256=bCjujA2XsOgyF3bRZbcEqV2rOIymRgsLoIRtZpB14xg,607
77
81
  vellum/types/ad_hoc_expand_meta_request.py,sha256=hS8PC3hC--OKvRKi2ZFj_RJPQ1bxo2GXno8qJq1kk28,1338
78
82
  vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py,sha256=Bfvf1d_dkmshxRACVM5vcxbH_7AQY23RmrrnPc0ytYY,939
@@ -81,7 +85,7 @@ vellum/types/ad_hoc_rejected_prompt_execution_meta.py,sha256=Yo3TNjemHUfxU9R3EMz
81
85
  vellum/types/ad_hoc_streaming_prompt_execution_meta.py,sha256=OVSyUL81lpkbXdxnQmPD6qPIxrErEDAgDofQ9lGWLXk,741
82
86
  vellum/types/add_openai_api_key_enum.py,sha256=GB7sLK_Ou7-Xn73sKJHUo6Gx3TjyhU7uJvWZAg4UeaI,92
83
87
  vellum/types/api_node_result.py,sha256=3zAbNGNYY6EgJDzqmcIvLqq8wU-WoMEwGT1W1fjto6U,729
84
- vellum/types/api_node_result_data.py,sha256=GqizJBzReiAQSKW4M1LQYA1ndXlsQ57Dr_apO0AMTVE,909
88
+ vellum/types/api_node_result_data.py,sha256=qb0hMdyZvWnlqjfmzSf_AWyUYbBhwkXGoRXNtduSG0U,909
85
89
  vellum/types/array_chat_message_content.py,sha256=353TDzStNXA2dQETvnJrazCr33nlFx7hgvvPV526ECg,780
86
90
  vellum/types/array_chat_message_content_item.py,sha256=XyWDIqVeWoqLzUIvZO_qj_-iwCr6SBcvQJoVxKAjmDs,421
87
91
  vellum/types/array_chat_message_content_item_request.py,sha256=AUFfh6CQfrD4MdwpS3KhGpalaYpEj_hAlF_lePDDdbU,494
@@ -334,6 +338,7 @@ vellum/types/prompt_request_chat_history_input_request.py,sha256=O_YEVbD_JYq_Pok
334
338
  vellum/types/prompt_request_input_request.py,sha256=fZh_G-iO3ZSvcjFac9_t31JcnOef5AIypHV_ILeHjtA,479
335
339
  vellum/types/prompt_request_json_input_request.py,sha256=3mXu7vXab2pGdElT0sTiJNW18od__ick3MIvnwFG1Hs,757
336
340
  vellum/types/prompt_request_string_input_request.py,sha256=MeZFqAQJjqWABf7k25SPmFpy0Niz_ikWp61zNWBn8pY,721
341
+ vellum/types/prompt_settings_request.py,sha256=twqaLnBhnGu6J52Ta0edIDIozRlJuXo8grM0p5FbgO0,593
337
342
  vellum/types/raw_prompt_execution_overrides_request.py,sha256=x4Chkm_NxXySOEyA6s6J_mhhiM91KCcQbu6pQETB8RI,927
338
343
  vellum/types/reducto_chunker_config.py,sha256=by_Dj0hZPkLQAf7l1KAudRB8X2XnlfHiRTsyiR-DTRY,654
339
344
  vellum/types/reducto_chunker_config_request.py,sha256=RnulU2a_PUtvRE2qhARQhsCkWI--K_MYkobzLNRGEz4,661
@@ -371,6 +376,7 @@ vellum/types/search_results_variable_value.py,sha256=zUnHDpyT_OgC9ZQkmeUUn_oYaDx
371
376
  vellum/types/search_results_vellum_value.py,sha256=i_7d5cANsjuFSRwI3qUgzNdz6ZyrhakuxP4lMQeUFu4,774
372
377
  vellum/types/search_results_vellum_value_request.py,sha256=Y36g5iLmweV4k_UiTDI9gSXf9Pn_aCwho0Z7dUNiVZU,803
373
378
  vellum/types/search_weights_request.py,sha256=7YdTanQ82sDztyOwZGh6Iu9HJaTiAX3QnfxDQZJUzyE,828
379
+ vellum/types/secret_type_enum.py,sha256=wziBD_xCh-ywlrQhrGjppxiro_awjWKdIHmbHNK6-ZE,182
374
380
  vellum/types/sentence_chunker_config.py,sha256=is3t8niS19gjRtqewSkLYpskJCbRloCZ78Kfe7zs3vE,709
375
381
  vellum/types/sentence_chunker_config_request.py,sha256=EpGTP4z3YttiThYmdjwIBOI5YfsOlNP17dI9yiYqi3I,716
376
382
  vellum/types/sentence_chunking.py,sha256=guqU3072X4h8Laf6LhTWQ5lpjBpTgoXRxKp5iXJby2U,783
@@ -481,7 +487,7 @@ vellum/types/upload_document_response.py,sha256=6_5Cm4yBPq5nD-rEql6GsmrAtSVVtNRc
481
487
  vellum/types/upsert_test_suite_test_case_request.py,sha256=iB38vx4mo4yNLV5XTeXMGR-PJLOQPloWQOAAi7PDpM0,2079
482
488
  vellum/types/variable_prompt_block_request.py,sha256=XYiA3R_jaMZ2Mq37Lbh7CfBqqj93Yv8ZMVYGheodBdY,990
483
489
  vellum/types/vellum_error.py,sha256=jCKfuCkDTiyFb1-QyP2cg0wReja6wMuooKPAjNhBA0M,643
484
- vellum/types/vellum_error_code_enum.py,sha256=87F6QjCk6b6x-fcIsf0qGpKTZsn6zn984TL_LOFjVZU,233
490
+ vellum/types/vellum_error_code_enum.py,sha256=thsWeS_QSTEF_vElgJ5tA2Zn98kF1mYnDRKtIJTu4fo,271
485
491
  vellum/types/vellum_error_request.py,sha256=RacXJoIgR8MeXXWDMI76pkxLBhCRgHnbj-aIJytZtP4,650
486
492
  vellum/types/vellum_image.py,sha256=wkFRgxOkxFPrmRdWTO58_41_vk0HYn5k4xsc-5ywxEs,637
487
493
  vellum/types/vellum_image_request.py,sha256=_Gr4L7PSY8PNQINyTy04hPdwLc8_bR1RTUWZ73RQRYM,644
@@ -518,6 +524,8 @@ vellum/types/workflow_output_json.py,sha256=MiCF-mq121YKZmYeaVpb3Tgh4XYqWjNgo3uM
518
524
  vellum/types/workflow_output_number.py,sha256=p8APNBpl6c3e3dxCFvZtL0jyKOmu9s6LkY3vgXwhTMw,812
519
525
  vellum/types/workflow_output_search_results.py,sha256=r3RRGVVrH2H9NAuxA7qmG8lponyeLHHhCx6AUiMYWzc,903
520
526
  vellum/types/workflow_output_string.py,sha256=_jclzbQ-Wlf-7FEVTWXhs9h5FWfj4xGpiODZBOzT43w,810
527
+ vellum/types/workflow_push_exec_config.py,sha256=2JSGRwPx97IO3rDQmpyen_Zs7R4e1nDUk7jRAZG5U8s,151
528
+ vellum/types/workflow_push_response.py,sha256=M9aVBUj4J9LGj5hMNBNMCVZKPnPvDWo9F90HSEhRW0o,578
521
529
  vellum/types/workflow_release_tag_read.py,sha256=S7ekl01oVDetL8R7MdBTb4cDhHN0W0iHGNJ1-ZpY3Tc,1155
522
530
  vellum/types/workflow_release_tag_workflow_deployment_history_item.py,sha256=pjWobdk9mZD3Px86rwFHfs_PYJBGXDKQUkxsgNEe6EA,825
523
531
  vellum/types/workflow_request_chat_history_input_request.py,sha256=WCZvwDuNS8ylWOOoKD3t7fHLSYB0h-fVCqeDRzqPoPA,898
@@ -536,8 +544,9 @@ vellum/types/workflow_result_event_output_data_number.py,sha256=OZYYUF3ayq7gyaes
536
544
  vellum/types/workflow_result_event_output_data_search_results.py,sha256=U34IK7ZvBG70ZBO4SEqbaNzIrV9Zn1NXabNh3M9v_hg,1172
537
545
  vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb_7UU0-UspeN4pUdINCcCrD64W74,1228
538
546
  vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
547
+ vellum/types/workspace_secret_read.py,sha256=3CnHDG72IAY0KRNvc31F0xLmhnpwjQHnDYCfQJzCxI0,714
539
548
  vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
540
- vellum_ai-0.8.25.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
541
- vellum_ai-0.8.25.dist-info/METADATA,sha256=ibKMuK7rTEPyv3aQB39XMW7f1iH3mG6iffIxE6bQ1NA,4395
542
- vellum_ai-0.8.25.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
543
- vellum_ai-0.8.25.dist-info/RECORD,,
549
+ vellum_ai-0.8.27.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
550
+ vellum_ai-0.8.27.dist-info/METADATA,sha256=9o08ogy2qbrxs29DVFDhHuVGQZm-Yuuyv-fPLtv0doQ,4395
551
+ vellum_ai-0.8.27.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
552
+ vellum_ai-0.8.27.dist-info/RECORD,,