vellum-ai 1.0.11__py3-none-any.whl → 1.1.1__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 +2 -2
- vellum/client/README.md +0 -55
- vellum/client/__init__.py +159 -877
- vellum/client/core/__init__.py +3 -0
- vellum/client/core/client_wrapper.py +2 -2
- vellum/client/core/http_response.py +47 -0
- vellum/client/raw_client.py +1561 -0
- vellum/client/reference.md +22 -696
- vellum/client/resources/__init__.py +0 -2
- vellum/client/resources/ad_hoc/client.py +55 -161
- vellum/client/resources/ad_hoc/raw_client.py +278 -0
- vellum/client/resources/container_images/client.py +62 -172
- vellum/client/resources/container_images/raw_client.py +400 -0
- vellum/client/resources/deployments/client.py +112 -437
- vellum/client/resources/deployments/raw_client.py +995 -0
- vellum/client/resources/document_indexes/client.py +108 -317
- vellum/client/resources/document_indexes/raw_client.py +847 -0
- vellum/client/resources/documents/client.py +88 -285
- vellum/client/resources/documents/raw_client.py +655 -0
- vellum/client/resources/folder_entities/client.py +54 -92
- vellum/client/resources/folder_entities/raw_client.py +277 -0
- vellum/client/resources/metric_definitions/client.py +48 -95
- vellum/client/resources/metric_definitions/raw_client.py +225 -0
- vellum/client/resources/ml_models/client.py +36 -40
- vellum/client/resources/ml_models/raw_client.py +103 -0
- vellum/client/resources/organizations/client.py +34 -39
- vellum/client/resources/organizations/raw_client.py +96 -0
- vellum/client/resources/prompts/client.py +50 -193
- vellum/client/resources/prompts/raw_client.py +346 -0
- vellum/client/resources/sandboxes/client.py +68 -141
- vellum/client/resources/sandboxes/raw_client.py +393 -0
- vellum/client/resources/test_suite_runs/client.py +58 -141
- vellum/client/resources/test_suite_runs/raw_client.py +355 -0
- vellum/client/resources/test_suites/client.py +73 -141
- vellum/client/resources/test_suites/raw_client.py +379 -0
- vellum/client/resources/workflow_deployments/client.py +203 -328
- vellum/client/resources/workflow_deployments/raw_client.py +931 -0
- vellum/client/resources/workflow_executions/client.py +36 -40
- vellum/client/resources/workflow_executions/raw_client.py +97 -0
- vellum/client/resources/workflow_sandboxes/client.py +60 -108
- vellum/client/resources/workflow_sandboxes/raw_client.py +300 -0
- vellum/client/resources/workflows/client.py +68 -133
- vellum/client/resources/workflows/raw_client.py +307 -0
- vellum/client/resources/workspace_secrets/client.py +46 -90
- vellum/client/resources/workspace_secrets/raw_client.py +220 -0
- vellum/client/resources/workspaces/client.py +34 -39
- vellum/client/resources/workspaces/raw_client.py +96 -0
- vellum/client/types/__init__.py +2 -0
- vellum/client/types/api_request_parent_context.py +1 -0
- vellum/client/types/external_parent_context.py +36 -0
- vellum/client/types/node_execution_fulfilled_event.py +1 -0
- vellum/client/types/node_execution_initiated_event.py +1 -0
- vellum/client/types/node_execution_paused_event.py +1 -0
- vellum/client/types/node_execution_rejected_event.py +1 -0
- vellum/client/types/node_execution_resumed_event.py +1 -0
- vellum/client/types/node_execution_span.py +1 -0
- vellum/client/types/node_execution_span_attributes.py +1 -0
- vellum/client/types/node_execution_streaming_event.py +1 -0
- vellum/client/types/node_parent_context.py +1 -0
- vellum/client/types/parent_context.py +2 -0
- vellum/client/types/prompt_deployment_parent_context.py +1 -0
- vellum/client/types/slim_workflow_execution_read.py +1 -0
- vellum/client/types/span_link.py +1 -0
- vellum/client/types/workflow_deployment_event_executions_response.py +1 -0
- vellum/client/types/workflow_deployment_parent_context.py +1 -0
- vellum/client/types/workflow_event_execution_read.py +1 -0
- vellum/client/types/workflow_execution_detail.py +1 -0
- vellum/client/types/workflow_execution_fulfilled_event.py +1 -0
- vellum/client/types/workflow_execution_initiated_event.py +1 -0
- vellum/client/types/workflow_execution_paused_event.py +1 -0
- vellum/client/types/workflow_execution_rejected_event.py +1 -0
- vellum/client/types/workflow_execution_resumed_event.py +1 -0
- vellum/client/types/workflow_execution_snapshotted_event.py +1 -0
- vellum/client/types/workflow_execution_span.py +1 -0
- vellum/client/types/workflow_execution_span_attributes.py +1 -0
- vellum/client/types/workflow_execution_streaming_event.py +1 -0
- vellum/client/types/workflow_parent_context.py +1 -0
- vellum/client/types/workflow_sandbox_parent_context.py +1 -0
- vellum/{resources/release_reviews/__init__.py → core/http_response.py} +1 -1
- vellum/{resources/release_reviews/client.py → raw_client.py} +1 -1
- vellum/resources/ad_hoc/raw_client.py +3 -0
- vellum/resources/container_images/raw_client.py +3 -0
- vellum/resources/deployments/raw_client.py +3 -0
- vellum/resources/document_indexes/raw_client.py +3 -0
- vellum/resources/documents/raw_client.py +3 -0
- vellum/resources/folder_entities/raw_client.py +3 -0
- vellum/resources/metric_definitions/raw_client.py +3 -0
- vellum/resources/ml_models/raw_client.py +3 -0
- vellum/resources/organizations/raw_client.py +3 -0
- vellum/resources/prompts/raw_client.py +3 -0
- vellum/resources/sandboxes/raw_client.py +3 -0
- vellum/resources/test_suite_runs/raw_client.py +3 -0
- vellum/resources/test_suites/raw_client.py +3 -0
- vellum/resources/workflow_deployments/raw_client.py +3 -0
- vellum/resources/workflow_executions/raw_client.py +3 -0
- vellum/resources/workflow_sandboxes/raw_client.py +3 -0
- vellum/resources/workflows/raw_client.py +3 -0
- vellum/resources/workspace_secrets/raw_client.py +3 -0
- vellum/resources/workspaces/raw_client.py +3 -0
- vellum/types/external_parent_context.py +3 -0
- vellum/workflows/emitters/vellum_emitter.py +3 -2
- vellum/workflows/events/types.py +6 -0
- vellum/workflows/nodes/displayable/tests/test_text_prompt_deployment_node.py +5 -15
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +6 -0
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +75 -0
- vellum/workflows/state/context.py +13 -2
- vellum/workflows/types/definition.py +2 -2
- vellum/workflows/types/tests/test_definition.py +2 -3
- vellum/workflows/utils/functions.py +1 -1
- vellum/workflows/utils/tests/test_functions.py +3 -3
- {vellum_ai-1.0.11.dist-info → vellum_ai-1.1.1.dist-info}/METADATA +1 -1
- {vellum_ai-1.0.11.dist-info → vellum_ai-1.1.1.dist-info}/RECORD +123 -81
- vellum_ee/workflows/display/exceptions.py +7 -0
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +2 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_code_execution_node.py +53 -2
- vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +93 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_mcp_serialization.py +98 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_workflow_deployment_serialization.py +1 -1
- vellum_ee/workflows/display/utils/expressions.py +1 -1
- vellum_ee/workflows/display/workflows/base_workflow_display.py +2 -1
- vellum/client/resources/release_reviews/__init__.py +0 -2
- vellum/client/resources/release_reviews/client.py +0 -139
- {vellum_ai-1.0.11.dist-info → vellum_ai-1.1.1.dist-info}/LICENSE +0 -0
- {vellum_ai-1.0.11.dist-info → vellum_ai-1.1.1.dist-info}/WHEEL +0 -0
- {vellum_ai-1.0.11.dist-info → vellum_ai-1.1.1.dist-info}/entry_points.txt +0 -0
vellum/__init__.py
CHANGED
@@ -124,6 +124,7 @@ from .client.types import (
|
|
124
124
|
ExecutionThinkingVellumValue,
|
125
125
|
ExecutionVellumValue,
|
126
126
|
ExternalInputDescriptor,
|
127
|
+
ExternalParentContext,
|
127
128
|
ExternalTestCaseExecution,
|
128
129
|
ExternalTestCaseExecutionRequest,
|
129
130
|
FastEmbedVectorizerBaaiBgeSmallEnV15,
|
@@ -625,7 +626,6 @@ from .resources import (
|
|
625
626
|
ml_models,
|
626
627
|
organizations,
|
627
628
|
prompts,
|
628
|
-
release_reviews,
|
629
629
|
sandboxes,
|
630
630
|
test_suite_runs,
|
631
631
|
test_suites,
|
@@ -765,6 +765,7 @@ __all__ = [
|
|
765
765
|
"ExecutionThinkingVellumValue",
|
766
766
|
"ExecutionVellumValue",
|
767
767
|
"ExternalInputDescriptor",
|
768
|
+
"ExternalParentContext",
|
768
769
|
"ExternalTestCaseExecution",
|
769
770
|
"ExternalTestCaseExecutionRequest",
|
770
771
|
"FastEmbedVectorizerBaaiBgeSmallEnV15",
|
@@ -1267,7 +1268,6 @@ __all__ = [
|
|
1267
1268
|
"ml_models",
|
1268
1269
|
"organizations",
|
1269
1270
|
"prompts",
|
1270
|
-
"release_reviews",
|
1271
1271
|
"sandboxes",
|
1272
1272
|
"test_suite_runs",
|
1273
1273
|
"test_suites",
|
vellum/client/README.md
CHANGED
@@ -95,61 +95,6 @@ except ApiError as e:
|
|
95
95
|
print(e.body)
|
96
96
|
```
|
97
97
|
|
98
|
-
## Streaming
|
99
|
-
|
100
|
-
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
101
|
-
|
102
|
-
```python
|
103
|
-
from vellum import (
|
104
|
-
JinjaPromptBlock,
|
105
|
-
PromptParameters,
|
106
|
-
PromptRequestStringInput,
|
107
|
-
Vellum,
|
108
|
-
VellumVariable,
|
109
|
-
)
|
110
|
-
|
111
|
-
client = Vellum(
|
112
|
-
api_version="YOUR_API_VERSION",
|
113
|
-
api_key="YOUR_API_KEY",
|
114
|
-
)
|
115
|
-
response = client.ad_hoc.adhoc_execute_prompt_stream(
|
116
|
-
ml_model="x",
|
117
|
-
input_values=[
|
118
|
-
PromptRequestStringInput(
|
119
|
-
key="x",
|
120
|
-
value="value",
|
121
|
-
),
|
122
|
-
PromptRequestStringInput(
|
123
|
-
key="x",
|
124
|
-
value="value",
|
125
|
-
),
|
126
|
-
],
|
127
|
-
input_variables=[
|
128
|
-
VellumVariable(
|
129
|
-
id="x",
|
130
|
-
key="key",
|
131
|
-
type="STRING",
|
132
|
-
),
|
133
|
-
VellumVariable(
|
134
|
-
id="x",
|
135
|
-
key="key",
|
136
|
-
type="STRING",
|
137
|
-
),
|
138
|
-
],
|
139
|
-
parameters=PromptParameters(),
|
140
|
-
blocks=[
|
141
|
-
JinjaPromptBlock(
|
142
|
-
template="template",
|
143
|
-
),
|
144
|
-
JinjaPromptBlock(
|
145
|
-
template="template",
|
146
|
-
),
|
147
|
-
],
|
148
|
-
)
|
149
|
-
for chunk in response:
|
150
|
-
yield chunk
|
151
|
-
```
|
152
|
-
|
153
98
|
## Advanced
|
154
99
|
|
155
100
|
### Retries
|