vellum-ai 0.12.17__py3-none-any.whl → 0.13.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. vellum/__init__.py +10 -22
  2. vellum/client/__init__.py +8 -0
  3. vellum/client/core/client_wrapper.py +1 -1
  4. vellum/client/resources/__init__.py +4 -0
  5. vellum/client/resources/organizations/__init__.py +2 -0
  6. vellum/client/resources/organizations/client.py +116 -0
  7. vellum/client/resources/workspaces/__init__.py +2 -0
  8. vellum/client/resources/workspaces/client.py +114 -0
  9. vellum/client/types/__init__.py +6 -22
  10. vellum/client/types/new_member_join_behavior_enum.py +8 -0
  11. vellum/client/types/{function_call_variable_value.py → organization_read.py} +6 -4
  12. vellum/client/types/workflow_execution_workflow_result_event.py +0 -2
  13. vellum/client/types/workflow_result_event.py +0 -2
  14. vellum/client/types/workflow_result_event_output_data_array.py +4 -4
  15. vellum/client/types/{string_variable_value.py → workspace_read.py} +12 -5
  16. vellum/{types/json_variable_value.py → resources/organizations/__init__.py} +1 -1
  17. vellum/resources/organizations/client.py +3 -0
  18. vellum/{types/image_variable_value.py → resources/workspaces/__init__.py} +1 -1
  19. vellum/{types/array_variable_value.py → resources/workspaces/client.py} +1 -1
  20. vellum/types/{array_variable_value_item.py → new_member_join_behavior_enum.py} +1 -1
  21. vellum/types/{audio_variable_value.py → organization_read.py} +1 -1
  22. vellum/types/{error_variable_value.py → workspace_read.py} +1 -1
  23. vellum/workflows/workflows/base.py +0 -32
  24. {vellum_ai-0.12.17.dist-info → vellum_ai-0.13.0.dist-info}/METADATA +1 -1
  25. {vellum_ai-0.12.17.dist-info → vellum_ai-0.13.0.dist-info}/RECORD +69 -76
  26. vellum_ee/workflows/display/nodes/base_node_display.py +17 -10
  27. vellum_ee/workflows/display/nodes/vellum/api_node.py +1 -0
  28. vellum_ee/workflows/display/nodes/vellum/base_node.py +97 -2
  29. vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -0
  30. vellum_ee/workflows/display/nodes/vellum/conditional_node.py +5 -62
  31. vellum_ee/workflows/display/nodes/vellum/error_node.py +1 -0
  32. vellum_ee/workflows/display/nodes/vellum/final_output_node.py +1 -0
  33. vellum_ee/workflows/display/nodes/vellum/guardrail_node.py +1 -0
  34. vellum_ee/workflows/display/nodes/vellum/inline_prompt_node.py +1 -0
  35. vellum_ee/workflows/display/nodes/vellum/inline_subworkflow_node.py +1 -0
  36. vellum_ee/workflows/display/nodes/vellum/map_node.py +1 -0
  37. vellum_ee/workflows/display/nodes/vellum/merge_node.py +1 -0
  38. vellum_ee/workflows/display/nodes/vellum/note_node.py +1 -0
  39. vellum_ee/workflows/display/nodes/vellum/prompt_deployment_node.py +1 -0
  40. vellum_ee/workflows/display/nodes/vellum/search_node.py +1 -0
  41. vellum_ee/workflows/display/nodes/vellum/subworkflow_deployment_node.py +1 -0
  42. vellum_ee/workflows/display/nodes/vellum/templating_node.py +1 -0
  43. vellum_ee/workflows/display/nodes/vellum/utils.py +63 -0
  44. vellum_ee/workflows/display/tests/test_vellum_workflow_display.py +2 -5
  45. vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/conftest.py +18 -2
  46. vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_ports_serialization.py +355 -0
  47. vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_trigger_serialization.py +37 -22
  48. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_api_node_serialization.py +12 -56
  49. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_code_execution_node_serialization.py +43 -93
  50. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_conditional_node_serialization.py +31 -151
  51. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_error_node_serialization.py +8 -26
  52. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_generic_node_serialization.py +4 -15
  53. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_guardrail_node_serialization.py +9 -44
  54. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_inline_subworkflow_serialization.py +19 -101
  55. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_map_node_serialization.py +19 -73
  56. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_merge_node_serialization.py +9 -44
  57. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_prompt_deployment_serialization.py +9 -44
  58. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_search_node_serialization.py +8 -6
  59. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_subworkflow_deployment_serialization.py +11 -58
  60. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_templating_node_serialization.py +8 -11
  61. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +7 -30
  62. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_try_node_serialization.py +2 -11
  63. vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +9 -44
  64. vellum_ee/workflows/display/vellum.py +2 -7
  65. vellum_ee/workflows/display/workflows/vellum_workflow_display.py +5 -9
  66. vellum_ee/workflows/server/virtual_file_loader.py +3 -3
  67. vellum/client/types/array_variable_value.py +0 -27
  68. vellum/client/types/array_variable_value_item.py +0 -29
  69. vellum/client/types/audio_variable_value.py +0 -25
  70. vellum/client/types/chat_history_variable_value.py +0 -21
  71. vellum/client/types/error_variable_value.py +0 -21
  72. vellum/client/types/image_variable_value.py +0 -25
  73. vellum/client/types/json_variable_value.py +0 -20
  74. vellum/client/types/number_variable_value.py +0 -20
  75. vellum/client/types/search_results_variable_value.py +0 -21
  76. vellum/types/chat_history_variable_value.py +0 -3
  77. vellum/types/function_call_variable_value.py +0 -3
  78. vellum/types/number_variable_value.py +0 -3
  79. vellum/types/search_results_variable_value.py +0 -3
  80. vellum/types/string_variable_value.py +0 -3
  81. {vellum_ai-0.12.17.dist-info → vellum_ai-0.13.0.dist-info}/LICENSE +0 -0
  82. {vellum_ai-0.12.17.dist-info → vellum_ai-0.13.0.dist-info}/WHEEL +0 -0
  83. {vellum_ai-0.12.17.dist-info → vellum_ai-0.13.0.dist-info}/entry_points.txt +0 -0
