vellum-ai 0.14.22__py3-none-any.whl → 0.14.24__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 +122 -0
- vellum/client/core/client_wrapper.py +1 -1
- vellum/client/resources/workflow_deployments/client.py +250 -0
- vellum/client/types/__init__.py +122 -0
- vellum/client/types/api_request_parent_context.py +41 -0
- vellum/client/types/api_version_enum.py +5 -0
- vellum/client/types/base_output.py +21 -0
- vellum/client/types/code_resource_definition.py +31 -0
- vellum/client/types/external_input_descriptor.py +23 -0
- vellum/client/types/invoked_port.py +19 -0
- vellum/client/types/ml_model_usage_wrapper.py +21 -0
- vellum/client/types/node_event_display_context.py +30 -0
- vellum/client/types/node_execution_fulfilled_body.py +24 -0
- vellum/client/types/node_execution_fulfilled_event.py +49 -0
- vellum/client/types/node_execution_initiated_body.py +21 -0
- vellum/client/types/node_execution_initiated_event.py +49 -0
- vellum/client/types/node_execution_paused_body.py +20 -0
- vellum/client/types/node_execution_paused_event.py +49 -0
- vellum/client/types/node_execution_rejected_body.py +22 -0
- vellum/client/types/node_execution_rejected_event.py +49 -0
- vellum/client/types/node_execution_resumed_body.py +20 -0
- vellum/client/types/node_execution_resumed_event.py +49 -0
- vellum/client/types/node_execution_span.py +46 -0
- vellum/client/types/node_execution_span_attributes.py +19 -0
- vellum/client/types/node_execution_streaming_body.py +22 -0
- vellum/client/types/node_execution_streaming_event.py +49 -0
- vellum/client/types/node_parent_context.py +43 -0
- vellum/client/types/parent_context.py +21 -0
- vellum/client/types/prompt_deployment_parent_context.py +49 -0
- vellum/client/types/slim_workflow_execution_read.py +54 -0
- vellum/client/types/span_link.py +41 -0
- vellum/client/types/span_link_type_enum.py +5 -0
- vellum/client/types/vellum_code_resource_definition.py +25 -0
- vellum/client/types/vellum_node_execution_event.py +18 -0
- vellum/client/types/vellum_sdk_error.py +21 -0
- vellum/client/types/vellum_sdk_error_code_enum.py +20 -0
- vellum/client/types/vellum_span.py +7 -0
- vellum/client/types/vellum_workflow_execution_event.py +20 -0
- vellum/client/types/workflow_deployment_event_executions_response.py +55 -0
- vellum/client/types/workflow_deployment_parent_context.py +49 -0
- vellum/client/types/workflow_error.py +7 -0
- vellum/client/types/workflow_event_display_context.py +28 -0
- vellum/client/types/workflow_event_execution_read.py +60 -0
- vellum/client/types/workflow_execution_actual.py +30 -0
- vellum/client/types/workflow_execution_fulfilled_body.py +21 -0
- vellum/client/types/workflow_execution_fulfilled_event.py +49 -0
- vellum/client/types/workflow_execution_initiated_body.py +30 -0
- vellum/client/types/workflow_execution_initiated_event.py +53 -0
- vellum/client/types/workflow_execution_paused_body.py +22 -0
- vellum/client/types/workflow_execution_paused_event.py +49 -0
- vellum/client/types/workflow_execution_rejected_body.py +22 -0
- vellum/client/types/workflow_execution_rejected_event.py +49 -0
- vellum/client/types/workflow_execution_resumed_body.py +20 -0
- vellum/client/types/workflow_execution_resumed_event.py +49 -0
- vellum/client/types/workflow_execution_snapshotted_body.py +21 -0
- vellum/client/types/workflow_execution_snapshotted_event.py +51 -0
- vellum/client/types/workflow_execution_span.py +50 -0
- vellum/client/types/workflow_execution_span_attributes.py +19 -0
- vellum/client/types/workflow_execution_streaming_body.py +22 -0
- vellum/client/types/workflow_execution_streaming_event.py +49 -0
- vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +22 -0
- vellum/client/types/workflow_execution_view_online_eval_metric_result.py +30 -0
- vellum/client/types/workflow_initialization_error.py +24 -0
- vellum/client/types/workflow_parent_context.py +43 -0
- vellum/client/types/workflow_sandbox_parent_context.py +44 -0
- vellum/plugins/pydantic.py +2 -0
- vellum/types/api_request_parent_context.py +3 -0
- vellum/types/api_version_enum.py +3 -0
- vellum/types/base_output.py +3 -0
- vellum/types/code_resource_definition.py +3 -0
- vellum/types/external_input_descriptor.py +3 -0
- vellum/types/invoked_port.py +3 -0
- vellum/types/ml_model_usage_wrapper.py +3 -0
- vellum/types/node_event_display_context.py +3 -0
- vellum/types/node_execution_fulfilled_body.py +3 -0
- vellum/types/node_execution_fulfilled_event.py +3 -0
- vellum/types/node_execution_initiated_body.py +3 -0
- vellum/types/node_execution_initiated_event.py +3 -0
- vellum/types/node_execution_paused_body.py +3 -0
- vellum/types/node_execution_paused_event.py +3 -0
- vellum/types/node_execution_rejected_body.py +3 -0
- vellum/types/node_execution_rejected_event.py +3 -0
- vellum/types/node_execution_resumed_body.py +3 -0
- vellum/types/node_execution_resumed_event.py +3 -0
- vellum/types/node_execution_span.py +3 -0
- vellum/types/node_execution_span_attributes.py +3 -0
- vellum/types/node_execution_streaming_body.py +3 -0
- vellum/types/node_execution_streaming_event.py +3 -0
- vellum/types/node_parent_context.py +3 -0
- vellum/types/parent_context.py +3 -0
- vellum/types/prompt_deployment_parent_context.py +3 -0
- vellum/types/slim_workflow_execution_read.py +3 -0
- vellum/types/span_link.py +3 -0
- vellum/types/span_link_type_enum.py +3 -0
- vellum/types/vellum_code_resource_definition.py +3 -0
- vellum/types/vellum_node_execution_event.py +3 -0
- vellum/types/vellum_sdk_error.py +3 -0
- vellum/types/vellum_sdk_error_code_enum.py +3 -0
- vellum/types/vellum_span.py +3 -0
- vellum/types/vellum_workflow_execution_event.py +3 -0
- vellum/types/workflow_deployment_event_executions_response.py +3 -0
- vellum/types/workflow_deployment_parent_context.py +3 -0
- vellum/types/workflow_error.py +3 -0
- vellum/types/workflow_event_display_context.py +3 -0
- vellum/types/workflow_event_execution_read.py +3 -0
- vellum/types/workflow_execution_actual.py +3 -0
- vellum/types/workflow_execution_fulfilled_body.py +3 -0
- vellum/types/workflow_execution_fulfilled_event.py +3 -0
- vellum/types/workflow_execution_initiated_body.py +3 -0
- vellum/types/workflow_execution_initiated_event.py +3 -0
- vellum/types/workflow_execution_paused_body.py +3 -0
- vellum/types/workflow_execution_paused_event.py +3 -0
- vellum/types/workflow_execution_rejected_body.py +3 -0
- vellum/types/workflow_execution_rejected_event.py +3 -0
- vellum/types/workflow_execution_resumed_body.py +3 -0
- vellum/types/workflow_execution_resumed_event.py +3 -0
- vellum/types/workflow_execution_snapshotted_body.py +3 -0
- vellum/types/workflow_execution_snapshotted_event.py +3 -0
- vellum/types/workflow_execution_span.py +3 -0
- vellum/types/workflow_execution_span_attributes.py +3 -0
- vellum/types/workflow_execution_streaming_body.py +3 -0
- vellum/types/workflow_execution_streaming_event.py +3 -0
- vellum/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -0
- vellum/types/workflow_execution_view_online_eval_metric_result.py +3 -0
- vellum/types/workflow_initialization_error.py +3 -0
- vellum/types/workflow_parent_context.py +3 -0
- vellum/types/workflow_sandbox_parent_context.py +3 -0
- vellum/workflows/nodes/core/inline_subworkflow_node/node.py +6 -0
- vellum/workflows/nodes/core/inline_subworkflow_node/tests/test_node.py +27 -0
- vellum/workflows/nodes/core/retry_node/tests/test_node.py +0 -23
- vellum/workflows/workflows/base.py +2 -2
- vellum/workflows/workflows/tests/test_base_workflow.py +10 -0
- {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.24.dist-info}/METADATA +1 -1
- {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.24.dist-info}/RECORD +157 -33
- vellum_ee/workflows/display/base.py +26 -4
- vellum_ee/workflows/display/editor/__init__.py +7 -0
- vellum_ee/workflows/display/editor/types.py +22 -0
- vellum_ee/workflows/display/nodes/base_node_display.py +2 -1
- vellum_ee/workflows/display/nodes/base_node_vellum_display.py +1 -1
- vellum_ee/workflows/display/nodes/vellum/api_node.py +1 -1
- vellum_ee/workflows/display/nodes/vellum/final_output_node.py +8 -0
- vellum_ee/workflows/display/nodes/vellum/search_node.py +2 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_utils.py +5 -11
- vellum_ee/workflows/display/nodes/vellum/utils.py +3 -4
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/conftest.py +2 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +8 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +12 -8
- vellum_ee/workflows/display/types.py +16 -13
- vellum_ee/workflows/display/utils/expressions.py +6 -2
- vellum_ee/workflows/display/utils/vellum.py +59 -13
- vellum_ee/workflows/display/vellum.py +18 -95
- vellum_ee/workflows/display/workflows/base_workflow_display.py +54 -46
- vellum_ee/workflows/display/workflows/tests/test_workflow_display.py +15 -1
- vellum_ee/workflows/display/workflows/vellum_workflow_display.py +2 -4
- {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.24.dist-info}/LICENSE +0 -0
- {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.24.dist-info}/WHEEL +0 -0
- {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.24.dist-info}/entry_points.txt +0 -0
vellum/__init__.py
CHANGED
@@ -13,6 +13,8 @@ from .types import (
|
|
13
13
|
AddOpenaiApiKeyEnum,
|
14
14
|
ApiNodeResult,
|
15
15
|
ApiNodeResultData,
|
16
|
+
ApiRequestParentContext,
|
17
|
+
ApiVersionEnum,
|
16
18
|
ArrayChatMessageContent,
|
17
19
|
ArrayChatMessageContentItem,
|
18
20
|
ArrayChatMessageContentItemRequest,
|
@@ -25,6 +27,7 @@ from .types import (
|
|
25
27
|
AudioPromptBlock,
|
26
28
|
AudioVellumValue,
|
27
29
|
AudioVellumValueRequest,
|
30
|
+
BaseOutput,
|
28
31
|
BasicVectorizerIntfloatMultilingualE5Large,
|
29
32
|
BasicVectorizerIntfloatMultilingualE5LargeRequest,
|
30
33
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1,
|
@@ -57,6 +60,7 @@ from .types import (
|
|
57
60
|
CodeExecutorInput,
|
58
61
|
CodeExecutorResponse,
|
59
62
|
CodeExecutorSecretInput,
|
63
|
+
CodeResourceDefinition,
|
60
64
|
CompilePromptDeploymentExpandMetaRequest,
|
61
65
|
CompilePromptMeta,
|
62
66
|
ComponentsSchemasPdfSearchResultMetaSource,
|
@@ -114,6 +118,7 @@ from .types import (
|
|
114
118
|
ExecutionSearchResultsVellumValue,
|
115
119
|
ExecutionStringVellumValue,
|
116
120
|
ExecutionVellumValue,
|
121
|
+
ExternalInputDescriptor,
|
117
122
|
ExternalTestCaseExecution,
|
118
123
|
ExternalTestCaseExecutionRequest,
|
119
124
|
FinishReasonEnum,
|
@@ -176,6 +181,7 @@ from .types import (
|
|
176
181
|
InitiatedWorkflowNodeResultEvent,
|
177
182
|
InstructorVectorizerConfig,
|
178
183
|
InstructorVectorizerConfigRequest,
|
184
|
+
InvokedPort,
|
179
185
|
IterationStateEnum,
|
180
186
|
JinjaPromptBlock,
|
181
187
|
JsonInput,
|
@@ -199,6 +205,7 @@ from .types import (
|
|
199
205
|
MetricNodeResult,
|
200
206
|
MlModelRead,
|
201
207
|
MlModelUsage,
|
208
|
+
MlModelUsageWrapper,
|
202
209
|
NamedScenarioInputChatHistoryVariableValueRequest,
|
203
210
|
NamedScenarioInputJsonVariableValueRequest,
|
204
211
|
NamedScenarioInputRequest,
|
@@ -222,6 +229,21 @@ from .types import (
|
|
222
229
|
NamedTestCaseVariableValue,
|
223
230
|
NamedTestCaseVariableValueRequest,
|
224
231
|
NewMemberJoinBehaviorEnum,
|
232
|
+
NodeEventDisplayContext,
|
233
|
+
NodeExecutionFulfilledBody,
|
234
|
+
NodeExecutionFulfilledEvent,
|
235
|
+
NodeExecutionInitiatedBody,
|
236
|
+
NodeExecutionInitiatedEvent,
|
237
|
+
NodeExecutionPausedBody,
|
238
|
+
NodeExecutionPausedEvent,
|
239
|
+
NodeExecutionRejectedBody,
|
240
|
+
NodeExecutionRejectedEvent,
|
241
|
+
NodeExecutionResumedBody,
|
242
|
+
NodeExecutionResumedEvent,
|
243
|
+
NodeExecutionSpan,
|
244
|
+
NodeExecutionSpanAttributes,
|
245
|
+
NodeExecutionStreamingBody,
|
246
|
+
NodeExecutionStreamingEvent,
|
225
247
|
NodeInputCompiledArrayValue,
|
226
248
|
NodeInputCompiledChatHistoryValue,
|
227
249
|
NodeInputCompiledErrorValue,
|
@@ -241,6 +263,7 @@ from .types import (
|
|
241
263
|
NodeOutputCompiledSearchResultsValue,
|
242
264
|
NodeOutputCompiledStringValue,
|
243
265
|
NodeOutputCompiledValue,
|
266
|
+
NodeParentContext,
|
244
267
|
NormalizedLogProbs,
|
245
268
|
NormalizedTokenLogProbs,
|
246
269
|
NumberInput,
|
@@ -266,6 +289,7 @@ from .types import (
|
|
266
289
|
PaginatedTestSuiteTestCaseList,
|
267
290
|
PaginatedWorkflowReleaseTagReadList,
|
268
291
|
PaginatedWorkflowSandboxExampleList,
|
292
|
+
ParentContext,
|
269
293
|
PdfSearchResultMetaSource,
|
270
294
|
PdfSearchResultMetaSourceRequest,
|
271
295
|
PlainTextPromptBlock,
|
@@ -275,6 +299,7 @@ from .types import (
|
|
275
299
|
PromptBlockState,
|
276
300
|
PromptDeploymentExpandMetaRequest,
|
277
301
|
PromptDeploymentInputRequest,
|
302
|
+
PromptDeploymentParentContext,
|
278
303
|
PromptExecutionMeta,
|
279
304
|
PromptNodeExecutionMeta,
|
280
305
|
PromptNodeResult,
|
@@ -332,6 +357,9 @@ from .types import (
|
|
332
357
|
SlimDocument,
|
333
358
|
SlimDocumentDocumentToDocumentIndex,
|
334
359
|
SlimWorkflowDeployment,
|
360
|
+
SlimWorkflowExecutionRead,
|
361
|
+
SpanLink,
|
362
|
+
SpanLinkTypeEnum,
|
335
363
|
StreamingAdHocExecutePromptEvent,
|
336
364
|
StreamingExecutePromptEvent,
|
337
365
|
StreamingPromptExecutionMeta,
|
@@ -445,6 +473,7 @@ from .types import (
|
|
445
473
|
VariablePromptBlock,
|
446
474
|
VellumAudio,
|
447
475
|
VellumAudioRequest,
|
476
|
+
VellumCodeResourceDefinition,
|
448
477
|
VellumDocument,
|
449
478
|
VellumDocumentRequest,
|
450
479
|
VellumError,
|
@@ -452,7 +481,11 @@ from .types import (
|
|
452
481
|
VellumErrorRequest,
|
453
482
|
VellumImage,
|
454
483
|
VellumImageRequest,
|
484
|
+
VellumNodeExecutionEvent,
|
485
|
+
VellumSdkError,
|
486
|
+
VellumSdkErrorCodeEnum,
|
455
487
|
VellumSecret,
|
488
|
+
VellumSpan,
|
456
489
|
VellumValue,
|
457
490
|
VellumValueLogicalConditionGroupRequest,
|
458
491
|
VellumValueLogicalConditionRequest,
|
@@ -461,17 +494,43 @@ from .types import (
|
|
461
494
|
VellumVariable,
|
462
495
|
VellumVariableExtensions,
|
463
496
|
VellumVariableType,
|
497
|
+
VellumWorkflowExecutionEvent,
|
498
|
+
WorkflowDeploymentEventExecutionsResponse,
|
464
499
|
WorkflowDeploymentHistoryItem,
|
500
|
+
WorkflowDeploymentParentContext,
|
465
501
|
WorkflowDeploymentRead,
|
502
|
+
WorkflowError,
|
503
|
+
WorkflowEventDisplayContext,
|
466
504
|
WorkflowEventError,
|
505
|
+
WorkflowEventExecutionRead,
|
506
|
+
WorkflowExecutionActual,
|
467
507
|
WorkflowExecutionActualChatHistoryRequest,
|
468
508
|
WorkflowExecutionActualJsonRequest,
|
469
509
|
WorkflowExecutionActualStringRequest,
|
470
510
|
WorkflowExecutionEventErrorCode,
|
471
511
|
WorkflowExecutionEventType,
|
512
|
+
WorkflowExecutionFulfilledBody,
|
513
|
+
WorkflowExecutionFulfilledEvent,
|
514
|
+
WorkflowExecutionInitiatedBody,
|
515
|
+
WorkflowExecutionInitiatedEvent,
|
472
516
|
WorkflowExecutionNodeResultEvent,
|
517
|
+
WorkflowExecutionPausedBody,
|
518
|
+
WorkflowExecutionPausedEvent,
|
519
|
+
WorkflowExecutionRejectedBody,
|
520
|
+
WorkflowExecutionRejectedEvent,
|
521
|
+
WorkflowExecutionResumedBody,
|
522
|
+
WorkflowExecutionResumedEvent,
|
523
|
+
WorkflowExecutionSnapshottedBody,
|
524
|
+
WorkflowExecutionSnapshottedEvent,
|
525
|
+
WorkflowExecutionSpan,
|
526
|
+
WorkflowExecutionSpanAttributes,
|
527
|
+
WorkflowExecutionStreamingBody,
|
528
|
+
WorkflowExecutionStreamingEvent,
|
529
|
+
WorkflowExecutionUsageCalculationFulfilledBody,
|
530
|
+
WorkflowExecutionViewOnlineEvalMetricResult,
|
473
531
|
WorkflowExecutionWorkflowResultEvent,
|
474
532
|
WorkflowExpandMetaRequest,
|
533
|
+
WorkflowInitializationError,
|
475
534
|
WorkflowNodeResultData,
|
476
535
|
WorkflowNodeResultEvent,
|
477
536
|
WorkflowNodeResultEventState,
|
@@ -485,6 +544,7 @@ from .types import (
|
|
485
544
|
WorkflowOutputNumber,
|
486
545
|
WorkflowOutputSearchResults,
|
487
546
|
WorkflowOutputString,
|
547
|
+
WorkflowParentContext,
|
488
548
|
WorkflowPushDeploymentConfigRequest,
|
489
549
|
WorkflowPushExecConfig,
|
490
550
|
WorkflowPushResponse,
|
@@ -506,6 +566,7 @@ from .types import (
|
|
506
566
|
WorkflowResultEventOutputDataSearchResults,
|
507
567
|
WorkflowResultEventOutputDataString,
|
508
568
|
WorkflowSandboxExample,
|
569
|
+
WorkflowSandboxParentContext,
|
509
570
|
WorkflowStreamEvent,
|
510
571
|
WorkspaceRead,
|
511
572
|
WorkspaceSecretRead,
|
@@ -552,6 +613,8 @@ __all__ = [
|
|
552
613
|
"AddOpenaiApiKeyEnum",
|
553
614
|
"ApiNodeResult",
|
554
615
|
"ApiNodeResultData",
|
616
|
+
"ApiRequestParentContext",
|
617
|
+
"ApiVersionEnum",
|
555
618
|
"ArrayChatMessageContent",
|
556
619
|
"ArrayChatMessageContentItem",
|
557
620
|
"ArrayChatMessageContentItemRequest",
|
@@ -566,6 +629,7 @@ __all__ = [
|
|
566
629
|
"AudioVellumValue",
|
567
630
|
"AudioVellumValueRequest",
|
568
631
|
"BadRequestError",
|
632
|
+
"BaseOutput",
|
569
633
|
"BasicVectorizerIntfloatMultilingualE5Large",
|
570
634
|
"BasicVectorizerIntfloatMultilingualE5LargeRequest",
|
571
635
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1",
|
@@ -598,6 +662,7 @@ __all__ = [
|
|
598
662
|
"CodeExecutorInput",
|
599
663
|
"CodeExecutorResponse",
|
600
664
|
"CodeExecutorSecretInput",
|
665
|
+
"CodeResourceDefinition",
|
601
666
|
"CompilePromptDeploymentExpandMetaRequest",
|
602
667
|
"CompilePromptMeta",
|
603
668
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
@@ -657,6 +722,7 @@ __all__ = [
|
|
657
722
|
"ExecutionSearchResultsVellumValue",
|
658
723
|
"ExecutionStringVellumValue",
|
659
724
|
"ExecutionVellumValue",
|
725
|
+
"ExternalInputDescriptor",
|
660
726
|
"ExternalTestCaseExecution",
|
661
727
|
"ExternalTestCaseExecutionRequest",
|
662
728
|
"FinishReasonEnum",
|
@@ -722,6 +788,7 @@ __all__ = [
|
|
722
788
|
"InstructorVectorizerConfig",
|
723
789
|
"InstructorVectorizerConfigRequest",
|
724
790
|
"InternalServerError",
|
791
|
+
"InvokedPort",
|
725
792
|
"IterationStateEnum",
|
726
793
|
"JinjaPromptBlock",
|
727
794
|
"JsonInput",
|
@@ -748,6 +815,7 @@ __all__ = [
|
|
748
815
|
"MetricNodeResult",
|
749
816
|
"MlModelRead",
|
750
817
|
"MlModelUsage",
|
818
|
+
"MlModelUsageWrapper",
|
751
819
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
752
820
|
"NamedScenarioInputJsonVariableValueRequest",
|
753
821
|
"NamedScenarioInputRequest",
|
@@ -771,6 +839,21 @@ __all__ = [
|
|
771
839
|
"NamedTestCaseVariableValue",
|
772
840
|
"NamedTestCaseVariableValueRequest",
|
773
841
|
"NewMemberJoinBehaviorEnum",
|
842
|
+
"NodeEventDisplayContext",
|
843
|
+
"NodeExecutionFulfilledBody",
|
844
|
+
"NodeExecutionFulfilledEvent",
|
845
|
+
"NodeExecutionInitiatedBody",
|
846
|
+
"NodeExecutionInitiatedEvent",
|
847
|
+
"NodeExecutionPausedBody",
|
848
|
+
"NodeExecutionPausedEvent",
|
849
|
+
"NodeExecutionRejectedBody",
|
850
|
+
"NodeExecutionRejectedEvent",
|
851
|
+
"NodeExecutionResumedBody",
|
852
|
+
"NodeExecutionResumedEvent",
|
853
|
+
"NodeExecutionSpan",
|
854
|
+
"NodeExecutionSpanAttributes",
|
855
|
+
"NodeExecutionStreamingBody",
|
856
|
+
"NodeExecutionStreamingEvent",
|
774
857
|
"NodeInputCompiledArrayValue",
|
775
858
|
"NodeInputCompiledChatHistoryValue",
|
776
859
|
"NodeInputCompiledErrorValue",
|
@@ -790,6 +873,7 @@ __all__ = [
|
|
790
873
|
"NodeOutputCompiledSearchResultsValue",
|
791
874
|
"NodeOutputCompiledStringValue",
|
792
875
|
"NodeOutputCompiledValue",
|
876
|
+
"NodeParentContext",
|
793
877
|
"NormalizedLogProbs",
|
794
878
|
"NormalizedTokenLogProbs",
|
795
879
|
"NotFoundError",
|
@@ -816,6 +900,7 @@ __all__ = [
|
|
816
900
|
"PaginatedTestSuiteTestCaseList",
|
817
901
|
"PaginatedWorkflowReleaseTagReadList",
|
818
902
|
"PaginatedWorkflowSandboxExampleList",
|
903
|
+
"ParentContext",
|
819
904
|
"PdfSearchResultMetaSource",
|
820
905
|
"PdfSearchResultMetaSourceRequest",
|
821
906
|
"PlainTextPromptBlock",
|
@@ -825,6 +910,7 @@ __all__ = [
|
|
825
910
|
"PromptBlockState",
|
826
911
|
"PromptDeploymentExpandMetaRequest",
|
827
912
|
"PromptDeploymentInputRequest",
|
913
|
+
"PromptDeploymentParentContext",
|
828
914
|
"PromptExecutionMeta",
|
829
915
|
"PromptNodeExecutionMeta",
|
830
916
|
"PromptNodeResult",
|
@@ -882,6 +968,9 @@ __all__ = [
|
|
882
968
|
"SlimDocument",
|
883
969
|
"SlimDocumentDocumentToDocumentIndex",
|
884
970
|
"SlimWorkflowDeployment",
|
971
|
+
"SlimWorkflowExecutionRead",
|
972
|
+
"SpanLink",
|
973
|
+
"SpanLinkTypeEnum",
|
885
974
|
"StreamingAdHocExecutePromptEvent",
|
886
975
|
"StreamingExecutePromptEvent",
|
887
976
|
"StreamingPromptExecutionMeta",
|
@@ -996,6 +1085,7 @@ __all__ = [
|
|
996
1085
|
"Vellum",
|
997
1086
|
"VellumAudio",
|
998
1087
|
"VellumAudioRequest",
|
1088
|
+
"VellumCodeResourceDefinition",
|
999
1089
|
"VellumDocument",
|
1000
1090
|
"VellumDocumentRequest",
|
1001
1091
|
"VellumEnvironment",
|
@@ -1004,7 +1094,11 @@ __all__ = [
|
|
1004
1094
|
"VellumErrorRequest",
|
1005
1095
|
"VellumImage",
|
1006
1096
|
"VellumImageRequest",
|
1097
|
+
"VellumNodeExecutionEvent",
|
1098
|
+
"VellumSdkError",
|
1099
|
+
"VellumSdkErrorCodeEnum",
|
1007
1100
|
"VellumSecret",
|
1101
|
+
"VellumSpan",
|
1008
1102
|
"VellumValue",
|
1009
1103
|
"VellumValueLogicalConditionGroupRequest",
|
1010
1104
|
"VellumValueLogicalConditionRequest",
|
@@ -1013,18 +1107,44 @@ __all__ = [
|
|
1013
1107
|
"VellumVariable",
|
1014
1108
|
"VellumVariableExtensions",
|
1015
1109
|
"VellumVariableType",
|
1110
|
+
"VellumWorkflowExecutionEvent",
|
1111
|
+
"WorkflowDeploymentEventExecutionsResponse",
|
1016
1112
|
"WorkflowDeploymentHistoryItem",
|
1113
|
+
"WorkflowDeploymentParentContext",
|
1017
1114
|
"WorkflowDeploymentRead",
|
1018
1115
|
"WorkflowDeploymentsListRequestStatus",
|
1116
|
+
"WorkflowError",
|
1117
|
+
"WorkflowEventDisplayContext",
|
1019
1118
|
"WorkflowEventError",
|
1119
|
+
"WorkflowEventExecutionRead",
|
1120
|
+
"WorkflowExecutionActual",
|
1020
1121
|
"WorkflowExecutionActualChatHistoryRequest",
|
1021
1122
|
"WorkflowExecutionActualJsonRequest",
|
1022
1123
|
"WorkflowExecutionActualStringRequest",
|
1023
1124
|
"WorkflowExecutionEventErrorCode",
|
1024
1125
|
"WorkflowExecutionEventType",
|
1126
|
+
"WorkflowExecutionFulfilledBody",
|
1127
|
+
"WorkflowExecutionFulfilledEvent",
|
1128
|
+
"WorkflowExecutionInitiatedBody",
|
1129
|
+
"WorkflowExecutionInitiatedEvent",
|
1025
1130
|
"WorkflowExecutionNodeResultEvent",
|
1131
|
+
"WorkflowExecutionPausedBody",
|
1132
|
+
"WorkflowExecutionPausedEvent",
|
1133
|
+
"WorkflowExecutionRejectedBody",
|
1134
|
+
"WorkflowExecutionRejectedEvent",
|
1135
|
+
"WorkflowExecutionResumedBody",
|
1136
|
+
"WorkflowExecutionResumedEvent",
|
1137
|
+
"WorkflowExecutionSnapshottedBody",
|
1138
|
+
"WorkflowExecutionSnapshottedEvent",
|
1139
|
+
"WorkflowExecutionSpan",
|
1140
|
+
"WorkflowExecutionSpanAttributes",
|
1141
|
+
"WorkflowExecutionStreamingBody",
|
1142
|
+
"WorkflowExecutionStreamingEvent",
|
1143
|
+
"WorkflowExecutionUsageCalculationFulfilledBody",
|
1144
|
+
"WorkflowExecutionViewOnlineEvalMetricResult",
|
1026
1145
|
"WorkflowExecutionWorkflowResultEvent",
|
1027
1146
|
"WorkflowExpandMetaRequest",
|
1147
|
+
"WorkflowInitializationError",
|
1028
1148
|
"WorkflowNodeResultData",
|
1029
1149
|
"WorkflowNodeResultEvent",
|
1030
1150
|
"WorkflowNodeResultEventState",
|
@@ -1038,6 +1158,7 @@ __all__ = [
|
|
1038
1158
|
"WorkflowOutputNumber",
|
1039
1159
|
"WorkflowOutputSearchResults",
|
1040
1160
|
"WorkflowOutputString",
|
1161
|
+
"WorkflowParentContext",
|
1041
1162
|
"WorkflowPushDeploymentConfigRequest",
|
1042
1163
|
"WorkflowPushExecConfig",
|
1043
1164
|
"WorkflowPushResponse",
|
@@ -1059,6 +1180,7 @@ __all__ = [
|
|
1059
1180
|
"WorkflowResultEventOutputDataSearchResults",
|
1060
1181
|
"WorkflowResultEventOutputDataString",
|
1061
1182
|
"WorkflowSandboxExample",
|
1183
|
+
"WorkflowSandboxParentContext",
|
1062
1184
|
"WorkflowStreamEvent",
|
1063
1185
|
"WorkflowsPullRequestFormat",
|
1064
1186
|
"WorkspaceRead",
|
@@ -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.24",
|
22
22
|
}
|
23
23
|
headers["X_API_KEY"] = self.api_key
|
24
24
|
return headers
|
@@ -10,6 +10,8 @@ from json.decoder import JSONDecodeError
|
|
10
10
|
from ...core.api_error import ApiError
|
11
11
|
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
12
12
|
from ...core.jsonable_encoder import jsonable_encoder
|
13
|
+
from ...types.workflow_deployment_event_executions_response import WorkflowDeploymentEventExecutionsResponse
|
14
|
+
from ...types.workflow_event_execution_read import WorkflowEventExecutionRead
|
13
15
|
from ...types.workflow_deployment_history_item import WorkflowDeploymentHistoryItem
|
14
16
|
from .types.list_workflow_release_tags_request_source import ListWorkflowReleaseTagsRequestSource
|
15
17
|
from ...types.paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
@@ -141,6 +143,122 @@ class WorkflowDeploymentsClient:
|
|
141
143
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
142
144
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
143
145
|
|
146
|
+
def list_workflow_deployment_event_executions(
|
147
|
+
self,
|
148
|
+
id: str,
|
149
|
+
*,
|
150
|
+
filters: typing.Optional[str] = None,
|
151
|
+
limit: typing.Optional[int] = None,
|
152
|
+
offset: typing.Optional[int] = None,
|
153
|
+
request_options: typing.Optional[RequestOptions] = None,
|
154
|
+
) -> WorkflowDeploymentEventExecutionsResponse:
|
155
|
+
"""
|
156
|
+
Parameters
|
157
|
+
----------
|
158
|
+
id : str
|
159
|
+
|
160
|
+
filters : typing.Optional[str]
|
161
|
+
|
162
|
+
limit : typing.Optional[int]
|
163
|
+
Number of executions to return per page.
|
164
|
+
|
165
|
+
offset : typing.Optional[int]
|
166
|
+
The initial index from which to return the executions.
|
167
|
+
|
168
|
+
request_options : typing.Optional[RequestOptions]
|
169
|
+
Request-specific configuration.
|
170
|
+
|
171
|
+
Returns
|
172
|
+
-------
|
173
|
+
WorkflowDeploymentEventExecutionsResponse
|
174
|
+
|
175
|
+
|
176
|
+
Examples
|
177
|
+
--------
|
178
|
+
from vellum import Vellum
|
179
|
+
|
180
|
+
client = Vellum(
|
181
|
+
api_key="YOUR_API_KEY",
|
182
|
+
)
|
183
|
+
client.workflow_deployments.list_workflow_deployment_event_executions(
|
184
|
+
id="id",
|
185
|
+
)
|
186
|
+
"""
|
187
|
+
_response = self._client_wrapper.httpx_client.request(
|
188
|
+
f"v1/workflow-deployments/{jsonable_encoder(id)}/execution-events",
|
189
|
+
base_url=self._client_wrapper.get_environment().default,
|
190
|
+
method="GET",
|
191
|
+
params={
|
192
|
+
"filters": filters,
|
193
|
+
"limit": limit,
|
194
|
+
"offset": offset,
|
195
|
+
},
|
196
|
+
request_options=request_options,
|
197
|
+
)
|
198
|
+
try:
|
199
|
+
if 200 <= _response.status_code < 300:
|
200
|
+
return typing.cast(
|
201
|
+
WorkflowDeploymentEventExecutionsResponse,
|
202
|
+
parse_obj_as(
|
203
|
+
type_=WorkflowDeploymentEventExecutionsResponse, # type: ignore
|
204
|
+
object_=_response.json(),
|
205
|
+
),
|
206
|
+
)
|
207
|
+
_response_json = _response.json()
|
208
|
+
except JSONDecodeError:
|
209
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
210
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
211
|
+
|
212
|
+
def workflow_deployment_event_execution(
|
213
|
+
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
214
|
+
) -> WorkflowEventExecutionRead:
|
215
|
+
"""
|
216
|
+
Parameters
|
217
|
+
----------
|
218
|
+
execution_id : str
|
219
|
+
|
220
|
+
id : str
|
221
|
+
|
222
|
+
request_options : typing.Optional[RequestOptions]
|
223
|
+
Request-specific configuration.
|
224
|
+
|
225
|
+
Returns
|
226
|
+
-------
|
227
|
+
WorkflowEventExecutionRead
|
228
|
+
|
229
|
+
|
230
|
+
Examples
|
231
|
+
--------
|
232
|
+
from vellum import Vellum
|
233
|
+
|
234
|
+
client = Vellum(
|
235
|
+
api_key="YOUR_API_KEY",
|
236
|
+
)
|
237
|
+
client.workflow_deployments.workflow_deployment_event_execution(
|
238
|
+
execution_id="execution_id",
|
239
|
+
id="id",
|
240
|
+
)
|
241
|
+
"""
|
242
|
+
_response = self._client_wrapper.httpx_client.request(
|
243
|
+
f"v1/workflow-deployments/{jsonable_encoder(id)}/execution-events/{jsonable_encoder(execution_id)}",
|
244
|
+
base_url=self._client_wrapper.get_environment().default,
|
245
|
+
method="GET",
|
246
|
+
request_options=request_options,
|
247
|
+
)
|
248
|
+
try:
|
249
|
+
if 200 <= _response.status_code < 300:
|
250
|
+
return typing.cast(
|
251
|
+
WorkflowEventExecutionRead,
|
252
|
+
parse_obj_as(
|
253
|
+
type_=WorkflowEventExecutionRead, # type: ignore
|
254
|
+
object_=_response.json(),
|
255
|
+
),
|
256
|
+
)
|
257
|
+
_response_json = _response.json()
|
258
|
+
except JSONDecodeError:
|
259
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
260
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
261
|
+
|
144
262
|
def workflow_deployment_history_item_retrieve(
|
145
263
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
146
264
|
) -> WorkflowDeploymentHistoryItem:
|
@@ -529,6 +647,138 @@ class AsyncWorkflowDeploymentsClient:
|
|
529
647
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
530
648
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
531
649
|
|
650
|
+
async def list_workflow_deployment_event_executions(
|
651
|
+
self,
|
652
|
+
id: str,
|
653
|
+
*,
|
654
|
+
filters: typing.Optional[str] = None,
|
655
|
+
limit: typing.Optional[int] = None,
|
656
|
+
offset: typing.Optional[int] = None,
|
657
|
+
request_options: typing.Optional[RequestOptions] = None,
|
658
|
+
) -> WorkflowDeploymentEventExecutionsResponse:
|
659
|
+
"""
|
660
|
+
Parameters
|
661
|
+
----------
|
662
|
+
id : str
|
663
|
+
|
664
|
+
filters : typing.Optional[str]
|
665
|
+
|
666
|
+
limit : typing.Optional[int]
|
667
|
+
Number of executions to return per page.
|
668
|
+
|
669
|
+
offset : typing.Optional[int]
|
670
|
+
The initial index from which to return the executions.
|
671
|
+
|
672
|
+
request_options : typing.Optional[RequestOptions]
|
673
|
+
Request-specific configuration.
|
674
|
+
|
675
|
+
Returns
|
676
|
+
-------
|
677
|
+
WorkflowDeploymentEventExecutionsResponse
|
678
|
+
|
679
|
+
|
680
|
+
Examples
|
681
|
+
--------
|
682
|
+
import asyncio
|
683
|
+
|
684
|
+
from vellum import AsyncVellum
|
685
|
+
|
686
|
+
client = AsyncVellum(
|
687
|
+
api_key="YOUR_API_KEY",
|
688
|
+
)
|
689
|
+
|
690
|
+
|
691
|
+
async def main() -> None:
|
692
|
+
await client.workflow_deployments.list_workflow_deployment_event_executions(
|
693
|
+
id="id",
|
694
|
+
)
|
695
|
+
|
696
|
+
|
697
|
+
asyncio.run(main())
|
698
|
+
"""
|
699
|
+
_response = await self._client_wrapper.httpx_client.request(
|
700
|
+
f"v1/workflow-deployments/{jsonable_encoder(id)}/execution-events",
|
701
|
+
base_url=self._client_wrapper.get_environment().default,
|
702
|
+
method="GET",
|
703
|
+
params={
|
704
|
+
"filters": filters,
|
705
|
+
"limit": limit,
|
706
|
+
"offset": offset,
|
707
|
+
},
|
708
|
+
request_options=request_options,
|
709
|
+
)
|
710
|
+
try:
|
711
|
+
if 200 <= _response.status_code < 300:
|
712
|
+
return typing.cast(
|
713
|
+
WorkflowDeploymentEventExecutionsResponse,
|
714
|
+
parse_obj_as(
|
715
|
+
type_=WorkflowDeploymentEventExecutionsResponse, # type: ignore
|
716
|
+
object_=_response.json(),
|
717
|
+
),
|
718
|
+
)
|
719
|
+
_response_json = _response.json()
|
720
|
+
except JSONDecodeError:
|
721
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
722
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
723
|
+
|
724
|
+
async def workflow_deployment_event_execution(
|
725
|
+
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
726
|
+
) -> WorkflowEventExecutionRead:
|
727
|
+
"""
|
728
|
+
Parameters
|
729
|
+
----------
|
730
|
+
execution_id : str
|
731
|
+
|
732
|
+
id : str
|
733
|
+
|
734
|
+
request_options : typing.Optional[RequestOptions]
|
735
|
+
Request-specific configuration.
|
736
|
+
|
737
|
+
Returns
|
738
|
+
-------
|
739
|
+
WorkflowEventExecutionRead
|
740
|
+
|
741
|
+
|
742
|
+
Examples
|
743
|
+
--------
|
744
|
+
import asyncio
|
745
|
+
|
746
|
+
from vellum import AsyncVellum
|
747
|
+
|
748
|
+
client = AsyncVellum(
|
749
|
+
api_key="YOUR_API_KEY",
|
750
|
+
)
|
751
|
+
|
752
|
+
|
753
|
+
async def main() -> None:
|
754
|
+
await client.workflow_deployments.workflow_deployment_event_execution(
|
755
|
+
execution_id="execution_id",
|
756
|
+
id="id",
|
757
|
+
)
|
758
|
+
|
759
|
+
|
760
|
+
asyncio.run(main())
|
761
|
+
"""
|
762
|
+
_response = await self._client_wrapper.httpx_client.request(
|
763
|
+
f"v1/workflow-deployments/{jsonable_encoder(id)}/execution-events/{jsonable_encoder(execution_id)}",
|
764
|
+
base_url=self._client_wrapper.get_environment().default,
|
765
|
+
method="GET",
|
766
|
+
request_options=request_options,
|
767
|
+
)
|
768
|
+
try:
|
769
|
+
if 200 <= _response.status_code < 300:
|
770
|
+
return typing.cast(
|
771
|
+
WorkflowEventExecutionRead,
|
772
|
+
parse_obj_as(
|
773
|
+
type_=WorkflowEventExecutionRead, # type: ignore
|
774
|
+
object_=_response.json(),
|
775
|
+
),
|
776
|
+
)
|
777
|
+
_response_json = _response.json()
|
778
|
+
except JSONDecodeError:
|
779
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
780
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
781
|
+
|
532
782
|
async def workflow_deployment_history_item_retrieve(
|
533
783
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
534
784
|
) -> WorkflowDeploymentHistoryItem:
|