vellum-ai 0.3.7__py3-none-any.whl → 0.3.9__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.
Files changed (40) hide show
  1. vellum/__init__.py +64 -0
  2. vellum/client.py +8 -8
  3. vellum/core/client_wrapper.py +1 -1
  4. vellum/resources/deployments/client.py +2 -2
  5. vellum/resources/workflow_deployments/client.py +65 -8
  6. vellum/types/__init__.py +66 -0
  7. vellum/types/array_enum.py +5 -0
  8. vellum/types/array_variable_value_item.py +89 -0
  9. vellum/types/chat_history_variable_value.py +29 -0
  10. vellum/types/code_execution_node_result_data.py +1 -0
  11. vellum/types/node_input_compiled_array_value.py +31 -0
  12. vellum/types/node_input_variable_compiled_value.py +11 -0
  13. vellum/types/node_output_compiled_array_value.py +30 -0
  14. vellum/types/node_output_compiled_function_value.py +30 -0
  15. vellum/types/node_output_compiled_value.py +22 -0
  16. vellum/types/number_variable_value.py +28 -0
  17. vellum/types/prompt_node_result_data.py +1 -0
  18. vellum/types/search_results_variable_value.py +29 -0
  19. vellum/types/subworkflow_enum.py +5 -0
  20. vellum/types/subworkflow_node_result.py +30 -0
  21. vellum/types/terminal_node_array_result.py +31 -0
  22. vellum/types/terminal_node_function_call_result.py +31 -0
  23. vellum/types/terminal_node_result_output.py +22 -0
  24. vellum/types/vellum_error_code_enum.py +5 -0
  25. vellum/types/workflow_deployment_read.py +57 -0
  26. vellum/types/workflow_execution_event_error_code.py +5 -0
  27. vellum/types/workflow_node_result_data.py +11 -0
  28. vellum/types/workflow_output.py +11 -0
  29. vellum/types/workflow_output_array.py +35 -0
  30. vellum/types/workflow_request_chat_history_input_request.py +4 -0
  31. vellum/types/workflow_request_json_input_request.py +4 -0
  32. vellum/types/workflow_request_number_input_request.py +4 -0
  33. vellum/types/workflow_request_string_input_request.py +4 -0
  34. vellum/types/workflow_result_event_output_data.py +22 -0
  35. vellum/types/workflow_result_event_output_data_array.py +41 -0
  36. vellum/types/workflow_result_event_output_data_function_call.py +41 -0
  37. {vellum_ai-0.3.7.dist-info → vellum_ai-0.3.9.dist-info}/METADATA +1 -1
  38. {vellum_ai-0.3.7.dist-info → vellum_ai-0.3.9.dist-info}/RECORD +40 -24
  39. {vellum_ai-0.3.7.dist-info → vellum_ai-0.3.9.dist-info}/LICENSE +0 -0
  40. {vellum_ai-0.3.7.dist-info → vellum_ai-0.3.9.dist-info}/WHEEL +0 -0
vellum/types/__init__.py CHANGED
@@ -16,9 +16,21 @@ from .array_chat_message_content_item_request import (
16
16
  ArrayChatMessageContentItemRequest_String,
17
17
  )
18
18
  from .array_chat_message_content_request import ArrayChatMessageContentRequest
19
+ from .array_enum import ArrayEnum
20
+ from .array_variable_value_item import (
21
+ ArrayVariableValueItem,
22
+ ArrayVariableValueItem_ChatHistory,
23
+ ArrayVariableValueItem_Error,
24
+ ArrayVariableValueItem_FunctionCall,
25
+ ArrayVariableValueItem_Json,
26
+ ArrayVariableValueItem_Number,
27
+ ArrayVariableValueItem_SearchResults,
28
+ ArrayVariableValueItem_String,
29
+ )
19
30
  from .block_type_enum import BlockTypeEnum
20
31
  from .chat_history_enum import ChatHistoryEnum
21
32
  from .chat_history_input_request import ChatHistoryInputRequest
