vellum-ai 0.8.25__py3-none-any.whl → 0.8.26__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +8 -0
- vellum/client.py +4 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/__init__.py +2 -0
- vellum/resources/ad_hoc/client.py +21 -0
- vellum/resources/workspace_secrets/__init__.py +2 -0
- vellum/resources/workspace_secrets/client.py +127 -0
- vellum/types/__init__.py +6 -0
- vellum/types/api_node_result_data.py +4 -4
- vellum/types/prompt_settings_request.py +19 -0
- vellum/types/secret_type_enum.py +5 -0
- vellum/types/vellum_error_code_enum.py +4 -1
- vellum/types/workspace_secret_read.py +25 -0
- {vellum_ai-0.8.25.dist-info → vellum_ai-0.8.26.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.25.dist-info → vellum_ai-0.8.26.dist-info}/RECORD +17 -12
- {vellum_ai-0.8.25.dist-info → vellum_ai-0.8.26.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.25.dist-info → vellum_ai-0.8.26.dist-info}/WHEEL +0 -0
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,
|
@@ -464,6 +466,7 @@ from .types import (
|
|
464
466
|
WorkflowResultEventOutputDataSearchResults,
|
465
467
|
WorkflowResultEventOutputDataString,
|
466
468
|
WorkflowStreamEvent,
|
469
|
+
WorkspaceSecretRead,
|
467
470
|
)
|
468
471
|
from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError
|
469
472
|
from .resources import (
|
@@ -482,6 +485,7 @@ from .resources import (
|
|
482
485
|
test_suites,
|
483
486
|
workflow_deployments,
|
484
487
|
workflow_sandboxes,
|
488
|
+
workspace_secrets,
|
485
489
|
)
|
486
490
|
from .client import AsyncVellum, Vellum
|
487
491
|
from .environment import VellumEnvironment
|
@@ -757,6 +761,7 @@ __all__ = [
|
|
757
761
|
"PromptRequestInputRequest",
|
758
762
|
"PromptRequestJsonInputRequest",
|
759
763
|
"PromptRequestStringInputRequest",
|
764
|
+
"PromptSettingsRequest",
|
760
765
|
"RawPromptExecutionOverridesRequest",
|
761
766
|
"ReductoChunkerConfig",
|
762
767
|
"ReductoChunkerConfigRequest",
|
@@ -794,6 +799,7 @@ __all__ = [
|
|
794
799
|
"SearchResultsVellumValue",
|
795
800
|
"SearchResultsVellumValueRequest",
|
796
801
|
"SearchWeightsRequest",
|
802
|
+
"SecretTypeEnum",
|
797
803
|
"SentenceChunkerConfig",
|
798
804
|
"SentenceChunkerConfigRequest",
|
799
805
|
"SentenceChunking",
|
@@ -962,6 +968,7 @@ __all__ = [
|
|
962
968
|
"WorkflowResultEventOutputDataSearchResults",
|
963
969
|
"WorkflowResultEventOutputDataString",
|
964
970
|
"WorkflowStreamEvent",
|
971
|
+
"WorkspaceSecretRead",
|
965
972
|
"__version__",
|
966
973
|
"ad_hoc",
|
967
974
|
"deployments",
|
@@ -974,4 +981,5 @@ __all__ = [
|
|
974
981
|
"test_suites",
|
975
982
|
"workflow_deployments",
|
976
983
|
"workflow_sandboxes",
|
984
|
+
"workspace_secrets",
|
977
985
|
]
|
vellum/client.py
CHANGED
@@ -15,6 +15,7 @@ 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.workspace_secrets.client import WorkspaceSecretsClient
|
18
19
|
from .types.code_execution_runtime import CodeExecutionRuntime
|
19
20
|
from .types.code_executor_input_request import CodeExecutorInputRequest
|
20
21
|
from .types.code_execution_package_request import CodeExecutionPackageRequest
|
@@ -60,6 +61,7 @@ from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
|
|
60
61
|
from .resources.test_suites.client import AsyncTestSuitesClient
|
61
62
|
from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient
|
62
63
|
from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
|
64
|
+
from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
|
63
65
|
|
64
66
|
# this is used as the default value for optional parameters
|
65
67
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -130,6 +132,7 @@ class Vellum:
|
|
130
132
|
self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
|
131
133
|
self.workflow_deployments = WorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
132
134
|
self.workflow_sandboxes = WorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
135
|
+
self.workspace_secrets = WorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
133
136
|
|
134
137
|
def execute_code(
|
135
138
|
self,
|
@@ -1446,6 +1449,7 @@ class AsyncVellum:
|
|
1446
1449
|
self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
|
1447
1450
|
self.workflow_deployments = AsyncWorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
1448
1451
|
self.workflow_sandboxes = AsyncWorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
1452
|
+
self.workspace_secrets = AsyncWorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
1449
1453
|
|
1450
1454
|
async def execute_code(
|
1451
1455
|
self,
|
vellum/core/client_wrapper.py
CHANGED
@@ -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.
|
20
|
+
"X-Fern-SDK-Version": "0.8.26",
|
21
21
|
}
|
22
22
|
headers["X_API_KEY"] = self.api_key
|
23
23
|
return headers
|
vellum/resources/__init__.py
CHANGED
@@ -12,6 +12,7 @@ from . import (
|
|
12
12
|
test_suites,
|
13
13
|
workflow_deployments,
|
14
14
|
workflow_sandboxes,
|
15
|
+
workspace_secrets,
|
15
16
|
)
|
16
17
|
from .deployments import DeploymentsListRequestStatus
|
17
18
|
from .document_indexes import DocumentIndexesListRequestStatus
|
@@ -34,4 +35,5 @@ __all__ = [
|
|
34
35
|
"test_suites",
|
35
36
|
"workflow_deployments",
|
36
37
|
"workflow_sandboxes",
|
38
|
+
"workspace_secrets",
|
37
39
|
]
|
@@ -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,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
|
@@ -479,6 +481,7 @@ from .workflow_result_event_output_data_number import WorkflowResultEventOutputD
|
|
479
481
|
from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
|
480
482
|
from .workflow_result_event_output_data_string import WorkflowResultEventOutputDataString
|
481
483
|
from .workflow_stream_event import WorkflowStreamEvent
|
484
|
+
from .workspace_secret_read import WorkspaceSecretRead
|
482
485
|
|
483
486
|
__all__ = [
|
484
487
|
"AdHocExecutePromptEvent",
|
@@ -742,6 +745,7 @@ __all__ = [
|
|
742
745
|
"PromptRequestInputRequest",
|
743
746
|
"PromptRequestJsonInputRequest",
|
744
747
|
"PromptRequestStringInputRequest",
|
748
|
+
"PromptSettingsRequest",
|
745
749
|
"RawPromptExecutionOverridesRequest",
|
746
750
|
"ReductoChunkerConfig",
|
747
751
|
"ReductoChunkerConfigRequest",
|
@@ -779,6 +783,7 @@ __all__ = [
|
|
779
783
|
"SearchResultsVellumValue",
|
780
784
|
"SearchResultsVellumValueRequest",
|
781
785
|
"SearchWeightsRequest",
|
786
|
+
"SecretTypeEnum",
|
782
787
|
"SentenceChunkerConfig",
|
783
788
|
"SentenceChunkerConfigRequest",
|
784
789
|
"SentenceChunking",
|
@@ -944,4 +949,5 @@ __all__ = [
|
|
944
949
|
"WorkflowResultEventOutputDataSearchResults",
|
945
950
|
"WorkflowResultEventOutputDataString",
|
946
951
|
"WorkflowStreamEvent",
|
952
|
+
"WorkspaceSecretRead",
|
947
953
|
]
|
@@ -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
|
@@ -3,5 +3,8 @@
|
|
3
3
|
import typing
|
4
4
|
|
5
5
|
VellumErrorCodeEnum = typing.Union[
|
6
|
-
typing.Literal[
|
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,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,8 +1,8 @@
|
|
1
|
-
vellum/__init__.py,sha256=
|
2
|
-
vellum/client.py,sha256=
|
1
|
+
vellum/__init__.py,sha256=easQ8fxF4xU_D3tGodunzZX5tIzX6F5AMscbLan5auE,33632
|
2
|
+
vellum/client.py,sha256=omhLLyvr-CPceOumcEbdO5d66UTBKrVPFJ3QzjSHIt4,114593
|
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=
|
5
|
+
vellum/core/client_wrapper.py,sha256=uokCUQkluL0zgeoYmPB6IcJ75Lvir_wbMQNDr4VcvnY,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=
|
33
|
+
vellum/resources/__init__.py,sha256=k67xbO6jV_Jq8JlVGhQadWLb2C4AP-Vz5kTsVZOjHfE,1016
|
34
34
|
vellum/resources/ad_hoc/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
35
|
-
vellum/resources/ad_hoc/client.py,sha256=
|
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,8 @@ 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/workspace_secrets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
65
|
+
vellum/resources/workspace_secrets/client.py,sha256=XPrvVh-Pvgt_may5ktpOQm_b1GgqP6lHit2g_5CsbTI,4022
|
64
66
|
vellum/terraform/__init__.py,sha256=CxzT0rkV9cXwAtxZ3gv46DCRt9vBl_Sx1SOj5MJtl0Y,498
|
65
67
|
vellum/terraform/_jsii/__init__.py,sha256=AV9B1-EC-DQ2MSTWojcpbHjahvoZxNaYeZ6aCi5SXEQ,473
|
66
68
|
vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz,sha256=igWevhMxZD8GCX4KWzOG3vfQFDj5ic91sNmj2uFVwow,32056
|
@@ -72,7 +74,7 @@ vellum/terraform/ml_model/__init__.py,sha256=I8h1Ru-Rb-Hi_HusK6G7nJQZEKQGsAAHMmw
|
|
72
74
|
vellum/terraform/provider/__init__.py,sha256=-06xKmAmknpohVzw5TD-t1bnUHta8OrQYqvMd04XM-U,12684
|
73
75
|
vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
74
76
|
vellum/terraform/versions.json,sha256=45c7jjRD5i4w9DJQHs5ZqLLVXRnQwP9Rirq3mWY-xEo,56
|
75
|
-
vellum/types/__init__.py,sha256=
|
77
|
+
vellum/types/__init__.py,sha256=lHQt4__o95doWhknUZYud8wLKSzLzW9-SYNmuW9gVso,51271
|
76
78
|
vellum/types/ad_hoc_execute_prompt_event.py,sha256=bCjujA2XsOgyF3bRZbcEqV2rOIymRgsLoIRtZpB14xg,607
|
77
79
|
vellum/types/ad_hoc_expand_meta_request.py,sha256=hS8PC3hC--OKvRKi2ZFj_RJPQ1bxo2GXno8qJq1kk28,1338
|
78
80
|
vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py,sha256=Bfvf1d_dkmshxRACVM5vcxbH_7AQY23RmrrnPc0ytYY,939
|
@@ -81,7 +83,7 @@ vellum/types/ad_hoc_rejected_prompt_execution_meta.py,sha256=Yo3TNjemHUfxU9R3EMz
|
|
81
83
|
vellum/types/ad_hoc_streaming_prompt_execution_meta.py,sha256=OVSyUL81lpkbXdxnQmPD6qPIxrErEDAgDofQ9lGWLXk,741
|
82
84
|
vellum/types/add_openai_api_key_enum.py,sha256=GB7sLK_Ou7-Xn73sKJHUo6Gx3TjyhU7uJvWZAg4UeaI,92
|
83
85
|
vellum/types/api_node_result.py,sha256=3zAbNGNYY6EgJDzqmcIvLqq8wU-WoMEwGT1W1fjto6U,729
|
84
|
-
vellum/types/api_node_result_data.py,sha256=
|
86
|
+
vellum/types/api_node_result_data.py,sha256=qb0hMdyZvWnlqjfmzSf_AWyUYbBhwkXGoRXNtduSG0U,909
|
85
87
|
vellum/types/array_chat_message_content.py,sha256=353TDzStNXA2dQETvnJrazCr33nlFx7hgvvPV526ECg,780
|
86
88
|
vellum/types/array_chat_message_content_item.py,sha256=XyWDIqVeWoqLzUIvZO_qj_-iwCr6SBcvQJoVxKAjmDs,421
|
87
89
|
vellum/types/array_chat_message_content_item_request.py,sha256=AUFfh6CQfrD4MdwpS3KhGpalaYpEj_hAlF_lePDDdbU,494
|
@@ -334,6 +336,7 @@ vellum/types/prompt_request_chat_history_input_request.py,sha256=O_YEVbD_JYq_Pok
|
|
334
336
|
vellum/types/prompt_request_input_request.py,sha256=fZh_G-iO3ZSvcjFac9_t31JcnOef5AIypHV_ILeHjtA,479
|
335
337
|
vellum/types/prompt_request_json_input_request.py,sha256=3mXu7vXab2pGdElT0sTiJNW18od__ick3MIvnwFG1Hs,757
|
336
338
|
vellum/types/prompt_request_string_input_request.py,sha256=MeZFqAQJjqWABf7k25SPmFpy0Niz_ikWp61zNWBn8pY,721
|
339
|
+
vellum/types/prompt_settings_request.py,sha256=twqaLnBhnGu6J52Ta0edIDIozRlJuXo8grM0p5FbgO0,593
|
337
340
|
vellum/types/raw_prompt_execution_overrides_request.py,sha256=x4Chkm_NxXySOEyA6s6J_mhhiM91KCcQbu6pQETB8RI,927
|
338
341
|
vellum/types/reducto_chunker_config.py,sha256=by_Dj0hZPkLQAf7l1KAudRB8X2XnlfHiRTsyiR-DTRY,654
|
339
342
|
vellum/types/reducto_chunker_config_request.py,sha256=RnulU2a_PUtvRE2qhARQhsCkWI--K_MYkobzLNRGEz4,661
|
@@ -371,6 +374,7 @@ vellum/types/search_results_variable_value.py,sha256=zUnHDpyT_OgC9ZQkmeUUn_oYaDx
|
|
371
374
|
vellum/types/search_results_vellum_value.py,sha256=i_7d5cANsjuFSRwI3qUgzNdz6ZyrhakuxP4lMQeUFu4,774
|
372
375
|
vellum/types/search_results_vellum_value_request.py,sha256=Y36g5iLmweV4k_UiTDI9gSXf9Pn_aCwho0Z7dUNiVZU,803
|
373
376
|
vellum/types/search_weights_request.py,sha256=7YdTanQ82sDztyOwZGh6Iu9HJaTiAX3QnfxDQZJUzyE,828
|
377
|
+
vellum/types/secret_type_enum.py,sha256=wziBD_xCh-ywlrQhrGjppxiro_awjWKdIHmbHNK6-ZE,182
|
374
378
|
vellum/types/sentence_chunker_config.py,sha256=is3t8niS19gjRtqewSkLYpskJCbRloCZ78Kfe7zs3vE,709
|
375
379
|
vellum/types/sentence_chunker_config_request.py,sha256=EpGTP4z3YttiThYmdjwIBOI5YfsOlNP17dI9yiYqi3I,716
|
376
380
|
vellum/types/sentence_chunking.py,sha256=guqU3072X4h8Laf6LhTWQ5lpjBpTgoXRxKp5iXJby2U,783
|
@@ -481,7 +485,7 @@ vellum/types/upload_document_response.py,sha256=6_5Cm4yBPq5nD-rEql6GsmrAtSVVtNRc
|
|
481
485
|
vellum/types/upsert_test_suite_test_case_request.py,sha256=iB38vx4mo4yNLV5XTeXMGR-PJLOQPloWQOAAi7PDpM0,2079
|
482
486
|
vellum/types/variable_prompt_block_request.py,sha256=XYiA3R_jaMZ2Mq37Lbh7CfBqqj93Yv8ZMVYGheodBdY,990
|
483
487
|
vellum/types/vellum_error.py,sha256=jCKfuCkDTiyFb1-QyP2cg0wReja6wMuooKPAjNhBA0M,643
|
484
|
-
vellum/types/vellum_error_code_enum.py,sha256=
|
488
|
+
vellum/types/vellum_error_code_enum.py,sha256=thsWeS_QSTEF_vElgJ5tA2Zn98kF1mYnDRKtIJTu4fo,271
|
485
489
|
vellum/types/vellum_error_request.py,sha256=RacXJoIgR8MeXXWDMI76pkxLBhCRgHnbj-aIJytZtP4,650
|
486
490
|
vellum/types/vellum_image.py,sha256=wkFRgxOkxFPrmRdWTO58_41_vk0HYn5k4xsc-5ywxEs,637
|
487
491
|
vellum/types/vellum_image_request.py,sha256=_Gr4L7PSY8PNQINyTy04hPdwLc8_bR1RTUWZ73RQRYM,644
|
@@ -536,8 +540,9 @@ vellum/types/workflow_result_event_output_data_number.py,sha256=OZYYUF3ayq7gyaes
|
|
536
540
|
vellum/types/workflow_result_event_output_data_search_results.py,sha256=U34IK7ZvBG70ZBO4SEqbaNzIrV9Zn1NXabNh3M9v_hg,1172
|
537
541
|
vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb_7UU0-UspeN4pUdINCcCrD64W74,1228
|
538
542
|
vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
|
543
|
+
vellum/types/workspace_secret_read.py,sha256=3CnHDG72IAY0KRNvc31F0xLmhnpwjQHnDYCfQJzCxI0,714
|
539
544
|
vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
|
540
|
-
vellum_ai-0.8.
|
541
|
-
vellum_ai-0.8.
|
542
|
-
vellum_ai-0.8.
|
543
|
-
vellum_ai-0.8.
|
545
|
+
vellum_ai-0.8.26.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
|
546
|
+
vellum_ai-0.8.26.dist-info/METADATA,sha256=fwDnhRfvHuQpl_Q5i5e4e1crQjCe3CRjsamHbAQ2Gq4,4395
|
547
|
+
vellum_ai-0.8.26.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
548
|
+
vellum_ai-0.8.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|