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/client/types/__init__.py
CHANGED
@@ -9,6 +9,8 @@ from .ad_hoc_streaming_prompt_execution_meta import AdHocStreamingPromptExecutio
|
|
9
9
|
from .add_openai_api_key_enum import AddOpenaiApiKeyEnum
|
10
10
|
from .api_node_result import ApiNodeResult
|
11
11
|
from .api_node_result_data import ApiNodeResultData
|
12
|
+
from .api_request_parent_context import ApiRequestParentContext
|
13
|
+
from .api_version_enum import ApiVersionEnum
|
12
14
|
from .array_chat_message_content import ArrayChatMessageContent
|
13
15
|
from .array_chat_message_content_item import ArrayChatMessageContentItem
|
14
16
|
from .array_chat_message_content_item_request import ArrayChatMessageContentItemRequest
|
@@ -21,6 +23,7 @@ from .audio_chat_message_content_request import AudioChatMessageContentRequest
|
|
21
23
|
from .audio_prompt_block import AudioPromptBlock
|
22
24
|
from .audio_vellum_value import AudioVellumValue
|
23
25
|
from .audio_vellum_value_request import AudioVellumValueRequest
|
26
|
+
from .base_output import BaseOutput
|
24
27
|
from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
|
25
28
|
from .basic_vectorizer_intfloat_multilingual_e_5_large_request import BasicVectorizerIntfloatMultilingualE5LargeRequest
|
26
29
|
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1 import (
|
@@ -61,6 +64,7 @@ from .code_execution_runtime import CodeExecutionRuntime
|
|
61
64
|
from .code_executor_input import CodeExecutorInput
|
62
65
|
from .code_executor_response import CodeExecutorResponse
|
63
66
|
from .code_executor_secret_input import CodeExecutorSecretInput
|
67
|
+
from .code_resource_definition import CodeResourceDefinition
|
64
68
|
from .compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
65
69
|
from .compile_prompt_meta import CompilePromptMeta
|
66
70
|
from .components_schemas_pdf_search_result_meta_source import ComponentsSchemasPdfSearchResultMetaSource
|
@@ -118,6 +122,7 @@ from .execution_number_vellum_value import ExecutionNumberVellumValue
|
|
118
122
|
from .execution_search_results_vellum_value import ExecutionSearchResultsVellumValue
|
119
123
|
from .execution_string_vellum_value import ExecutionStringVellumValue
|
120
124
|
from .execution_vellum_value import ExecutionVellumValue
|
125
|
+
from .external_input_descriptor import ExternalInputDescriptor
|
121
126
|
from .external_test_case_execution import ExternalTestCaseExecution
|
122
127
|
from .external_test_case_execution_request import ExternalTestCaseExecutionRequest
|
123
128
|
from .finish_reason_enum import FinishReasonEnum
|
@@ -184,6 +189,7 @@ from .initiated_prompt_execution_meta import InitiatedPromptExecutionMeta
|
|
184
189
|
from .initiated_workflow_node_result_event import InitiatedWorkflowNodeResultEvent
|
185
190
|
from .instructor_vectorizer_config import InstructorVectorizerConfig
|
186
191
|
from .instructor_vectorizer_config_request import InstructorVectorizerConfigRequest
|
192
|
+
from .invoked_port import InvokedPort
|
187
193
|
from .iteration_state_enum import IterationStateEnum
|
188
194
|
from .jinja_prompt_block import JinjaPromptBlock
|
189
195
|
from .json_input import JsonInput
|
@@ -207,6 +213,7 @@ from .metric_definition_input import MetricDefinitionInput
|
|
207
213
|
from .metric_node_result import MetricNodeResult
|
208
214
|
from .ml_model_read import MlModelRead
|
209
215
|
from .ml_model_usage import MlModelUsage
|
216
|
+
from .ml_model_usage_wrapper import MlModelUsageWrapper
|
210
217
|
from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
|
211
218
|
from .named_scenario_input_json_variable_value_request import NamedScenarioInputJsonVariableValueRequest
|
212
219
|
from .named_scenario_input_request import NamedScenarioInputRequest
|
@@ -230,6 +237,21 @@ from .named_test_case_string_variable_value_request import NamedTestCaseStringVa
|
|
230
237
|
from .named_test_case_variable_value import NamedTestCaseVariableValue
|
231
238
|
from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
232
239
|
from .new_member_join_behavior_enum import NewMemberJoinBehaviorEnum
|
240
|
+
from .node_event_display_context import NodeEventDisplayContext
|
241
|
+
from .node_execution_fulfilled_body import NodeExecutionFulfilledBody
|
242
|
+
from .node_execution_fulfilled_event import NodeExecutionFulfilledEvent
|
243
|
+
from .node_execution_initiated_body import NodeExecutionInitiatedBody
|
244
|
+
from .node_execution_initiated_event import NodeExecutionInitiatedEvent
|
245
|
+
from .node_execution_paused_body import NodeExecutionPausedBody
|
246
|
+
from .node_execution_paused_event import NodeExecutionPausedEvent
|
247
|
+
from .node_execution_rejected_body import NodeExecutionRejectedBody
|
248
|
+
from .node_execution_rejected_event import NodeExecutionRejectedEvent
|
249
|
+
from .node_execution_resumed_body import NodeExecutionResumedBody
|
250
|
+
from .node_execution_resumed_event import NodeExecutionResumedEvent
|
251
|
+
from .node_execution_span import NodeExecutionSpan
|
252
|
+
from .node_execution_span_attributes import NodeExecutionSpanAttributes
|
253
|
+
from .node_execution_streaming_body import NodeExecutionStreamingBody
|
254
|
+
from .node_execution_streaming_event import NodeExecutionStreamingEvent
|
233
255
|
from .node_input_compiled_array_value import NodeInputCompiledArrayValue
|
234
256
|
from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
|
235
257
|
from .node_input_compiled_error_value import NodeInputCompiledErrorValue
|
@@ -249,6 +271,7 @@ from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
|
|
249
271
|
from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
|
250
272
|
from .node_output_compiled_string_value import NodeOutputCompiledStringValue
|
251
273
|
from .node_output_compiled_value import NodeOutputCompiledValue
|
274
|
+
from .node_parent_context import NodeParentContext
|
252
275
|
from .normalized_log_probs import NormalizedLogProbs
|
253
276
|
from .normalized_token_log_probs import NormalizedTokenLogProbs
|
254
277
|
from .number_input import NumberInput
|
@@ -274,6 +297,7 @@ from .paginated_test_suite_run_execution_list import PaginatedTestSuiteRunExecut
|
|
274
297
|
from .paginated_test_suite_test_case_list import PaginatedTestSuiteTestCaseList
|
275
298
|
from .paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
276
299
|
from .paginated_workflow_sandbox_example_list import PaginatedWorkflowSandboxExampleList
|
300
|
+
from .parent_context import ParentContext
|
277
301
|
from .pdf_search_result_meta_source import PdfSearchResultMetaSource
|
278
302
|
from .pdf_search_result_meta_source_request import PdfSearchResultMetaSourceRequest
|
279
303
|
from .plain_text_prompt_block import PlainTextPromptBlock
|
@@ -283,6 +307,7 @@ from .prompt_block import PromptBlock
|
|
283
307
|
from .prompt_block_state import PromptBlockState
|
284
308
|
from .prompt_deployment_expand_meta_request import PromptDeploymentExpandMetaRequest
|
285
309
|
from .prompt_deployment_input_request import PromptDeploymentInputRequest
|
310
|
+
from .prompt_deployment_parent_context import PromptDeploymentParentContext
|
286
311
|
from .prompt_execution_meta import PromptExecutionMeta
|
287
312
|
from .prompt_node_execution_meta import PromptNodeExecutionMeta
|
288
313
|
from .prompt_node_result import PromptNodeResult
|
@@ -340,6 +365,9 @@ from .slim_deployment_read import SlimDeploymentRead
|
|
340
365
|
from .slim_document import SlimDocument
|
341
366
|
from .slim_document_document_to_document_index import SlimDocumentDocumentToDocumentIndex
|
342
367
|
from .slim_workflow_deployment import SlimWorkflowDeployment
|
368
|
+
from .slim_workflow_execution_read import SlimWorkflowExecutionRead
|
369
|
+
from .span_link import SpanLink
|
370
|
+
from .span_link_type_enum import SpanLinkTypeEnum
|
343
371
|
from .streaming_ad_hoc_execute_prompt_event import StreamingAdHocExecutePromptEvent
|
344
372
|
from .streaming_execute_prompt_event import StreamingExecutePromptEvent
|
345
373
|
from .streaming_prompt_execution_meta import StreamingPromptExecutionMeta
|
@@ -469,6 +497,7 @@ from .upsert_test_suite_test_case_request import UpsertTestSuiteTestCaseRequest
|
|
469
497
|
from .variable_prompt_block import VariablePromptBlock
|
470
498
|
from .vellum_audio import VellumAudio
|
471
499
|
from .vellum_audio_request import VellumAudioRequest
|
500
|
+
from .vellum_code_resource_definition import VellumCodeResourceDefinition
|
472
501
|
from .vellum_document import VellumDocument
|
473
502
|
from .vellum_document_request import VellumDocumentRequest
|
474
503
|
from .vellum_error import VellumError
|
@@ -476,7 +505,11 @@ from .vellum_error_code_enum import VellumErrorCodeEnum
|
|
476
505
|
from .vellum_error_request import VellumErrorRequest
|
477
506
|
from .vellum_image import VellumImage
|
478
507
|
from .vellum_image_request import VellumImageRequest
|
508
|
+
from .vellum_node_execution_event import VellumNodeExecutionEvent
|
509
|
+
from .vellum_sdk_error import VellumSdkError
|
510
|
+
from .vellum_sdk_error_code_enum import VellumSdkErrorCodeEnum
|
479
511
|
from .vellum_secret import VellumSecret
|
512
|
+
from .vellum_span import VellumSpan
|
480
513
|
from .vellum_value import VellumValue
|
481
514
|
from .vellum_value_logical_condition_group_request import VellumValueLogicalConditionGroupRequest
|
482
515
|
from .vellum_value_logical_condition_request import VellumValueLogicalConditionRequest
|
@@ -485,17 +518,43 @@ from .vellum_value_request import VellumValueRequest
|
|
485
518
|
from .vellum_variable import VellumVariable
|
486
519
|
from .vellum_variable_extensions import VellumVariableExtensions
|
487
520
|
from .vellum_variable_type import VellumVariableType
|
521
|
+
from .vellum_workflow_execution_event import VellumWorkflowExecutionEvent
|
522
|
+
from .workflow_deployment_event_executions_response import WorkflowDeploymentEventExecutionsResponse
|
488
523
|
from .workflow_deployment_history_item import WorkflowDeploymentHistoryItem
|
524
|
+
from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
|
489
525
|
from .workflow_deployment_read import WorkflowDeploymentRead
|
526
|
+
from .workflow_error import WorkflowError
|
527
|
+
from .workflow_event_display_context import WorkflowEventDisplayContext
|
490
528
|
from .workflow_event_error import WorkflowEventError
|
529
|
+
from .workflow_event_execution_read import WorkflowEventExecutionRead
|
530
|
+
from .workflow_execution_actual import WorkflowExecutionActual
|
491
531
|
from .workflow_execution_actual_chat_history_request import WorkflowExecutionActualChatHistoryRequest
|
492
532
|
from .workflow_execution_actual_json_request import WorkflowExecutionActualJsonRequest
|
493
533
|
from .workflow_execution_actual_string_request import WorkflowExecutionActualStringRequest
|
494
534
|
from .workflow_execution_event_error_code import WorkflowExecutionEventErrorCode
|
495
535
|
from .workflow_execution_event_type import WorkflowExecutionEventType
|
536
|
+
from .workflow_execution_fulfilled_body import WorkflowExecutionFulfilledBody
|
537
|
+
from .workflow_execution_fulfilled_event import WorkflowExecutionFulfilledEvent
|
538
|
+
from .workflow_execution_initiated_body import WorkflowExecutionInitiatedBody
|
539
|
+
from .workflow_execution_initiated_event import WorkflowExecutionInitiatedEvent
|
496
540
|
from .workflow_execution_node_result_event import WorkflowExecutionNodeResultEvent
|
541
|
+
from .workflow_execution_paused_body import WorkflowExecutionPausedBody
|
542
|
+
from .workflow_execution_paused_event import WorkflowExecutionPausedEvent
|
543
|
+
from .workflow_execution_rejected_body import WorkflowExecutionRejectedBody
|
544
|
+
from .workflow_execution_rejected_event import WorkflowExecutionRejectedEvent
|
545
|
+
from .workflow_execution_resumed_body import WorkflowExecutionResumedBody
|
546
|
+
from .workflow_execution_resumed_event import WorkflowExecutionResumedEvent
|
547
|
+
from .workflow_execution_snapshotted_body import WorkflowExecutionSnapshottedBody
|
548
|
+
from .workflow_execution_snapshotted_event import WorkflowExecutionSnapshottedEvent
|
549
|
+
from .workflow_execution_span import WorkflowExecutionSpan
|
550
|
+
from .workflow_execution_span_attributes import WorkflowExecutionSpanAttributes
|
551
|
+
from .workflow_execution_streaming_body import WorkflowExecutionStreamingBody
|
552
|
+
from .workflow_execution_streaming_event import WorkflowExecutionStreamingEvent
|
553
|
+
from .workflow_execution_usage_calculation_fulfilled_body import WorkflowExecutionUsageCalculationFulfilledBody
|
554
|
+
from .workflow_execution_view_online_eval_metric_result import WorkflowExecutionViewOnlineEvalMetricResult
|
497
555
|
from .workflow_execution_workflow_result_event import WorkflowExecutionWorkflowResultEvent
|
498
556
|
from .workflow_expand_meta_request import WorkflowExpandMetaRequest
|
557
|
+
from .workflow_initialization_error import WorkflowInitializationError
|
499
558
|
from .workflow_node_result_data import WorkflowNodeResultData
|
500
559
|
from .workflow_node_result_event import WorkflowNodeResultEvent
|
501
560
|
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
@@ -509,6 +568,7 @@ from .workflow_output_json import WorkflowOutputJson
|
|
509
568
|
from .workflow_output_number import WorkflowOutputNumber
|
510
569
|
from .workflow_output_search_results import WorkflowOutputSearchResults
|
511
570
|
from .workflow_output_string import WorkflowOutputString
|
571
|
+
from .workflow_parent_context import WorkflowParentContext
|
512
572
|
from .workflow_push_deployment_config_request import WorkflowPushDeploymentConfigRequest
|
513
573
|
from .workflow_push_exec_config import WorkflowPushExecConfig
|
514
574
|
from .workflow_push_response import WorkflowPushResponse
|
@@ -530,6 +590,7 @@ from .workflow_result_event_output_data_number import WorkflowResultEventOutputD
|
|
530
590
|
from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
|
531
591
|
from .workflow_result_event_output_data_string import WorkflowResultEventOutputDataString
|
532
592
|
from .workflow_sandbox_example import WorkflowSandboxExample
|
593
|
+
from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
|
533
594
|
from .workflow_stream_event import WorkflowStreamEvent
|
534
595
|
from .workspace_read import WorkspaceRead
|
535
596
|
from .workspace_secret_read import WorkspaceSecretRead
|
@@ -544,6 +605,8 @@ __all__ = [
|
|
544
605
|
"AddOpenaiApiKeyEnum",
|
545
606
|
"ApiNodeResult",
|
546
607
|
"ApiNodeResultData",
|
608
|
+
"ApiRequestParentContext",
|
609
|
+
"ApiVersionEnum",
|
547
610
|
"ArrayChatMessageContent",
|
548
611
|
"ArrayChatMessageContentItem",
|
549
612
|
"ArrayChatMessageContentItemRequest",
|
@@ -556,6 +619,7 @@ __all__ = [
|
|
556
619
|
"AudioPromptBlock",
|
557
620
|
"AudioVellumValue",
|
558
621
|
"AudioVellumValueRequest",
|
622
|
+
"BaseOutput",
|
559
623
|
"BasicVectorizerIntfloatMultilingualE5Large",
|
560
624
|
"BasicVectorizerIntfloatMultilingualE5LargeRequest",
|
561
625
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1",
|
@@ -588,6 +652,7 @@ __all__ = [
|
|
588
652
|
"CodeExecutorInput",
|
589
653
|
"CodeExecutorResponse",
|
590
654
|
"CodeExecutorSecretInput",
|
655
|
+
"CodeResourceDefinition",
|
591
656
|
"CompilePromptDeploymentExpandMetaRequest",
|
592
657
|
"CompilePromptMeta",
|
593
658
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
@@ -645,6 +710,7 @@ __all__ = [
|
|
645
710
|
"ExecutionSearchResultsVellumValue",
|
646
711
|
"ExecutionStringVellumValue",
|
647
712
|
"ExecutionVellumValue",
|
713
|
+
"ExternalInputDescriptor",
|
648
714
|
"ExternalTestCaseExecution",
|
649
715
|
"ExternalTestCaseExecutionRequest",
|
650
716
|
"FinishReasonEnum",
|
@@ -707,6 +773,7 @@ __all__ = [
|
|
707
773
|
"InitiatedWorkflowNodeResultEvent",
|
708
774
|
"InstructorVectorizerConfig",
|
709
775
|
"InstructorVectorizerConfigRequest",
|
776
|
+
"InvokedPort",
|
710
777
|
"IterationStateEnum",
|
711
778
|
"JinjaPromptBlock",
|
712
779
|
"JsonInput",
|
@@ -730,6 +797,7 @@ __all__ = [
|
|
730
797
|
"MetricNodeResult",
|
731
798
|
"MlModelRead",
|
732
799
|
"MlModelUsage",
|
800
|
+
"MlModelUsageWrapper",
|
733
801
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
734
802
|
"NamedScenarioInputJsonVariableValueRequest",
|
735
803
|
"NamedScenarioInputRequest",
|
@@ -753,6 +821,21 @@ __all__ = [
|
|
753
821
|
"NamedTestCaseVariableValue",
|
754
822
|
"NamedTestCaseVariableValueRequest",
|
755
823
|
"NewMemberJoinBehaviorEnum",
|
824
|
+
"NodeEventDisplayContext",
|
825
|
+
"NodeExecutionFulfilledBody",
|
826
|
+
"NodeExecutionFulfilledEvent",
|
827
|
+
"NodeExecutionInitiatedBody",
|
828
|
+
"NodeExecutionInitiatedEvent",
|
829
|
+
"NodeExecutionPausedBody",
|
830
|
+
"NodeExecutionPausedEvent",
|
831
|
+
"NodeExecutionRejectedBody",
|
832
|
+
"NodeExecutionRejectedEvent",
|
833
|
+
"NodeExecutionResumedBody",
|
834
|
+
"NodeExecutionResumedEvent",
|
835
|
+
"NodeExecutionSpan",
|
836
|
+
"NodeExecutionSpanAttributes",
|
837
|
+
"NodeExecutionStreamingBody",
|
838
|
+
"NodeExecutionStreamingEvent",
|
756
839
|
"NodeInputCompiledArrayValue",
|
757
840
|
"NodeInputCompiledChatHistoryValue",
|
758
841
|
"NodeInputCompiledErrorValue",
|
@@ -772,6 +855,7 @@ __all__ = [
|
|
772
855
|
"NodeOutputCompiledSearchResultsValue",
|
773
856
|
"NodeOutputCompiledStringValue",
|
774
857
|
"NodeOutputCompiledValue",
|
858
|
+
"NodeParentContext",
|
775
859
|
"NormalizedLogProbs",
|
776
860
|
"NormalizedTokenLogProbs",
|
777
861
|
"NumberInput",
|
@@ -797,6 +881,7 @@ __all__ = [
|
|
797
881
|
"PaginatedTestSuiteTestCaseList",
|
798
882
|
"PaginatedWorkflowReleaseTagReadList",
|
799
883
|
"PaginatedWorkflowSandboxExampleList",
|
884
|
+
"ParentContext",
|
800
885
|
"PdfSearchResultMetaSource",
|
801
886
|
"PdfSearchResultMetaSourceRequest",
|
802
887
|
"PlainTextPromptBlock",
|
@@ -806,6 +891,7 @@ __all__ = [
|
|
806
891
|
"PromptBlockState",
|
807
892
|
"PromptDeploymentExpandMetaRequest",
|
808
893
|
"PromptDeploymentInputRequest",
|
894
|
+
"PromptDeploymentParentContext",
|
809
895
|
"PromptExecutionMeta",
|
810
896
|
"PromptNodeExecutionMeta",
|
811
897
|
"PromptNodeResult",
|
@@ -863,6 +949,9 @@ __all__ = [
|
|
863
949
|
"SlimDocument",
|
864
950
|
"SlimDocumentDocumentToDocumentIndex",
|
865
951
|
"SlimWorkflowDeployment",
|
952
|
+
"SlimWorkflowExecutionRead",
|
953
|
+
"SpanLink",
|
954
|
+
"SpanLinkTypeEnum",
|
866
955
|
"StreamingAdHocExecutePromptEvent",
|
867
956
|
"StreamingExecutePromptEvent",
|
868
957
|
"StreamingPromptExecutionMeta",
|
@@ -976,6 +1065,7 @@ __all__ = [
|
|
976
1065
|
"VariablePromptBlock",
|
977
1066
|
"VellumAudio",
|
978
1067
|
"VellumAudioRequest",
|
1068
|
+
"VellumCodeResourceDefinition",
|
979
1069
|
"VellumDocument",
|
980
1070
|
"VellumDocumentRequest",
|
981
1071
|
"VellumError",
|
@@ -983,7 +1073,11 @@ __all__ = [
|
|
983
1073
|
"VellumErrorRequest",
|
984
1074
|
"VellumImage",
|
985
1075
|
"VellumImageRequest",
|
1076
|
+
"VellumNodeExecutionEvent",
|
1077
|
+
"VellumSdkError",
|
1078
|
+
"VellumSdkErrorCodeEnum",
|
986
1079
|
"VellumSecret",
|
1080
|
+
"VellumSpan",
|
987
1081
|
"VellumValue",
|
988
1082
|
"VellumValueLogicalConditionGroupRequest",
|
989
1083
|
"VellumValueLogicalConditionRequest",
|
@@ -992,17 +1086,43 @@ __all__ = [
|
|
992
1086
|
"VellumVariable",
|
993
1087
|
"VellumVariableExtensions",
|
994
1088
|
"VellumVariableType",
|
1089
|
+
"VellumWorkflowExecutionEvent",
|
1090
|
+
"WorkflowDeploymentEventExecutionsResponse",
|
995
1091
|
"WorkflowDeploymentHistoryItem",
|
1092
|
+
"WorkflowDeploymentParentContext",
|
996
1093
|
"WorkflowDeploymentRead",
|
1094
|
+
"WorkflowError",
|
1095
|
+
"WorkflowEventDisplayContext",
|
997
1096
|
"WorkflowEventError",
|
1097
|
+
"WorkflowEventExecutionRead",
|
1098
|
+
"WorkflowExecutionActual",
|
998
1099
|
"WorkflowExecutionActualChatHistoryRequest",
|
999
1100
|
"WorkflowExecutionActualJsonRequest",
|
1000
1101
|
"WorkflowExecutionActualStringRequest",
|
1001
1102
|
"WorkflowExecutionEventErrorCode",
|
1002
1103
|
"WorkflowExecutionEventType",
|
1104
|
+
"WorkflowExecutionFulfilledBody",
|
1105
|
+
"WorkflowExecutionFulfilledEvent",
|
1106
|
+
"WorkflowExecutionInitiatedBody",
|
1107
|
+
"WorkflowExecutionInitiatedEvent",
|
1003
1108
|
"WorkflowExecutionNodeResultEvent",
|
1109
|
+
"WorkflowExecutionPausedBody",
|
1110
|
+
"WorkflowExecutionPausedEvent",
|
1111
|
+
"WorkflowExecutionRejectedBody",
|
1112
|
+
"WorkflowExecutionRejectedEvent",
|
1113
|
+
"WorkflowExecutionResumedBody",
|
1114
|
+
"WorkflowExecutionResumedEvent",
|
1115
|
+
"WorkflowExecutionSnapshottedBody",
|
1116
|
+
"WorkflowExecutionSnapshottedEvent",
|
1117
|
+
"WorkflowExecutionSpan",
|
1118
|
+
"WorkflowExecutionSpanAttributes",
|
1119
|
+
"WorkflowExecutionStreamingBody",
|
1120
|
+
"WorkflowExecutionStreamingEvent",
|
1121
|
+
"WorkflowExecutionUsageCalculationFulfilledBody",
|
1122
|
+
"WorkflowExecutionViewOnlineEvalMetricResult",
|
1004
1123
|
"WorkflowExecutionWorkflowResultEvent",
|
1005
1124
|
"WorkflowExpandMetaRequest",
|
1125
|
+
"WorkflowInitializationError",
|
1006
1126
|
"WorkflowNodeResultData",
|
1007
1127
|
"WorkflowNodeResultEvent",
|
1008
1128
|
"WorkflowNodeResultEventState",
|
@@ -1016,6 +1136,7 @@ __all__ = [
|
|
1016
1136
|
"WorkflowOutputNumber",
|
1017
1137
|
"WorkflowOutputSearchResults",
|
1018
1138
|
"WorkflowOutputString",
|
1139
|
+
"WorkflowParentContext",
|
1019
1140
|
"WorkflowPushDeploymentConfigRequest",
|
1020
1141
|
"WorkflowPushExecConfig",
|
1021
1142
|
"WorkflowPushResponse",
|
@@ -1037,6 +1158,7 @@ __all__ = [
|
|
1037
1158
|
"WorkflowResultEventOutputDataSearchResults",
|
1038
1159
|
"WorkflowResultEventOutputDataString",
|
1039
1160
|
"WorkflowSandboxExample",
|
1161
|
+
"WorkflowSandboxParentContext",
|
1040
1162
|
"WorkflowStreamEvent",
|
1041
1163
|
"WorkspaceRead",
|
1042
1164
|
"WorkspaceSecretRead",
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
|
+
|
10
|
+
|
11
|
+
class ApiRequestParentContext(UniversalBaseModel):
|
12
|
+
parent: typing.Optional["ParentContext"] = None
|
13
|
+
links: typing.Optional[typing.List["SpanLink"]] = None
|
14
|
+
type: typing.Literal["API_REQUEST"] = "API_REQUEST"
|
15
|
+
span_id: str
|
16
|
+
|
17
|
+
if IS_PYDANTIC_V2:
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
19
|
+
else:
|
20
|
+
|
21
|
+
class Config:
|
22
|
+
frozen = True
|
23
|
+
smart_union = True
|
24
|
+
extra = pydantic.Extra.allow
|
25
|
+
|
26
|
+
|
27
|
+
from .node_parent_context import NodeParentContext # noqa: E402
|
28
|
+
from .prompt_deployment_parent_context import PromptDeploymentParentContext # noqa: E402
|
29
|
+
from .span_link import SpanLink # noqa: E402
|
30
|
+
from .workflow_deployment_parent_context import WorkflowDeploymentParentContext # noqa: E402
|
31
|
+
from .workflow_parent_context import WorkflowParentContext # noqa: E402
|
32
|
+
from .workflow_sandbox_parent_context import WorkflowSandboxParentContext # noqa: E402
|
33
|
+
from .parent_context import ParentContext # noqa: E402
|
34
|
+
|
35
|
+
update_forward_refs(NodeParentContext, ApiRequestParentContext=ApiRequestParentContext)
|
36
|
+
update_forward_refs(PromptDeploymentParentContext, ApiRequestParentContext=ApiRequestParentContext)
|
37
|
+
update_forward_refs(SpanLink, ApiRequestParentContext=ApiRequestParentContext)
|
38
|
+
update_forward_refs(WorkflowDeploymentParentContext, ApiRequestParentContext=ApiRequestParentContext)
|
39
|
+
update_forward_refs(WorkflowParentContext, ApiRequestParentContext=ApiRequestParentContext)
|
40
|
+
update_forward_refs(WorkflowSandboxParentContext, ApiRequestParentContext=ApiRequestParentContext)
|
41
|
+
update_forward_refs(ApiRequestParentContext)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import typing
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
+
import pydantic
|
7
|
+
|
8
|
+
|
9
|
+
class BaseOutput(UniversalBaseModel):
|
10
|
+
value: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
11
|
+
delta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
12
|
+
name: str
|
13
|
+
|
14
|
+
if IS_PYDANTIC_V2:
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
16
|
+
else:
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
|
8
|
+
|
9
|
+
class CodeResourceDefinition(UniversalBaseModel):
|
10
|
+
"""
|
11
|
+
The definition of a resource defined in code.
|
12
|
+
"""
|
13
|
+
|
14
|
+
name: str = pydantic.Field()
|
15
|
+
"""
|
16
|
+
The name of the resource, typically a class name.
|
17
|
+
"""
|
18
|
+
|
19
|
+
module: typing.List[str] = pydantic.Field()
|
20
|
+
"""
|
21
|
+
The module that this resource is defined in.
|
22
|
+
"""
|
23
|
+
|
24
|
+
if IS_PYDANTIC_V2:
|
25
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
26
|
+
else:
|
27
|
+
|
28
|
+
class Config:
|
29
|
+
frozen = True
|
30
|
+
smart_union = True
|
31
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,23 @@
|
|
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 .code_resource_definition import CodeResourceDefinition
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class ExternalInputDescriptor(UniversalBaseModel):
|
11
|
+
types: typing.List[CodeResourceDefinition]
|
12
|
+
inputs_class: typing.Optional[CodeResourceDefinition] = None
|
13
|
+
instance: typing.Optional[typing.Optional[typing.Any]] = None
|
14
|
+
name: str
|
15
|
+
|
16
|
+
if IS_PYDANTIC_V2:
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
18
|
+
else:
|
19
|
+
|
20
|
+
class Config:
|
21
|
+
frozen = True
|
22
|
+
smart_union = True
|
23
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
5
|
+
import typing
|
6
|
+
import pydantic
|
7
|
+
|
8
|
+
|
9
|
+
class InvokedPort(UniversalBaseModel):
|
10
|
+
name: str
|
11
|
+
|
12
|
+
if IS_PYDANTIC_V2:
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
14
|
+
else:
|
15
|
+
|
16
|
+
class Config:
|
17
|
+
frozen = True
|
18
|
+
smart_union = True
|
19
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from .ml_model_usage import MlModelUsage
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
+
import typing
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class MlModelUsageWrapper(UniversalBaseModel):
|
11
|
+
ml_model_usage: MlModelUsage
|
12
|
+
ml_model_name: str
|
13
|
+
|
14
|
+
if IS_PYDANTIC_V2:
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
16
|
+
else:
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
|
+
|
10
|
+
|
11
|
+
class NodeEventDisplayContext(UniversalBaseModel):
|
12
|
+
input_display: typing.Dict[str, str]
|
13
|
+
output_display: typing.Dict[str, str]
|
14
|
+
port_display: typing.Dict[str, str]
|
15
|
+
subworkflow_display: typing.Optional["WorkflowEventDisplayContext"] = None
|
16
|
+
|
17
|
+
if IS_PYDANTIC_V2:
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
19
|
+
else:
|
20
|
+
|
21
|
+
class Config:
|
22
|
+
frozen = True
|
23
|
+
smart_union = True
|
24
|
+
extra = pydantic.Extra.allow
|
25
|
+
|
26
|
+
|
27
|
+
from .workflow_event_display_context import WorkflowEventDisplayContext # noqa: E402
|
28
|
+
|
29
|
+
update_forward_refs(WorkflowEventDisplayContext, NodeEventDisplayContext=NodeEventDisplayContext)
|
30
|
+
update_forward_refs(NodeEventDisplayContext)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from .vellum_code_resource_definition import VellumCodeResourceDefinition
|
5
|
+
import typing
|
6
|
+
from .invoked_port import InvokedPort
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
import pydantic
|
9
|
+
|
10
|
+
|
11
|
+
class NodeExecutionFulfilledBody(UniversalBaseModel):
|
12
|
+
node_definition: VellumCodeResourceDefinition
|
13
|
+
invoked_ports: typing.Optional[typing.List[InvokedPort]] = None
|
14
|
+
outputs: typing.Dict[str, typing.Optional[typing.Any]]
|
15
|
+
mocked: typing.Optional[bool] = None
|
16
|
+
|
17
|
+
if IS_PYDANTIC_V2:
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
19
|
+
else:
|
20
|
+
|
21
|
+
class Config:
|
22
|
+
frozen = True
|
23
|
+
smart_union = True
|
24
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .api_request_parent_context import ApiRequestParentContext
|
6
|
+
from .node_parent_context import NodeParentContext
|
7
|
+
from .prompt_deployment_parent_context import PromptDeploymentParentContext
|
8
|
+
from .span_link import SpanLink
|
9
|
+
from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
|
10
|
+
from .workflow_parent_context import WorkflowParentContext
|
11
|
+
from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
|
12
|
+
import typing
|
13
|
+
from .parent_context import ParentContext
|
14
|
+
from .node_execution_fulfilled_body import NodeExecutionFulfilledBody
|
15
|
+
import datetime as dt
|
16
|
+
from .api_version_enum import ApiVersionEnum
|
17
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
18
|
+
import pydantic
|
19
|
+
from ..core.pydantic_utilities import update_forward_refs
|
20
|
+
|
21
|
+
|
22
|
+
class NodeExecutionFulfilledEvent(UniversalBaseModel):
|
23
|
+
parent: typing.Optional[ParentContext] = None
|
24
|
+
links: typing.Optional[typing.List[SpanLink]] = None
|
25
|
+
name: typing.Literal["node.execution.fulfilled"] = "node.execution.fulfilled"
|
26
|
+
body: NodeExecutionFulfilledBody
|
27
|
+
id: str
|
28
|
+
timestamp: dt.datetime
|
29
|
+
api_version: typing.Optional[ApiVersionEnum] = None
|
30
|
+
trace_id: str
|
31
|
+
span_id: str
|
32
|
+
|
33
|
+
if IS_PYDANTIC_V2:
|
34
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
35
|
+
else:
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
frozen = True
|
39
|
+
smart_union = True
|
40
|
+
extra = pydantic.Extra.allow
|
41
|
+
|
42
|
+
|
43
|
+
update_forward_refs(ApiRequestParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
44
|
+
update_forward_refs(NodeParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
45
|
+
update_forward_refs(PromptDeploymentParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
46
|
+
update_forward_refs(SpanLink, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
47
|
+
update_forward_refs(WorkflowDeploymentParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
48
|
+
update_forward_refs(WorkflowParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
49
|
+
update_forward_refs(WorkflowSandboxParentContext, NodeExecutionFulfilledEvent=NodeExecutionFulfilledEvent)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from .vellum_code_resource_definition import VellumCodeResourceDefinition
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class NodeExecutionInitiatedBody(UniversalBaseModel):
|
11
|
+
node_definition: VellumCodeResourceDefinition
|
12
|
+
inputs: typing.Dict[str, typing.Optional[typing.Any]]
|
13
|
+
|
14
|
+
if IS_PYDANTIC_V2:
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
16
|
+
else:
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
extra = pydantic.Extra.allow
|