@@ -14,14 +14,11 @@ from .array_chat_message_content_item import ArrayChatMessageContentItem
14
14
  from .array_chat_message_content_item_request import ArrayChatMessageContentItemRequest
15
15
  from .array_chat_message_content_request import ArrayChatMessageContentRequest
16
16
  from .array_input import ArrayInput
17
- from .array_variable_value import ArrayVariableValue
18
- from .array_variable_value_item import ArrayVariableValueItem
19
17
  from .array_vellum_value import ArrayVellumValue
20
18
  from .array_vellum_value_request import ArrayVellumValueRequest
21
19
  from .audio_chat_message_content import AudioChatMessageContent
22
20
  from .audio_chat_message_content_request import AudioChatMessageContentRequest
23
21
  from .audio_prompt_block import AudioPromptBlock
24
- from .audio_variable_value import AudioVariableValue
25
22
  from .audio_vellum_value import AudioVellumValue
26
23
  from .audio_vellum_value_request import AudioVellumValueRequest
27
24
  from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
@@ -40,7 +37,6 @@ from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request
40
37
  )
41
38
  from .chat_history_input import ChatHistoryInput
42
39
  from .chat_history_input_request import ChatHistoryInputRequest
43
- from .chat_history_variable_value import ChatHistoryVariableValue
44
40
  from .chat_history_vellum_value import ChatHistoryVellumValue
45
41
  from .chat_history_vellum_value_request import ChatHistoryVellumValueRequest
46
42
  from .chat_message import ChatMessage
@@ -97,7 +93,6 @@ from .environment_enum import EnvironmentEnum
97
93
  from .ephemeral_prompt_cache_config import EphemeralPromptCacheConfig
98
94
  from .ephemeral_prompt_cache_config_type_enum import EphemeralPromptCacheConfigTypeEnum
99
95
  from .error_input import ErrorInput
100
- from .error_variable_value import ErrorVariableValue
101
96
  from .error_vellum_value import ErrorVellumValue
102
97
  from .error_vellum_value_request import ErrorVellumValueRequest
103
98
  from .execute_prompt_event import ExecutePromptEvent
@@ -141,7 +136,6 @@ from .function_call_chat_message_content_value_request import FunctionCallChatMe
141
136
  from .function_call_input import FunctionCallInput
142
137
  from .function_call_prompt_block import FunctionCallPromptBlock
143
138
  from .function_call_request import FunctionCallRequest
