vellum-ai 0.0.20__py3-none-any.whl → 0.0.22__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.
Potentially problematic release.
This version of vellum-ai might be problematic. Click here for more details.
- vellum/__init__.py +36 -20
- vellum/client.py +270 -101
- vellum/core/__init__.py +11 -2
- vellum/core/client_wrapper.py +27 -0
- vellum/core/remove_none_from_dict.py +11 -0
- vellum/resources/deployments/client.py +35 -15
- vellum/resources/document_indexes/client.py +64 -16
- vellum/resources/documents/client.py +110 -35
- vellum/resources/model_versions/client.py +67 -25
- vellum/resources/registered_prompts/client.py +80 -16
- vellum/resources/sandboxes/client.py +90 -25
- vellum/resources/test_suites/client.py +90 -25
- vellum/types/__init__.py +22 -4
- vellum/types/deployment_read.py +2 -6
- vellum/types/document.py +3 -7
- vellum/types/document_document_to_document_index.py +2 -2
- vellum/types/document_index_read.py +3 -7
- vellum/types/enriched_normalized_completion.py +5 -9
- vellum/types/evaluation_params.py +1 -3
- vellum/types/evaluation_params_request.py +1 -3
- vellum/types/generate_error_response.py +1 -1
- vellum/types/generate_request.py +3 -7
- vellum/types/generate_result.py +2 -6
- vellum/types/generate_result_data.py +1 -1
- vellum/types/generate_result_error.py +1 -1
- vellum/types/model_version_build_config.py +2 -6
- vellum/types/model_version_compile_prompt_response.py +1 -1
- vellum/types/model_version_compiled_prompt.py +2 -4
- vellum/types/model_version_exec_config.py +3 -3
- vellum/types/model_version_read.py +7 -10
- vellum/types/model_version_sandbox_snapshot.py +3 -5
- vellum/types/prompt_template_block_properties_request.py +2 -2
- vellum/types/prompt_template_block_request.py +1 -1
- vellum/types/prompt_template_input_variable.py +1 -1
- vellum/types/prompt_template_input_variable_request.py +1 -1
- vellum/types/provider_enum.py +5 -0
- vellum/types/register_prompt_error_response.py +1 -1
- vellum/types/register_prompt_prompt.py +2 -2
- vellum/types/register_prompt_prompt_info_request.py +1 -1
- vellum/types/register_prompt_response.py +5 -7
- vellum/types/registered_prompt_deployment.py +3 -3
- vellum/types/registered_prompt_model_version.py +2 -2
- vellum/types/registered_prompt_sandbox.py +2 -2
- vellum/types/registered_prompt_sandbox_snapshot.py +1 -1
- vellum/types/sandbox_scenario.py +2 -2
- vellum/types/scenario_input_request.py +1 -1
- vellum/types/search_error_response.py +1 -1
- vellum/types/search_filters_request.py +1 -1
- vellum/types/search_request_options_request.py +4 -6
- vellum/types/search_response.py +1 -1
- vellum/types/search_result.py +3 -3
- vellum/types/search_result_merging_request.py +1 -1
- vellum/types/search_weights_request.py +2 -2
- vellum/types/slim_document.py +5 -9
- vellum/types/submit_completion_actual_request.py +5 -15
- vellum/types/terminal_node_chat_history_result.py +1 -1
- vellum/types/terminal_node_json_result.py +1 -1
- vellum/types/terminal_node_result_output.py +2 -4
- vellum/types/terminal_node_string_result.py +1 -1
- vellum/types/test_suite_test_case.py +4 -8
- vellum/types/upload_document_response.py +1 -1
- vellum/types/workflow_event_error.py +26 -0
- vellum/types/workflow_execution_event_error_code.py +24 -0
- vellum/types/workflow_node_result_data.py +7 -11
- vellum/types/workflow_node_result_event.py +4 -3
- vellum/types/{workflow_node_result_event_state_enum.py → workflow_node_result_event_state.py} +5 -5
- vellum/types/workflow_request_chat_history_input_request.py +1 -3
- vellum/types/workflow_request_input_request.py +2 -6
- vellum/types/workflow_request_json_input_request.py +1 -3
- vellum/types/workflow_request_string_input_request.py +1 -3
- vellum/types/workflow_result_event.py +6 -3
- vellum/types/workflow_result_event_output_data.py +40 -0
- vellum/types/workflow_result_event_output_data_chat_history.py +32 -0
- vellum/types/workflow_result_event_output_data_json.py +31 -0
- vellum/types/workflow_result_event_output_data_string.py +33 -0
- vellum/types/workflow_stream_event.py +1 -4
- {vellum_ai-0.0.20.dist-info → vellum_ai-0.0.22.dist-info}/METADATA +1 -1
- vellum_ai-0.0.22.dist-info/RECORD +148 -0
- vellum/core/remove_none_from_headers.py +0 -11
- vellum/types/workflow_result_event_state_enum.py +0 -31
- vellum_ai-0.0.20.dist-info/RECORD +0 -142
- {vellum_ai-0.0.20.dist-info → vellum_ai-0.0.22.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .environment import VellumEnvironment
|
|
4
|
-
from .errors import BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError
|
|
5
|
-
from .resources import (
|
|
6
|
-
deployments,
|
|
7
|
-
document_indexes,
|
|
8
|
-
documents,
|
|
9
|
-
model_versions,
|
|
10
|
-
registered_prompts,
|
|
11
|
-
sandboxes,
|
|
12
|
-
test_suites,
|
|
13
|
-
)
|
|
14
3
|
from .types import (
|
|
15
4
|
BlockTypeEnum,
|
|
16
5
|
ChatMessage,
|
|
@@ -46,8 +35,8 @@ from .types import (
|
|
|
46
35
|
LogprobsEnum,
|
|
47
36
|
ModelTypeEnum,
|
|
48
37
|
ModelVersionBuildConfig,
|
|
49
|
-
ModelVersionCompiledPrompt,
|
|
50
38
|
ModelVersionCompilePromptResponse,
|
|
39
|
+
ModelVersionCompiledPrompt,
|
|
51
40
|
ModelVersionExecConfig,
|
|
52
41
|
ModelVersionExecConfigParameters,
|
|
53
42
|
ModelVersionRead,
|
|
@@ -69,15 +58,15 @@ from .types import (
|
|
|
69
58
|
PromptTemplateInputVariable,
|
|
70
59
|
PromptTemplateInputVariableRequest,
|
|
71
60
|
ProviderEnum,
|
|
72
|
-
RegisteredPromptDeployment,
|
|
73
|
-
RegisteredPromptModelVersion,
|
|
74
|
-
RegisteredPromptSandbox,
|
|
75
|
-
RegisteredPromptSandboxSnapshot,
|
|
76
61
|
RegisterPromptErrorResponse,
|
|
77
62
|
RegisterPromptModelParametersRequest,
|
|
78
63
|
RegisterPromptPrompt,
|
|
79
64
|
RegisterPromptPromptInfoRequest,
|
|
80
65
|
RegisterPromptResponse,
|
|
66
|
+
RegisteredPromptDeployment,
|
|
67
|
+
RegisteredPromptModelVersion,
|
|
68
|
+
RegisteredPromptSandbox,
|
|
69
|
+
RegisteredPromptSandboxSnapshot,
|
|
81
70
|
SandboxMetricInputParams,
|
|
82
71
|
SandboxMetricInputParamsRequest,
|
|
83
72
|
SandboxNodeResult,
|
|
@@ -111,6 +100,8 @@ from .types import (
|
|
|
111
100
|
TestSuiteTestCase,
|
|
112
101
|
UploadDocumentErrorResponse,
|
|
113
102
|
UploadDocumentResponse,
|
|
103
|
+
WorkflowEventError,
|
|
104
|
+
WorkflowExecutionEventErrorCode,
|
|
114
105
|
WorkflowExecutionNodeResultEvent,
|
|
115
106
|
WorkflowExecutionWorkflowResultEvent,
|
|
116
107
|
WorkflowNodeResultData,
|
|
@@ -121,7 +112,7 @@ from .types import (
|
|
|
121
112
|
WorkflowNodeResultData_Search,
|
|
122
113
|
WorkflowNodeResultData_Terminal,
|
|
123
114
|
WorkflowNodeResultEvent,
|
|
124
|
-
|
|
115
|
+
WorkflowNodeResultEventState,
|
|
125
116
|
WorkflowRequestChatHistoryInputRequest,
|
|
126
117
|
WorkflowRequestInputRequest,
|
|
127
118
|
WorkflowRequestInputRequest_ChatHistory,
|
|
@@ -130,11 +121,28 @@ from .types import (
|
|
|
130
121
|
WorkflowRequestJsonInputRequest,
|
|
131
122
|
WorkflowRequestStringInputRequest,
|
|
132
123
|
WorkflowResultEvent,
|
|
133
|
-
|
|
124
|
+
WorkflowResultEventOutputData,
|
|
125
|
+
WorkflowResultEventOutputDataChatHistory,
|
|
126
|
+
WorkflowResultEventOutputDataJson,
|
|
127
|
+
WorkflowResultEventOutputDataString,
|
|
128
|
+
WorkflowResultEventOutputData_ChatHistory,
|
|
129
|
+
WorkflowResultEventOutputData_Json,
|
|
130
|
+
WorkflowResultEventOutputData_String,
|
|
134
131
|
WorkflowStreamEvent,
|
|
135
132
|
WorkflowStreamEvent_Node,
|
|
136
133
|
WorkflowStreamEvent_Workflow,
|
|
137
134
|
)
|
|
135
|
+
from .errors import BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError
|
|
136
|
+
from .resources import (
|
|
137
|
+
deployments,
|
|
138
|
+
document_indexes,
|
|
139
|
+
documents,
|
|
140
|
+
model_versions,
|
|
141
|
+
registered_prompts,
|
|
142
|
+
sandboxes,
|
|
143
|
+
test_suites,
|
|
144
|
+
)
|
|
145
|
+
from .environment import VellumEnvironment
|
|
138
146
|
|
|
139
147
|
__all__ = [
|
|
140
148
|
"BadRequestError",
|
|
@@ -242,6 +250,8 @@ __all__ = [
|
|
|
242
250
|
"UploadDocumentErrorResponse",
|
|
243
251
|
"UploadDocumentResponse",
|
|
244
252
|
"VellumEnvironment",
|
|
253
|
+
"WorkflowEventError",
|
|
254
|
+
"WorkflowExecutionEventErrorCode",
|
|
245
255
|
"WorkflowExecutionNodeResultEvent",
|
|
246
256
|
"WorkflowExecutionWorkflowResultEvent",
|
|
247
257
|
"WorkflowNodeResultData",
|
|
@@ -252,7 +262,7 @@ __all__ = [
|
|
|
252
262
|
"WorkflowNodeResultData_Search",
|
|
253
263
|
"WorkflowNodeResultData_Terminal",
|
|
254
264
|
"WorkflowNodeResultEvent",
|
|
255
|
-
"
|
|
265
|
+
"WorkflowNodeResultEventState",
|
|
256
266
|
"WorkflowRequestChatHistoryInputRequest",
|
|
257
267
|
"WorkflowRequestInputRequest",
|
|
258
268
|
"WorkflowRequestInputRequest_ChatHistory",
|
|
@@ -261,7 +271,13 @@ __all__ = [
|
|
|
261
271
|
"WorkflowRequestJsonInputRequest",
|
|
262
272
|
"WorkflowRequestStringInputRequest",
|
|
263
273
|
"WorkflowResultEvent",
|
|
264
|
-
"
|
|
274
|
+
"WorkflowResultEventOutputData",
|
|
275
|
+
"WorkflowResultEventOutputDataChatHistory",
|
|
276
|
+
"WorkflowResultEventOutputDataJson",
|
|
277
|
+
"WorkflowResultEventOutputDataString",
|
|
278
|
+
"WorkflowResultEventOutputData_ChatHistory",
|
|
279
|
+
"WorkflowResultEventOutputData_Json",
|
|
280
|
+
"WorkflowResultEventOutputData_String",
|
|
265
281
|
"WorkflowStreamEvent",
|
|
266
282
|
"WorkflowStreamEvent_Node",
|
|
267
283
|
"WorkflowStreamEvent_Workflow",
|