33
+ from .chat_history_variable_value import ChatHistoryVariableValue
22
34
  from .chat_message import ChatMessage
23
35
  from .chat_message_content import (
24
36
  ChatMessageContent,
@@ -149,6 +161,7 @@ from .named_test_case_variable_value_request import (
149
161
  NamedTestCaseVariableValueRequest_SearchResults,
150
162
  NamedTestCaseVariableValueRequest_String,
151
163
  )
164
+ from .node_input_compiled_array_value import NodeInputCompiledArrayValue
152
165
  from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
153
166
  from .node_input_compiled_error_value import NodeInputCompiledErrorValue
154
167
  from .node_input_compiled_json_value import NodeInputCompiledJsonValue
@@ -157,6 +170,7 @@ from .node_input_compiled_search_results_value import NodeInputCompiledSearchRes
157
170
  from .node_input_compiled_string_value import NodeInputCompiledStringValue
158
171
  from .node_input_variable_compiled_value import (
159
172
  NodeInputVariableCompiledValue,
173
+ NodeInputVariableCompiledValue_Array,
160
174
  NodeInputVariableCompiledValue_ChatHistory,
161
175
  NodeInputVariableCompiledValue_Error,
162
176
  NodeInputVariableCompiledValue_Json,
@@ -164,16 +178,20 @@ from .node_input_variable_compiled_value import (
164
178
  NodeInputVariableCompiledValue_SearchResults,
165
179
  NodeInputVariableCompiledValue_String,
166
180
  )
181
+ from .node_output_compiled_array_value import NodeOutputCompiledArrayValue
167
182
  from .node_output_compiled_chat_history_value import NodeOutputCompiledChatHistoryValue
168
183
  from .node_output_compiled_error_value import NodeOutputCompiledErrorValue
184
+ from .node_output_compiled_function_value import NodeOutputCompiledFunctionValue
169
185
  from .node_output_compiled_json_value import NodeOutputCompiledJsonValue
170
186
  from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
171
187
  from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
172
188
  from .node_output_compiled_string_value import NodeOutputCompiledStringValue
173
189
  from .node_output_compiled_value import (
174
190
  NodeOutputCompiledValue,
191
+ NodeOutputCompiledValue_Array,
175
192
  NodeOutputCompiledValue_ChatHistory,
176
193
  NodeOutputCompiledValue_Error,
194
+ NodeOutputCompiledValue_FunctionCall,
177
195
  NodeOutputCompiledValue_Json,
178
196
  NodeOutputCompiledValue_Number,
179
197
  NodeOutputCompiledValue_SearchResults,
@@ -182,6 +200,7 @@ from .node_output_compiled_value import (
182
200
  from .normalized_log_probs import NormalizedLogProbs
183
201
  from .normalized_token_log_probs import NormalizedTokenLogProbs
184
202
  from .number_enum import NumberEnum
203
+ from .number_variable_value import NumberVariableValue
185
204
  from .paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
186
205
  from .paginated_slim_document_list import PaginatedSlimDocumentList
187
206
  from .paginated_slim_workflow_deployment_list import PaginatedSlimWorkflowDeploymentList
@@ -245,6 +264,7 @@ from .search_result_document_request import SearchResultDocumentRequest
245
264
  from .search_result_merging_request import SearchResultMergingRequest
246
265
  from .search_result_request import SearchResultRequest
247
266
  from .search_results_enum import SearchResultsEnum
267
+ from .search_results_variable_value import SearchResultsVariableValue
248
268
  from .search_weights_request import SearchWeightsRequest
249
269
  from .slim_deployment_read import SlimDeploymentRead
250
270
  from .slim_document import SlimDocument
@@ -266,6 +286,8 @@ from .submit_workflow_execution_actual_request import (
266
286
  SubmitWorkflowExecutionActualRequest_Json,
267
287
  SubmitWorkflowExecutionActualRequest_String,
268
288
  )
289
+ from .subworkflow_enum import SubworkflowEnum
290
+ from .subworkflow_node_result import SubworkflowNodeResult
269
291
  from .templating_node_chat_history_result import TemplatingNodeChatHistoryResult
270
292
  from .templating_node_error_result import TemplatingNodeErrorResult
271
293
  from .templating_node_json_result import TemplatingNodeJsonResult
@@ -283,16 +305,20 @@ from .templating_node_result_output import (
283
305
  )
284
306
  from .templating_node_search_results_result import TemplatingNodeSearchResultsResult
285
307
  from .templating_node_string_result import TemplatingNodeStringResult
308
+ from .terminal_node_array_result import TerminalNodeArrayResult
286
309
  from .terminal_node_chat_history_result import TerminalNodeChatHistoryResult
287
310
  from .terminal_node_error_result import TerminalNodeErrorResult
311
+ from .terminal_node_function_call_result import TerminalNodeFunctionCallResult
288
312
  from .terminal_node_json_result import TerminalNodeJsonResult
289
313
  from .terminal_node_number_result import TerminalNodeNumberResult
290
314
  from .terminal_node_result import TerminalNodeResult
291
315
  from .terminal_node_result_data import TerminalNodeResultData
292
316
  from .terminal_node_result_output import (
293
317
  TerminalNodeResultOutput,
318
+ TerminalNodeResultOutput_Array,
294
319
  TerminalNodeResultOutput_ChatHistory,
295
320
  TerminalNodeResultOutput_Error,
321
+ TerminalNodeResultOutput_FunctionCall,
296
322
  TerminalNodeResultOutput_Json,
297
323
  TerminalNodeResultOutput_Number,
298
324
  TerminalNodeResultOutput_SearchResults,
@@ -325,6 +351,7 @@ from .vellum_image import VellumImage
325
351
  from .vellum_image_request import VellumImageRequest
326
352
  from .vellum_variable import VellumVariable
327
353
  from .vellum_variable_type import VellumVariableType
354
+ from .workflow_deployment_read import WorkflowDeploymentRead
328
355
  from .workflow_event_error import WorkflowEventError
329
356
  from .workflow_execution_actual_chat_history_request import WorkflowExecutionActualChatHistoryRequest
330
357
  from .workflow_execution_actual_json_request import WorkflowExecutionActualJsonRequest
@@ -340,6 +367,7 @@ from .workflow_node_result_data import (
340
367
  WorkflowNodeResultData_Conditional,
341
368
  WorkflowNodeResultData_Prompt,
342
369
  WorkflowNodeResultData_Search,
370
+ WorkflowNodeResultData_Subworkflow,
343
371
  WorkflowNodeResultData_Templating,
344
372
  WorkflowNodeResultData_Terminal,
345
373
  )
@@ -353,6 +381,7 @@ from .workflow_node_result_event import (
353
381
  from .workflow_node_result_event_state import WorkflowNodeResultEventState
354
382
  from .workflow_output import (
355
383
  WorkflowOutput,
384
+ WorkflowOutput_Array,
356
385
  WorkflowOutput_ChatHistory,
357
386
  WorkflowOutput_Error,
358
387
  WorkflowOutput_FunctionCall,
@@ -362,6 +391,7 @@ from .workflow_output import (
362
391
  WorkflowOutput_SearchResults,
363
392
  WorkflowOutput_String,
364
393
  )
394
+ from .workflow_output_array import WorkflowOutputArray
365
395
  from .workflow_output_chat_history import WorkflowOutputChatHistory
366
396
  from .workflow_output_error import WorkflowOutputError
367
397
  from .workflow_output_function_call import WorkflowOutputFunctionCall
@@ -384,15 +414,19 @@ from .workflow_request_string_input_request import WorkflowRequestStringInputReq
384
414
  from .workflow_result_event import WorkflowResultEvent
385
415
  from .workflow_result_event_output_data import (
386
416
  WorkflowResultEventOutputData,
417
+ WorkflowResultEventOutputData_Array,
387
418
  WorkflowResultEventOutputData_ChatHistory,
388
419
  WorkflowResultEventOutputData_Error,
420
+ WorkflowResultEventOutputData_FunctionCall,
389
421
  WorkflowResultEventOutputData_Json,
390
422
  WorkflowResultEventOutputData_Number,
391
423
  WorkflowResultEventOutputData_SearchResults,
392
424
  WorkflowResultEventOutputData_String,
393
425
  )
426
+ from .workflow_result_event_output_data_array import WorkflowResultEventOutputDataArray
394
427
  from .workflow_result_event_output_data_chat_history import WorkflowResultEventOutputDataChatHistory
395
428
  from .workflow_result_event_output_data_error import WorkflowResultEventOutputDataError
429
+ from .workflow_result_event_output_data_function_call import WorkflowResultEventOutputDataFunctionCall
396
430
  from .workflow_result_event_output_data_json import WorkflowResultEventOutputDataJson
397
431
  from .workflow_result_event_output_data_number import WorkflowResultEventOutputDataNumber
398
432
  from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
@@ -412,9 +446,19 @@ __all__ = [
412
446
  "ArrayChatMessageContentItem_Image",
413
447
  "ArrayChatMessageContentItem_String",
414
448
  "ArrayChatMessageContentRequest",
449
+ "ArrayEnum",
450
+ "ArrayVariableValueItem",
451
+ "ArrayVariableValueItem_ChatHistory",
452
+ "ArrayVariableValueItem_Error",
453
+ "ArrayVariableValueItem_FunctionCall",
454
+ "ArrayVariableValueItem_Json",
455
+ "ArrayVariableValueItem_Number",
456
+ "ArrayVariableValueItem_SearchResults",
457
+ "ArrayVariableValueItem_String",
415
458
  "BlockTypeEnum",
416
459
  "ChatHistoryEnum",
417
460
  "ChatHistoryInputRequest",
461
+ "ChatHistoryVariableValue",
418
462
  "ChatMessage",
419
463
  "ChatMessageContent",
420
464
  "ChatMessageContentRequest",
@@ -533,6 +577,7 @@ __all__ = [
533
577
  "NamedTestCaseVariableValueRequest_Number",
534
578
  "NamedTestCaseVariableValueRequest_SearchResults",
535
579
  "NamedTestCaseVariableValueRequest_String",
580
+ "NodeInputCompiledArrayValue",
536
581
  "NodeInputCompiledChatHistoryValue",
537
582
  "NodeInputCompiledErrorValue",
538
583
  "NodeInputCompiledJsonValue",
@@ -540,21 +585,26 @@ __all__ = [
540
585
  "NodeInputCompiledSearchResultsValue",
541
586
  "NodeInputCompiledStringValue",
542
587
  "NodeInputVariableCompiledValue",
588
+ "NodeInputVariableCompiledValue_Array",
543
589
  "NodeInputVariableCompiledValue_ChatHistory",
544
590
  "NodeInputVariableCompiledValue_Error",
545
591
  "NodeInputVariableCompiledValue_Json",
546
592
  "NodeInputVariableCompiledValue_Number",
547
593
  "NodeInputVariableCompiledValue_SearchResults",
548
594
  "NodeInputVariableCompiledValue_String",
595
+ "NodeOutputCompiledArrayValue",
549
596
  "NodeOutputCompiledChatHistoryValue",
550
597
  "NodeOutputCompiledErrorValue",
598
+ "NodeOutputCompiledFunctionValue",
551
599
  "NodeOutputCompiledJsonValue",
552
600
  "NodeOutputCompiledNumberValue",
553
601
  "NodeOutputCompiledSearchResultsValue",
554
602
  "NodeOutputCompiledStringValue",
555
603
  "NodeOutputCompiledValue",
604
+ "NodeOutputCompiledValue_Array",
556
605
  "NodeOutputCompiledValue_ChatHistory",
557
606
  "NodeOutputCompiledValue_Error",
607
+ "NodeOutputCompiledValue_FunctionCall",
558
608
  "NodeOutputCompiledValue_Json",
559
609
  "NodeOutputCompiledValue_Number",
560
610
  "NodeOutputCompiledValue_SearchResults",
@@ -562,6 +612,7 @@ __all__ = [
562
612
  "NormalizedLogProbs",
563
613
  "NormalizedTokenLogProbs",
564
614
  "NumberEnum",
615
+ "NumberVariableValue",
565
616
  "PaginatedSlimDeploymentReadList",
566
617
  "PaginatedSlimDocumentList",
567
618
  "PaginatedSlimWorkflowDeploymentList",
@@ -621,6 +672,7 @@ __all__ = [
621
672
  "SearchResultMergingRequest",
622
673
  "SearchResultRequest",
623
674
  "SearchResultsEnum",
675
+ "SearchResultsVariableValue",
624
676
  "SearchWeightsRequest",
625
677
  "SlimDeploymentRead",
626
678
  "SlimDocument",
@@ -640,6 +692,8 @@ __all__ = [
640
692
  "SubmitWorkflowExecutionActualRequest_ChatHistory",
641
693
  "SubmitWorkflowExecutionActualRequest_Json",
642
694
  "SubmitWorkflowExecutionActualRequest_String",
695
+ "SubworkflowEnum",
696
+ "SubworkflowNodeResult",
643
697
  "TemplatingNodeChatHistoryResult",
644
698
  "TemplatingNodeErrorResult",
645
699
  "TemplatingNodeJsonResult",
@@ -655,15 +709,19 @@ __all__ = [
655
709
  "TemplatingNodeResultOutput_String",
656
710
  "TemplatingNodeSearchResultsResult",
657
711
  "TemplatingNodeStringResult",
712
+ "TerminalNodeArrayResult",
658
713
  "TerminalNodeChatHistoryResult",
659
714
  "TerminalNodeErrorResult",
715
+ "TerminalNodeFunctionCallResult",
660
716
  "TerminalNodeJsonResult",
661
717
  "TerminalNodeNumberResult",
662
718
  "TerminalNodeResult",
663
719
  "TerminalNodeResultData",
664
720
  "TerminalNodeResultOutput",
721
+ "TerminalNodeResultOutput_Array",
665
722
  "TerminalNodeResultOutput_ChatHistory",
666
723
  "TerminalNodeResultOutput_Error",
724
+ "TerminalNodeResultOutput_FunctionCall",
667
725
  "TerminalNodeResultOutput_Json",
668
726
  "TerminalNodeResultOutput_Number",
669
727
  "TerminalNodeResultOutput_SearchResults",
@@ -693,6 +751,7 @@ __all__ = [
693
751
  "VellumImageRequest",
694
752
  "VellumVariable",
695
753
  "VellumVariableType",
754
+ "WorkflowDeploymentRead",
696
755
  "WorkflowEventError",
697
756
  "WorkflowExecutionActualChatHistoryRequest",
698
757
  "WorkflowExecutionActualJsonRequest",
@@ -707,6 +766,7 @@ __all__ = [
707
766
  "WorkflowNodeResultData_Conditional",
708
767
  "WorkflowNodeResultData_Prompt",
709
768
  "WorkflowNodeResultData_Search",
769
+ "WorkflowNodeResultData_Subworkflow",
710
770
  "WorkflowNodeResultData_Templating",
711
771
  "WorkflowNodeResultData_Terminal",
712
772
  "WorkflowNodeResultEvent",
@@ -716,6 +776,7 @@ __all__ = [
716
776
  "WorkflowNodeResultEvent_Rejected",
717
777
  "WorkflowNodeResultEvent_Streaming",
718
778
  "WorkflowOutput",
779
+ "WorkflowOutputArray",
719
780
  "WorkflowOutputChatHistory",
720
781
  "WorkflowOutputError",
721
782
  "WorkflowOutputFunctionCall",
@@ -724,6 +785,7 @@ __all__ = [
724
785
  "WorkflowOutputNumber",
725
786
  "WorkflowOutputSearchResults",
726
787
  "WorkflowOutputString",
788
+ "WorkflowOutput_Array",
727
789
  "WorkflowOutput_ChatHistory",
728
790
  "WorkflowOutput_Error",
729
791
  "WorkflowOutput_FunctionCall",
@@ -743,14 +805,18 @@ __all__ = [
743
805
  "WorkflowRequestStringInputRequest",
744
806
  "WorkflowResultEvent",
745
807
  "WorkflowResultEventOutputData",
808
+ "WorkflowResultEventOutputDataArray",
746
809
  "WorkflowResultEventOutputDataChatHistory",
747
810
  "WorkflowResultEventOutputDataError",
811
+ "WorkflowResultEventOutputDataFunctionCall",
748
812
  "WorkflowResultEventOutputDataJson",
749
813
  "WorkflowResultEventOutputDataNumber",
750
814
  "WorkflowResultEventOutputDataSearchResults",
751
815
  "WorkflowResultEventOutputDataString",
816
+ "WorkflowResultEventOutputData_Array",
752
817
  "WorkflowResultEventOutputData_ChatHistory",
753
818
  "WorkflowResultEventOutputData_Error",
819
+ "WorkflowResultEventOutputData_FunctionCall",
754
820
  "WorkflowResultEventOutputData_Json",
755
821
  "WorkflowResultEventOutputData_Number",
756
822
  "WorkflowResultEventOutputData_SearchResults",
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ ArrayEnum = typing_extensions.Literal["ARRAY"]
@@ -0,0 +1,89 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+
5
+ import typing
6
+
7
+ import typing_extensions
8
+
9
+ from .chat_history_variable_value import ChatHistoryVariableValue
10
+ from .error_variable_value import ErrorVariableValue
11
+ from .function_call_variable_value import FunctionCallVariableValue
12
+ from .json_variable_value import JsonVariableValue
13
+ from .number_variable_value import NumberVariableValue
14
+ from .search_results_variable_value import SearchResultsVariableValue
15
+ from .string_variable_value import StringVariableValue
16
+
17
+
18
+ class ArrayVariableValueItem_String(StringVariableValue):
19
+ type: typing_extensions.Literal["STRING"]
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ allow_population_by_field_name = True
25
+
26
+
27
+ class ArrayVariableValueItem_Number(NumberVariableValue):
28
+ type: typing_extensions.Literal["NUMBER"]
29
+
30
+ class Config:
31
+ frozen = True
32
+ smart_union = True
33
+ allow_population_by_field_name = True
34
+
35
+
36
+ class ArrayVariableValueItem_Json(JsonVariableValue):
37
+ type: typing_extensions.Literal["JSON"]
38
+
39
+ class Config:
40
+ frozen = True
41
+ smart_union = True
42
+ allow_population_by_field_name = True
43
+
44
+
45
+ class ArrayVariableValueItem_ChatHistory(ChatHistoryVariableValue):
46
+ type: typing_extensions.Literal["CHAT_HISTORY"]
47
+
48
+ class Config:
49
+ frozen = True
50
+ smart_union = True
51
+ allow_population_by_field_name = True
52
+
53
+
54
+ class ArrayVariableValueItem_SearchResults(SearchResultsVariableValue):
55
+ type: typing_extensions.Literal["SEARCH_RESULTS"]
56
+
57
+ class Config:
58
+ frozen = True
59
+ smart_union = True
60
+ allow_population_by_field_name = True
61
+
62
+
63
+ class ArrayVariableValueItem_Error(ErrorVariableValue):
64
+ type: typing_extensions.Literal["ERROR"]
65
+
66
+ class Config:
67
+ frozen = True
68
+ smart_union = True
69
+ allow_population_by_field_name = True
70
+
71
+
72
+ class ArrayVariableValueItem_FunctionCall(FunctionCallVariableValue):
73
+ type: typing_extensions.Literal["FUNCTION_CALL"]
74
+
75
+ class Config:
76
+ frozen = True
77
+ smart_union = True
78
+ allow_population_by_field_name = True
79
+
80
+
81
+ ArrayVariableValueItem = typing.Union[
82
+ ArrayVariableValueItem_String,
83
+ ArrayVariableValueItem_Number,
84
+ ArrayVariableValueItem_Json,
85
+ ArrayVariableValueItem_ChatHistory,
86
+ ArrayVariableValueItem_SearchResults,
87
+ ArrayVariableValueItem_Error,
88
+ ArrayVariableValueItem_FunctionCall,
89
+ ]
@@ -0,0 +1,29 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .chat_message import ChatMessage
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class ChatHistoryVariableValue(pydantic.BaseModel):
16
+ value: typing.Optional[typing.List[ChatMessage]]
17
+
18
+ def json(self, **kwargs: typing.Any) -> str:
19
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ return super().json(**kwargs_with_defaults)
21
+
22
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
+ return super().dict(**kwargs_with_defaults)
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -14,6 +14,7 @@ except ImportError:
14
14
 
15
15
  class CodeExecutionNodeResultData(pydantic.BaseModel):
16
16
  output: CodeExecutionNodeResultOutput
17
+ log_output_id: typing.Optional[str]
17
18
 
18
19
  def json(self, **kwargs: typing.Any) -> str:
19
20
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
@@ -0,0 +1,31 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .array_variable_value_item import ArrayVariableValueItem
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class NodeInputCompiledArrayValue(pydantic.BaseModel):
16
+ node_input_id: str
17
+ key: str
18
+ value: typing.Optional[typing.List[ArrayVariableValueItem]]
19
+
20
+ def json(self, **kwargs: typing.Any) -> str:
21
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
+ return super().json(**kwargs_with_defaults)
23
+
24
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
+ return super().dict(**kwargs_with_defaults)
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -6,6 +6,7 @@ import typing
6
6
 
7
7
  import typing_extensions
8
8
 
9
+ from .node_input_compiled_array_value import NodeInputCompiledArrayValue
9
10
  from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
10
11
  from .node_input_compiled_error_value import NodeInputCompiledErrorValue
11
12
  from .node_input_compiled_json_value import NodeInputCompiledJsonValue
@@ -68,6 +69,15 @@ class NodeInputVariableCompiledValue_Error(NodeInputCompiledErrorValue):
68
69
  allow_population_by_field_name = True
69
70
 
70
71
 
72
+ class NodeInputVariableCompiledValue_Array(NodeInputCompiledArrayValue):
73
+ type: typing_extensions.Literal["ARRAY"]
74
+
75
+ class Config:
76
+ frozen = True
77
+ smart_union = True
78
+ allow_population_by_field_name = True
79
+
80
+
71
81
  NodeInputVariableCompiledValue = typing.Union[
72
82
  NodeInputVariableCompiledValue_String,
73
83
  NodeInputVariableCompiledValue_Number,
@@ -75,4 +85,5 @@ NodeInputVariableCompiledValue = typing.Union[
75
85
  NodeInputVariableCompiledValue_ChatHistory,
76
86
  NodeInputVariableCompiledValue_SearchResults,
77
87
  NodeInputVariableCompiledValue_Error,
88
+ NodeInputVariableCompiledValue_Array,
78
89
  ]
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .array_variable_value_item import ArrayVariableValueItem
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class NodeOutputCompiledArrayValue(pydantic.BaseModel):
16
+ node_output_id: str
17
+ value: typing.Optional[typing.List[ArrayVariableValueItem]]
18
+
19
+ def json(self, **kwargs: typing.Any) -> str:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().json(**kwargs_with_defaults)
22
+
23
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ return super().dict(**kwargs_with_defaults)
26
+
27
+ class Config:
28
+ frozen = True
29
+ smart_union = True
30
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .function_call import FunctionCall
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class NodeOutputCompiledFunctionValue(pydantic.BaseModel):
16
+ node_output_id: str
17
+ value: typing.Optional[FunctionCall]
18
+
19
+ def json(self, **kwargs: typing.Any) -> str:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().json(**kwargs_with_defaults)
22
+
23
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ return super().dict(**kwargs_with_defaults)
26
+
27
+ class Config:
28
+ frozen = True
29
+ smart_union = True
30
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -6,8 +6,10 @@ import typing
6
6
 
7
7
  import typing_extensions
8
8
 
9
+ from .node_output_compiled_array_value import NodeOutputCompiledArrayValue
9
10
  from .node_output_compiled_chat_history_value import NodeOutputCompiledChatHistoryValue
10
11
  from .node_output_compiled_error_value import NodeOutputCompiledErrorValue
12
+ from .node_output_compiled_function_value import NodeOutputCompiledFunctionValue
11
13
  from .node_output_compiled_json_value import NodeOutputCompiledJsonValue
12
14
  from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
13
15
  from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
@@ -68,6 +70,24 @@ class NodeOutputCompiledValue_Error(NodeOutputCompiledErrorValue):
68
70
  allow_population_by_field_name = True
69
71
 
70
72
 
73
+ class NodeOutputCompiledValue_Array(NodeOutputCompiledArrayValue):
74
+ type: typing_extensions.Literal["ARRAY"]
75
+
76
+ class Config:
77
+ frozen = True
78
+ smart_union = True
79
+ allow_population_by_field_name = True
80
+
81
+
82
+ class NodeOutputCompiledValue_FunctionCall(NodeOutputCompiledFunctionValue):
83
+ type: typing_extensions.Literal["FUNCTION_CALL"]
84
+
85
+ class Config:
86
+ frozen = True
87
+ smart_union = True
88
+ allow_population_by_field_name = True
89
+
90
+
71
91
  NodeOutputCompiledValue = typing.Union[
72
92
  NodeOutputCompiledValue_String,
73
93
  NodeOutputCompiledValue_Number,
@@ -75,4 +95,6 @@ NodeOutputCompiledValue = typing.Union[
75
95
  NodeOutputCompiledValue_ChatHistory,
76
96
  NodeOutputCompiledValue_SearchResults,
77
97
  NodeOutputCompiledValue_Error,
98
+ NodeOutputCompiledValue_Array,
99
+ NodeOutputCompiledValue_FunctionCall,
78
100
  ]
@@ -0,0 +1,28 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+
8
+ try:
9
+ import pydantic.v1 as pydantic # type: ignore
10
+ except ImportError:
11
+ import pydantic # type: ignore
12
+
13
+
14
+ class NumberVariableValue(pydantic.BaseModel):
15
+ value: typing.Optional[float]
16
+
17
+ def json(self, **kwargs: typing.Any) -> str:
18
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ return super().json(**kwargs_with_defaults)
20
+
21
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
+ return super().dict(**kwargs_with_defaults)
24
+
25
+ class Config:
26
+ frozen = True
27
+ smart_union = True
28
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -13,6 +13,7 @@ except ImportError:
13
13
 
14
14
  class PromptNodeResultData(pydantic.BaseModel):
15
15
  output_id: str
16
+ array_output_id: typing.Optional[str]
16
17
  text: typing.Optional[str]
17
18
  delta: typing.Optional[str]
18
19
 
@@ -0,0 +1,29 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from .search_result import SearchResult
8
+
9
+ try:
10
+ import pydantic.v1 as pydantic # type: ignore
11
+ except ImportError:
12
+ import pydantic # type: ignore
13
+
14
+
15
+ class SearchResultsVariableValue(pydantic.BaseModel):
16
+ value: typing.Optional[typing.List[SearchResult]]
17
+
18
+ def json(self, **kwargs: typing.Any) -> str:
19
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ return super().json(**kwargs_with_defaults)
21
+
22
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
+ return super().dict(**kwargs_with_defaults)
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ SubworkflowEnum = typing_extensions.Literal["SUBWORKFLOW"]