144
- from .function_call_variable_value import FunctionCallVariableValue
145
139
  from .function_call_vellum_value import FunctionCallVellumValue
146
140
  from .function_call_vellum_value_request import FunctionCallVellumValueRequest
147
141
  from .function_definition import FunctionDefinition
@@ -169,7 +163,6 @@ from .hkunlp_instructor_xl_vectorizer_request import HkunlpInstructorXlVectorize
169
163
  from .image_chat_message_content import ImageChatMessageContent
170
164
  from .image_chat_message_content_request import ImageChatMessageContentRequest
171
165
  from .image_prompt_block import ImagePromptBlock
172
- from .image_variable_value import ImageVariableValue
173
166
  from .image_vellum_value import ImageVellumValue
174
167
  from .image_vellum_value_request import ImageVellumValueRequest
175
168
  from .indexing_config_vectorizer import IndexingConfigVectorizer
@@ -185,7 +178,6 @@ from .iteration_state_enum import IterationStateEnum
185
178
  from .jinja_prompt_block import JinjaPromptBlock
186
179
  from .json_input import JsonInput
187
180
  from .json_input_request import JsonInputRequest
188
- from .json_variable_value import JsonVariableValue
189
181
  from .json_vellum_value import JsonVellumValue
190
182
  from .json_vellum_value_request import JsonVellumValueRequest
191
183
  from .logical_operator import LogicalOperator
@@ -226,6 +218,7 @@ from .named_test_case_string_variable_value import NamedTestCaseStringVariableVa
226
218
  from .named_test_case_string_variable_value_request import NamedTestCaseStringVariableValueRequest
227
219
  from .named_test_case_variable_value import NamedTestCaseVariableValue
228
220
  from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
221
+ from .new_member_join_behavior_enum import NewMemberJoinBehaviorEnum
229
222
  from .node_input_compiled_array_value import NodeInputCompiledArrayValue
230
223
  from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
231
224
  from .node_input_compiled_error_value import NodeInputCompiledErrorValue
@@ -247,7 +240,6 @@ from .node_output_compiled_value import NodeOutputCompiledValue
247
240
  from .normalized_log_probs import NormalizedLogProbs
248
241
  from .normalized_token_log_probs import NormalizedTokenLogProbs
249
242
  from .number_input import NumberInput
250
- from .number_variable_value import NumberVariableValue
251
243
  from .number_vellum_value import NumberVellumValue
252
244
  from .number_vellum_value_request import NumberVellumValueRequest
253
245
  from .open_ai_vectorizer_config import OpenAiVectorizerConfig
@@ -258,6 +250,7 @@ from .open_ai_vectorizer_text_embedding_3_small import OpenAiVectorizerTextEmbed
258
250
  from .open_ai_vectorizer_text_embedding_3_small_request import OpenAiVectorizerTextEmbedding3SmallRequest
259
251
  from .open_ai_vectorizer_text_embedding_ada_002 import OpenAiVectorizerTextEmbeddingAda002
260
252
  from .open_ai_vectorizer_text_embedding_ada_002_request import OpenAiVectorizerTextEmbeddingAda002Request
253
+ from .organization_read import OrganizationRead
261
254
  from .paginated_container_image_read_list import PaginatedContainerImageReadList
262
255
  from .paginated_deployment_release_tag_read_list import PaginatedDeploymentReleaseTagReadList
263
256
  from .paginated_document_index_read_list import PaginatedDocumentIndexReadList
@@ -321,7 +314,6 @@ from .search_result_meta import SearchResultMeta
321
314
  from .search_result_meta_request import SearchResultMetaRequest
322
315
  from .search_result_request import SearchResultRequest
323
316
  from .search_results_input import SearchResultsInput
324
- from .search_results_variable_value import SearchResultsVariableValue
325
317
  from .search_results_vellum_value import SearchResultsVellumValue
326
318
  from .search_results_vellum_value_request import SearchResultsVellumValueRequest
327
319
  from .search_weights_request import SearchWeightsRequest
@@ -342,7 +334,6 @@ from .string_chat_message_content import StringChatMessageContent
342
334
  from .string_chat_message_content_request import StringChatMessageContentRequest
343
335
  from .string_input import StringInput
344
336
  from .string_input_request import StringInputRequest
