vellum-ai 0.12.16__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.
- vellum/__init__.py +10 -22
- vellum/client/__init__.py +8 -0
- vellum/client/core/client_wrapper.py +1 -1
- vellum/client/resources/__init__.py +4 -0
- vellum/client/resources/organizations/__init__.py +2 -0
- vellum/client/resources/organizations/client.py +116 -0
- vellum/client/resources/workspaces/__init__.py +2 -0
- vellum/client/resources/workspaces/client.py +114 -0
- vellum/client/types/__init__.py +6 -22
- vellum/client/types/new_member_join_behavior_enum.py +8 -0
- vellum/client/types/{function_call_variable_value.py → organization_read.py} +6 -4
- vellum/client/types/workflow_execution_workflow_result_event.py +0 -2
- vellum/client/types/workflow_result_event.py +0 -2
- vellum/client/types/workflow_result_event_output_data_array.py +4 -4
- vellum/client/types/{string_variable_value.py → workspace_read.py} +12 -5
- vellum/plugins/vellum_mypy.py +80 -11
- vellum/{types/json_variable_value.py → resources/organizations/__init__.py} +1 -1
- vellum/resources/organizations/client.py +3 -0
- vellum/{types/image_variable_value.py → resources/workspaces/__init__.py} +1 -1
- vellum/{types/array_variable_value.py → resources/workspaces/client.py} +1 -1
- vellum/types/{array_variable_value_item.py → new_member_join_behavior_enum.py} +1 -1
- vellum/types/{audio_variable_value.py → organization_read.py} +1 -1
- vellum/types/{error_variable_value.py → workspace_read.py} +1 -1
- vellum/utils/templating/render.py +3 -0
- vellum/workflows/nodes/bases/base.py +4 -0
- vellum/workflows/nodes/core/retry_node/node.py +24 -3
- vellum/workflows/nodes/core/retry_node/tests/test_node.py +40 -0
- vellum/workflows/nodes/core/templating_node/tests/test_templating_node.py +20 -1
- vellum/workflows/nodes/displayable/api_node/node.py +3 -3
- vellum/workflows/workflows/base.py +0 -32
- {vellum_ai-0.12.16.dist-info → vellum_ai-0.13.0.dist-info}/METADATA +1 -1
- {vellum_ai-0.12.16.dist-info → vellum_ai-0.13.0.dist-info}/RECORD +79 -86
- vellum_cli/pull.py +7 -4
- vellum_cli/tests/conftest.py +4 -2
- vellum_cli/tests/test_push.py +13 -5
- vellum_ee/workflows/display/nodes/base_node_display.py +17 -10
- vellum_ee/workflows/display/nodes/vellum/api_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/base_node.py +97 -2
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/conditional_node.py +5 -62
- vellum_ee/workflows/display/nodes/vellum/error_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/final_output_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/guardrail_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/inline_prompt_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/inline_subworkflow_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/map_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/merge_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/note_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/prompt_deployment_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/search_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/subworkflow_deployment_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/templating_node.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/utils.py +63 -0
- vellum_ee/workflows/display/tests/test_vellum_workflow_display.py +2 -5
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/conftest.py +18 -2
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_ports_serialization.py +355 -0
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_trigger_serialization.py +37 -22
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_api_node_serialization.py +12 -56
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_code_execution_node_serialization.py +43 -93
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_conditional_node_serialization.py +31 -151
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_error_node_serialization.py +8 -26
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_generic_node_serialization.py +4 -15
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_guardrail_node_serialization.py +9 -44
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_inline_subworkflow_serialization.py +19 -101
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_map_node_serialization.py +19 -73
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_merge_node_serialization.py +9 -44
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_prompt_deployment_serialization.py +9 -44
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_search_node_serialization.py +8 -6
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_subworkflow_deployment_serialization.py +11 -58
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_templating_node_serialization.py +8 -11
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +7 -30
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_try_node_serialization.py +2 -11
- vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +9 -44
- vellum_ee/workflows/display/vellum.py +2 -7
- vellum_ee/workflows/display/workflows/vellum_workflow_display.py +5 -9
- vellum_ee/workflows/server/virtual_file_loader.py +3 -3
- vellum/client/types/array_variable_value.py +0 -27
- vellum/client/types/array_variable_value_item.py +0 -29
- vellum/client/types/audio_variable_value.py +0 -25
- vellum/client/types/chat_history_variable_value.py +0 -21
- vellum/client/types/error_variable_value.py +0 -21
- vellum/client/types/image_variable_value.py +0 -25
- vellum/client/types/json_variable_value.py +0 -20
- vellum/client/types/number_variable_value.py +0 -20
- vellum/client/types/search_results_variable_value.py +0 -21
- vellum/types/chat_history_variable_value.py +0 -3
- vellum/types/function_call_variable_value.py +0 -3
- vellum/types/number_variable_value.py +0 -3
- vellum/types/search_results_variable_value.py +0 -3
- vellum/types/string_variable_value.py +0 -3
- {vellum_ai-0.12.16.dist-info → vellum_ai-0.13.0.dist-info}/LICENSE +0 -0
- {vellum_ai-0.12.16.dist-info → vellum_ai-0.13.0.dist-info}/WHEEL +0 -0
- {vellum_ai-0.12.16.dist-info → vellum_ai-0.13.0.dist-info}/entry_points.txt +0 -0
vellum/__init__.py
CHANGED
@@ -18,14 +18,11 @@ from .types import (
|
|
18
18
|
ArrayChatMessageContentItemRequest,
|
19
19
|
ArrayChatMessageContentRequest,
|
20
20
|
ArrayInput,
|
21
|
-
ArrayVariableValue,
|
22
|
-
ArrayVariableValueItem,
|
23
21
|
ArrayVellumValue,
|
24
22
|
ArrayVellumValueRequest,
|
25
23
|
AudioChatMessageContent,
|
26
24
|
AudioChatMessageContentRequest,
|
27
25
|
AudioPromptBlock,
|
28
|
-
AudioVariableValue,
|
29
26
|
AudioVellumValue,
|
30
27
|
AudioVellumValueRequest,
|
31
28
|
BasicVectorizerIntfloatMultilingualE5Large,
|
@@ -36,7 +33,6 @@ from .types import (
|
|
36
33
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
37
34
|
ChatHistoryInput,
|
38
35
|
ChatHistoryInputRequest,
|
39
|
-
ChatHistoryVariableValue,
|
40
36
|
ChatHistoryVellumValue,
|
41
37
|
ChatHistoryVellumValueRequest,
|
42
38
|
ChatMessage,
|
@@ -93,7 +89,6 @@ from .types import (
|
|
93
89
|
EphemeralPromptCacheConfig,
|
94
90
|
EphemeralPromptCacheConfigTypeEnum,
|
95
91
|
ErrorInput,
|
96
|
-
ErrorVariableValue,
|
97
92
|
ErrorVellumValue,
|
98
93
|
ErrorVellumValueRequest,
|
99
94
|
ExecutePromptEvent,
|
@@ -137,7 +132,6 @@ from .types import (
|
|
137
132
|
FunctionCallInput,
|
138
133
|
FunctionCallPromptBlock,
|
139
134
|
FunctionCallRequest,
|
140
|
-
FunctionCallVariableValue,
|
141
135
|
FunctionCallVellumValue,
|
142
136
|
FunctionCallVellumValueRequest,
|
143
137
|
FunctionDefinition,
|
@@ -161,7 +155,6 @@ from .types import (
|
|
161
155
|
ImageChatMessageContent,
|
162
156
|
ImageChatMessageContentRequest,
|
163
157
|
ImagePromptBlock,
|
164
|
-
ImageVariableValue,
|
165
158
|
ImageVellumValue,
|
166
159
|
ImageVellumValueRequest,
|
167
160
|
IndexingConfigVectorizer,
|
@@ -177,7 +170,6 @@ from .types import (
|
|
177
170
|
JinjaPromptBlock,
|
178
171
|
JsonInput,
|
179
172
|
JsonInputRequest,
|
180
|
-
JsonVariableValue,
|
181
173
|
JsonVellumValue,
|
182
174
|
JsonVellumValueRequest,
|
183
175
|
LogicalOperator,
|
@@ -218,6 +210,7 @@ from .types import (
|
|
218
210
|
NamedTestCaseStringVariableValueRequest,
|
219
211
|
NamedTestCaseVariableValue,
|
220
212
|
NamedTestCaseVariableValueRequest,
|
213
|
+
NewMemberJoinBehaviorEnum,
|
221
214
|
NodeInputCompiledArrayValue,
|
222
215
|
NodeInputCompiledChatHistoryValue,
|
223
216
|
NodeInputCompiledErrorValue,
|
@@ -239,7 +232,6 @@ from .types import (
|
|
239
232
|
NormalizedLogProbs,
|
240
233
|
NormalizedTokenLogProbs,
|
241
234
|
NumberInput,
|
242
|
-
NumberVariableValue,
|
243
235
|
NumberVellumValue,
|
244
236
|
NumberVellumValueRequest,
|
245
237
|
OpenAiVectorizerConfig,
|
@@ -250,6 +242,7 @@ from .types import (
|
|
250
242
|
OpenAiVectorizerTextEmbedding3SmallRequest,
|
251
243
|
OpenAiVectorizerTextEmbeddingAda002,
|
252
244
|
OpenAiVectorizerTextEmbeddingAda002Request,
|
245
|
+
OrganizationRead,
|
253
246
|
PaginatedContainerImageReadList,
|
254
247
|
PaginatedDeploymentReleaseTagReadList,
|
255
248
|
PaginatedDocumentIndexReadList,
|
@@ -313,7 +306,6 @@ from .types import (
|
|
313
306
|
SearchResultMetaRequest,
|
314
307
|
SearchResultRequest,
|
315
308
|
SearchResultsInput,
|
316
|
-
SearchResultsVariableValue,
|
317
309
|
SearchResultsVellumValue,
|
318
310
|
SearchResultsVellumValueRequest,
|
319
311
|
SearchWeightsRequest,
|
@@ -334,7 +326,6 @@ from .types import (
|
|
334
326
|
StringChatMessageContentRequest,
|
335
327
|
StringInput,
|
336
328
|
StringInputRequest,
|
337
|
-
StringVariableValue,
|
338
329
|
StringVellumValue,
|
339
330
|
StringVellumValueRequest,
|
340
331
|
SubmitCompletionActualRequest,
|
@@ -498,6 +489,7 @@ from .types import (
|
|
498
489
|
WorkflowResultEventOutputDataSearchResults,
|
499
490
|
WorkflowResultEventOutputDataString,
|
500
491
|
WorkflowStreamEvent,
|
492
|
+
WorkspaceRead,
|
501
493
|
WorkspaceSecretRead,
|
502
494
|
)
|
503
495
|
from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError
|
@@ -517,6 +509,7 @@ from .resources import (
|
|
517
509
|
folder_entities,
|
518
510
|
metric_definitions,
|
519
511
|
ml_models,
|
512
|
+
organizations,
|
520
513
|
sandboxes,
|
521
514
|
test_suite_runs,
|
522
515
|
test_suites,
|
@@ -524,6 +517,7 @@ from .resources import (
|
|
524
517
|
workflow_sandboxes,
|
525
518
|
workflows,
|
526
519
|
workspace_secrets,
|
520
|
+
workspaces,
|
527
521
|
)
|
528
522
|
from .client import AsyncVellum, Vellum
|
529
523
|
from .environment import VellumEnvironment
|
@@ -544,15 +538,12 @@ __all__ = [
|
|
544
538
|
"ArrayChatMessageContentItemRequest",
|
545
539
|
"ArrayChatMessageContentRequest",
|
546
540
|
"ArrayInput",
|
547
|
-
"ArrayVariableValue",
|
548
|
-
"ArrayVariableValueItem",
|
549
541
|
"ArrayVellumValue",
|
550
542
|
"ArrayVellumValueRequest",
|
551
543
|
"AsyncVellum",
|
552
544
|
"AudioChatMessageContent",
|
553
545
|
"AudioChatMessageContentRequest",
|
554
546
|
"AudioPromptBlock",
|
555
|
-
"AudioVariableValue",
|
556
547
|
"AudioVellumValue",
|
557
548
|
"AudioVellumValueRequest",
|
558
549
|
"BadRequestError",
|
@@ -564,7 +555,6 @@ __all__ = [
|
|
564
555
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
565
556
|
"ChatHistoryInput",
|
566
557
|
"ChatHistoryInputRequest",
|
567
|
-
"ChatHistoryVariableValue",
|
568
558
|
"ChatHistoryVellumValue",
|
569
559
|
"ChatHistoryVellumValueRequest",
|
570
560
|
"ChatMessage",
|
@@ -623,7 +613,6 @@ __all__ = [
|
|
623
613
|
"EphemeralPromptCacheConfig",
|
624
614
|
"EphemeralPromptCacheConfigTypeEnum",
|
625
615
|
"ErrorInput",
|
626
|
-
"ErrorVariableValue",
|
627
616
|
"ErrorVellumValue",
|
628
617
|
"ErrorVellumValueRequest",
|
629
618
|
"ExecutePromptEvent",
|
@@ -669,7 +658,6 @@ __all__ = [
|
|
669
658
|
"FunctionCallInput",
|
670
659
|
"FunctionCallPromptBlock",
|
671
660
|
"FunctionCallRequest",
|
672
|
-
"FunctionCallVariableValue",
|
673
661
|
"FunctionCallVellumValue",
|
674
662
|
"FunctionCallVellumValueRequest",
|
675
663
|
"FunctionDefinition",
|
@@ -693,7 +681,6 @@ __all__ = [
|
|
693
681
|
"ImageChatMessageContent",
|
694
682
|
"ImageChatMessageContentRequest",
|
695
683
|
"ImagePromptBlock",
|
696
|
-
"ImageVariableValue",
|
697
684
|
"ImageVellumValue",
|
698
685
|
"ImageVellumValueRequest",
|
699
686
|
"IndexingConfigVectorizer",
|
@@ -710,7 +697,6 @@ __all__ = [
|
|
710
697
|
"JinjaPromptBlock",
|
711
698
|
"JsonInput",
|
712
699
|
"JsonInputRequest",
|
713
|
-
"JsonVariableValue",
|
714
700
|
"JsonVellumValue",
|
715
701
|
"JsonVellumValueRequest",
|
716
702
|
"ListDeploymentReleaseTagsRequestSource",
|
@@ -753,6 +739,7 @@ __all__ = [
|
|
753
739
|
"NamedTestCaseStringVariableValueRequest",
|
754
740
|
"NamedTestCaseVariableValue",
|
755
741
|
"NamedTestCaseVariableValueRequest",
|
742
|
+
"NewMemberJoinBehaviorEnum",
|
756
743
|
"NodeInputCompiledArrayValue",
|
757
744
|
"NodeInputCompiledChatHistoryValue",
|
758
745
|
"NodeInputCompiledErrorValue",
|
@@ -775,7 +762,6 @@ __all__ = [
|
|
775
762
|
"NormalizedTokenLogProbs",
|
776
763
|
"NotFoundError",
|
777
764
|
"NumberInput",
|
778
|
-
"NumberVariableValue",
|
779
765
|
"NumberVellumValue",
|
780
766
|
"NumberVellumValueRequest",
|
781
767
|
"OpenAiVectorizerConfig",
|
@@ -786,6 +772,7 @@ __all__ = [
|
|
786
772
|
"OpenAiVectorizerTextEmbedding3SmallRequest",
|
787
773
|
"OpenAiVectorizerTextEmbeddingAda002",
|
788
774
|
"OpenAiVectorizerTextEmbeddingAda002Request",
|
775
|
+
"OrganizationRead",
|
789
776
|
"PaginatedContainerImageReadList",
|
790
777
|
"PaginatedDeploymentReleaseTagReadList",
|
791
778
|
"PaginatedDocumentIndexReadList",
|
@@ -849,7 +836,6 @@ __all__ = [
|
|
849
836
|
"SearchResultMetaRequest",
|
850
837
|
"SearchResultRequest",
|
851
838
|
"SearchResultsInput",
|
852
|
-
"SearchResultsVariableValue",
|
853
839
|
"SearchResultsVellumValue",
|
854
840
|
"SearchResultsVellumValueRequest",
|
855
841
|
"SearchWeightsRequest",
|
@@ -870,7 +856,6 @@ __all__ = [
|
|
870
856
|
"StringChatMessageContentRequest",
|
871
857
|
"StringInput",
|
872
858
|
"StringInputRequest",
|
873
|
-
"StringVariableValue",
|
874
859
|
"StringVellumValue",
|
875
860
|
"StringVellumValueRequest",
|
876
861
|
"SubmitCompletionActualRequest",
|
@@ -1038,6 +1023,7 @@ __all__ = [
|
|
1038
1023
|
"WorkflowResultEventOutputDataString",
|
1039
1024
|
"WorkflowStreamEvent",
|
1040
1025
|
"WorkflowsPullRequestFormat",
|
1026
|
+
"WorkspaceRead",
|
1041
1027
|
"WorkspaceSecretRead",
|
1042
1028
|
"__version__",
|
1043
1029
|
"ad_hoc",
|
@@ -1048,6 +1034,7 @@ __all__ = [
|
|
1048
1034
|
"folder_entities",
|
1049
1035
|
"metric_definitions",
|
1050
1036
|
"ml_models",
|
1037
|
+
"organizations",
|
1051
1038
|
"sandboxes",
|
1052
1039
|
"test_suite_runs",
|
1053
1040
|
"test_suites",
|
@@ -1055,4 +1042,5 @@ __all__ = [
|
|
1055
1042
|
"workflow_sandboxes",
|
1056
1043
|
"workflows",
|
1057
1044
|
"workspace_secrets",
|
1045
|
+
"workspaces",
|
1058
1046
|
]
|
vellum/client/__init__.py
CHANGED
@@ -12,6 +12,7 @@ from .resources.documents.client import DocumentsClient
|
|
12
12
|
from .resources.folder_entities.client import FolderEntitiesClient
|
13
13
|
from .resources.metric_definitions.client import MetricDefinitionsClient
|
14
14
|
from .resources.ml_models.client import MlModelsClient
|
15
|
+
from .resources.organizations.client import OrganizationsClient
|
15
16
|
from .resources.sandboxes.client import SandboxesClient
|
16
17
|
from .resources.test_suite_runs.client import TestSuiteRunsClient
|
17
18
|
from .resources.test_suites.client import TestSuitesClient
|
@@ -19,6 +20,7 @@ from .resources.workflow_deployments.client import WorkflowDeploymentsClient
|
|
19
20
|
from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
|
20
21
|
from .resources.workflows.client import WorkflowsClient
|
21
22
|
from .resources.workspace_secrets.client import WorkspaceSecretsClient
|
23
|
+
from .resources.workspaces.client import WorkspacesClient
|
22
24
|
from .types.code_execution_runtime import CodeExecutionRuntime
|
23
25
|
from .types.code_executor_input import CodeExecutorInput
|
24
26
|
from .types.code_execution_package import CodeExecutionPackage
|
@@ -61,6 +63,7 @@ from .resources.documents.client import AsyncDocumentsClient
|
|
61
63
|
from .resources.folder_entities.client import AsyncFolderEntitiesClient
|
62
64
|
from .resources.metric_definitions.client import AsyncMetricDefinitionsClient
|
63
65
|
from .resources.ml_models.client import AsyncMlModelsClient
|
66
|
+
from .resources.organizations.client import AsyncOrganizationsClient
|
64
67
|
from .resources.sandboxes.client import AsyncSandboxesClient
|
65
68
|
from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
|
66
69
|
from .resources.test_suites.client import AsyncTestSuitesClient
|
@@ -68,6 +71,7 @@ from .resources.workflow_deployments.client import AsyncWorkflowDeploymentsClien
|
|
68
71
|
from .resources.workflow_sandboxes.client import AsyncWorkflowSandboxesClient
|
69
72
|
from .resources.workflows.client import AsyncWorkflowsClient
|
70
73
|
from .resources.workspace_secrets.client import AsyncWorkspaceSecretsClient
|
74
|
+
from .resources.workspaces.client import AsyncWorkspacesClient
|
71
75
|
|
72
76
|
# this is used as the default value for optional parameters
|
73
77
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -135,6 +139,7 @@ class Vellum:
|
|
135
139
|
self.folder_entities = FolderEntitiesClient(client_wrapper=self._client_wrapper)
|
136
140
|
self.metric_definitions = MetricDefinitionsClient(client_wrapper=self._client_wrapper)
|
137
141
|
self.ml_models = MlModelsClient(client_wrapper=self._client_wrapper)
|
142
|
+
self.organizations = OrganizationsClient(client_wrapper=self._client_wrapper)
|
138
143
|
self.sandboxes = SandboxesClient(client_wrapper=self._client_wrapper)
|
139
144
|
self.test_suite_runs = TestSuiteRunsClient(client_wrapper=self._client_wrapper)
|
140
145
|
self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
|
@@ -142,6 +147,7 @@ class Vellum:
|
|
142
147
|
self.workflow_sandboxes = WorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
143
148
|
self.workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
|
144
149
|
self.workspace_secrets = WorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
150
|
+
self.workspaces = WorkspacesClient(client_wrapper=self._client_wrapper)
|
145
151
|
|
146
152
|
def execute_code(
|
147
153
|
self,
|
@@ -1398,6 +1404,7 @@ class AsyncVellum:
|
|
1398
1404
|
self.folder_entities = AsyncFolderEntitiesClient(client_wrapper=self._client_wrapper)
|
1399
1405
|
self.metric_definitions = AsyncMetricDefinitionsClient(client_wrapper=self._client_wrapper)
|
1400
1406
|
self.ml_models = AsyncMlModelsClient(client_wrapper=self._client_wrapper)
|
1407
|
+
self.organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper)
|
1401
1408
|
self.sandboxes = AsyncSandboxesClient(client_wrapper=self._client_wrapper)
|
1402
1409
|
self.test_suite_runs = AsyncTestSuiteRunsClient(client_wrapper=self._client_wrapper)
|
1403
1410
|
self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
|
@@ -1405,6 +1412,7 @@ class AsyncVellum:
|
|
1405
1412
|
self.workflow_sandboxes = AsyncWorkflowSandboxesClient(client_wrapper=self._client_wrapper)
|
1406
1413
|
self.workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
|
1407
1414
|
self.workspace_secrets = AsyncWorkspaceSecretsClient(client_wrapper=self._client_wrapper)
|
1415
|
+
self.workspaces = AsyncWorkspacesClient(client_wrapper=self._client_wrapper)
|
1408
1416
|
|
1409
1417
|
async def execute_code(
|
1410
1418
|
self,
|
@@ -18,7 +18,7 @@ class BaseClientWrapper:
|
|
18
18
|
headers: typing.Dict[str, str] = {
|
19
19
|
"X-Fern-Language": "Python",
|
20
20
|
"X-Fern-SDK-Name": "vellum-ai",
|
21
|
-
"X-Fern-SDK-Version": "0.
|
21
|
+
"X-Fern-SDK-Version": "0.13.0",
|
22
22
|
}
|
23
23
|
headers["X_API_KEY"] = self.api_key
|
24
24
|
return headers
|
@@ -9,6 +9,7 @@ from . import (
|
|
9
9
|
folder_entities,
|
10
10
|
metric_definitions,
|
11
11
|
ml_models,
|
12
|
+
organizations,
|
12
13
|
sandboxes,
|
13
14
|
test_suite_runs,
|
14
15
|
test_suites,
|
@@ -16,6 +17,7 @@ from . import (
|
|
16
17
|
workflow_sandboxes,
|
17
18
|
workflows,
|
18
19
|
workspace_secrets,
|
20
|
+
workspaces,
|
19
21
|
)
|
20
22
|
from .deployments import DeploymentsListRequestStatus, ListDeploymentReleaseTagsRequestSource
|
21
23
|
from .document_indexes import DocumentIndexesListRequestStatus
|
@@ -39,6 +41,7 @@ __all__ = [
|
|
39
41
|
"folder_entities",
|
40
42
|
"metric_definitions",
|
41
43
|
"ml_models",
|
44
|
+
"organizations",
|
42
45
|
"sandboxes",
|
43
46
|
"test_suite_runs",
|
44
47
|
"test_suites",
|
@@ -46,4 +49,5 @@ __all__ = [
|
|
46
49
|
"workflow_sandboxes",
|
47
50
|
"workflows",
|
48
51
|
"workspace_secrets",
|
52
|
+
"workspaces",
|
49
53
|
]
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ...core.client_wrapper import SyncClientWrapper
|
4
|
+
import typing
|
5
|
+
from ...core.request_options import RequestOptions
|
6
|
+
from ...types.organization_read import OrganizationRead
|
7
|
+
from ...core.pydantic_utilities import parse_obj_as
|
8
|
+
from json.decoder import JSONDecodeError
|
9
|
+
from ...core.api_error import ApiError
|
10
|
+
from ...core.client_wrapper import AsyncClientWrapper
|
11
|
+
|
12
|
+
|
13
|
+
class OrganizationsClient:
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
15
|
+
self._client_wrapper = client_wrapper
|
16
|
+
|
17
|
+
def organization_identity(self, *, request_options: typing.Optional[RequestOptions] = None) -> OrganizationRead:
|
18
|
+
"""
|
19
|
+
Retrieves information about the active Organization
|
20
|
+
|
21
|
+
Parameters
|
22
|
+
----------
|
23
|
+
request_options : typing.Optional[RequestOptions]
|
24
|
+
Request-specific configuration.
|
25
|
+
|
26
|
+
Returns
|
27
|
+
-------
|
28
|
+
OrganizationRead
|
29
|
+
|
30
|
+
|
31
|
+
Examples
|
32
|
+
--------
|
33
|
+
from vellum import Vellum
|
34
|
+
|
35
|
+
client = Vellum(
|
36
|
+
api_key="YOUR_API_KEY",
|
37
|
+
)
|
38
|
+
client.organizations.organization_identity()
|
39
|
+
"""
|
40
|
+
_response = self._client_wrapper.httpx_client.request(
|
41
|
+
"v1/organizations/identity",
|
42
|
+
base_url=self._client_wrapper.get_environment().default,
|
43
|
+
method="GET",
|
44
|
+
request_options=request_options,
|
45
|
+
)
|
46
|
+
try:
|
47
|
+
if 200 <= _response.status_code < 300:
|
48
|
+
return typing.cast(
|
49
|
+
OrganizationRead,
|
50
|
+
parse_obj_as(
|
51
|
+
type_=OrganizationRead, # type: ignore
|
52
|
+
object_=_response.json(),
|
53
|
+
),
|
54
|
+
)
|
55
|
+
_response_json = _response.json()
|
56
|
+
except JSONDecodeError:
|
57
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
58
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
59
|
+
|
60
|
+
|
61
|
+
class AsyncOrganizationsClient:
|
62
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
63
|
+
self._client_wrapper = client_wrapper
|
64
|
+
|
65
|
+
async def organization_identity(
|
66
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
67
|
+
) -> OrganizationRead:
|
68
|
+
"""
|
69
|
+
Retrieves information about the active Organization
|
70
|
+
|
71
|
+
Parameters
|
72
|
+
----------
|
73
|
+
request_options : typing.Optional[RequestOptions]
|
74
|
+
Request-specific configuration.
|
75
|
+
|
76
|
+
Returns
|
77
|
+
-------
|
78
|
+
OrganizationRead
|
79
|
+
|
80
|
+
|
81
|
+
Examples
|
82
|
+
--------
|
83
|
+
import asyncio
|
84
|
+
|
85
|
+
from vellum import AsyncVellum
|
86
|
+
|
87
|
+
client = AsyncVellum(
|
88
|
+
api_key="YOUR_API_KEY",
|
89
|
+
)
|
90
|
+
|
91
|
+
|
92
|
+
async def main() -> None:
|
93
|
+
await client.organizations.organization_identity()
|
94
|
+
|
95
|
+
|
96
|
+
asyncio.run(main())
|
97
|
+
"""
|
98
|
+
_response = await self._client_wrapper.httpx_client.request(
|
99
|
+
"v1/organizations/identity",
|
100
|
+
base_url=self._client_wrapper.get_environment().default,
|
101
|
+
method="GET",
|
102
|
+
request_options=request_options,
|
103
|
+
)
|
104
|
+
try:
|
105
|
+
if 200 <= _response.status_code < 300:
|
106
|
+
return typing.cast(
|
107
|
+
OrganizationRead,
|
108
|
+
parse_obj_as(
|
109
|
+
type_=OrganizationRead, # type: ignore
|
110
|
+
object_=_response.json(),
|
111
|
+
),
|
112
|
+
)
|
113
|
+
_response_json = _response.json()
|
114
|
+
except JSONDecodeError:
|
115
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
116
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ...core.client_wrapper import SyncClientWrapper
|
4
|
+
import typing
|
5
|
+
from ...core.request_options import RequestOptions
|
6
|
+
from ...types.workspace_read import WorkspaceRead
|
7
|
+
from ...core.pydantic_utilities import parse_obj_as
|
8
|
+
from json.decoder import JSONDecodeError
|
9
|
+
from ...core.api_error import ApiError
|
10
|
+
from ...core.client_wrapper import AsyncClientWrapper
|
11
|
+
|
12
|
+
|
13
|
+
class WorkspacesClient:
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
15
|
+
self._client_wrapper = client_wrapper
|
16
|
+
|
17
|
+
def workspace_identity(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkspaceRead:
|
18
|
+
"""
|
19
|
+
Retrieves information about the active Workspace
|
20
|
+
|
21
|
+
Parameters
|
22
|
+
----------
|
23
|
+
request_options : typing.Optional[RequestOptions]
|
24
|
+
Request-specific configuration.
|
25
|
+
|
26
|
+
Returns
|
27
|
+
-------
|
28
|
+
WorkspaceRead
|
29
|
+
|
30
|
+
|
31
|
+
Examples
|
32
|
+
--------
|
33
|
+
from vellum import Vellum
|
34
|
+
|
35
|
+
client = Vellum(
|
36
|
+
api_key="YOUR_API_KEY",
|
37
|
+
)
|
38
|
+
client.workspaces.workspace_identity()
|
39
|
+
"""
|
40
|
+
_response = self._client_wrapper.httpx_client.request(
|
41
|
+
"v1/workspaces/identity",
|
42
|
+
base_url=self._client_wrapper.get_environment().default,
|
43
|
+
method="GET",
|
44
|
+
request_options=request_options,
|
45
|
+
)
|
46
|
+
try:
|
47
|
+
if 200 <= _response.status_code < 300:
|
48
|
+
return typing.cast(
|
49
|
+
WorkspaceRead,
|
50
|
+
parse_obj_as(
|
51
|
+
type_=WorkspaceRead, # type: ignore
|
52
|
+
object_=_response.json(),
|
53
|
+
),
|
54
|
+
)
|
55
|
+
_response_json = _response.json()
|
56
|
+
except JSONDecodeError:
|
57
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
58
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
59
|
+
|
60
|
+
|
61
|
+
class AsyncWorkspacesClient:
|
62
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
63
|
+
self._client_wrapper = client_wrapper
|
64
|
+
|
65
|
+
async def workspace_identity(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkspaceRead:
|
66
|
+
"""
|
67
|
+
Retrieves information about the active Workspace
|
68
|
+
|
69
|
+
Parameters
|
70
|
+
----------
|
71
|
+
request_options : typing.Optional[RequestOptions]
|
72
|
+
Request-specific configuration.
|
73
|
+
|
74
|
+
Returns
|
75
|
+
-------
|
76
|
+
WorkspaceRead
|
77
|
+
|
78
|
+
|
79
|
+
Examples
|
80
|
+
--------
|
81
|
+
import asyncio
|
82
|
+
|
83
|
+
from vellum import AsyncVellum
|
84
|
+
|
85
|
+
client = AsyncVellum(
|
86
|
+
api_key="YOUR_API_KEY",
|
87
|
+
)
|
88
|
+
|
89
|
+
|
90
|
+
async def main() -> None:
|
91
|
+
await client.workspaces.workspace_identity()
|
92
|
+
|
93
|
+
|
94
|
+
asyncio.run(main())
|
95
|
+
"""
|
96
|
+
_response = await self._client_wrapper.httpx_client.request(
|
97
|
+
"v1/workspaces/identity",
|
98
|
+
base_url=self._client_wrapper.get_environment().default,
|
99
|
+
method="GET",
|
100
|
+
request_options=request_options,
|
101
|
+
)
|
102
|
+
try:
|
103
|
+
if 200 <= _response.status_code < 300:
|
104
|
+
return typing.cast(
|
105
|
+
WorkspaceRead,
|
106
|
+
parse_obj_as(
|
107
|
+
type_=WorkspaceRead, # type: ignore
|
108
|
+
object_=_response.json(),
|
109
|
+
),
|
110
|
+
)
|
111
|
+
_response_json = _response.json()
|
112
|
+
except JSONDecodeError:
|
113
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
114
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|