vellum-ai 0.14.53__py3-none-any.whl → 0.14.55__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 +4 -0
- vellum/client/__init__.py +4 -4
- vellum/client/core/client_wrapper.py +1 -1
- vellum/client/reference.md +116 -114
- vellum/client/resources/deployments/client.py +121 -2
- vellum/client/resources/release_reviews/client.py +1 -118
- vellum/client/resources/workflow_deployments/client.py +4 -2
- vellum/client/types/__init__.py +4 -0
- vellum/client/types/components_schemas_prompt_version_build_config_sandbox.py +5 -0
- vellum/client/types/execute_api_request_body.py +3 -1
- vellum/client/types/prompt_deployment_release_prompt_version.py +6 -1
- vellum/client/types/prompt_version_build_config_sandbox.py +22 -0
- vellum/types/components_schemas_prompt_version_build_config_sandbox.py +3 -0
- vellum/types/prompt_version_build_config_sandbox.py +3 -0
- vellum/workflows/nodes/bases/base.py +32 -1
- vellum/workflows/nodes/displayable/code_execution_node/tests/{test_code_execution_node.py → test_node.py} +139 -16
- vellum/workflows/nodes/experimental/tool_calling_node/node.py +6 -6
- vellum/workflows/nodes/experimental/tool_calling_node/utils.py +4 -1
- vellum/workflows/nodes/tests/test_utils.py +8 -21
- vellum/workflows/nodes/utils.py +4 -1
- vellum/workflows/runner/runner.py +1 -1
- vellum/workflows/state/base.py +0 -18
- vellum/workflows/types/code_execution_node_wrappers.py +28 -0
- vellum/workflows/utils/functions.py +1 -0
- vellum/workflows/utils/tests/test_functions.py +14 -0
- {vellum_ai-0.14.53.dist-info → vellum_ai-0.14.55.dist-info}/METADATA +1 -1
- {vellum_ai-0.14.53.dist-info → vellum_ai-0.14.55.dist-info}/RECORD +36 -32
- vellum_cli/logger.py +11 -0
- vellum_cli/push.py +36 -32
- vellum_cli/tests/test_push.py +31 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_serialization.py +2 -7
- vellum_ee/workflows/display/workflows/base_workflow_display.py +20 -4
- vellum_ee/workflows/tests/test_display_meta.py +48 -0
- {vellum_ai-0.14.53.dist-info → vellum_ai-0.14.55.dist-info}/LICENSE +0 -0
- {vellum_ai-0.14.53.dist-info → vellum_ai-0.14.55.dist-info}/WHEEL +0 -0
- {vellum_ai-0.14.53.dist-info → vellum_ai-0.14.55.dist-info}/entry_points.txt +0 -0
vellum/__init__.py
CHANGED
@@ -65,6 +65,7 @@ from .types import (
|
|
65
65
|
CompilePromptMeta,
|
66
66
|
ComponentsSchemasPdfSearchResultMetaSource,
|
67
67
|
ComponentsSchemasPdfSearchResultMetaSourceRequest,
|
68
|
+
ComponentsSchemasPromptVersionBuildConfigSandbox,
|
68
69
|
ConditionCombinator,
|
69
70
|
ConditionalNodeResult,
|
70
71
|
ConditionalNodeResultData,
|
@@ -316,6 +317,7 @@ from .types import (
|
|
316
317
|
PromptRequestJsonInput,
|
317
318
|
PromptRequestStringInput,
|
318
319
|
PromptSettings,
|
320
|
+
PromptVersionBuildConfigSandbox,
|
319
321
|
RawPromptExecutionOverridesRequest,
|
320
322
|
ReductoChunkerConfig,
|
321
323
|
ReductoChunkerConfigRequest,
|
@@ -688,6 +690,7 @@ __all__ = [
|
|
688
690
|
"CompilePromptMeta",
|
689
691
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
690
692
|
"ComponentsSchemasPdfSearchResultMetaSourceRequest",
|
693
|
+
"ComponentsSchemasPromptVersionBuildConfigSandbox",
|
691
694
|
"ConditionCombinator",
|
692
695
|
"ConditionalNodeResult",
|
693
696
|
"ConditionalNodeResultData",
|
@@ -948,6 +951,7 @@ __all__ = [
|
|
948
951
|
"PromptRequestJsonInput",
|
949
952
|
"PromptRequestStringInput",
|
950
953
|
"PromptSettings",
|
954
|
+
"PromptVersionBuildConfigSandbox",
|
951
955
|
"RawPromptExecutionOverridesRequest",
|
952
956
|
"ReductoChunkerConfig",
|
953
957
|
"ReductoChunkerConfigRequest",
|
vellum/client/__init__.py
CHANGED
@@ -7,7 +7,6 @@ from .core.client_wrapper import SyncClientWrapper
|
|
7
7
|
from .resources.ad_hoc.client import AdHocClient
|
8
8
|
from .resources.container_images.client import ContainerImagesClient
|
9
9
|
from .resources.deployments.client import DeploymentsClient
|
10
|
-
from .resources.release_reviews.client import ReleaseReviewsClient
|
11
10
|
from .resources.document_indexes.client import DocumentIndexesClient
|
12
11
|
from .resources.documents.client import DocumentsClient
|
13
12
|
from .resources.folder_entities.client import FolderEntitiesClient
|
@@ -19,6 +18,7 @@ from .resources.sandboxes.client import SandboxesClient
|
|
19
18
|
from .resources.test_suite_runs.client import TestSuiteRunsClient
|
20
19
|
from .resources.test_suites.client import TestSuitesClient
|
21
20
|
from .resources.workflow_deployments.client import WorkflowDeploymentsClient
|
21
|
+
from .resources.release_reviews.client import ReleaseReviewsClient
|
22
22
|
from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
|
23
23
|
from .resources.workflows.client import WorkflowsClient
|
24
24
|
from .resources.workspace_secrets.client import WorkspaceSecretsClient
|
@@ -65,7 +65,6 @@ from .core.client_wrapper import AsyncClientWrapper
|
|
65
65
|
from .resources.ad_hoc.client import AsyncAdHocClient
|
66
66
|
from .resources.container_images.client import AsyncContainerImagesClient
|
67
67
|
from .resources.deployments.client import AsyncDeploymentsClient
|
68
|
-
from .resources.release_reviews.client import AsyncReleaseReviewsClient
|
69
68
|
from .resources.document_indexes.client import AsyncDocumentIndexesClient
|
70
69
|
from .resources.documents.client import AsyncDocumentsClient
|
71
70
|
from .resources.folder_entities.client import AsyncFolderEntitiesClient
|
@@ -77,6 +76,7 @@ from .resources.sandboxes.client import AsyncSandboxesClient
|
|
77
76
|
from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
|
78
77
|
from .resources.test_suites.client import AsyncTestSuitesClient
|
79
78
|
from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient
|
79
|
+
from .resources.release_reviews.client import AsyncReleaseReviewsClient
|
80
80
|
from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
|
81
81
|
from .resources.workflows.client import AsyncWorkflowsClient
|
82
82
|
from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
|
@@ -143,7 +143,6 @@ class Vellum:
|
|
143
143
|
self.ad_hoc = AdHocClient(client_wrapper=self._client_wrapper)
|
144
144
|
self.container_images = ContainerImagesClient(client_wrapper=self._client_wrapper)
|
145
145
|
self.deployments = DeploymentsClient(client_wrapper=self._client_wrapper)
|
146
|
-
self.release_reviews = ReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
147
146
|
self.document_indexes = DocumentIndexesClient(client_wrapper=self._client_wrapper)
|
148
147
|
self.documents = DocumentsClient(client_wrapper=self._client_wrapper)
|
149
148
|
self.folder_entities = FolderEntitiesClient(client_wrapper=self._client_wrapper)
|
@@ -155,6 +154,7 @@ class Vellum:
|
|
155
154
|
self.test_suite_runs = TestSuiteRunsClient(client_wrapper=self._client_wrapper)
|
156
155
|
self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
|
157
156
|
self.workflow_deployments = WorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
157
|
+
self.release_reviews = ReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
158
158
|
self.workflow_sandboxes = WorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
159
159
|
self.workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
|
160
160
|
self.workspace_secrets = WorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
@@ -1519,7 +1519,6 @@ class AsyncVellum:
|
|
1519
1519
|
self.ad_hoc = AsyncAdHocClient(client_wrapper=self._client_wrapper)
|
1520
1520
|
self.container_images = AsyncContainerImagesClient(client_wrapper=self._client_wrapper)
|
1521
1521
|
self.deployments = AsyncDeploymentsClient(client_wrapper=self._client_wrapper)
|
1522
|
-
self.release_reviews = AsyncReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
1523
1522
|
self.document_indexes = AsyncDocumentIndexesClient(client_wrapper=self._client_wrapper)
|
1524
1523
|
self.documents = AsyncDocumentsClient(client_wrapper=self._client_wrapper)
|
1525
1524
|
self.folder_entities = AsyncFolderEntitiesClient(client_wrapper=self._client_wrapper)
|
@@ -1531,6 +1530,7 @@ class AsyncVellum:
|
|
1531
1530
|
self.test_suite_runs = AsyncTestSuiteRunsClient(client_wrapper=self._client_wrapper)
|
1532
1531
|
self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
|
1533
1532
|
self.workflow_deployments = AsyncWorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
1533
|
+
self.release_reviews = AsyncReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
1534
1534
|
self.workflow_sandboxes = AsyncWorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
1535
1535
|
self.workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
|
1536
1536
|
self.workspace_secrets = AsyncWorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
@@ -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.14.
|
21
|
+
"X-Fern-SDK-Version": "0.14.55",
|
22
22
|
}
|
23
23
|
headers["X-API-KEY"] = self.api_key
|
24
24
|
return headers
|
vellum/client/reference.md
CHANGED
@@ -1932,7 +1932,8 @@ client.deployments.retrieve(
|
|
1932
1932
|
<dl>
|
1933
1933
|
<dd>
|
1934
1934
|
|
1935
|
-
|
1935
|
+
DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
|
1936
|
+
`retrieve_prompt_deployment_release` xendpoint instead.
|
1936
1937
|
</dd>
|
1937
1938
|
</dl>
|
1938
1939
|
</dd>
|
@@ -2267,7 +2268,7 @@ client.deployments.update_deployment_release_tag(
|
|
2267
2268
|
</dl>
|
2268
2269
|
</details>
|
2269
2270
|
|
2270
|
-
<details><summary><code>client.deployments.<a href="src/vellum/resources/deployments/client.py">
|
2271
|
+
<details><summary><code>client.deployments.<a href="src/vellum/resources/deployments/client.py">retrieve_prompt_deployment_release</a>(...)</code></summary>
|
2271
2272
|
<dl>
|
2272
2273
|
<dd>
|
2273
2274
|
|
@@ -2279,16 +2280,7 @@ client.deployments.update_deployment_release_tag(
|
|
2279
2280
|
<dl>
|
2280
2281
|
<dd>
|
2281
2282
|
|
2282
|
-
|
2283
|
-
for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
|
2284
|
-
prompt or make an API call to the model provider.
|
2285
|
-
|
2286
|
-
This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
|
2287
|
-
to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
|
2288
|
-
that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
|
2289
|
-
derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
|
2290
|
-
|
2291
|
-
We encourage you to seek advise from Vellum Support before integrating with this API for production use.
|
2283
|
+
Retrieve a specific Prompt Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
2292
2284
|
</dd>
|
2293
2285
|
</dl>
|
2294
2286
|
</dd>
|
@@ -2303,18 +2295,14 @@ We encourage you to seek advise from Vellum Support before integrating with this
|
|
2303
2295
|
<dd>
|
2304
2296
|
|
2305
2297
|
```python
|
2306
|
-
from vellum import
|
2298
|
+
from vellum import Vellum
|
2307
2299
|
|
2308
2300
|
client = Vellum(
|
2309
2301
|
api_key="YOUR_API_KEY",
|
2310
2302
|
)
|
2311
|
-
client.deployments.
|
2312
|
-
|
2313
|
-
|
2314
|
-
name="name",
|
2315
|
-
value="value",
|
2316
|
-
)
|
2317
|
-
],
|
2303
|
+
client.deployments.retrieve_prompt_deployment_release(
|
2304
|
+
id="id",
|
2305
|
+
release_id_or_release_tag="release_id_or_release_tag",
|
2318
2306
|
)
|
2319
2307
|
|
2320
2308
|
```
|
@@ -2331,31 +2319,7 @@ client.deployments.retrieve_provider_payload(
|
|
2331
2319
|
<dl>
|
2332
2320
|
<dd>
|
2333
2321
|
|
2334
|
-
**
|
2335
|
-
|
2336
|
-
</dd>
|
2337
|
-
</dl>
|
2338
|
-
|
2339
|
-
<dl>
|
2340
|
-
<dd>
|
2341
|
-
|
2342
|
-
**deployment_id:** `typing.Optional[str]` — The ID of the deployment. Must provide either this or deployment_name.
|
2343
|
-
|
2344
|
-
</dd>
|
2345
|
-
</dl>
|
2346
|
-
|
2347
|
-
<dl>
|
2348
|
-
<dd>
|
2349
|
-
|
2350
|
-
**deployment_name:** `typing.Optional[str]` — The name of the deployment. Must provide either this or deployment_id.
|
2351
|
-
|
2352
|
-
</dd>
|
2353
|
-
</dl>
|
2354
|
-
|
2355
|
-
<dl>
|
2356
|
-
<dd>
|
2357
|
-
|
2358
|
-
**release_tag:** `typing.Optional[str]` — Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
|
2322
|
+
**id:** `str` — A UUID string identifying this deployment.
|
2359
2323
|
|
2360
2324
|
</dd>
|
2361
2325
|
</dl>
|
@@ -2363,7 +2327,7 @@ client.deployments.retrieve_provider_payload(
|
|
2363
2327
|
<dl>
|
2364
2328
|
<dd>
|
2365
2329
|
|
2366
|
-
**
|
2330
|
+
**release_id_or_release_tag:** `str` — Either the UUID of Prompt Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Prompt Deployment Release you'd like to retrieve.
|
2367
2331
|
|
2368
2332
|
</dd>
|
2369
2333
|
</dl>
|
@@ -2383,8 +2347,7 @@ client.deployments.retrieve_provider_payload(
|
|
2383
2347
|
</dl>
|
2384
2348
|
</details>
|
2385
2349
|
|
2386
|
-
|
2387
|
-
<details><summary><code>client.release_reviews.<a href="src/vellum/resources/release_reviews/client.py">retrieve_prompt_deployment_release</a>(...)</code></summary>
|
2350
|
+
<details><summary><code>client.deployments.<a href="src/vellum/resources/deployments/client.py">retrieve_provider_payload</a>(...)</code></summary>
|
2388
2351
|
<dl>
|
2389
2352
|
<dd>
|
2390
2353
|
|
@@ -2396,7 +2359,16 @@ client.deployments.retrieve_provider_payload(
|
|
2396
2359
|
<dl>
|
2397
2360
|
<dd>
|
2398
2361
|
|
2399
|
-
|
2362
|
+
Given a set of input variable values, compile the exact payload that Vellum would send to the configured model provider
|
2363
|
+
for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
|
2364
|
+
prompt or make an API call to the model provider.
|
2365
|
+
|
2366
|
+
This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
|
2367
|
+
to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
|
2368
|
+
that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
|
2369
|
+
derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
|
2370
|
+
|
2371
|
+
We encourage you to seek advise from Vellum Support before integrating with this API for production use.
|
2400
2372
|
</dd>
|
2401
2373
|
</dl>
|
2402
2374
|
</dd>
|
@@ -2411,14 +2383,18 @@ Retrieve a specific Prompt Deployment Release by either its UUID or the name of
|
|
2411
2383
|
<dd>
|
2412
2384
|
|
2413
2385
|
```python
|
2414
|
-
from vellum import Vellum
|
2386
|
+
from vellum import StringInputRequest, Vellum
|
2415
2387
|
|
2416
2388
|
client = Vellum(
|
2417
2389
|
api_key="YOUR_API_KEY",
|
2418
2390
|
)
|
2419
|
-
client.
|
2420
|
-
|
2421
|
-
|
2391
|
+
client.deployments.retrieve_provider_payload(
|
2392
|
+
inputs=[
|
2393
|
+
StringInputRequest(
|
2394
|
+
name="name",
|
2395
|
+
value="value",
|
2396
|
+
)
|
2397
|
+
],
|
2422
2398
|
)
|
2423
2399
|
|
2424
2400
|
```
|
@@ -2435,7 +2411,7 @@ client.release_reviews.retrieve_prompt_deployment_release(
|
|
2435
2411
|
<dl>
|
2436
2412
|
<dd>
|
2437
2413
|
|
2438
|
-
**
|
2414
|
+
**inputs:** `typing.Sequence[PromptDeploymentInputRequest]` — The list of inputs defined in the Prompt's deployment with their corresponding values.
|
2439
2415
|
|
2440
2416
|
</dd>
|
2441
2417
|
</dl>
|
@@ -2443,7 +2419,7 @@ client.release_reviews.retrieve_prompt_deployment_release(
|
|
2443
2419
|
<dl>
|
2444
2420
|
<dd>
|
2445
2421
|
|
2446
|
-
**
|
2422
|
+
**deployment_id:** `typing.Optional[str]` — The ID of the deployment. Must provide either this or deployment_name.
|
2447
2423
|
|
2448
2424
|
</dd>
|
2449
2425
|
</dl>
|
@@ -2451,70 +2427,15 @@ client.release_reviews.retrieve_prompt_deployment_release(
|
|
2451
2427
|
<dl>
|
2452
2428
|
<dd>
|
2453
2429
|
|
2454
|
-
**
|
2430
|
+
**deployment_name:** `typing.Optional[str]` — The name of the deployment. Must provide either this or deployment_id.
|
2455
2431
|
|
2456
|
-
</dd>
|
2457
|
-
</dl>
|
2458
|
-
</dd>
|
2459
|
-
</dl>
|
2460
|
-
|
2461
|
-
|
2462
|
-
</dd>
|
2463
|
-
</dl>
|
2464
|
-
</details>
|
2465
|
-
|
2466
|
-
<details><summary><code>client.release_reviews.<a href="src/vellum/resources/release_reviews/client.py">retrieve_workflow_deployment_release</a>(...)</code></summary>
|
2467
|
-
<dl>
|
2468
|
-
<dd>
|
2469
|
-
|
2470
|
-
#### 📝 Description
|
2471
|
-
|
2472
|
-
<dl>
|
2473
|
-
<dd>
|
2474
|
-
|
2475
|
-
<dl>
|
2476
|
-
<dd>
|
2477
|
-
|
2478
|
-
Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
2479
|
-
</dd>
|
2480
|
-
</dl>
|
2481
|
-
</dd>
|
2482
|
-
</dl>
|
2483
|
-
|
2484
|
-
#### 🔌 Usage
|
2485
|
-
|
2486
|
-
<dl>
|
2487
|
-
<dd>
|
2488
|
-
|
2489
|
-
<dl>
|
2490
|
-
<dd>
|
2491
|
-
|
2492
|
-
```python
|
2493
|
-
from vellum import Vellum
|
2494
|
-
|
2495
|
-
client = Vellum(
|
2496
|
-
api_key="YOUR_API_KEY",
|
2497
|
-
)
|
2498
|
-
client.release_reviews.retrieve_workflow_deployment_release(
|
2499
|
-
id="id",
|
2500
|
-
release_id_or_release_tag="release_id_or_release_tag",
|
2501
|
-
)
|
2502
|
-
|
2503
|
-
```
|
2504
|
-
</dd>
|
2505
|
-
</dl>
|
2506
2432
|
</dd>
|
2507
2433
|
</dl>
|
2508
2434
|
|
2509
|
-
#### ⚙️ Parameters
|
2510
|
-
|
2511
2435
|
<dl>
|
2512
2436
|
<dd>
|
2513
2437
|
|
2514
|
-
|
2515
|
-
<dd>
|
2516
|
-
|
2517
|
-
**id:** `str` — A UUID string identifying this workflow deployment.
|
2438
|
+
**release_tag:** `typing.Optional[str]` — Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
|
2518
2439
|
|
2519
2440
|
</dd>
|
2520
2441
|
</dl>
|
@@ -2522,7 +2443,7 @@ client.release_reviews.retrieve_workflow_deployment_release(
|
|
2522
2443
|
<dl>
|
2523
2444
|
<dd>
|
2524
2445
|
|
2525
|
-
**
|
2446
|
+
**expand_meta:** `typing.Optional[CompilePromptDeploymentExpandMetaRequest]`
|
2526
2447
|
|
2527
2448
|
</dd>
|
2528
2449
|
</dl>
|
@@ -5664,7 +5585,8 @@ client.workflow_deployments.workflow_deployment_event_execution(
|
|
5664
5585
|
<dl>
|
5665
5586
|
<dd>
|
5666
5587
|
|
5667
|
-
|
5588
|
+
DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
|
5589
|
+
`retrieve_workflow_deployment_release` endpoint instead.
|
5668
5590
|
</dd>
|
5669
5591
|
</dl>
|
5670
5592
|
</dd>
|
@@ -5995,6 +5917,86 @@ client.workflow_deployments.update_workflow_release_tag(
|
|
5995
5917
|
</dl>
|
5996
5918
|
|
5997
5919
|
|
5920
|
+
</dd>
|
5921
|
+
</dl>
|
5922
|
+
</details>
|
5923
|
+
|
5924
|
+
## ReleaseReviews
|
5925
|
+
<details><summary><code>client.release_reviews.<a href="src/vellum/resources/release_reviews/client.py">retrieve_workflow_deployment_release</a>(...)</code></summary>
|
5926
|
+
<dl>
|
5927
|
+
<dd>
|
5928
|
+
|
5929
|
+
#### 📝 Description
|
5930
|
+
|
5931
|
+
<dl>
|
5932
|
+
<dd>
|
5933
|
+
|
5934
|
+
<dl>
|
5935
|
+
<dd>
|
5936
|
+
|
5937
|
+
Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
5938
|
+
</dd>
|
5939
|
+
</dl>
|
5940
|
+
</dd>
|
5941
|
+
</dl>
|
5942
|
+
|
5943
|
+
#### 🔌 Usage
|
5944
|
+
|
5945
|
+
<dl>
|
5946
|
+
<dd>
|
5947
|
+
|
5948
|
+
<dl>
|
5949
|
+
<dd>
|
5950
|
+
|
5951
|
+
```python
|
5952
|
+
from vellum import Vellum
|
5953
|
+
|
5954
|
+
client = Vellum(
|
5955
|
+
api_key="YOUR_API_KEY",
|
5956
|
+
)
|
5957
|
+
client.release_reviews.retrieve_workflow_deployment_release(
|
5958
|
+
id="id",
|
5959
|
+
release_id_or_release_tag="release_id_or_release_tag",
|
5960
|
+
)
|
5961
|
+
|
5962
|
+
```
|
5963
|
+
</dd>
|
5964
|
+
</dl>
|
5965
|
+
</dd>
|
5966
|
+
</dl>
|
5967
|
+
|
5968
|
+
#### ⚙️ Parameters
|
5969
|
+
|
5970
|
+
<dl>
|
5971
|
+
<dd>
|
5972
|
+
|
5973
|
+
<dl>
|
5974
|
+
<dd>
|
5975
|
+
|
5976
|
+
**id:** `str` — A UUID string identifying this workflow deployment.
|
5977
|
+
|
5978
|
+
</dd>
|
5979
|
+
</dl>
|
5980
|
+
|
5981
|
+
<dl>
|
5982
|
+
<dd>
|
5983
|
+
|
5984
|
+
**release_id_or_release_tag:** `str` — Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
|
5985
|
+
|
5986
|
+
</dd>
|
5987
|
+
</dl>
|
5988
|
+
|
5989
|
+
<dl>
|
5990
|
+
<dd>
|
5991
|
+
|
5992
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
5993
|
+
|
5994
|
+
</dd>
|
5995
|
+
</dl>
|
5996
|
+
</dd>
|
5997
|
+
</dl>
|
5998
|
+
|
5999
|
+
|
5998
6000
|
</dd>
|
5999
6001
|
</dl>
|
6000
6002
|
</details>
|
@@ -14,6 +14,7 @@ from ...types.deployment_history_item import DeploymentHistoryItem
|
|
14
14
|
from .types.list_deployment_release_tags_request_source import ListDeploymentReleaseTagsRequestSource
|
15
15
|
from ...types.paginated_deployment_release_tag_read_list import PaginatedDeploymentReleaseTagReadList
|
16
16
|
from ...types.deployment_release_tag_read import DeploymentReleaseTagRead
|
17
|
+
from ...types.prompt_deployment_release import PromptDeploymentRelease
|
17
18
|
from ...types.prompt_deployment_input_request import PromptDeploymentInputRequest
|
18
19
|
from ...types.compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
19
20
|
from ...types.deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
@@ -153,7 +154,8 @@ class DeploymentsClient:
|
|
153
154
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
154
155
|
) -> DeploymentHistoryItem:
|
155
156
|
"""
|
156
|
-
|
157
|
+
DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
|
158
|
+
`retrieve_prompt_deployment_release` xendpoint instead.
|
157
159
|
|
158
160
|
Parameters
|
159
161
|
----------
|
@@ -400,6 +402,60 @@ class DeploymentsClient:
|
|
400
402
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
401
403
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
402
404
|
|
405
|
+
def retrieve_prompt_deployment_release(
|
406
|
+
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
407
|
+
) -> PromptDeploymentRelease:
|
408
|
+
"""
|
409
|
+
Retrieve a specific Prompt Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
410
|
+
|
411
|
+
Parameters
|
412
|
+
----------
|
413
|
+
id : str
|
414
|
+
A UUID string identifying this deployment.
|
415
|
+
|
416
|
+
release_id_or_release_tag : str
|
417
|
+
Either the UUID of Prompt Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Prompt Deployment Release you'd like to retrieve.
|
418
|
+
|
419
|
+
request_options : typing.Optional[RequestOptions]
|
420
|
+
Request-specific configuration.
|
421
|
+
|
422
|
+
Returns
|
423
|
+
-------
|
424
|
+
PromptDeploymentRelease
|
425
|
+
|
426
|
+
|
427
|
+
Examples
|
428
|
+
--------
|
429
|
+
from vellum import Vellum
|
430
|
+
|
431
|
+
client = Vellum(
|
432
|
+
api_key="YOUR_API_KEY",
|
433
|
+
)
|
434
|
+
client.deployments.retrieve_prompt_deployment_release(
|
435
|
+
id="id",
|
436
|
+
release_id_or_release_tag="release_id_or_release_tag",
|
437
|
+
)
|
438
|
+
"""
|
439
|
+
_response = self._client_wrapper.httpx_client.request(
|
440
|
+
f"v1/deployments/{jsonable_encoder(id)}/releases/{jsonable_encoder(release_id_or_release_tag)}",
|
441
|
+
base_url=self._client_wrapper.get_environment().default,
|
442
|
+
method="GET",
|
443
|
+
request_options=request_options,
|
444
|
+
)
|
445
|
+
try:
|
446
|
+
if 200 <= _response.status_code < 300:
|
447
|
+
return typing.cast(
|
448
|
+
PromptDeploymentRelease,
|
449
|
+
parse_obj_as(
|
450
|
+
type_=PromptDeploymentRelease, # type: ignore
|
451
|
+
object_=_response.json(),
|
452
|
+
),
|
453
|
+
)
|
454
|
+
_response_json = _response.json()
|
455
|
+
except JSONDecodeError:
|
456
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
457
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
458
|
+
|
403
459
|
def retrieve_provider_payload(
|
404
460
|
self,
|
405
461
|
*,
|
@@ -679,7 +735,8 @@ class AsyncDeploymentsClient:
|
|
679
735
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
680
736
|
) -> DeploymentHistoryItem:
|
681
737
|
"""
|
682
|
-
|
738
|
+
DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
|
739
|
+
`retrieve_prompt_deployment_release` xendpoint instead.
|
683
740
|
|
684
741
|
Parameters
|
685
742
|
----------
|
@@ -958,6 +1015,68 @@ class AsyncDeploymentsClient:
|
|
958
1015
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
959
1016
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
960
1017
|
|
1018
|
+
async def retrieve_prompt_deployment_release(
|
1019
|
+
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
1020
|
+
) -> PromptDeploymentRelease:
|
1021
|
+
"""
|
1022
|
+
Retrieve a specific Prompt Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
1023
|
+
|
1024
|
+
Parameters
|
1025
|
+
----------
|
1026
|
+
id : str
|
1027
|
+
A UUID string identifying this deployment.
|
1028
|
+
|
1029
|
+
release_id_or_release_tag : str
|
1030
|
+
Either the UUID of Prompt Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Prompt Deployment Release you'd like to retrieve.
|
1031
|
+
|
1032
|
+
request_options : typing.Optional[RequestOptions]
|
1033
|
+
Request-specific configuration.
|
1034
|
+
|
1035
|
+
Returns
|
1036
|
+
-------
|
1037
|
+
PromptDeploymentRelease
|
1038
|
+
|
1039
|
+
|
1040
|
+
Examples
|
1041
|
+
--------
|
1042
|
+
import asyncio
|
1043
|
+
|
1044
|
+
from vellum import AsyncVellum
|
1045
|
+
|
1046
|
+
client = AsyncVellum(
|
1047
|
+
api_key="YOUR_API_KEY",
|
1048
|
+
)
|
1049
|
+
|
1050
|
+
|
1051
|
+
async def main() -> None:
|
1052
|
+
await client.deployments.retrieve_prompt_deployment_release(
|
1053
|
+
id="id",
|
1054
|
+
release_id_or_release_tag="release_id_or_release_tag",
|
1055
|
+
)
|
1056
|
+
|
1057
|
+
|
1058
|
+
asyncio.run(main())
|
1059
|
+
"""
|
1060
|
+
_response = await self._client_wrapper.httpx_client.request(
|
1061
|
+
f"v1/deployments/{jsonable_encoder(id)}/releases/{jsonable_encoder(release_id_or_release_tag)}",
|
1062
|
+
base_url=self._client_wrapper.get_environment().default,
|
1063
|
+
method="GET",
|
1064
|
+
request_options=request_options,
|
1065
|
+
)
|
1066
|
+
try:
|
1067
|
+
if 200 <= _response.status_code < 300:
|
1068
|
+
return typing.cast(
|
1069
|
+
PromptDeploymentRelease,
|
1070
|
+
parse_obj_as(
|
1071
|
+
type_=PromptDeploymentRelease, # type: ignore
|
1072
|
+
object_=_response.json(),
|
1073
|
+
),
|
1074
|
+
)
|
1075
|
+
_response_json = _response.json()
|
1076
|
+
except JSONDecodeError:
|
1077
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
1078
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
1079
|
+
|
961
1080
|
async def retrieve_provider_payload(
|
962
1081
|
self,
|
963
1082
|
*,
|