345
- from .string_variable_value import StringVariableValue
346
337
  from .string_vellum_value import StringVellumValue
347
338
  from .string_vellum_value_request import StringVellumValueRequest
348
339
  from .submit_completion_actual_request import SubmitCompletionActualRequest
@@ -522,6 +513,7 @@ from .workflow_result_event_output_data_number import WorkflowResultEventOutputD
522
513
  from .workflow_result_event_output_data_search_results import WorkflowResultEventOutputDataSearchResults
523
514
  from .workflow_result_event_output_data_string import WorkflowResultEventOutputDataString
524
515
  from .workflow_stream_event import WorkflowStreamEvent
516
+ from .workspace_read import WorkspaceRead
525
517
  from .workspace_secret_read import WorkspaceSecretRead
526
518
 
527
519
  __all__ = [
@@ -539,14 +531,11 @@ __all__ = [
539
531
  "ArrayChatMessageContentItemRequest",
540
532
  "ArrayChatMessageContentRequest",
541
533
  "ArrayInput",
542
- "ArrayVariableValue",
543
- "ArrayVariableValueItem",
544
534
  "ArrayVellumValue",
545
535
  "ArrayVellumValueRequest",
546
536
  "AudioChatMessageContent",
547
537
  "AudioChatMessageContentRequest",
548
538
  "AudioPromptBlock",
549
- "AudioVariableValue",
550
539
  "AudioVellumValue",
551
540
  "AudioVellumValueRequest",
552
541
  "BasicVectorizerIntfloatMultilingualE5Large",
@@ -557,7 +546,6 @@ __all__ = [
557
546
  "BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
558
547
  "ChatHistoryInput",
559
548
  "ChatHistoryInputRequest",
560
- "ChatHistoryVariableValue",
561
549
  "ChatHistoryVellumValue",
562
550
  "ChatHistoryVellumValueRequest",
563
551
  "ChatMessage",
@@ -614,7 +602,6 @@ __all__ = [
614
602
  "EphemeralPromptCacheConfig",
615
603
  "EphemeralPromptCacheConfigTypeEnum",
616
604
  "ErrorInput",
617
- "ErrorVariableValue",
618
605
  "ErrorVellumValue",
619
606
  "ErrorVellumValueRequest",
620
607
  "ExecutePromptEvent",
@@ -658,7 +645,6 @@ __all__ = [
658
645
  "FunctionCallInput",
659
646
  "FunctionCallPromptBlock",
660
647
  "FunctionCallRequest",
661
- "FunctionCallVariableValue",
662
648
  "FunctionCallVellumValue",
663
649
  "FunctionCallVellumValueRequest",
664
650
  "FunctionDefinition",
@@ -682,7 +668,6 @@ __all__ = [
682
668
  "ImageChatMessageContent",
683
669
  "ImageChatMessageContentRequest",
684
670
  "ImagePromptBlock",
685
- "ImageVariableValue",
686
671
  "ImageVellumValue",
687
672
  "ImageVellumValueRequest",
688
673
  "IndexingConfigVectorizer",
@@ -698,7 +683,6 @@ __all__ = [
698
683
  "JinjaPromptBlock",
699
684
  "JsonInput",
700
685
  "JsonInputRequest",
701
- "JsonVariableValue",
702
686
  "JsonVellumValue",
703
687
  "JsonVellumValueRequest",
704
688
  "LogicalOperator",
@@ -739,6 +723,7 @@ __all__ = [
739
723
  "NamedTestCaseStringVariableValueRequest",
740
724
  "NamedTestCaseVariableValue",
741
725
  "NamedTestCaseVariableValueRequest",
726
+ "NewMemberJoinBehaviorEnum",
742
727
  "NodeInputCompiledArrayValue",
743
728
  "NodeInputCompiledChatHistoryValue",
744
729
  "NodeInputCompiledErrorValue",
@@ -760,7 +745,6 @@ __all__ = [
760
745
  "NormalizedLogProbs",
761
746
  "NormalizedTokenLogProbs",
762
747
  "NumberInput",
763
- "NumberVariableValue",
764
748
  "NumberVellumValue",
765
749
  "NumberVellumValueRequest",
766
750
  "OpenAiVectorizerConfig",
@@ -771,6 +755,7 @@ __all__ = [
771
755
  "OpenAiVectorizerTextEmbedding3SmallRequest",
772
756
  "OpenAiVectorizerTextEmbeddingAda002",
773
757
  "OpenAiVectorizerTextEmbeddingAda002Request",
758
+ "OrganizationRead",
774
759
  "PaginatedContainerImageReadList",
775
760
  "PaginatedDeploymentReleaseTagReadList",
776
761
  "PaginatedDocumentIndexReadList",
@@ -834,7 +819,6 @@ __all__ = [
834
819
  "SearchResultMetaRequest",
835
820
  "SearchResultRequest",
836
821
  "SearchResultsInput",
837
- "SearchResultsVariableValue",
838
822
  "SearchResultsVellumValue",
839
823
  "SearchResultsVellumValueRequest",
840
824
  "SearchWeightsRequest",
@@ -855,7 +839,6 @@ __all__ = [
855
839
  "StringChatMessageContentRequest",
856
840
  "StringInput",
857
841
  "StringInputRequest",
858
- "StringVariableValue",
859
842
  "StringVellumValue",
860
843
  "StringVellumValueRequest",
861
844
  "SubmitCompletionActualRequest",
@@ -1019,5 +1002,6 @@ __all__ = [
1019
1002
  "WorkflowResultEventOutputDataSearchResults",
1020
1003
  "WorkflowResultEventOutputDataString",
1021
1004
  "WorkflowStreamEvent",
1005
+ "WorkspaceRead",
1022
1006
  "WorkspaceSecretRead",
1023
1007
  ]
@@ -0,0 +1,8 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ NewMemberJoinBehaviorEnum = typing.Union[
6
+ typing.Literal["AUTO_ACCEPT_FROM_SHARED_DOMAIN", "ALLOW_REQUESTS_FROM_SHARED_DOMAIN", "REQUIRE_EXPLICIT_INVITE"],
7
+ typing.Any,
8
+ ]
@@ -2,14 +2,16 @@
2
2
 
3
3
  from ..core.pydantic_utilities import UniversalBaseModel
4
4
  import typing
5
- from .function_call import FunctionCall
5
+ from .new_member_join_behavior_enum import NewMemberJoinBehaviorEnum
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  import pydantic
8
8
 
9
9
 
10
- class FunctionCallVariableValue(UniversalBaseModel):
11
- type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
12
- value: typing.Optional[FunctionCall] = None
10
+ class OrganizationRead(UniversalBaseModel):
11
+ id: str
12
+ name: str
13
+ allow_staff_access: typing.Optional[bool] = None
14
+ new_member_join_behavior: NewMemberJoinBehaviorEnum
13
15
 
14
16
  if IS_PYDANTIC_V2:
15
17
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from ..core.pydantic_utilities import UniversalBaseModel
5
- from .array_variable_value import ArrayVariableValue
6
5
  from .array_vellum_value import ArrayVellumValue
7
6
  import typing
8
7
  from .workflow_result_event import WorkflowResultEvent
@@ -32,5 +31,4 @@ class WorkflowExecutionWorkflowResultEvent(UniversalBaseModel):
32
31
  extra = pydantic.Extra.allow
33
32
 
34
33
 
35
- update_forward_refs(ArrayVariableValue, WorkflowExecutionWorkflowResultEvent=WorkflowExecutionWorkflowResultEvent)
36
34
  update_forward_refs(ArrayVellumValue, WorkflowExecutionWorkflowResultEvent=WorkflowExecutionWorkflowResultEvent)
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from ..core.pydantic_utilities import UniversalBaseModel
5
- from .array_variable_value import ArrayVariableValue
6
5
  from .array_vellum_value import ArrayVellumValue
7
6
  from .workflow_node_result_event_state import WorkflowNodeResultEventState
8
7
  import datetime as dt
@@ -35,5 +34,4 @@ class WorkflowResultEvent(UniversalBaseModel):
35
34
  extra = pydantic.Extra.allow
36
35
 
37
36
 
38
- update_forward_refs(ArrayVariableValue, WorkflowResultEvent=WorkflowResultEvent)
39
37
  update_forward_refs(ArrayVellumValue, WorkflowResultEvent=WorkflowResultEvent)
@@ -2,11 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from ..core.pydantic_utilities import UniversalBaseModel
5
- from .array_variable_value import ArrayVariableValue
5
+ from .array_vellum_value import ArrayVellumValue
6
6
  import typing
7
7
  from .workflow_node_result_event_state import WorkflowNodeResultEventState
8
8
  import pydantic
9
- from .array_variable_value_item import ArrayVariableValueItem
9
+ from .vellum_value import VellumValue
10
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
11
  from ..core.pydantic_utilities import update_forward_refs
12
12
 
@@ -26,7 +26,7 @@ class WorkflowResultEventOutputDataArray(UniversalBaseModel):
26
26
  """
27
27
 
28
28
  type: typing.Literal["ARRAY"] = "ARRAY"
29
- value: typing.Optional[typing.List[ArrayVariableValueItem]] = None
29
+ value: typing.Optional[typing.List[VellumValue]] = None
30
30
 
31
31
  if IS_PYDANTIC_V2:
32
32
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -38,4 +38,4 @@ class WorkflowResultEventOutputDataArray(UniversalBaseModel):
38
38
  extra = pydantic.Extra.allow
39
39
 
40
40
 
41
- update_forward_refs(ArrayVariableValue, WorkflowResultEventOutputDataArray=WorkflowResultEventOutputDataArray)
41
+ update_forward_refs(ArrayVellumValue, WorkflowResultEventOutputDataArray=WorkflowResultEventOutputDataArray)
@@ -1,14 +1,21 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
4
  import pydantic
5
+ import datetime as dt
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+
7
9
 
10
+ class WorkspaceRead(UniversalBaseModel):
11
+ id: str
12
+ name: str = pydantic.Field()
13
+ """
14
+ The name of the Workspace.
15
+ """
8
16
 
9
- class StringVariableValue(UniversalBaseModel):
10
- type: typing.Literal["STRING"] = "STRING"
11
- value: typing.Optional[str] = None
17
+ label: str
18
+ created: dt.datetime
12
19
 
13
20
  if IS_PYDANTIC_V2:
14
21
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.json_variable_value import *
3
+ from vellum.client.resources.organizations import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.resources.organizations.client import *
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.image_variable_value import *
3
+ from vellum.client.resources.workspaces import *
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.array_variable_value import *
3
+ from vellum.client.resources.workspaces.client import *
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.array_variable_value_item import *
3
+ from vellum.client.types.new_member_join_behavior_enum import *
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.audio_variable_value import *
3
+ from vellum.client.types.organization_read import *
@@ -1,3 +1,3 @@
1
1
  # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
2
 
3
- from vellum.client.types.error_variable_value import *
3
+ from vellum.client.types.workspace_read import *
@@ -437,40 +437,8 @@ class BaseWorkflow(Generic[WorkflowInputsType, StateType], metaclass=_BaseWorkfl
437
437
  raise ValueError(f"No workflows found in {module_path}")
438
438
  elif len(workflows) > 1:
439
439
  raise ValueError(f"Multiple workflows found in {module_path}")
440
- try:
441
- BaseWorkflow.import_node_display(module_path)
442
- except ModuleNotFoundError:
443
- pass
444
-
445
440
  return workflows[0]
446
441
 
447
- @staticmethod
448
- def import_node_display(module_path):
449
- # Import the nodes package
450
- nodes_package = importlib.import_module(f"{module_path}.display.nodes")
451
- # Use the loader to get the code
452
- if hasattr(nodes_package, "__spec__") and nodes_package.__spec__ and nodes_package.__spec__.loader:
453
- loader = nodes_package.__spec__.loader
454
-
455
- # Check if the loader has a code attribute
456
- if hasattr(loader, "code"):
457
- code = loader.code
458
-
459
- # Parse the code to find import statements
460
- import_lines = [line.strip() for line in code.splitlines() if line.startswith("from ")]
461
-
462
- # Import each module specified in the code
463
- for line in import_lines:
464
- try:
465
- # Extract module name from the import line
466
- module_name = line.split(" ")[1]
467
- full_module_path = f"{module_path}.display.nodes{module_name}"
468
- importlib.import_module(full_module_path)
469
- except Exception:
470
- continue
471
- # Also import from workflow.py
472
- importlib.import_module(f"{module_path}.display.workflow")
473
-
474
442
 
475
443
  WorkflowExecutionInitiatedBody.model_rebuild()
476
444
  WorkflowExecutionFulfilledBody.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.12.17
3
+ Version: 0.13.0
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.9,<4.0