vellum-ai 1.0.1__py3-none-any.whl → 1.0.3__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 +6 -0
- vellum/client/__init__.py +4 -0
- vellum/client/core/client_wrapper.py +2 -2
- vellum/client/reference.md +58 -0
- vellum/client/resources/__init__.py +2 -0
- vellum/client/resources/workflow_executions/__init__.py +2 -0
- vellum/client/resources/workflow_executions/client.py +125 -0
- vellum/client/types/__init__.py +4 -0
- vellum/client/types/node_output_compiled_thinking_value.py +28 -0
- vellum/client/types/node_output_compiled_value.py +2 -0
- vellum/client/types/workflow_execution_detail.py +42 -0
- vellum/resources/workflow_executions/__init__.py +3 -0
- vellum/resources/workflow_executions/client.py +3 -0
- vellum/types/node_output_compiled_thinking_value.py +3 -0
- vellum/types/workflow_execution_detail.py +3 -0
- vellum/workflows/nodes/displayable/bases/inline_prompt_node/node.py +1 -1
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +1 -1
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +1 -1
- {vellum_ai-1.0.1.dist-info → vellum_ai-1.0.3.dist-info}/METADATA +1 -1
- {vellum_ai-1.0.1.dist-info → vellum_ai-1.0.3.dist-info}/RECORD +25 -17
- vellum_ee/workflows/display/workflows/base_workflow_display.py +9 -8
- /vellum/{workflows/nodes/displayable/bases/inline_prompt_node → prompts}/constants.py +0 -0
- {vellum_ai-1.0.1.dist-info → vellum_ai-1.0.3.dist-info}/LICENSE +0 -0
- {vellum_ai-1.0.1.dist-info → vellum_ai-1.0.3.dist-info}/WHEEL +0 -0
- {vellum_ai-1.0.1.dist-info → vellum_ai-1.0.3.dist-info}/entry_points.txt +0 -0
vellum/__init__.py
CHANGED
@@ -272,6 +272,7 @@ from .client.types import (
|
|
272
272
|
NodeOutputCompiledNumberValue,
|
273
273
|
NodeOutputCompiledSearchResultsValue,
|
274
274
|
NodeOutputCompiledStringValue,
|
275
|
+
NodeOutputCompiledThinkingValue,
|
275
276
|
NodeOutputCompiledValue,
|
276
277
|
NodeParentContext,
|
277
278
|
NormalizedLogProbs,
|
@@ -541,6 +542,7 @@ from .client.types import (
|
|
541
542
|
WorkflowExecutionActualChatHistoryRequest,
|
542
543
|
WorkflowExecutionActualJsonRequest,
|
543
544
|
WorkflowExecutionActualStringRequest,
|
545
|
+
WorkflowExecutionDetail,
|
544
546
|
WorkflowExecutionEventErrorCode,
|
545
547
|
WorkflowExecutionEventType,
|
546
548
|
WorkflowExecutionFulfilledBody,
|
@@ -631,6 +633,7 @@ from .resources import (
|
|
631
633
|
test_suite_runs,
|
632
634
|
test_suites,
|
633
635
|
workflow_deployments,
|
636
|
+
workflow_executions,
|
634
637
|
workflow_sandboxes,
|
635
638
|
workflows,
|
636
639
|
workspace_secrets,
|
@@ -919,6 +922,7 @@ __all__ = [
|
|
919
922
|
"NodeOutputCompiledNumberValue",
|
920
923
|
"NodeOutputCompiledSearchResultsValue",
|
921
924
|
"NodeOutputCompiledStringValue",
|
925
|
+
"NodeOutputCompiledThinkingValue",
|
922
926
|
"NodeOutputCompiledValue",
|
923
927
|
"NodeParentContext",
|
924
928
|
"NormalizedLogProbs",
|
@@ -1192,6 +1196,7 @@ __all__ = [
|
|
1192
1196
|
"WorkflowExecutionActualChatHistoryRequest",
|
1193
1197
|
"WorkflowExecutionActualJsonRequest",
|
1194
1198
|
"WorkflowExecutionActualStringRequest",
|
1199
|
+
"WorkflowExecutionDetail",
|
1195
1200
|
"WorkflowExecutionEventErrorCode",
|
1196
1201
|
"WorkflowExecutionEventType",
|
1197
1202
|
"WorkflowExecutionFulfilledBody",
|
@@ -1273,6 +1278,7 @@ __all__ = [
|
|
1273
1278
|
"test_suite_runs",
|
1274
1279
|
"test_suites",
|
1275
1280
|
"workflow_deployments",
|
1281
|
+
"workflow_executions",
|
1276
1282
|
"workflow_sandboxes",
|
1277
1283
|
"workflows",
|
1278
1284
|
"workspace_secrets",
|
vellum/client/__init__.py
CHANGED
@@ -21,6 +21,7 @@ from .resources.test_suite_runs.client import TestSuiteRunsClient
|
|
21
21
|
from .resources.test_suites.client import TestSuitesClient
|
22
22
|
from .resources.workflow_deployments.client import WorkflowDeploymentsClient
|
23
23
|
from .resources.release_reviews.client import ReleaseReviewsClient
|
24
|
+
from .resources.workflow_executions.client import WorkflowExecutionsClient
|
24
25
|
from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
|
25
26
|
from .resources.workflows.client import WorkflowsClient
|
26
27
|
from .resources.workspace_secrets.client import WorkspaceSecretsClient
|
@@ -79,6 +80,7 @@ from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
|
|
79
80
|
from .resources.test_suites.client import AsyncTestSuitesClient
|
80
81
|
from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClient
|
81
82
|
from .resources.release_reviews.client import AsyncReleaseReviewsClient
|
83
|
+
from .resources.workflow_executions.client import AsyncWorkflowExecutionsClient
|
82
84
|
from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
|
83
85
|
from .resources.workflows.client import AsyncWorkflowsClient
|
84
86
|
from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
|
@@ -163,6 +165,7 @@ class Vellum:
|
|
163
165
|
self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
|
164
166
|
self.workflow_deployments = WorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
165
167
|
self.release_reviews = ReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
168
|
+
self.workflow_executions = WorkflowExecutionsClient(client_wrapper=self._client_wrapper)
|
166
169
|
self.workflow_sandboxes = WorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
167
170
|
self.workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
|
168
171
|
self.workspace_secrets = WorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
@@ -1597,6 +1600,7 @@ class AsyncVellum:
|
|
1597
1600
|
self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
|
1598
1601
|
self.workflow_deployments = AsyncWorkflowDeploymentsClient(client_wrapper=self._client_wrapper)
|
1599
1602
|
self.release_reviews = AsyncReleaseReviewsClient(client_wrapper=self._client_wrapper)
|
1603
|
+
self.workflow_executions = AsyncWorkflowExecutionsClient(client_wrapper=self._client_wrapper)
|
1600
1604
|
self.workflow_sandboxes = AsyncWorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
1601
1605
|
self.workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
|
1602
1606
|
self.workspace_secrets = AsyncWorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
@@ -25,10 +25,10 @@ class BaseClientWrapper:
|
|
25
25
|
|
26
26
|
def get_headers(self) -> typing.Dict[str, str]:
|
27
27
|
headers: typing.Dict[str, str] = {
|
28
|
-
"User-Agent": "vellum-ai/1.0.
|
28
|
+
"User-Agent": "vellum-ai/1.0.3",
|
29
29
|
"X-Fern-Language": "Python",
|
30
30
|
"X-Fern-SDK-Name": "vellum-ai",
|
31
|
-
"X-Fern-SDK-Version": "1.0.
|
31
|
+
"X-Fern-SDK-Version": "1.0.3",
|
32
32
|
}
|
33
33
|
if self._api_version is not None:
|
34
34
|
headers["X-API-Version"] = self._api_version
|
vellum/client/reference.md
CHANGED
@@ -6029,6 +6029,64 @@ client.release_reviews.retrieve_workflow_deployment_release(
|
|
6029
6029
|
</dl>
|
6030
6030
|
|
6031
6031
|
|
6032
|
+
</dd>
|
6033
|
+
</dl>
|
6034
|
+
</details>
|
6035
|
+
|
6036
|
+
## WorkflowExecutions
|
6037
|
+
<details><summary><code>client.workflow_executions.<a href="src/vellum/resources/workflow_executions/client.py">retrieve_workflow_execution_detail</a>(...)</code></summary>
|
6038
|
+
<dl>
|
6039
|
+
<dd>
|
6040
|
+
|
6041
|
+
#### 🔌 Usage
|
6042
|
+
|
6043
|
+
<dl>
|
6044
|
+
<dd>
|
6045
|
+
|
6046
|
+
<dl>
|
6047
|
+
<dd>
|
6048
|
+
|
6049
|
+
```python
|
6050
|
+
from vellum import Vellum
|
6051
|
+
|
6052
|
+
client = Vellum(
|
6053
|
+
api_version="YOUR_API_VERSION",
|
6054
|
+
api_key="YOUR_API_KEY",
|
6055
|
+
)
|
6056
|
+
client.workflow_executions.retrieve_workflow_execution_detail(
|
6057
|
+
execution_id="execution_id",
|
6058
|
+
)
|
6059
|
+
|
6060
|
+
```
|
6061
|
+
</dd>
|
6062
|
+
</dl>
|
6063
|
+
</dd>
|
6064
|
+
</dl>
|
6065
|
+
|
6066
|
+
#### ⚙️ Parameters
|
6067
|
+
|
6068
|
+
<dl>
|
6069
|
+
<dd>
|
6070
|
+
|
6071
|
+
<dl>
|
6072
|
+
<dd>
|
6073
|
+
|
6074
|
+
**execution_id:** `str`
|
6075
|
+
|
6076
|
+
</dd>
|
6077
|
+
</dl>
|
6078
|
+
|
6079
|
+
<dl>
|
6080
|
+
<dd>
|
6081
|
+
|
6082
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
6083
|
+
|
6084
|
+
</dd>
|
6085
|
+
</dl>
|
6086
|
+
</dd>
|
6087
|
+
</dl>
|
6088
|
+
|
6089
|
+
|
6032
6090
|
</dd>
|
6033
6091
|
</dl>
|
6034
6092
|
</details>
|
@@ -16,6 +16,7 @@ from . import (
|
|
16
16
|
test_suite_runs,
|
17
17
|
test_suites,
|
18
18
|
workflow_deployments,
|
19
|
+
workflow_executions,
|
19
20
|
workflow_sandboxes,
|
20
21
|
workflows,
|
21
22
|
workspace_secrets,
|
@@ -50,6 +51,7 @@ __all__ = [
|
|
50
51
|
"test_suite_runs",
|
51
52
|
"test_suites",
|
52
53
|
"workflow_deployments",
|
54
|
+
"workflow_executions",
|
53
55
|
"workflow_sandboxes",
|
54
56
|
"workflows",
|
55
57
|
"workspace_secrets",
|
@@ -0,0 +1,125 @@
|
|
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.workflow_execution_detail import WorkflowExecutionDetail
|
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 WorkflowExecutionsClient:
|
15
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
16
|
+
self._client_wrapper = client_wrapper
|
17
|
+
|
18
|
+
def retrieve_workflow_execution_detail(
|
19
|
+
self, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
20
|
+
) -> WorkflowExecutionDetail:
|
21
|
+
"""
|
22
|
+
Parameters
|
23
|
+
----------
|
24
|
+
execution_id : str
|
25
|
+
|
26
|
+
request_options : typing.Optional[RequestOptions]
|
27
|
+
Request-specific configuration.
|
28
|
+
|
29
|
+
Returns
|
30
|
+
-------
|
31
|
+
WorkflowExecutionDetail
|
32
|
+
|
33
|
+
|
34
|
+
Examples
|
35
|
+
--------
|
36
|
+
from vellum import Vellum
|
37
|
+
|
38
|
+
client = Vellum(
|
39
|
+
api_version="YOUR_API_VERSION",
|
40
|
+
api_key="YOUR_API_KEY",
|
41
|
+
)
|
42
|
+
client.workflow_executions.retrieve_workflow_execution_detail(
|
43
|
+
execution_id="execution_id",
|
44
|
+
)
|
45
|
+
"""
|
46
|
+
_response = self._client_wrapper.httpx_client.request(
|
47
|
+
f"v1/workflow-executions/{jsonable_encoder(execution_id)}/detail",
|
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
|
+
WorkflowExecutionDetail,
|
56
|
+
parse_obj_as(
|
57
|
+
type_=WorkflowExecutionDetail, # 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 AsyncWorkflowExecutionsClient:
|
68
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
69
|
+
self._client_wrapper = client_wrapper
|
70
|
+
|
71
|
+
async def retrieve_workflow_execution_detail(
|
72
|
+
self, execution_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
73
|
+
) -> WorkflowExecutionDetail:
|
74
|
+
"""
|
75
|
+
Parameters
|
76
|
+
----------
|
77
|
+
execution_id : str
|
78
|
+
|
79
|
+
request_options : typing.Optional[RequestOptions]
|
80
|
+
Request-specific configuration.
|
81
|
+
|
82
|
+
Returns
|
83
|
+
-------
|
84
|
+
WorkflowExecutionDetail
|
85
|
+
|
86
|
+
|
87
|
+
Examples
|
88
|
+
--------
|
89
|
+
import asyncio
|
90
|
+
|
91
|
+
from vellum import AsyncVellum
|
92
|
+
|
93
|
+
client = AsyncVellum(
|
94
|
+
api_version="YOUR_API_VERSION",
|
95
|
+
api_key="YOUR_API_KEY",
|
96
|
+
)
|
97
|
+
|
98
|
+
|
99
|
+
async def main() -> None:
|
100
|
+
await client.workflow_executions.retrieve_workflow_execution_detail(
|
101
|
+
execution_id="execution_id",
|
102
|
+
)
|
103
|
+
|
104
|
+
|
105
|
+
asyncio.run(main())
|
106
|
+
"""
|
107
|
+
_response = await self._client_wrapper.httpx_client.request(
|
108
|
+
f"v1/workflow-executions/{jsonable_encoder(execution_id)}/detail",
|
109
|
+
base_url=self._client_wrapper.get_environment().default,
|
110
|
+
method="GET",
|
111
|
+
request_options=request_options,
|
112
|
+
)
|
113
|
+
try:
|
114
|
+
if 200 <= _response.status_code < 300:
|
115
|
+
return typing.cast(
|
116
|
+
WorkflowExecutionDetail,
|
117
|
+
parse_obj_as(
|
118
|
+
type_=WorkflowExecutionDetail, # type: ignore
|
119
|
+
object_=_response.json(),
|
120
|
+
),
|
121
|
+
)
|
122
|
+
_response_json = _response.json()
|
123
|
+
except JSONDecodeError:
|
124
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
125
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
vellum/client/types/__init__.py
CHANGED
@@ -280,6 +280,7 @@ from .node_output_compiled_json_value import NodeOutputCompiledJsonValue
|
|
280
280
|
from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
|
281
281
|
from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
|
282
282
|
from .node_output_compiled_string_value import NodeOutputCompiledStringValue
|
283
|
+
from .node_output_compiled_thinking_value import NodeOutputCompiledThinkingValue
|
283
284
|
from .node_output_compiled_value import NodeOutputCompiledValue
|
284
285
|
from .node_parent_context import NodeParentContext
|
285
286
|
from .normalized_log_probs import NormalizedLogProbs
|
@@ -565,6 +566,7 @@ from .workflow_execution_actual import WorkflowExecutionActual
|
|
565
566
|
from .workflow_execution_actual_chat_history_request import WorkflowExecutionActualChatHistoryRequest
|
566
567
|
from .workflow_execution_actual_json_request import WorkflowExecutionActualJsonRequest
|
567
568
|
from .workflow_execution_actual_string_request import WorkflowExecutionActualStringRequest
|
569
|
+
from .workflow_execution_detail import WorkflowExecutionDetail
|
568
570
|
from .workflow_execution_event_error_code import WorkflowExecutionEventErrorCode
|
569
571
|
from .workflow_execution_event_type import WorkflowExecutionEventType
|
570
572
|
from .workflow_execution_fulfilled_body import WorkflowExecutionFulfilledBody
|
@@ -900,6 +902,7 @@ __all__ = [
|
|
900
902
|
"NodeOutputCompiledNumberValue",
|
901
903
|
"NodeOutputCompiledSearchResultsValue",
|
902
904
|
"NodeOutputCompiledStringValue",
|
905
|
+
"NodeOutputCompiledThinkingValue",
|
903
906
|
"NodeOutputCompiledValue",
|
904
907
|
"NodeParentContext",
|
905
908
|
"NormalizedLogProbs",
|
@@ -1169,6 +1172,7 @@ __all__ = [
|
|
1169
1172
|
"WorkflowExecutionActualChatHistoryRequest",
|
1170
1173
|
"WorkflowExecutionActualJsonRequest",
|
1171
1174
|
"WorkflowExecutionActualStringRequest",
|
1175
|
+
"WorkflowExecutionDetail",
|
1172
1176
|
"WorkflowExecutionEventErrorCode",
|
1173
1177
|
"WorkflowExecutionEventType",
|
1174
1178
|
"WorkflowExecutionFulfilledBody",
|
@@ -0,0 +1,28 @@
|
|
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 .string_vellum_value import StringVellumValue
|
6
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
import pydantic
|
9
|
+
|
10
|
+
|
11
|
+
class NodeOutputCompiledThinkingValue(UniversalBaseModel):
|
12
|
+
"""
|
13
|
+
An output returned by a node that is of type THINKING.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["THINKING"] = "THINKING"
|
17
|
+
value: typing.Optional[StringVellumValue] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
20
|
+
|
21
|
+
if IS_PYDANTIC_V2:
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
23
|
+
else:
|
24
|
+
|
25
|
+
class Config:
|
26
|
+
frozen = True
|
27
|
+
smart_union = True
|
28
|
+
extra = pydantic.Extra.allow
|
@@ -9,6 +9,7 @@ from .node_output_compiled_search_results_value import NodeOutputCompiledSearchR
|
|
9
9
|
from .node_output_compiled_error_value import NodeOutputCompiledErrorValue
|
10
10
|
from .node_output_compiled_array_value import NodeOutputCompiledArrayValue
|
11
11
|
from .node_output_compiled_function_call_value import NodeOutputCompiledFunctionCallValue
|
12
|
+
from .node_output_compiled_thinking_value import NodeOutputCompiledThinkingValue
|
12
13
|
|
13
14
|
NodeOutputCompiledValue = typing.Union[
|
14
15
|
NodeOutputCompiledStringValue,
|
@@ -19,4 +20,5 @@ NodeOutputCompiledValue = typing.Union[
|
|
19
20
|
NodeOutputCompiledErrorValue,
|
20
21
|
NodeOutputCompiledArrayValue,
|
21
22
|
NodeOutputCompiledFunctionCallValue,
|
23
|
+
NodeOutputCompiledThinkingValue,
|
22
24
|
]
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from .api_request_parent_context import ApiRequestParentContext
|
5
|
+
from .node_parent_context import NodeParentContext
|
6
|
+
from .prompt_deployment_parent_context import PromptDeploymentParentContext
|
7
|
+
from .span_link import SpanLink
|
8
|
+
from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
|
9
|
+
from .workflow_parent_context import WorkflowParentContext
|
10
|
+
from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
|
11
|
+
from .array_vellum_value import ArrayVellumValue
|
12
|
+
import typing
|
13
|
+
from .parent_context import ParentContext
|
14
|
+
import datetime as dt
|
15
|
+
from .execution_vellum_value import ExecutionVellumValue
|
16
|
+
from .workflow_error import WorkflowError
|
17
|
+
from .workflow_execution_usage_result import WorkflowExecutionUsageResult
|
18
|
+
from .vellum_span import VellumSpan
|
19
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
20
|
+
import pydantic
|
21
|
+
|
22
|
+
|
23
|
+
class WorkflowExecutionDetail(UniversalBaseModel):
|
24
|
+
span_id: str
|
25
|
+
parent_context: typing.Optional[ParentContext] = None
|
26
|
+
start: dt.datetime
|
27
|
+
end: typing.Optional[dt.datetime] = None
|
28
|
+
inputs: typing.List[ExecutionVellumValue]
|
29
|
+
outputs: typing.List[ExecutionVellumValue]
|
30
|
+
error: typing.Optional[WorkflowError] = None
|
31
|
+
usage_results: typing.Optional[typing.List[WorkflowExecutionUsageResult]] = None
|
32
|
+
spans: typing.List[VellumSpan]
|
33
|
+
state: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
34
|
+
|
35
|
+
if IS_PYDANTIC_V2:
|
36
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
37
|
+
else:
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
frozen = True
|
41
|
+
smart_union = True
|
42
|
+
extra = pydantic.Extra.allow
|
@@ -21,13 +21,13 @@ from vellum.client.types.chat_message_request import ChatMessageRequest
|
|
21
21
|
from vellum.client.types.prompt_exec_config import PromptExecConfig
|
22
22
|
from vellum.client.types.prompt_settings import PromptSettings
|
23
23
|
from vellum.client.types.rich_text_child_block import RichTextChildBlock
|
24
|
+
from vellum.prompts.constants import DEFAULT_PROMPT_PARAMETERS
|
24
25
|
from vellum.workflows.context import get_execution_context
|
25
26
|
from vellum.workflows.errors import WorkflowErrorCode
|
26
27
|
from vellum.workflows.errors.types import vellum_error_to_workflow_error
|
27
28
|
from vellum.workflows.events.types import default_serializer
|
28
29
|
from vellum.workflows.exceptions import NodeException
|
29
30
|
from vellum.workflows.nodes.displayable.bases.base_prompt_node import BasePromptNode
|
30
|
-
from vellum.workflows.nodes.displayable.bases.inline_prompt_node.constants import DEFAULT_PROMPT_PARAMETERS
|
31
31
|
from vellum.workflows.outputs import BaseOutput
|
32
32
|
from vellum.workflows.types import MergeBehavior
|
33
33
|
from vellum.workflows.types.definition import DeploymentDefinition
|
@@ -2,6 +2,7 @@ from typing import ClassVar, Iterator, List, Optional, Set
|
|
2
2
|
|
3
3
|
from vellum import ChatMessage, PromptBlock
|
4
4
|
from vellum.client.types.prompt_parameters import PromptParameters
|
5
|
+
from vellum.prompts.constants import DEFAULT_PROMPT_PARAMETERS
|
5
6
|
from vellum.workflows.context import execution_context, get_parent_context
|
6
7
|
from vellum.workflows.errors.types import WorkflowErrorCode
|
7
8
|
from vellum.workflows.events.workflow import is_workflow_event
|
@@ -9,7 +10,6 @@ from vellum.workflows.exceptions import NodeException
|
|
9
10
|
from vellum.workflows.graph.graph import Graph
|
10
11
|
from vellum.workflows.inputs.base import BaseInputs
|
11
12
|
from vellum.workflows.nodes.bases import BaseNode
|
12
|
-
from vellum.workflows.nodes.displayable.bases.inline_prompt_node.constants import DEFAULT_PROMPT_PARAMETERS
|
13
13
|
from vellum.workflows.nodes.displayable.tool_calling_node.state import ToolCallingState
|
14
14
|
from vellum.workflows.nodes.displayable.tool_calling_node.utils import (
|
15
15
|
create_function_node,
|
@@ -10,10 +10,10 @@ from vellum.client.types.initiated_execute_prompt_event import InitiatedExecuteP
|
|
10
10
|
from vellum.client.types.string_chat_message_content import StringChatMessageContent
|
11
11
|
from vellum.client.types.string_vellum_value import StringVellumValue
|
12
12
|
from vellum.client.types.variable_prompt_block import VariablePromptBlock
|
13
|
+
from vellum.prompts.constants import DEFAULT_PROMPT_PARAMETERS
|
13
14
|
from vellum.workflows import BaseWorkflow
|
14
15
|
from vellum.workflows.inputs.base import BaseInputs
|
15
16
|
from vellum.workflows.nodes.bases import BaseNode
|
16
|
-
from vellum.workflows.nodes.displayable.bases.inline_prompt_node.constants import DEFAULT_PROMPT_PARAMETERS
|
17
17
|
from vellum.workflows.nodes.displayable.tool_calling_node.node import ToolCallingNode
|
18
18
|
from vellum.workflows.nodes.displayable.tool_calling_node.utils import create_function_node, create_tool_router_node
|
19
19
|
from vellum.workflows.outputs.base import BaseOutputs
|
@@ -111,7 +111,7 @@ vellum_ee/workflows/display/utils/tests/test_auto_layout.py,sha256=vfXI769418s9v
|
|
111
111
|
vellum_ee/workflows/display/utils/vellum.py,sha256=mtoXmSYwR7rvrq-d6CzCW_auaJXTct0Mi1F0xpRCiNQ,5627
|
112
112
|
vellum_ee/workflows/display/vellum.py,sha256=J2mdJZ1sdLW535DDUkq_Vm8Z572vhuxHxVZF9deKSdk,391
|
113
113
|
vellum_ee/workflows/display/workflows/__init__.py,sha256=JTB9ObEV3l4gGGdtfBHwVJtTTKC22uj-a-XjTVwXCyA,148
|
114
|
-
vellum_ee/workflows/display/workflows/base_workflow_display.py,sha256=
|
114
|
+
vellum_ee/workflows/display/workflows/base_workflow_display.py,sha256=DNR5LuhC6m2r1XzeFsDuX98lL2ka6tYorInhsNC8O_Y,41535
|
115
115
|
vellum_ee/workflows/display/workflows/get_vellum_workflow_display_class.py,sha256=gxz76AeCqgAZ9D2lZeTiZzxY9eMgn3qOSfVgiqYcOh8,2028
|
116
116
|
vellum_ee/workflows/display/workflows/tests/test_workflow_display.py,sha256=9CkgKbM_zgq0l2bwst1hLFGyOigpjsBO4ZU6qSMXND4,36027
|
117
117
|
vellum_ee/workflows/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -139,12 +139,12 @@ vellum_ee/workflows/tests/test_display_meta.py,sha256=PkXJVnMZs9GNooDkd59n4YTBAX
|
|
139
139
|
vellum_ee/workflows/tests/test_serialize_module.py,sha256=EVrCRAP0lpvd0GIDlg2tnGfJzDNooNDXPfGFPLAqmbI,1870
|
140
140
|
vellum_ee/workflows/tests/test_server.py,sha256=SsOkS6sGO7uGC4mxvk4iv8AtcXs058P9hgFHzTWmpII,14519
|
141
141
|
vellum_ee/workflows/tests/test_virtual_files.py,sha256=TJEcMR0v2S8CkloXNmCHA0QW0K6pYNGaIjraJz7sFvY,2762
|
142
|
-
vellum/__init__.py,sha256
|
142
|
+
vellum/__init__.py,sha256=-Ou4HwpSHaHMrNOXucTQDBqLeF0Hf3SkNV7ZXbm-9BY,43243
|
143
143
|
vellum/client/README.md,sha256=Dle5iytCXxP1pNeNd7uZyhFo0rl7tp7vU7s8gmi10OQ,4863
|
144
|
-
vellum/client/__init__.py,sha256=
|
144
|
+
vellum/client/__init__.py,sha256=KmkyOgReuTsjmXF3WC_dPQ9QqJgYrB3Sr8_LcSUIQyI,125258
|
145
145
|
vellum/client/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
146
146
|
vellum/client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
147
|
-
vellum/client/core/client_wrapper.py,sha256=
|
147
|
+
vellum/client/core/client_wrapper.py,sha256=hWvEhwi9Wp5EJXEwxdFG2CgGyBpzEihn6uuDg5PNZ6c,2383
|
148
148
|
vellum/client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
149
149
|
vellum/client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
150
150
|
vellum/client/core/http_client.py,sha256=cKs2w0ybDBk1wHQf-fTALm_MmvaMe3cZKcYJxqmCxkE,19539
|
@@ -160,8 +160,8 @@ vellum/client/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcs
|
|
160
160
|
vellum/client/errors/forbidden_error.py,sha256=QO1kKlhClAPES6zsEK7g9pglWnxn3KWaOCAawWOg6Aw,263
|
161
161
|
vellum/client/errors/internal_server_error.py,sha256=8USCagXyJJ1MOm9snpcXIUt6eNXvrd_aq7Gfcu1vlOI,268
|
162
162
|
vellum/client/errors/not_found_error.py,sha256=tBVCeBC8n3C811WHRj_n-hs3h8MqwR5gp0vLiobk7W8,262
|
163
|
-
vellum/client/reference.md,sha256=
|
164
|
-
vellum/client/resources/__init__.py,sha256=
|
163
|
+
vellum/client/reference.md,sha256=XI2rD7nVPOwmVSp8K46bKD3OsCT9lrhg-0wrpZY-RW8,93524
|
164
|
+
vellum/client/resources/__init__.py,sha256=z0K2LxPPq_GmM1TmLmfm5VPfVaWW-s3rOmTeD2N5A8E,1607
|
165
165
|
vellum/client/resources/ad_hoc/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
166
166
|
vellum/client/resources/ad_hoc/client.py,sha256=iPKL9L3BpQhiGhjCD20Q99dHZrDnkfKKxMExVOoMkGU,28001
|
167
167
|
vellum/client/resources/container_images/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
@@ -202,6 +202,8 @@ vellum/client/resources/workflow_deployments/client.py,sha256=_a6MsQ2Dyv5uDsRYXj
|
|
202
202
|
vellum/client/resources/workflow_deployments/types/__init__.py,sha256=W7DKJ1nduwhRckYLvH7wHLdaGH9MXHTZkxwG7FdTngY,340
|
203
203
|
vellum/client/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py,sha256=LPETHLX9Ygha_JRT9oWZAZR6clv-W1tTelXzktkTBX8,178
|
204
204
|
vellum/client/resources/workflow_deployments/types/workflow_deployments_list_request_status.py,sha256=FXVkVmGM6DZ2RpTGnZXWJYiVlLQ-K5fDtX3WMaBPaWk,182
|
205
|
+
vellum/client/resources/workflow_executions/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
206
|
+
vellum/client/resources/workflow_executions/client.py,sha256=oFh6Qkmd7SBcgegjnPfDbqDeuzz3o2qTky6M4pg_ipc,4132
|
205
207
|
vellum/client/resources/workflow_sandboxes/__init__.py,sha256=OR3wE3pTgsZlTS-0ukeMWzSuEZF8PszuQTCHDh6JybI,175
|
206
208
|
vellum/client/resources/workflow_sandboxes/client.py,sha256=tpIjyuvVAnghmUu_gI9lpv4NbFa3dvmy26a_Y69UyOI,13270
|
207
209
|
vellum/client/resources/workflow_sandboxes/types/__init__.py,sha256=EaGVRU1w6kJiiHrbZOeEa0c3ggjfgv_jBqsyOkCRWOI,212
|
@@ -212,7 +214,7 @@ vellum/client/resources/workspace_secrets/__init__.py,sha256=FTtvy8EDg9nNNg9WCat
|
|
212
214
|
vellum/client/resources/workspace_secrets/client.py,sha256=l1FOj0f-IB5_oQ7iWiHopFK3lDXBqiaIc9g10W9PHFU,8381
|
213
215
|
vellum/client/resources/workspaces/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
214
216
|
vellum/client/resources/workspaces/client.py,sha256=61eFS8USOtHf4cFoT3dZmAMs6KGAVPbXjAolws2ftsQ,3683
|
215
|
-
vellum/client/types/__init__.py,sha256=
|
217
|
+
vellum/client/types/__init__.py,sha256=QRZCQZxK7WN5zFYOV0eCdhKfVvYFDfDgkux3CL9S9qc,65478
|
216
218
|
vellum/client/types/ad_hoc_execute_prompt_event.py,sha256=bCjujA2XsOgyF3bRZbcEqV2rOIymRgsLoIRtZpB14xg,607
|
217
219
|
vellum/client/types/ad_hoc_expand_meta.py,sha256=1gv-NCsy_6xBYupLvZH979yf2VMdxAU-l0y0ynMKZaw,1331
|
218
220
|
vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py,sha256=oDG60TpwK1YNSKhRsBbiP2O3ZF9PKR-M9chGIfKw4R4,1004
|
@@ -481,7 +483,8 @@ vellum/client/types/node_output_compiled_json_value.py,sha256=KUOPgaL0_nlzjjtc7f
|
|
481
483
|
vellum/client/types/node_output_compiled_number_value.py,sha256=iBwBcPQuE0PZ50Q30iSUGNnDkf6yIMZ_au9lQDDhlzA,882
|
482
484
|
vellum/client/types/node_output_compiled_search_results_value.py,sha256=oHKSncqdhE3q3SDjHqhRRSePvF24XRiwecZoTMdM_Uo,973
|
483
485
|
vellum/client/types/node_output_compiled_string_value.py,sha256=pR_ku51KL_gwplMCiy6oT4sARnKP_0gZsTcLbVtOk_Y,880
|
484
|
-
vellum/client/types/
|
486
|
+
vellum/client/types/node_output_compiled_thinking_value.py,sha256=j6IRT9A7f58wUyv0dAFY9ata7Tl391gXwn_wbDmxkAI,953
|
487
|
+
vellum/client/types/node_output_compiled_value.py,sha256=GbIKZyrGmqj_dYLiL0eAVZdQnfQhZd-BYsQnGdyI6tY,1181
|
485
488
|
vellum/client/types/node_parent_context.py,sha256=DV93VENs_ZrVHRZJw6Nw2h7bRU48UUDxjezcAUgjmns,1518
|
486
489
|
vellum/client/types/normalized_log_probs.py,sha256=XNfwhKgK9vPlJQh9dcup2Rl5mTlmV154rrIRsf3dYx8,706
|
487
490
|
vellum/client/types/normalized_token_log_probs.py,sha256=C0VHuRQbbcCFzQ9fJNbNjXAc2aUMUT5MxIt929-KMEA,714
|
@@ -750,6 +753,7 @@ vellum/client/types/workflow_execution_actual.py,sha256=RC5t5wfnbHJ0jvSV_rk3OK38
|
|
750
753
|
vellum/client/types/workflow_execution_actual_chat_history_request.py,sha256=L6U8tgM7SiU4qGJMZChFzj6HfHgO-YAlTXfbT7ZIaE4,1993
|
751
754
|
vellum/client/types/workflow_execution_actual_json_request.py,sha256=5QYaPCSOwFnjH_kTrB2bTznTMFExSZdBhTkmelf1h4Q,1931
|
752
755
|
vellum/client/types/workflow_execution_actual_string_request.py,sha256=1optEDv090iVev1l0Z9cgZ1NfNrHp2VRiNjmS7f7jtc,1895
|
756
|
+
vellum/client/types/workflow_execution_detail.py,sha256=jSBc43AUmQMSt4QwHV6yk-ywBRty2VSQl1LHeHgR7lg,1796
|
753
757
|
vellum/client/types/workflow_execution_event_error_code.py,sha256=QzRLZ0dteptDmt3n5_vw26zGgDrpvcR4vRa_mtl2sMI,495
|
754
758
|
vellum/client/types/workflow_execution_event_type.py,sha256=ESKqV3ItoAlqBooruf-i0AnmEh_GvCySZ0Co3r9Bvt0,170
|
755
759
|
vellum/client/types/workflow_execution_fulfilled_body.py,sha256=4M9fQdJy7nH5Y1HLq9VVlfTNW4F9jlj4k5SWty9fFqQ,746
|
@@ -855,6 +859,7 @@ vellum/prompts/blocks/helpers.py,sha256=7G1Qi6N3V1K73iqTypMTcl6Rum7wk449yHStkakL
|
|
855
859
|
vellum/prompts/blocks/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
856
860
|
vellum/prompts/blocks/tests/test_compilation.py,sha256=EOUtdzJDFGbGhoc_y5XTMyO0HOpOM7FYJssPzd_yRVg,5235
|
857
861
|
vellum/prompts/blocks/types.py,sha256=6aSJQco-5kKeadfKVVXF_SrQPlIJgMYVNc-C7so1sY8,975
|
862
|
+
vellum/prompts/constants.py,sha256=fnjiRWLoRlC4Puo5oQcpZD5Hd-EesxsAo9l5tGAkpZQ,270
|
858
863
|
vellum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
859
864
|
vellum/resources/__init__.py,sha256=sQWK7g_Z4EM7pa7fy6vy3d_DMdTJ4wVcozBn3Lx4Qpo,141
|
860
865
|
vellum/resources/ad_hoc/__init__.py,sha256=UD01D9nS_M7sRKmMbEg4Tv9SlfFj3cWahVxwUEaSLAY,148
|
@@ -897,6 +902,8 @@ vellum/resources/workflow_deployments/client.py,sha256=MntTDCOGaN6mpvgEPA7bn8asF
|
|
897
902
|
vellum/resources/workflow_deployments/types/__init__.py,sha256=9-K4coC8XaqnoAmBBp9_KWZ1EjbZW7zr_vIgfSmhNdM,168
|
898
903
|
vellum/resources/workflow_deployments/types/list_workflow_release_tags_request_source.py,sha256=KTXyywjRa2YZvLstsyyIMEm8lxGJk6FISTpKurGaq1o,210
|
899
904
|
vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py,sha256=mLfHzwK3uBQfw8nku6YmceHoaWksRPRZzpNBy9MGBv4,209
|
905
|
+
vellum/resources/workflow_executions/__init__.py,sha256=kYIriV1spux6IgeTjEvcyLM-581BjMa6UGNrU-32yhQ,161
|
906
|
+
vellum/resources/workflow_executions/client.py,sha256=aGSqc76uHTLBu8Ih5iL9R_erok77btFsBOTQp5kq0YM,168
|
900
907
|
vellum/resources/workflow_sandboxes/__init__.py,sha256=jHqdk62iizWsMzrhlXMhAON5eX4CRgL7ipux4MqoK2Y,160
|
901
908
|
vellum/resources/workflow_sandboxes/client.py,sha256=6hUU770XG4lOoZZOwvAqmUz5XZDgRd3MPWZs1wieWEM,167
|
902
909
|
vellum/resources/workflow_sandboxes/types/__init__.py,sha256=jMwkDLd5Xc4hheGoU-h087t1L3qxp4llmT6MG5MeufA,166
|
@@ -1176,6 +1183,7 @@ vellum/types/node_output_compiled_json_value.py,sha256=f_xkMtjZ2Y-FXmtchRBwx1TdF
|
|
1176
1183
|
vellum/types/node_output_compiled_number_value.py,sha256=5QBcXuHAe6KlfRalCkxI3WUPvkoE5AKygHUxI_h5lpA,171
|
1177
1184
|
vellum/types/node_output_compiled_search_results_value.py,sha256=ZeVjL9kMa_SvDkvtEvSgBpD1GQDQlSEjJejgcf5E6SM,179
|
1178
1185
|
vellum/types/node_output_compiled_string_value.py,sha256=fC_Rsxv21-uWZDpkPvq64tVJnT99u_2neMv2H2HD0x8,171
|
1186
|
+
vellum/types/node_output_compiled_thinking_value.py,sha256=cHICAB3E-uqLKu9yYUrCxto1BcDHQpmMz6xtFz0uI_k,173
|
1179
1187
|
vellum/types/node_output_compiled_value.py,sha256=aXEQZ_Wat_SVa7-ExtMa3qfS9yIuxFCFn8bS5r3ojJo,164
|
1180
1188
|
vellum/types/node_parent_context.py,sha256=DIcpehhaiZunn2S6eKeiy9LhTpDjmkKQP8ZNUk-WAq8,157
|
1181
1189
|
vellum/types/normalized_log_probs.py,sha256=b7ID-1NbDQgUeyrU2-AOtzn88i8OJnOqBX540rIl11o,158
|
@@ -1445,6 +1453,7 @@ vellum/types/workflow_execution_actual.py,sha256=IrOLWopZHTwqNStG7u0xuo1OhHhD1SH
|
|
1445
1453
|
vellum/types/workflow_execution_actual_chat_history_request.py,sha256=xR8LHjQtxzZ0PJECgDZ9qEIoPuwb8KY8GEvbsraB_Ak,184
|
1446
1454
|
vellum/types/workflow_execution_actual_json_request.py,sha256=bMeY3YXJy_b6ygezFtJihHBKyImdxn3-TNf5gkFKQS0,176
|
1447
1455
|
vellum/types/workflow_execution_actual_string_request.py,sha256=BRmnaTVWCyxR17BvOMmYM2ncGUxT8U3sR7mqUuAxzQE,178
|
1456
|
+
vellum/types/workflow_execution_detail.py,sha256=ITXmdq2ewgCT4N6fKLM_zEXjJ0lZF8BBsPsAoK8Tv-g,163
|
1448
1457
|
vellum/types/workflow_execution_event_error_code.py,sha256=UtARv4FXcfQ8Rw-eWUUVr3Il77cl-qpj2PIaOqYol3A,173
|
1449
1458
|
vellum/types/workflow_execution_event_type.py,sha256=Fd78t9DwZPpWmkzEXtbbfD6pZq3hNiDHlyK7fN_ohB8,167
|
1450
1459
|
vellum/types/workflow_execution_fulfilled_body.py,sha256=t2LOzIpyxYHgV5TwfrMRcwWNHmv6DM7IaFEsH6S3Kmk,171
|
@@ -1630,8 +1639,7 @@ vellum/workflows/nodes/displayable/bases/api_node/node.py,sha256=JDYe21Ou8WGkVRx
|
|
1630
1639
|
vellum/workflows/nodes/displayable/bases/base_prompt_node/__init__.py,sha256=Org3xTvgp1pA0uUXFfnJr29D3HzCey2lEdYF4zbIUgo,70
|
1631
1640
|
vellum/workflows/nodes/displayable/bases/base_prompt_node/node.py,sha256=EJsGaz8Umss6-JWGGYbJp93ZHx3IlZQWAySlHAdNYtY,4466
|
1632
1641
|
vellum/workflows/nodes/displayable/bases/inline_prompt_node/__init__.py,sha256=Hl35IAoepRpE-j4cALaXVJIYTYOF3qszyVbxTj4kS1s,82
|
1633
|
-
vellum/workflows/nodes/displayable/bases/inline_prompt_node/
|
1634
|
-
vellum/workflows/nodes/displayable/bases/inline_prompt_node/node.py,sha256=6zzgeBTUwCiYTLRhrZAqmi-nU2r4q0gX-ytnatY5kwY,12896
|
1642
|
+
vellum/workflows/nodes/displayable/bases/inline_prompt_node/node.py,sha256=hy_fy4zImhpnHuPczKtOLhv_uOmvxvJsQA9Zl9DTmSw,12851
|
1635
1643
|
vellum/workflows/nodes/displayable/bases/inline_prompt_node/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1636
1644
|
vellum/workflows/nodes/displayable/bases/inline_prompt_node/tests/test_inline_prompt_node.py,sha256=H1xEaL3vgEPAGQaF_rt8kLl46qmVJEEhcORXT7oRdPk,22626
|
1637
1645
|
vellum/workflows/nodes/displayable/bases/prompt_deployment_node.py,sha256=0a40fkkZkFMmZN0CsWf6EP_y1H6x36EGa3WcfVNyOsM,9797
|
@@ -1685,10 +1693,10 @@ vellum/workflows/nodes/displayable/tests/test_search_node_error_handling.py,sha2
|
|
1685
1693
|
vellum/workflows/nodes/displayable/tests/test_search_node_wth_text_output.py,sha256=VepO5z1277c1y5N6LLIC31nnWD1aak2m5oPFplfJHHs,6935
|
1686
1694
|
vellum/workflows/nodes/displayable/tests/test_text_prompt_deployment_node.py,sha256=dc3EEn1sOICpr3GdS8eyeFtExaGwWWcw9eHSdkRhQJU,2584
|
1687
1695
|
vellum/workflows/nodes/displayable/tool_calling_node/__init__.py,sha256=3n0-ysmFKsr40CVxPthc0rfJgqVJeZuUEsCmYudLVRg,117
|
1688
|
-
vellum/workflows/nodes/displayable/tool_calling_node/node.py,sha256=
|
1696
|
+
vellum/workflows/nodes/displayable/tool_calling_node/node.py,sha256=BRA6YRCEOk0Nw3DCIT13WY7WCZ7Gx30s-egJe_md0FA,6504
|
1689
1697
|
vellum/workflows/nodes/displayable/tool_calling_node/state.py,sha256=oQg_GAtc349nPB5BL_oeDYYD7q1qSDPAqjj8iA8OoAw,215
|
1690
1698
|
vellum/workflows/nodes/displayable/tool_calling_node/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1691
|
-
vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py,sha256=
|
1699
|
+
vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py,sha256=raY_E5-EgtYNXEPbO2I-Ythe4YeuFdGsXGZ_BAN98uI,7979
|
1692
1700
|
vellum/workflows/nodes/displayable/tool_calling_node/tests/test_utils.py,sha256=eu6WTyENhGLg9pGp_j69rysZjf_qiQXske1YdZn9PzU,1718
|
1693
1701
|
vellum/workflows/nodes/displayable/tool_calling_node/utils.py,sha256=cWlQpEyeLwJX3peMxuTNG3uy26JoXuaQPG4zTuonB5Y,12671
|
1694
1702
|
vellum/workflows/nodes/experimental/README.md,sha256=eF6DfIL8t-HbF9-mcofOMymKrraiBHDLKTlnBa51ZiE,284
|
@@ -1763,8 +1771,8 @@ vellum/workflows/workflows/event_filters.py,sha256=GSxIgwrX26a1Smfd-6yss2abGCnad
|
|
1763
1771
|
vellum/workflows/workflows/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1764
1772
|
vellum/workflows/workflows/tests/test_base_workflow.py,sha256=ptMntHzVyy8ZuzNgeTuk7hREgKQ5UBdgq8VJFSGaW4Y,20832
|
1765
1773
|
vellum/workflows/workflows/tests/test_context.py,sha256=VJBUcyWVtMa_lE5KxdhgMu0WYNYnUQUDvTF7qm89hJ0,2333
|
1766
|
-
vellum_ai-1.0.
|
1767
|
-
vellum_ai-1.0.
|
1768
|
-
vellum_ai-1.0.
|
1769
|
-
vellum_ai-1.0.
|
1770
|
-
vellum_ai-1.0.
|
1774
|
+
vellum_ai-1.0.3.dist-info/LICENSE,sha256=hOypcdt481qGNISA784bnAGWAE6tyIf9gc2E78mYC3E,1574
|
1775
|
+
vellum_ai-1.0.3.dist-info/METADATA,sha256=BhSR95Ti_OY6NHP8v4qgMd9L3RM-6NxohzOdWRF6nxY,5554
|
1776
|
+
vellum_ai-1.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1777
|
+
vellum_ai-1.0.3.dist-info/entry_points.txt,sha256=HCH4yc_V3J_nDv3qJzZ_nYS8llCHZViCDP1ejgCc5Ak,42
|
1778
|
+
vellum_ai-1.0.3.dist-info/RECORD,,
|
@@ -137,10 +137,7 @@ class BaseWorkflowDisplay(Generic[WorkflowType]):
|
|
137
137
|
else None
|
138
138
|
)
|
139
139
|
|
140
|
-
|
141
|
-
has_default = workflow_input_reference.instance is not undefined
|
142
|
-
is_optional = type(None) in workflow_input_reference.types
|
143
|
-
is_required = not has_default and not is_optional
|
140
|
+
is_required = self._is_reference_required(workflow_input_reference)
|
144
141
|
|
145
142
|
input_variables.append(
|
146
143
|
{
|
@@ -159,10 +156,7 @@ class BaseWorkflowDisplay(Generic[WorkflowType]):
|
|
159
156
|
primitive_to_vellum_value(state_value_reference.instance) if state_value_reference.instance else None
|
160
157
|
)
|
161
158
|
|
162
|
-
|
163
|
-
has_default = state_value_reference.instance is not undefined
|
164
|
-
is_optional = type(None) in state_value_reference.types
|
165
|
-
is_required = not has_default and not is_optional
|
159
|
+
is_required = self._is_reference_required(state_value_reference)
|
166
160
|
|
167
161
|
state_variables.append(
|
168
162
|
{
|
@@ -950,5 +944,12 @@ class BaseWorkflowDisplay(Generic[WorkflowType]):
|
|
950
944
|
|
951
945
|
return additional_files
|
952
946
|
|
947
|
+
@staticmethod
|
948
|
+
def _is_reference_required(reference: BaseDescriptor) -> bool:
|
949
|
+
has_default = reference.instance is not undefined
|
950
|
+
is_optional = type(None) in reference.types
|
951
|
+
is_required = not has_default and not is_optional
|
952
|
+
return is_required
|
953
|
+
|
953
954
|
|
954
955
|
register_workflow_display_class(workflow_class=BaseWorkflow, workflow_display_class=BaseWorkflowDisplay)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|