vellum-ai 0.5.2__py3-none-any.whl → 0.6.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +166 -18
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/document_indexes/client.py +61 -52
- vellum/resources/documents/client.py +8 -4
- vellum/types/__init__.py +185 -17
- vellum/types/add_openai_api_key_enum.py +3 -0
- vellum/types/array_variable_value_item.py +0 -24
- vellum/types/array_vellum_value_item.py +82 -0
- vellum/types/{rejected_function_call.py → basic_vectorizer_intfloat_multilingual_e_5_large.py} +3 -6
- vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +29 -0
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +29 -0
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +29 -0
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +29 -0
- vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +29 -0
- vellum/types/document_index_chunking.py +46 -0
- vellum/types/document_index_chunking_request.py +46 -0
- vellum/types/document_index_indexing_config.py +28 -0
- vellum/types/document_index_indexing_config_request.py +28 -0
- vellum/types/document_index_read.py +2 -4
- vellum/types/function_call.py +20 -18
- vellum/types/{fulfilled_function_call_request.py → function_call_request.py} +2 -2
- vellum/types/function_call_vellum_value.py +1 -1
- vellum/types/hkunlp_instructor_xl_enum.py +5 -0
- vellum/types/hkunlp_instructor_xl_vectorizer.py +30 -0
- vellum/types/hkunlp_instructor_xl_vectorizer_request.py +30 -0
- vellum/types/{fulfilled_function_call.py → image_vellum_value.py} +4 -5
- vellum/types/indexing_config_vectorizer.py +106 -0
- vellum/types/indexing_config_vectorizer_request.py +106 -0
- vellum/types/instructor_vectorizer_config.py +31 -0
- vellum/types/instructor_vectorizer_config_request.py +31 -0
- vellum/types/intfloat_multilingual_e_5_large_enum.py +5 -0
- vellum/types/merge_enum.py +5 -0
- vellum/types/{chat_history_variable_value.py → merge_node_result.py} +4 -3
- vellum/types/metric_enum.py +5 -0
- vellum/types/{search_results_variable_value.py → metric_node_result.py} +4 -3
- vellum/types/named_test_case_function_call_variable_value.py +2 -2
- vellum/types/named_test_case_function_call_variable_value_request.py +2 -2
- vellum/types/node_output_compiled_array_value.py +2 -2
- vellum/types/number_vellum_value.py +29 -0
- vellum/types/open_ai_vectorizer_config.py +30 -0
- vellum/types/open_ai_vectorizer_config_request.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_3_large.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_3_large_request.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_3_small.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_3_small_request.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_ada_002.py +30 -0
- vellum/types/open_ai_vectorizer_text_embedding_ada_002_request.py +30 -0
- vellum/types/reducto_chunker_config.py +29 -0
- vellum/types/reducto_chunker_config_request.py +29 -0
- vellum/types/reducto_chunker_enum.py +5 -0
- vellum/types/reducto_chunking.py +30 -0
- vellum/types/reducto_chunking_request.py +30 -0
- vellum/types/search_result_document.py +1 -1
- vellum/types/search_result_document_request.py +5 -0
- vellum/types/sentence_chunker_config.py +30 -0
- vellum/types/sentence_chunker_config_request.py +30 -0
- vellum/types/sentence_chunker_enum.py +5 -0
- vellum/types/sentence_chunking.py +30 -0
- vellum/types/sentence_chunking_request.py +30 -0
- vellum/types/sentence_transformers_multi_qa_mpnet_base_cos_v_1_enum.py +5 -0
- vellum/types/sentence_transformers_multi_qa_mpnet_base_dot_v_1_enum.py +5 -0
- vellum/types/submit_completion_actual_request.py +5 -0
- vellum/types/test_case_function_call_variable_value.py +2 -2
- vellum/types/test_suite_run_execution_function_call_output.py +2 -2
- vellum/types/text_embedding_3_large_enum.py +5 -0
- vellum/types/text_embedding_3_small_enum.py +5 -0
- vellum/types/text_embedding_ada_002_enum.py +5 -0
- vellum/types/token_overlapping_window_chunker_config.py +30 -0
- vellum/types/token_overlapping_window_chunker_config_request.py +30 -0
- vellum/types/token_overlapping_window_chunker_enum.py +5 -0
- vellum/types/token_overlapping_window_chunking.py +30 -0
- vellum/types/token_overlapping_window_chunking_request.py +30 -0
- vellum/types/workflow_execution_actual_chat_history_request.py +5 -0
- vellum/types/workflow_execution_actual_json_request.py +5 -0
- vellum/types/workflow_execution_actual_string_request.py +5 -0
- vellum/types/workflow_node_result_data.py +24 -0
- vellum/types/workflow_output_array.py +2 -2
- {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.1.dist-info}/METADATA +2 -3
- {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.1.dist-info}/RECORD +81 -31
- {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.1.dist-info}/LICENSE +0 -0
- {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.1.dist-info}/WHEEL +0 -0
@@ -99,7 +99,7 @@ class DocumentsClient:
|
|
99
99
|
|
100
100
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentRead:
|
101
101
|
"""
|
102
|
-
Retrieve a Document
|
102
|
+
Retrieve a Document, keying off of either its Vellum-generated ID or its external ID.
|
103
103
|
|
104
104
|
Parameters:
|
105
105
|
- id: str. A UUID string identifying this document.
|
@@ -147,6 +147,8 @@ class DocumentsClient:
|
|
147
147
|
|
148
148
|
def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
149
149
|
"""
|
150
|
+
Delete a Document, keying off of either its Vellum-generated ID or its external ID.
|
151
|
+
|
150
152
|
Parameters:
|
151
153
|
- id: str. A UUID string identifying this document.
|
152
154
|
|
@@ -201,7 +203,7 @@ class DocumentsClient:
|
|
201
203
|
request_options: typing.Optional[RequestOptions] = None,
|
202
204
|
) -> DocumentRead:
|
203
205
|
"""
|
204
|
-
Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
206
|
+
Update a Document, keying off of either its Vellum-generated ID or its external ID. Particularly useful for updating its metadata.
|
205
207
|
|
206
208
|
Parameters:
|
207
209
|
- id: str. A UUID string identifying this document.
|
@@ -453,7 +455,7 @@ class AsyncDocumentsClient:
|
|
453
455
|
|
454
456
|
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> DocumentRead:
|
455
457
|
"""
|
456
|
-
Retrieve a Document
|
458
|
+
Retrieve a Document, keying off of either its Vellum-generated ID or its external ID.
|
457
459
|
|
458
460
|
Parameters:
|
459
461
|
- id: str. A UUID string identifying this document.
|
@@ -501,6 +503,8 @@ class AsyncDocumentsClient:
|
|
501
503
|
|
502
504
|
async def destroy(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
503
505
|
"""
|
506
|
+
Delete a Document, keying off of either its Vellum-generated ID or its external ID.
|
507
|
+
|
504
508
|
Parameters:
|
505
509
|
- id: str. A UUID string identifying this document.
|
506
510
|
|
@@ -555,7 +559,7 @@ class AsyncDocumentsClient:
|
|
555
559
|
request_options: typing.Optional[RequestOptions] = None,
|
556
560
|
) -> DocumentRead:
|
557
561
|
"""
|
558
|
-
Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
562
|
+
Update a Document, keying off of either its Vellum-generated ID or its external ID. Particularly useful for updating its metadata.
|
559
563
|
|
560
564
|
Parameters:
|
561
565
|
- id: str. A UUID string identifying this document.
|
vellum/types/__init__.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from .add_openai_api_key_enum import AddOpenaiApiKeyEnum
|
3
4
|
from .api_node_result import ApiNodeResult
|
4
5
|
from .api_node_result_data import ApiNodeResultData
|
5
6
|
from .array_chat_message_content import ArrayChatMessageContent
|
@@ -19,18 +20,38 @@ from .array_chat_message_content_request import ArrayChatMessageContentRequest
|
|
19
20
|
from .array_enum import ArrayEnum
|
20
21
|
from .array_variable_value_item import (
|
21
22
|
ArrayVariableValueItem,
|
22
|
-
ArrayVariableValueItem_ChatHistory,
|
23
23
|
ArrayVariableValueItem_Error,
|
24
24
|
ArrayVariableValueItem_FunctionCall,
|
25
25
|
ArrayVariableValueItem_Image,
|
26
26
|
ArrayVariableValueItem_Json,
|
27
27
|
ArrayVariableValueItem_Number,
|
28
|
-
ArrayVariableValueItem_SearchResults,
|
29
28
|
ArrayVariableValueItem_String,
|
30
29
|
)
|
30
|
+
from .array_vellum_value_item import (
|
31
|
+
ArrayVellumValueItem,
|
32
|
+
ArrayVellumValueItem_Error,
|
33
|
+
ArrayVellumValueItem_FunctionCall,
|
34
|
+
ArrayVellumValueItem_Image,
|
35
|
+
ArrayVellumValueItem_Json,
|
36
|
+
ArrayVellumValueItem_Number,
|
37
|
+
ArrayVellumValueItem_String,
|
38
|
+
)
|
39
|
+
from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
|
40
|
+
from .basic_vectorizer_intfloat_multilingual_e_5_large_request import BasicVectorizerIntfloatMultilingualE5LargeRequest
|
41
|
+
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1 import (
|
42
|
+
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1,
|
43
|
+
)
|
44
|
+
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request import (
|
45
|
+
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request,
|
46
|
+
)
|
47
|
+
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1 import (
|
48
|
+
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1,
|
49
|
+
)
|
50
|
+
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request import (
|
51
|
+
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
52
|
+
)
|
31
53
|
from .chat_history_enum import ChatHistoryEnum
|
32
54
|
from .chat_history_input_request import ChatHistoryInputRequest
|
33
|
-
from .chat_history_variable_value import ChatHistoryVariableValue
|
34
55
|
from .chat_message import ChatMessage
|
35
56
|
from .chat_message_content import (
|
36
57
|
ChatMessageContent,
|
@@ -74,6 +95,20 @@ from .conditional_node_result_data import ConditionalNodeResultData
|
|
74
95
|
from .deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
75
96
|
from .deployment_read import DeploymentRead
|
76
97
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
98
|
+
from .document_index_chunking import (
|
99
|
+
DocumentIndexChunking,
|
100
|
+
DocumentIndexChunking_ReductoChunker,
|
101
|
+
DocumentIndexChunking_SentenceChunker,
|
102
|
+
DocumentIndexChunking_TokenOverlappingWindowChunker,
|
103
|
+
)
|
104
|
+
from .document_index_chunking_request import (
|
105
|
+
DocumentIndexChunkingRequest,
|
106
|
+
DocumentIndexChunkingRequest_ReductoChunker,
|
107
|
+
DocumentIndexChunkingRequest_SentenceChunker,
|
108
|
+
DocumentIndexChunkingRequest_TokenOverlappingWindowChunker,
|
109
|
+
)
|
110
|
+
from .document_index_indexing_config import DocumentIndexIndexingConfig
|
111
|
+
from .document_index_indexing_config_request import DocumentIndexIndexingConfigRequest
|
77
112
|
from .document_index_read import DocumentIndexRead
|
78
113
|
from .document_read import DocumentRead
|
79
114
|
from .document_status import DocumentStatus
|
@@ -130,16 +165,15 @@ from .fulfilled_enum import FulfilledEnum
|
|
130
165
|
from .fulfilled_execute_prompt_event import FulfilledExecutePromptEvent
|
131
166
|
from .fulfilled_execute_prompt_response import FulfilledExecutePromptResponse
|
132
167
|
from .fulfilled_execute_workflow_workflow_result_event import FulfilledExecuteWorkflowWorkflowResultEvent
|
133
|
-
from .fulfilled_function_call import FulfilledFunctionCall
|
134
|
-
from .fulfilled_function_call_request import FulfilledFunctionCallRequest
|
135
168
|
from .fulfilled_prompt_execution_meta import FulfilledPromptExecutionMeta
|
136
169
|
from .fulfilled_workflow_node_result_event import FulfilledWorkflowNodeResultEvent
|
137
|
-
from .function_call import FunctionCall
|
170
|
+
from .function_call import FunctionCall
|
138
171
|
from .function_call_chat_message_content import FunctionCallChatMessageContent
|
139
172
|
from .function_call_chat_message_content_request import FunctionCallChatMessageContentRequest
|
140
173
|
from .function_call_chat_message_content_value import FunctionCallChatMessageContentValue
|
141
174
|
from .function_call_chat_message_content_value_request import FunctionCallChatMessageContentValueRequest
|
142
175
|
from .function_call_enum import FunctionCallEnum
|
176
|
+
from .function_call_request import FunctionCallRequest
|
143
177
|
from .function_call_variable_value import FunctionCallVariableValue
|
144
178
|
from .function_call_vellum_value import FunctionCallVellumValue
|
145
179
|
from .generate_error_response import GenerateErrorResponse
|
@@ -152,24 +186,55 @@ from .generate_result_error import GenerateResultError
|
|
152
186
|
from .generate_stream_response import GenerateStreamResponse
|
153
187
|
from .generate_stream_result import GenerateStreamResult
|
154
188
|
from .generate_stream_result_data import GenerateStreamResultData
|
189
|
+
from .hkunlp_instructor_xl_enum import HkunlpInstructorXlEnum
|
190
|
+
from .hkunlp_instructor_xl_vectorizer import HkunlpInstructorXlVectorizer
|
191
|
+
from .hkunlp_instructor_xl_vectorizer_request import HkunlpInstructorXlVectorizerRequest
|
155
192
|
from .image_chat_message_content import ImageChatMessageContent
|
156
193
|
from .image_chat_message_content_request import ImageChatMessageContentRequest
|
157
194
|
from .image_enum import ImageEnum
|
158
195
|
from .image_variable_value import ImageVariableValue
|
196
|
+
from .image_vellum_value import ImageVellumValue
|
197
|
+
from .indexing_config_vectorizer import (
|
198
|
+
IndexingConfigVectorizer,
|
199
|
+
IndexingConfigVectorizer_HkunlpInstructorXl,
|
200
|
+
IndexingConfigVectorizer_IntfloatMultilingualE5Large,
|
201
|
+
IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseCosV1,
|
202
|
+
IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseDotV1,
|
203
|
+
IndexingConfigVectorizer_TextEmbedding3Large,
|
204
|
+
IndexingConfigVectorizer_TextEmbedding3Small,
|
205
|
+
IndexingConfigVectorizer_TextEmbeddingAda002,
|
206
|
+
)
|
207
|
+
from .indexing_config_vectorizer_request import (
|
208
|
+
IndexingConfigVectorizerRequest,
|
209
|
+
IndexingConfigVectorizerRequest_HkunlpInstructorXl,
|
210
|
+
IndexingConfigVectorizerRequest_IntfloatMultilingualE5Large,
|
211
|
+
IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseCosV1,
|
212
|
+
IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseDotV1,
|
213
|
+
IndexingConfigVectorizerRequest_TextEmbedding3Large,
|
214
|
+
IndexingConfigVectorizerRequest_TextEmbedding3Small,
|
215
|
+
IndexingConfigVectorizerRequest_TextEmbeddingAda002,
|
216
|
+
)
|
159
217
|
from .indexing_state_enum import IndexingStateEnum
|
160
218
|
from .initiated_enum import InitiatedEnum
|
161
219
|
from .initiated_execute_prompt_event import InitiatedExecutePromptEvent
|
162
220
|
from .initiated_prompt_execution_meta import InitiatedPromptExecutionMeta
|
163
221
|
from .initiated_workflow_node_result_event import InitiatedWorkflowNodeResultEvent
|
222
|
+
from .instructor_vectorizer_config import InstructorVectorizerConfig
|
223
|
+
from .instructor_vectorizer_config_request import InstructorVectorizerConfigRequest
|
224
|
+
from .intfloat_multilingual_e_5_large_enum import IntfloatMultilingualE5LargeEnum
|
164
225
|
from .json_enum import JsonEnum
|
165
226
|
from .json_input_request import JsonInputRequest
|
166
227
|
from .json_variable_value import JsonVariableValue
|
167
228
|
from .json_vellum_value import JsonVellumValue
|
168
229
|
from .logical_operator import LogicalOperator
|
169
230
|
from .logprobs_enum import LogprobsEnum
|
231
|
+
from .merge_enum import MergeEnum
|
232
|
+
from .merge_node_result import MergeNodeResult
|
170
233
|
from .metadata_filter_config_request import MetadataFilterConfigRequest
|
171
234
|
from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
|
172
235
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
236
|
+
from .metric_enum import MetricEnum
|
237
|
+
from .metric_node_result import MetricNodeResult
|
173
238
|
from .ml_model_usage import MlModelUsage
|
174
239
|
from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
|
175
240
|
from .named_scenario_input_request import (
|
@@ -254,6 +319,15 @@ from .normalized_log_probs import NormalizedLogProbs
|
|
254
319
|
from .normalized_token_log_probs import NormalizedTokenLogProbs
|
255
320
|
from .number_enum import NumberEnum
|
256
321
|
from .number_variable_value import NumberVariableValue
|
322
|
+
from .number_vellum_value import NumberVellumValue
|
323
|
+
from .open_ai_vectorizer_config import OpenAiVectorizerConfig
|
324
|
+
from .open_ai_vectorizer_config_request import OpenAiVectorizerConfigRequest
|
325
|
+
from .open_ai_vectorizer_text_embedding_3_large import OpenAiVectorizerTextEmbedding3Large
|
326
|
+
from .open_ai_vectorizer_text_embedding_3_large_request import OpenAiVectorizerTextEmbedding3LargeRequest
|
327
|
+
from .open_ai_vectorizer_text_embedding_3_small import OpenAiVectorizerTextEmbedding3Small
|
328
|
+
from .open_ai_vectorizer_text_embedding_3_small_request import OpenAiVectorizerTextEmbedding3SmallRequest
|
329
|
+
from .open_ai_vectorizer_text_embedding_ada_002 import OpenAiVectorizerTextEmbeddingAda002
|
330
|
+
from .open_ai_vectorizer_text_embedding_ada_002_request import OpenAiVectorizerTextEmbeddingAda002Request
|
257
331
|
from .paginated_document_index_read_list import PaginatedDocumentIndexReadList
|
258
332
|
from .paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
|
259
333
|
from .paginated_slim_document_list import PaginatedSlimDocumentList
|
@@ -280,11 +354,15 @@ from .prompt_output import (
|
|
280
354
|
PromptOutput_String,
|
281
355
|
)
|
282
356
|
from .raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
|
357
|
+
from .reducto_chunker_config import ReductoChunkerConfig
|
358
|
+
from .reducto_chunker_config_request import ReductoChunkerConfigRequest
|
359
|
+
from .reducto_chunker_enum import ReductoChunkerEnum
|
360
|
+
from .reducto_chunking import ReductoChunking
|
361
|
+
from .reducto_chunking_request import ReductoChunkingRequest
|
283
362
|
from .rejected_enum import RejectedEnum
|
284
363
|
from .rejected_execute_prompt_event import RejectedExecutePromptEvent
|
285
364
|
from .rejected_execute_prompt_response import RejectedExecutePromptResponse
|
286
365
|
from .rejected_execute_workflow_workflow_result_event import RejectedExecuteWorkflowWorkflowResultEvent
|
287
|
-
from .rejected_function_call import RejectedFunctionCall
|
288
366
|
from .rejected_prompt_execution_meta import RejectedPromptExecutionMeta
|
289
367
|
from .rejected_workflow_node_result_event import RejectedWorkflowNodeResultEvent
|
290
368
|
from .sandbox_scenario import SandboxScenario
|
@@ -303,8 +381,14 @@ from .search_result_document_request import SearchResultDocumentRequest
|
|
303
381
|
from .search_result_merging_request import SearchResultMergingRequest
|
304
382
|
from .search_result_request import SearchResultRequest
|
305
383
|
from .search_results_enum import SearchResultsEnum
|
306
|
-
from .search_results_variable_value import SearchResultsVariableValue
|
307
384
|
from .search_weights_request import SearchWeightsRequest
|
385
|
+
from .sentence_chunker_config import SentenceChunkerConfig
|
386
|
+
from .sentence_chunker_config_request import SentenceChunkerConfigRequest
|
387
|
+
from .sentence_chunker_enum import SentenceChunkerEnum
|
388
|
+
from .sentence_chunking import SentenceChunking
|
389
|
+
from .sentence_chunking_request import SentenceChunkingRequest
|
390
|
+
from .sentence_transformers_multi_qa_mpnet_base_cos_v_1_enum import SentenceTransformersMultiQaMpnetBaseCosV1Enum
|
391
|
+
from .sentence_transformers_multi_qa_mpnet_base_dot_v_1_enum import SentenceTransformersMultiQaMpnetBaseDotV1Enum
|
308
392
|
from .slim_deployment_read import SlimDeploymentRead
|
309
393
|
from .slim_document import SlimDocument
|
310
394
|
from .slim_workflow_deployment import SlimWorkflowDeployment
|
@@ -456,6 +540,14 @@ from .test_suite_run_workflow_release_tag_exec_config_data_request import (
|
|
456
540
|
from .test_suite_run_workflow_release_tag_exec_config_request import TestSuiteRunWorkflowReleaseTagExecConfigRequest
|
457
541
|
from .test_suite_run_workflow_release_tag_exec_config_type_enum import TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum
|
458
542
|
from .test_suite_test_case import TestSuiteTestCase
|
543
|
+
from .text_embedding_3_large_enum import TextEmbedding3LargeEnum
|
544
|
+
from .text_embedding_3_small_enum import TextEmbedding3SmallEnum
|
545
|
+
from .text_embedding_ada_002_enum import TextEmbeddingAda002Enum
|
546
|
+
from .token_overlapping_window_chunker_config import TokenOverlappingWindowChunkerConfig
|
547
|
+
from .token_overlapping_window_chunker_config_request import TokenOverlappingWindowChunkerConfigRequest
|
548
|
+
from .token_overlapping_window_chunker_enum import TokenOverlappingWindowChunkerEnum
|
549
|
+
from .token_overlapping_window_chunking import TokenOverlappingWindowChunking
|
550
|
+
from .token_overlapping_window_chunking_request import TokenOverlappingWindowChunkingRequest
|
459
551
|
from .upload_document_error_response import UploadDocumentErrorResponse
|
460
552
|
from .upload_document_response import UploadDocumentResponse
|
461
553
|
from .vellum_error import VellumError
|
@@ -479,6 +571,8 @@ from .workflow_node_result_data import (
|
|
479
571
|
WorkflowNodeResultData_Api,
|
480
572
|
WorkflowNodeResultData_CodeExecution,
|
481
573
|
WorkflowNodeResultData_Conditional,
|
574
|
+
WorkflowNodeResultData_Merge,
|
575
|
+
WorkflowNodeResultData_Metric,
|
482
576
|
WorkflowNodeResultData_Prompt,
|
483
577
|
WorkflowNodeResultData_Search,
|
484
578
|
WorkflowNodeResultData_Subworkflow,
|
@@ -548,6 +642,7 @@ from .workflow_result_event_output_data_string import WorkflowResultEventOutputD
|
|
548
642
|
from .workflow_stream_event import WorkflowStreamEvent, WorkflowStreamEvent_Node, WorkflowStreamEvent_Workflow
|
549
643
|
|
550
644
|
__all__ = [
|
645
|
+
"AddOpenaiApiKeyEnum",
|
551
646
|
"ApiNodeResult",
|
552
647
|
"ApiNodeResultData",
|
553
648
|
"ArrayChatMessageContent",
|
@@ -562,17 +657,27 @@ __all__ = [
|
|
562
657
|
"ArrayChatMessageContentRequest",
|
563
658
|
"ArrayEnum",
|
564
659
|
"ArrayVariableValueItem",
|
565
|
-
"ArrayVariableValueItem_ChatHistory",
|
566
660
|
"ArrayVariableValueItem_Error",
|
567
661
|
"ArrayVariableValueItem_FunctionCall",
|
568
662
|
"ArrayVariableValueItem_Image",
|
569
663
|
"ArrayVariableValueItem_Json",
|
570
664
|
"ArrayVariableValueItem_Number",
|
571
|
-
"ArrayVariableValueItem_SearchResults",
|
572
665
|
"ArrayVariableValueItem_String",
|
666
|
+
"ArrayVellumValueItem",
|
667
|
+
"ArrayVellumValueItem_Error",
|
668
|
+
"ArrayVellumValueItem_FunctionCall",
|
669
|
+
"ArrayVellumValueItem_Image",
|
670
|
+
"ArrayVellumValueItem_Json",
|
671
|
+
"ArrayVellumValueItem_Number",
|
672
|
+
"ArrayVellumValueItem_String",
|
673
|
+
"BasicVectorizerIntfloatMultilingualE5Large",
|
674
|
+
"BasicVectorizerIntfloatMultilingualE5LargeRequest",
|
675
|
+
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1",
|
676
|
+
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request",
|
677
|
+
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
|
678
|
+
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
573
679
|
"ChatHistoryEnum",
|
574
680
|
"ChatHistoryInputRequest",
|
575
|
-
"ChatHistoryVariableValue",
|
576
681
|
"ChatMessage",
|
577
682
|
"ChatMessageContent",
|
578
683
|
"ChatMessageContentRequest",
|
@@ -610,6 +715,16 @@ __all__ = [
|
|
610
715
|
"DeploymentProviderPayloadResponse",
|
611
716
|
"DeploymentRead",
|
612
717
|
"DocumentDocumentToDocumentIndex",
|
718
|
+
"DocumentIndexChunking",
|
719
|
+
"DocumentIndexChunkingRequest",
|
720
|
+
"DocumentIndexChunkingRequest_ReductoChunker",
|
721
|
+
"DocumentIndexChunkingRequest_SentenceChunker",
|
722
|
+
"DocumentIndexChunkingRequest_TokenOverlappingWindowChunker",
|
723
|
+
"DocumentIndexChunking_ReductoChunker",
|
724
|
+
"DocumentIndexChunking_SentenceChunker",
|
725
|
+
"DocumentIndexChunking_TokenOverlappingWindowChunker",
|
726
|
+
"DocumentIndexIndexingConfig",
|
727
|
+
"DocumentIndexIndexingConfigRequest",
|
613
728
|
"DocumentIndexRead",
|
614
729
|
"DocumentRead",
|
615
730
|
"DocumentStatus",
|
@@ -658,8 +773,6 @@ __all__ = [
|
|
658
773
|
"FulfilledExecutePromptEvent",
|
659
774
|
"FulfilledExecutePromptResponse",
|
660
775
|
"FulfilledExecuteWorkflowWorkflowResultEvent",
|
661
|
-
"FulfilledFunctionCall",
|
662
|
-
"FulfilledFunctionCallRequest",
|
663
776
|
"FulfilledPromptExecutionMeta",
|
664
777
|
"FulfilledWorkflowNodeResultEvent",
|
665
778
|
"FunctionCall",
|
@@ -668,10 +781,9 @@ __all__ = [
|
|
668
781
|
"FunctionCallChatMessageContentValue",
|
669
782
|
"FunctionCallChatMessageContentValueRequest",
|
670
783
|
"FunctionCallEnum",
|
784
|
+
"FunctionCallRequest",
|
671
785
|
"FunctionCallVariableValue",
|
672
786
|
"FunctionCallVellumValue",
|
673
|
-
"FunctionCall_Fulfilled",
|
674
|
-
"FunctionCall_Rejected",
|
675
787
|
"GenerateErrorResponse",
|
676
788
|
"GenerateOptionsRequest",
|
677
789
|
"GenerateRequest",
|
@@ -682,24 +794,51 @@ __all__ = [
|
|
682
794
|
"GenerateStreamResponse",
|
683
795
|
"GenerateStreamResult",
|
684
796
|
"GenerateStreamResultData",
|
797
|
+
"HkunlpInstructorXlEnum",
|
798
|
+
"HkunlpInstructorXlVectorizer",
|
799
|
+
"HkunlpInstructorXlVectorizerRequest",
|
685
800
|
"ImageChatMessageContent",
|
686
801
|
"ImageChatMessageContentRequest",
|
687
802
|
"ImageEnum",
|
688
803
|
"ImageVariableValue",
|
804
|
+
"ImageVellumValue",
|
805
|
+
"IndexingConfigVectorizer",
|
806
|
+
"IndexingConfigVectorizerRequest",
|
807
|
+
"IndexingConfigVectorizerRequest_HkunlpInstructorXl",
|
808
|
+
"IndexingConfigVectorizerRequest_IntfloatMultilingualE5Large",
|
809
|
+
"IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseCosV1",
|
810
|
+
"IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseDotV1",
|
811
|
+
"IndexingConfigVectorizerRequest_TextEmbedding3Large",
|
812
|
+
"IndexingConfigVectorizerRequest_TextEmbedding3Small",
|
813
|
+
"IndexingConfigVectorizerRequest_TextEmbeddingAda002",
|
814
|
+
"IndexingConfigVectorizer_HkunlpInstructorXl",
|
815
|
+
"IndexingConfigVectorizer_IntfloatMultilingualE5Large",
|
816
|
+
"IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseCosV1",
|
817
|
+
"IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseDotV1",
|
818
|
+
"IndexingConfigVectorizer_TextEmbedding3Large",
|
819
|
+
"IndexingConfigVectorizer_TextEmbedding3Small",
|
820
|
+
"IndexingConfigVectorizer_TextEmbeddingAda002",
|
689
821
|
"IndexingStateEnum",
|
690
822
|
"InitiatedEnum",
|
691
823
|
"InitiatedExecutePromptEvent",
|
692
824
|
"InitiatedPromptExecutionMeta",
|
693
825
|
"InitiatedWorkflowNodeResultEvent",
|
826
|
+
"InstructorVectorizerConfig",
|
827
|
+
"InstructorVectorizerConfigRequest",
|
828
|
+
"IntfloatMultilingualE5LargeEnum",
|
694
829
|
"JsonEnum",
|
695
830
|
"JsonInputRequest",
|
696
831
|
"JsonVariableValue",
|
697
832
|
"JsonVellumValue",
|
698
833
|
"LogicalOperator",
|
699
834
|
"LogprobsEnum",
|
835
|
+
"MergeEnum",
|
836
|
+
"MergeNodeResult",
|
700
837
|
"MetadataFilterConfigRequest",
|
701
838
|
"MetadataFilterRuleCombinator",
|
702
839
|
"MetadataFilterRuleRequest",
|
840
|
+
"MetricEnum",
|
841
|
+
"MetricNodeResult",
|
703
842
|
"MlModelUsage",
|
704
843
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
705
844
|
"NamedScenarioInputRequest",
|
@@ -774,6 +913,15 @@ __all__ = [
|
|
774
913
|
"NormalizedTokenLogProbs",
|
775
914
|
"NumberEnum",
|
776
915
|
"NumberVariableValue",
|
916
|
+
"NumberVellumValue",
|
917
|
+
"OpenAiVectorizerConfig",
|
918
|
+
"OpenAiVectorizerConfigRequest",
|
919
|
+
"OpenAiVectorizerTextEmbedding3Large",
|
920
|
+
"OpenAiVectorizerTextEmbedding3LargeRequest",
|
921
|
+
"OpenAiVectorizerTextEmbedding3Small",
|
922
|
+
"OpenAiVectorizerTextEmbedding3SmallRequest",
|
923
|
+
"OpenAiVectorizerTextEmbeddingAda002",
|
924
|
+
"OpenAiVectorizerTextEmbeddingAda002Request",
|
777
925
|
"PaginatedDocumentIndexReadList",
|
778
926
|
"PaginatedSlimDeploymentReadList",
|
779
927
|
"PaginatedSlimDocumentList",
|
@@ -796,11 +944,15 @@ __all__ = [
|
|
796
944
|
"PromptOutput_Json",
|
797
945
|
"PromptOutput_String",
|
798
946
|
"RawPromptExecutionOverridesRequest",
|
947
|
+
"ReductoChunkerConfig",
|
948
|
+
"ReductoChunkerConfigRequest",
|
949
|
+
"ReductoChunkerEnum",
|
950
|
+
"ReductoChunking",
|
951
|
+
"ReductoChunkingRequest",
|
799
952
|
"RejectedEnum",
|
800
953
|
"RejectedExecutePromptEvent",
|
801
954
|
"RejectedExecutePromptResponse",
|
802
955
|
"RejectedExecuteWorkflowWorkflowResultEvent",
|
803
|
-
"RejectedFunctionCall",
|
804
956
|
"RejectedPromptExecutionMeta",
|
805
957
|
"RejectedWorkflowNodeResultEvent",
|
806
958
|
"SandboxScenario",
|
@@ -821,8 +973,14 @@ __all__ = [
|
|
821
973
|
"SearchResultMergingRequest",
|
822
974
|
"SearchResultRequest",
|
823
975
|
"SearchResultsEnum",
|
824
|
-
"SearchResultsVariableValue",
|
825
976
|
"SearchWeightsRequest",
|
977
|
+
"SentenceChunkerConfig",
|
978
|
+
"SentenceChunkerConfigRequest",
|
979
|
+
"SentenceChunkerEnum",
|
980
|
+
"SentenceChunking",
|
981
|
+
"SentenceChunkingRequest",
|
982
|
+
"SentenceTransformersMultiQaMpnetBaseCosV1Enum",
|
983
|
+
"SentenceTransformersMultiQaMpnetBaseDotV1Enum",
|
826
984
|
"SlimDeploymentRead",
|
827
985
|
"SlimDocument",
|
828
986
|
"SlimWorkflowDeployment",
|
@@ -952,6 +1110,14 @@ __all__ = [
|
|
952
1110
|
"TestSuiteRunWorkflowReleaseTagExecConfigRequest",
|
953
1111
|
"TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum",
|
954
1112
|
"TestSuiteTestCase",
|
1113
|
+
"TextEmbedding3LargeEnum",
|
1114
|
+
"TextEmbedding3SmallEnum",
|
1115
|
+
"TextEmbeddingAda002Enum",
|
1116
|
+
"TokenOverlappingWindowChunkerConfig",
|
1117
|
+
"TokenOverlappingWindowChunkerConfigRequest",
|
1118
|
+
"TokenOverlappingWindowChunkerEnum",
|
1119
|
+
"TokenOverlappingWindowChunking",
|
1120
|
+
"TokenOverlappingWindowChunkingRequest",
|
955
1121
|
"UploadDocumentErrorResponse",
|
956
1122
|
"UploadDocumentResponse",
|
957
1123
|
"VellumError",
|
@@ -974,6 +1140,8 @@ __all__ = [
|
|
974
1140
|
"WorkflowNodeResultData_Api",
|
975
1141
|
"WorkflowNodeResultData_CodeExecution",
|
976
1142
|
"WorkflowNodeResultData_Conditional",
|
1143
|
+
"WorkflowNodeResultData_Merge",
|
1144
|
+
"WorkflowNodeResultData_Metric",
|
977
1145
|
"WorkflowNodeResultData_Prompt",
|
978
1146
|
"WorkflowNodeResultData_Search",
|
979
1147
|
"WorkflowNodeResultData_Subworkflow",
|
@@ -4,13 +4,11 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
from .chat_history_variable_value import ChatHistoryVariableValue
|
8
7
|
from .error_variable_value import ErrorVariableValue
|
9
8
|
from .function_call_variable_value import FunctionCallVariableValue
|
10
9
|
from .image_variable_value import ImageVariableValue
|
11
10
|
from .json_variable_value import JsonVariableValue
|
12
11
|
from .number_variable_value import NumberVariableValue
|
13
|
-
from .search_results_variable_value import SearchResultsVariableValue
|
14
12
|
from .string_variable_value import StringVariableValue
|
15
13
|
|
16
14
|
|
@@ -44,26 +42,6 @@ class ArrayVariableValueItem_Json(JsonVariableValue):
|
|
44
42
|
populate_by_name = True
|
45
43
|
|
46
44
|
|
47
|
-
class ArrayVariableValueItem_ChatHistory(ChatHistoryVariableValue):
|
48
|
-
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
49
|
-
|
50
|
-
class Config:
|
51
|
-
frozen = True
|
52
|
-
smart_union = True
|
53
|
-
allow_population_by_field_name = True
|
54
|
-
populate_by_name = True
|
55
|
-
|
56
|
-
|
57
|
-
class ArrayVariableValueItem_SearchResults(SearchResultsVariableValue):
|
58
|
-
type: typing.Literal["SEARCH_RESULTS"] = "SEARCH_RESULTS"
|
59
|
-
|
60
|
-
class Config:
|
61
|
-
frozen = True
|
62
|
-
smart_union = True
|
63
|
-
allow_population_by_field_name = True
|
64
|
-
populate_by_name = True
|
65
|
-
|
66
|
-
|
67
45
|
class ArrayVariableValueItem_Error(ErrorVariableValue):
|
68
46
|
type: typing.Literal["ERROR"] = "ERROR"
|
69
47
|
|
@@ -98,8 +76,6 @@ ArrayVariableValueItem = typing.Union[
|
|
98
76
|
ArrayVariableValueItem_String,
|
99
77
|
ArrayVariableValueItem_Number,
|
100
78
|
ArrayVariableValueItem_Json,
|
101
|
-
ArrayVariableValueItem_ChatHistory,
|
102
|
-
ArrayVariableValueItem_SearchResults,
|
103
79
|
ArrayVariableValueItem_Error,
|
104
80
|
ArrayVariableValueItem_FunctionCall,
|
105
81
|
ArrayVariableValueItem_Image,
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
import typing
|
6
|
+
|
7
|
+
from .error_vellum_value import ErrorVellumValue
|
8
|
+
from .function_call_vellum_value import FunctionCallVellumValue
|
9
|
+
from .image_vellum_value import ImageVellumValue
|
10
|
+
from .json_vellum_value import JsonVellumValue
|
11
|
+
from .number_vellum_value import NumberVellumValue
|
12
|
+
from .string_vellum_value import StringVellumValue
|
13
|
+
|
14
|
+
|
15
|
+
class ArrayVellumValueItem_String(StringVellumValue):
|
16
|
+
type: typing.Literal["STRING"] = "STRING"
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
allow_population_by_field_name = True
|
22
|
+
populate_by_name = True
|
23
|
+
|
24
|
+
|
25
|
+
class ArrayVellumValueItem_Number(NumberVellumValue):
|
26
|
+
type: typing.Literal["NUMBER"] = "NUMBER"
|
27
|
+
|
28
|
+
class Config:
|
29
|
+
frozen = True
|
30
|
+
smart_union = True
|
31
|
+
allow_population_by_field_name = True
|
32
|
+
populate_by_name = True
|
33
|
+
|
34
|
+
|
35
|
+
class ArrayVellumValueItem_Json(JsonVellumValue):
|
36
|
+
type: typing.Literal["JSON"] = "JSON"
|
37
|
+
|
38
|
+
class Config:
|
39
|
+
frozen = True
|
40
|
+
smart_union = True
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
populate_by_name = True
|
43
|
+
|
44
|
+
|
45
|
+
class ArrayVellumValueItem_Image(ImageVellumValue):
|
46
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
47
|
+
|
48
|
+
class Config:
|
49
|
+
frozen = True
|
50
|
+
smart_union = True
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
populate_by_name = True
|
53
|
+
|
54
|
+
|
55
|
+
class ArrayVellumValueItem_FunctionCall(FunctionCallVellumValue):
|
56
|
+
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
57
|
+
|
58
|
+
class Config:
|
59
|
+
frozen = True
|
60
|
+
smart_union = True
|
61
|
+
allow_population_by_field_name = True
|
62
|
+
populate_by_name = True
|
63
|
+
|
64
|
+
|
65
|
+
class ArrayVellumValueItem_Error(ErrorVellumValue):
|
66
|
+
type: typing.Literal["ERROR"] = "ERROR"
|
67
|
+
|
68
|
+
class Config:
|
69
|
+
frozen = True
|
70
|
+
smart_union = True
|
71
|
+
allow_population_by_field_name = True
|
72
|
+
populate_by_name = True
|
73
|
+
|
74
|
+
|
75
|
+
ArrayVellumValueItem = typing.Union[
|
76
|
+
ArrayVellumValueItem_String,
|
77
|
+
ArrayVellumValueItem_Number,
|
78
|
+
ArrayVellumValueItem_Json,
|
79
|
+
ArrayVellumValueItem_Image,
|
80
|
+
ArrayVellumValueItem_FunctionCall,
|
81
|
+
ArrayVellumValueItem_Error,
|
82
|
+
]
|
vellum/types/{rejected_function_call.py → basic_vectorizer_intfloat_multilingual_e_5_large.py}
RENAMED
@@ -5,17 +5,14 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .vellum_error import VellumError
|
9
8
|
|
10
9
|
|
11
|
-
class
|
10
|
+
class BasicVectorizerIntfloatMultilingualE5Large(pydantic_v1.BaseModel):
|
12
11
|
"""
|
13
|
-
|
12
|
+
Basic vectorizer for intfloat/multilingual-e5-large.
|
14
13
|
"""
|
15
14
|
|
16
|
-
|
17
|
-
id: typing.Optional[str] = None
|
18
|
-
name: str
|
15
|
+
config: typing.Optional[typing.Dict[str, typing.Any]] = None
|
19
16
|
|
20
17
|
def json(self, **kwargs: typing.Any) -> str:
|
21
18
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class BasicVectorizerIntfloatMultilingualE5LargeRequest(pydantic_v1.BaseModel):
|
11
|
+
"""
|
12
|
+
Basic vectorizer for intfloat/multilingual-e5-large.
|
13
|
+
"""
|
14
|
+
|
15
|
+
config: typing.Optional[typing.Dict[str, typing.Any]] = None
|
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
|
+
extra = pydantic_v1.Extra.allow
|
29
|
+
json_encoders = {dt.datetime: serialize_datetime}
|