vellum-ai 0.5.2__py3-none-any.whl → 0.6.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. vellum/__init__.py +160 -18
  2. vellum/core/client_wrapper.py +1 -1
  3. vellum/resources/document_indexes/client.py +61 -52
  4. vellum/resources/documents/client.py +8 -4
  5. vellum/types/__init__.py +179 -17
  6. vellum/types/add_openai_api_key_enum.py +3 -0
  7. vellum/types/array_variable_value_item.py +0 -24
  8. vellum/types/array_vellum_value_item.py +82 -0
  9. vellum/types/{rejected_function_call.py → basic_vectorizer_intfloat_multilingual_e_5_large.py} +3 -6
  10. vellum/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +29 -0
  11. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +29 -0
  12. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +29 -0
  13. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +29 -0
  14. vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +29 -0
  15. vellum/types/document_index_chunking.py +46 -0
  16. vellum/types/document_index_chunking_request.py +46 -0
  17. vellum/types/document_index_indexing_config.py +28 -0
  18. vellum/types/document_index_indexing_config_request.py +28 -0
  19. vellum/types/document_index_read.py +2 -4
  20. vellum/types/function_call.py +20 -18
  21. vellum/types/{fulfilled_function_call_request.py → function_call_request.py} +2 -2
  22. vellum/types/function_call_vellum_value.py +1 -1
  23. vellum/types/hkunlp_instructor_xl_enum.py +5 -0
  24. vellum/types/hkunlp_instructor_xl_vectorizer.py +30 -0
  25. vellum/types/hkunlp_instructor_xl_vectorizer_request.py +30 -0
  26. vellum/types/{fulfilled_function_call.py → image_vellum_value.py} +4 -5
  27. vellum/types/indexing_config_vectorizer.py +106 -0
  28. vellum/types/indexing_config_vectorizer_request.py +106 -0
  29. vellum/types/instructor_vectorizer_config.py +31 -0
  30. vellum/types/instructor_vectorizer_config_request.py +31 -0
  31. vellum/types/intfloat_multilingual_e_5_large_enum.py +5 -0
  32. vellum/types/metric_enum.py +5 -0
  33. vellum/types/{chat_history_variable_value.py → metric_node_result.py} +4 -3
  34. vellum/types/named_test_case_function_call_variable_value.py +2 -2
  35. vellum/types/named_test_case_function_call_variable_value_request.py +2 -2
  36. vellum/types/node_output_compiled_array_value.py +2 -2
  37. vellum/types/{search_results_variable_value.py → number_vellum_value.py} +6 -3
  38. vellum/types/open_ai_vectorizer_config.py +30 -0
  39. vellum/types/open_ai_vectorizer_config_request.py +30 -0
  40. vellum/types/open_ai_vectorizer_text_embedding_3_large.py +30 -0
  41. vellum/types/open_ai_vectorizer_text_embedding_3_large_request.py +30 -0
  42. vellum/types/open_ai_vectorizer_text_embedding_3_small.py +30 -0
  43. vellum/types/open_ai_vectorizer_text_embedding_3_small_request.py +30 -0
  44. vellum/types/open_ai_vectorizer_text_embedding_ada_002.py +30 -0
  45. vellum/types/open_ai_vectorizer_text_embedding_ada_002_request.py +30 -0
  46. vellum/types/reducto_chunker_config.py +29 -0
  47. vellum/types/reducto_chunker_config_request.py +29 -0
  48. vellum/types/reducto_chunker_enum.py +5 -0
  49. vellum/types/reducto_chunking.py +30 -0
  50. vellum/types/reducto_chunking_request.py +30 -0
  51. vellum/types/sentence_chunker_config.py +30 -0
  52. vellum/types/sentence_chunker_config_request.py +30 -0
  53. vellum/types/sentence_chunker_enum.py +5 -0
  54. vellum/types/sentence_chunking.py +30 -0
  55. vellum/types/sentence_chunking_request.py +30 -0
  56. vellum/types/sentence_transformers_multi_qa_mpnet_base_cos_v_1_enum.py +5 -0
  57. vellum/types/sentence_transformers_multi_qa_mpnet_base_dot_v_1_enum.py +5 -0
  58. vellum/types/test_case_function_call_variable_value.py +2 -2
  59. vellum/types/test_suite_run_execution_function_call_output.py +2 -2
  60. vellum/types/text_embedding_3_large_enum.py +5 -0
  61. vellum/types/text_embedding_3_small_enum.py +5 -0
  62. vellum/types/text_embedding_ada_002_enum.py +5 -0
  63. vellum/types/token_overlapping_window_chunker_config.py +30 -0
  64. vellum/types/token_overlapping_window_chunker_config_request.py +30 -0
  65. vellum/types/token_overlapping_window_chunker_enum.py +5 -0
  66. vellum/types/token_overlapping_window_chunking.py +30 -0
  67. vellum/types/token_overlapping_window_chunking_request.py +30 -0
  68. vellum/types/workflow_execution_actual_chat_history_request.py +5 -0
  69. vellum/types/workflow_execution_actual_json_request.py +5 -0
  70. vellum/types/workflow_execution_actual_string_request.py +5 -0
  71. vellum/types/workflow_node_result_data.py +12 -0
  72. vellum/types/workflow_output_array.py +2 -2
  73. {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.0.dist-info}/METADATA +1 -1
  74. {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.0.dist-info}/RECORD +76 -28
  75. {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.0.dist-info}/LICENSE +0 -0
  76. {vellum_ai-0.5.2.dist-info → vellum_ai-0.6.0.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 via its Vellum-generated ID.
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 via its Vellum-generated ID.
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, FunctionCall_Fulfilled, FunctionCall_Rejected
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,15 +186,42 @@ 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
@@ -170,6 +231,8 @@ from .logprobs_enum import LogprobsEnum
170
231
  from .metadata_filter_config_request import MetadataFilterConfigRequest
171
232
  from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
172
233
  from .metadata_filter_rule_request import MetadataFilterRuleRequest
234
+ from .metric_enum import MetricEnum
235
+ from .metric_node_result import MetricNodeResult
173
236
  from .ml_model_usage import MlModelUsage
174
237
  from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
175
238
  from .named_scenario_input_request import (
@@ -254,6 +317,15 @@ from .normalized_log_probs import NormalizedLogProbs
254
317
  from .normalized_token_log_probs import NormalizedTokenLogProbs
255
318
  from .number_enum import NumberEnum
256
319
  from .number_variable_value import NumberVariableValue
320
+ from .number_vellum_value import NumberVellumValue
321
+ from .open_ai_vectorizer_config import OpenAiVectorizerConfig
322
+ from .open_ai_vectorizer_config_request import OpenAiVectorizerConfigRequest
323
+ from .open_ai_vectorizer_text_embedding_3_large import OpenAiVectorizerTextEmbedding3Large
324
+ from .open_ai_vectorizer_text_embedding_3_large_request import OpenAiVectorizerTextEmbedding3LargeRequest
325
+ from .open_ai_vectorizer_text_embedding_3_small import OpenAiVectorizerTextEmbedding3Small
326
+ from .open_ai_vectorizer_text_embedding_3_small_request import OpenAiVectorizerTextEmbedding3SmallRequest
327
+ from .open_ai_vectorizer_text_embedding_ada_002 import OpenAiVectorizerTextEmbeddingAda002
328
+ from .open_ai_vectorizer_text_embedding_ada_002_request import OpenAiVectorizerTextEmbeddingAda002Request
257
329
  from .paginated_document_index_read_list import PaginatedDocumentIndexReadList
258
330
  from .paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
259
331
  from .paginated_slim_document_list import PaginatedSlimDocumentList
@@ -280,11 +352,15 @@ from .prompt_output import (
280
352
  PromptOutput_String,
281
353
  )
282
354
  from .raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
355
+ from .reducto_chunker_config import ReductoChunkerConfig
356
+ from .reducto_chunker_config_request import ReductoChunkerConfigRequest
357
+ from .reducto_chunker_enum import ReductoChunkerEnum
358
+ from .reducto_chunking import ReductoChunking
359
+ from .reducto_chunking_request import ReductoChunkingRequest
283
360
  from .rejected_enum import RejectedEnum
284
361
  from .rejected_execute_prompt_event import RejectedExecutePromptEvent
285
362
  from .rejected_execute_prompt_response import RejectedExecutePromptResponse
286
363
  from .rejected_execute_workflow_workflow_result_event import RejectedExecuteWorkflowWorkflowResultEvent
287
- from .rejected_function_call import RejectedFunctionCall
288
364
  from .rejected_prompt_execution_meta import RejectedPromptExecutionMeta
289
365
  from .rejected_workflow_node_result_event import RejectedWorkflowNodeResultEvent
290
366
  from .sandbox_scenario import SandboxScenario
@@ -303,8 +379,14 @@ from .search_result_document_request import SearchResultDocumentRequest
303
379
  from .search_result_merging_request import SearchResultMergingRequest
304
380
  from .search_result_request import SearchResultRequest
305
381
  from .search_results_enum import SearchResultsEnum
306
- from .search_results_variable_value import SearchResultsVariableValue
307
382
  from .search_weights_request import SearchWeightsRequest
383
+ from .sentence_chunker_config import SentenceChunkerConfig
384
+ from .sentence_chunker_config_request import SentenceChunkerConfigRequest
385
+ from .sentence_chunker_enum import SentenceChunkerEnum
386
+ from .sentence_chunking import SentenceChunking
387
+ from .sentence_chunking_request import SentenceChunkingRequest
388
+ from .sentence_transformers_multi_qa_mpnet_base_cos_v_1_enum import SentenceTransformersMultiQaMpnetBaseCosV1Enum
389
+ from .sentence_transformers_multi_qa_mpnet_base_dot_v_1_enum import SentenceTransformersMultiQaMpnetBaseDotV1Enum
308
390
  from .slim_deployment_read import SlimDeploymentRead
309
391
  from .slim_document import SlimDocument
310
392
  from .slim_workflow_deployment import SlimWorkflowDeployment
@@ -456,6 +538,14 @@ from .test_suite_run_workflow_release_tag_exec_config_data_request import (
456
538
  from .test_suite_run_workflow_release_tag_exec_config_request import TestSuiteRunWorkflowReleaseTagExecConfigRequest
457
539
  from .test_suite_run_workflow_release_tag_exec_config_type_enum import TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum
458
540
  from .test_suite_test_case import TestSuiteTestCase
541
+ from .text_embedding_3_large_enum import TextEmbedding3LargeEnum
542
+ from .text_embedding_3_small_enum import TextEmbedding3SmallEnum
543
+ from .text_embedding_ada_002_enum import TextEmbeddingAda002Enum
544
+ from .token_overlapping_window_chunker_config import TokenOverlappingWindowChunkerConfig
545
+ from .token_overlapping_window_chunker_config_request import TokenOverlappingWindowChunkerConfigRequest
546
+ from .token_overlapping_window_chunker_enum import TokenOverlappingWindowChunkerEnum
547
+ from .token_overlapping_window_chunking import TokenOverlappingWindowChunking
548
+ from .token_overlapping_window_chunking_request import TokenOverlappingWindowChunkingRequest
459
549
  from .upload_document_error_response import UploadDocumentErrorResponse
460
550
  from .upload_document_response import UploadDocumentResponse
461
551
  from .vellum_error import VellumError
@@ -479,6 +569,7 @@ from .workflow_node_result_data import (
479
569
  WorkflowNodeResultData_Api,
480
570
  WorkflowNodeResultData_CodeExecution,
481
571
  WorkflowNodeResultData_Conditional,
572
+ WorkflowNodeResultData_Metric,
482
573
  WorkflowNodeResultData_Prompt,
483
574
  WorkflowNodeResultData_Search,
484
575
  WorkflowNodeResultData_Subworkflow,
@@ -548,6 +639,7 @@ from .workflow_result_event_output_data_string import WorkflowResultEventOutputD
548
639
  from .workflow_stream_event import WorkflowStreamEvent, WorkflowStreamEvent_Node, WorkflowStreamEvent_Workflow
549
640
 
550
641
  __all__ = [
642
+ "AddOpenaiApiKeyEnum",
551
643
  "ApiNodeResult",
552
644
  "ApiNodeResultData",
553
645
  "ArrayChatMessageContent",
@@ -562,17 +654,27 @@ __all__ = [
562
654
  "ArrayChatMessageContentRequest",
563
655
  "ArrayEnum",
564
656
  "ArrayVariableValueItem",
565
- "ArrayVariableValueItem_ChatHistory",
566
657
  "ArrayVariableValueItem_Error",
567
658
  "ArrayVariableValueItem_FunctionCall",
568
659
  "ArrayVariableValueItem_Image",
569
660
  "ArrayVariableValueItem_Json",
570
661
  "ArrayVariableValueItem_Number",
571
- "ArrayVariableValueItem_SearchResults",
572
662
  "ArrayVariableValueItem_String",
663
+ "ArrayVellumValueItem",
664
+ "ArrayVellumValueItem_Error",
665
+ "ArrayVellumValueItem_FunctionCall",
666
+ "ArrayVellumValueItem_Image",
667
+ "ArrayVellumValueItem_Json",
668
+ "ArrayVellumValueItem_Number",
669
+ "ArrayVellumValueItem_String",
670
+ "BasicVectorizerIntfloatMultilingualE5Large",
671
+ "BasicVectorizerIntfloatMultilingualE5LargeRequest",
672
+ "BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1",
673
+ "BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request",
674
+ "BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
675
+ "BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
573
676
  "ChatHistoryEnum",
574
677
  "ChatHistoryInputRequest",
575
- "ChatHistoryVariableValue",
576
678
  "ChatMessage",
577
679
  "ChatMessageContent",
578
680
  "ChatMessageContentRequest",
@@ -610,6 +712,16 @@ __all__ = [
610
712
  "DeploymentProviderPayloadResponse",
611
713
  "DeploymentRead",
612
714
  "DocumentDocumentToDocumentIndex",
715
+ "DocumentIndexChunking",
716
+ "DocumentIndexChunkingRequest",
717
+ "DocumentIndexChunkingRequest_ReductoChunker",
718
+ "DocumentIndexChunkingRequest_SentenceChunker",
719
+ "DocumentIndexChunkingRequest_TokenOverlappingWindowChunker",
720
+ "DocumentIndexChunking_ReductoChunker",
721
+ "DocumentIndexChunking_SentenceChunker",
722
+ "DocumentIndexChunking_TokenOverlappingWindowChunker",
723
+ "DocumentIndexIndexingConfig",
724
+ "DocumentIndexIndexingConfigRequest",
613
725
  "DocumentIndexRead",
614
726
  "DocumentRead",
615
727
  "DocumentStatus",
@@ -658,8 +770,6 @@ __all__ = [
658
770
  "FulfilledExecutePromptEvent",
659
771
  "FulfilledExecutePromptResponse",
660
772
  "FulfilledExecuteWorkflowWorkflowResultEvent",
661
- "FulfilledFunctionCall",
662
- "FulfilledFunctionCallRequest",
663
773
  "FulfilledPromptExecutionMeta",
664
774
  "FulfilledWorkflowNodeResultEvent",
665
775
  "FunctionCall",
@@ -668,10 +778,9 @@ __all__ = [
668
778
  "FunctionCallChatMessageContentValue",
669
779
  "FunctionCallChatMessageContentValueRequest",
670
780
  "FunctionCallEnum",
781
+ "FunctionCallRequest",
671
782
  "FunctionCallVariableValue",
672
783
  "FunctionCallVellumValue",
673
- "FunctionCall_Fulfilled",
674
- "FunctionCall_Rejected",
675
784
  "GenerateErrorResponse",
676
785
  "GenerateOptionsRequest",
677
786
  "GenerateRequest",
@@ -682,15 +791,38 @@ __all__ = [
682
791
  "GenerateStreamResponse",
683
792
  "GenerateStreamResult",
684
793
  "GenerateStreamResultData",
794
+ "HkunlpInstructorXlEnum",
795
+ "HkunlpInstructorXlVectorizer",
796
+ "HkunlpInstructorXlVectorizerRequest",
685
797
  "ImageChatMessageContent",
686
798
  "ImageChatMessageContentRequest",
687
799
  "ImageEnum",
688
800
  "ImageVariableValue",
801
+ "ImageVellumValue",
802
+ "IndexingConfigVectorizer",
803
+ "IndexingConfigVectorizerRequest",
804
+ "IndexingConfigVectorizerRequest_HkunlpInstructorXl",
805
+ "IndexingConfigVectorizerRequest_IntfloatMultilingualE5Large",
806
+ "IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseCosV1",
807
+ "IndexingConfigVectorizerRequest_SentenceTransformersMultiQaMpnetBaseDotV1",
808
+ "IndexingConfigVectorizerRequest_TextEmbedding3Large",
809
+ "IndexingConfigVectorizerRequest_TextEmbedding3Small",
810
+ "IndexingConfigVectorizerRequest_TextEmbeddingAda002",
811
+ "IndexingConfigVectorizer_HkunlpInstructorXl",
812
+ "IndexingConfigVectorizer_IntfloatMultilingualE5Large",
813
+ "IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseCosV1",
814
+ "IndexingConfigVectorizer_SentenceTransformersMultiQaMpnetBaseDotV1",
815
+ "IndexingConfigVectorizer_TextEmbedding3Large",
816
+ "IndexingConfigVectorizer_TextEmbedding3Small",
817
+ "IndexingConfigVectorizer_TextEmbeddingAda002",
689
818
  "IndexingStateEnum",
690
819
  "InitiatedEnum",
691
820
  "InitiatedExecutePromptEvent",
692
821
  "InitiatedPromptExecutionMeta",
693
822
  "InitiatedWorkflowNodeResultEvent",
823
+ "InstructorVectorizerConfig",
824
+ "InstructorVectorizerConfigRequest",
825
+ "IntfloatMultilingualE5LargeEnum",
694
826
  "JsonEnum",
695
827
  "JsonInputRequest",
696
828
  "JsonVariableValue",
@@ -700,6 +832,8 @@ __all__ = [
700
832
  "MetadataFilterConfigRequest",
701
833
  "MetadataFilterRuleCombinator",
702
834
  "MetadataFilterRuleRequest",
835
+ "MetricEnum",
836
+ "MetricNodeResult",
703
837
  "MlModelUsage",
704
838
  "NamedScenarioInputChatHistoryVariableValueRequest",
705
839
  "NamedScenarioInputRequest",
@@ -774,6 +908,15 @@ __all__ = [
774
908
  "NormalizedTokenLogProbs",
775
909
  "NumberEnum",
776
910
  "NumberVariableValue",
911
+ "NumberVellumValue",
912
+ "OpenAiVectorizerConfig",
913
+ "OpenAiVectorizerConfigRequest",
914
+ "OpenAiVectorizerTextEmbedding3Large",
915
+ "OpenAiVectorizerTextEmbedding3LargeRequest",
916
+ "OpenAiVectorizerTextEmbedding3Small",
917
+ "OpenAiVectorizerTextEmbedding3SmallRequest",
918
+ "OpenAiVectorizerTextEmbeddingAda002",
919
+ "OpenAiVectorizerTextEmbeddingAda002Request",
777
920
  "PaginatedDocumentIndexReadList",
778
921
  "PaginatedSlimDeploymentReadList",
779
922
  "PaginatedSlimDocumentList",
@@ -796,11 +939,15 @@ __all__ = [
796
939
  "PromptOutput_Json",
797
940
  "PromptOutput_String",
798
941
  "RawPromptExecutionOverridesRequest",
942
+ "ReductoChunkerConfig",
943
+ "ReductoChunkerConfigRequest",
944
+ "ReductoChunkerEnum",
945
+ "ReductoChunking",
946
+ "ReductoChunkingRequest",
799
947
  "RejectedEnum",
800
948
  "RejectedExecutePromptEvent",
801
949
  "RejectedExecutePromptResponse",
802
950
  "RejectedExecuteWorkflowWorkflowResultEvent",
803
- "RejectedFunctionCall",
804
951
  "RejectedPromptExecutionMeta",
805
952
  "RejectedWorkflowNodeResultEvent",
806
953
  "SandboxScenario",
@@ -821,8 +968,14 @@ __all__ = [
821
968
  "SearchResultMergingRequest",
822
969
  "SearchResultRequest",
823
970
  "SearchResultsEnum",
824
- "SearchResultsVariableValue",
825
971
  "SearchWeightsRequest",
972
+ "SentenceChunkerConfig",
973
+ "SentenceChunkerConfigRequest",
974
+ "SentenceChunkerEnum",
975
+ "SentenceChunking",
976
+ "SentenceChunkingRequest",
977
+ "SentenceTransformersMultiQaMpnetBaseCosV1Enum",
978
+ "SentenceTransformersMultiQaMpnetBaseDotV1Enum",
826
979
  "SlimDeploymentRead",
827
980
  "SlimDocument",
828
981
  "SlimWorkflowDeployment",
@@ -952,6 +1105,14 @@ __all__ = [
952
1105
  "TestSuiteRunWorkflowReleaseTagExecConfigRequest",
953
1106
  "TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum",
954
1107
  "TestSuiteTestCase",
1108
+ "TextEmbedding3LargeEnum",
1109
+ "TextEmbedding3SmallEnum",
1110
+ "TextEmbeddingAda002Enum",
1111
+ "TokenOverlappingWindowChunkerConfig",
1112
+ "TokenOverlappingWindowChunkerConfigRequest",
1113
+ "TokenOverlappingWindowChunkerEnum",
1114
+ "TokenOverlappingWindowChunking",
1115
+ "TokenOverlappingWindowChunkingRequest",
955
1116
  "UploadDocumentErrorResponse",
956
1117
  "UploadDocumentResponse",
957
1118
  "VellumError",
@@ -974,6 +1135,7 @@ __all__ = [
974
1135
  "WorkflowNodeResultData_Api",
975
1136
  "WorkflowNodeResultData_CodeExecution",
976
1137
  "WorkflowNodeResultData_Conditional",
1138
+ "WorkflowNodeResultData_Metric",
977
1139
  "WorkflowNodeResultData_Prompt",
978
1140
  "WorkflowNodeResultData_Search",
979
1141
  "WorkflowNodeResultData_Subworkflow",
@@ -0,0 +1,3 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ AddOpenaiApiKeyEnum = bool
@@ -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
+ ]
@@ -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 RejectedFunctionCall(pydantic_v1.BaseModel):
10
+ class BasicVectorizerIntfloatMultilingualE5Large(pydantic_v1.BaseModel):
12
11
  """
13
- Returned if the function call failed to parse for some reason.
12
+ Basic vectorizer for intfloat/multilingual-e5-large.
14
13
  """
15
14
 
16
- error: VellumError
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}
@@ -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 BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1(pydantic_v1.BaseModel):
11
+ """
12
+ Basic vectorizer for sentence-transformers/multi-qa-mpnet-base-cos-v1.
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}