vellum-ai 0.8.4__py3-none-any.whl → 0.8.6__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. vellum/__init__.py +64 -104
  2. vellum/client.py +17 -17
  3. vellum/core/client_wrapper.py +1 -1
  4. vellum/resources/__init__.py +2 -2
  5. vellum/resources/ad_hoc/client.py +372 -0
  6. vellum/types/__init__.py +62 -102
  7. vellum/types/ad_hoc_execute_prompt_event.py +14 -0
  8. vellum/types/ad_hoc_expand_meta_request.py +33 -0
  9. vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py +27 -0
  10. vellum/types/{open_api_const_property_request.py → ad_hoc_initiated_prompt_execution_meta.py} +4 -6
  11. vellum/types/{open_api_boolean_property_request.py → ad_hoc_rejected_prompt_execution_meta.py} +5 -6
  12. vellum/types/{tik_token_tokenizer_config_request.py → ad_hoc_streaming_prompt_execution_meta.py} +3 -4
  13. vellum/types/{open_api_one_of_property.py → chat_message_prompt_block_properties_request.py} +10 -9
  14. vellum/types/chat_message_prompt_block_request.py +36 -0
  15. vellum/types/{ml_model_developer_enum_value_label.py → ephemeral_prompt_cache_config_request.py} +4 -5
  16. vellum/types/ephemeral_prompt_cache_config_type_enum.py +5 -0
  17. vellum/types/fulfilled_ad_hoc_execute_prompt_event.py +28 -0
  18. vellum/types/function_definition_prompt_block_properties_request.py +42 -0
  19. vellum/types/function_definition_prompt_block_request.py +30 -0
  20. vellum/types/generate_response.py +3 -20
  21. vellum/types/{hugging_face_tokenizer_config.py → initiated_ad_hoc_execute_prompt_event.py} +6 -5
  22. vellum/types/{ml_model_display_tag_enum_value_label.py → jinja_prompt_block_properties_request.py} +5 -5
  23. vellum/types/jinja_prompt_block_request.py +30 -0
  24. vellum/types/ml_model_usage.py +2 -0
  25. vellum/types/plain_text_prompt_block_request.py +29 -0
  26. vellum/types/prompt_block_request.py +19 -0
  27. vellum/types/prompt_block_state.py +5 -0
  28. vellum/types/{prompt_deployment_expand_meta_request_request.py → prompt_deployment_expand_meta_request.py} +1 -1
  29. vellum/types/prompt_parameters_request.py +27 -0
  30. vellum/types/{open_api_boolean_property.py → prompt_request_chat_history_input_request.py} +7 -7
  31. vellum/types/prompt_request_input_request.py +10 -0
  32. vellum/types/{hugging_face_tokenizer_config_request.py → prompt_request_json_input_request.py} +6 -6
  33. vellum/types/{tik_token_tokenizer_config.py → prompt_request_string_input_request.py} +6 -5
  34. vellum/types/rejected_ad_hoc_execute_prompt_event.py +28 -0
  35. vellum/types/rich_text_child_block_request.py +7 -0
  36. vellum/types/rich_text_prompt_block_request.py +30 -0
  37. vellum/types/streaming_ad_hoc_execute_prompt_event.py +33 -0
  38. vellum/types/variable_prompt_block_request.py +29 -0
  39. vellum/types/{ml_model_family_enum_value_label.py → vellum_variable_request.py} +5 -4
  40. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/METADATA +1 -1
  41. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/RECORD +44 -64
  42. vellum/resources/ml_models/client.py +0 -948
  43. vellum/types/hosted_by_enum.py +0 -26
  44. vellum/types/ml_model_developer.py +0 -27
  45. vellum/types/ml_model_display_config_labelled.py +0 -26
  46. vellum/types/ml_model_display_config_request.py +0 -26
  47. vellum/types/ml_model_display_tag.py +0 -7
  48. vellum/types/ml_model_exec_config.py +0 -34
  49. vellum/types/ml_model_exec_config_request.py +0 -34
  50. vellum/types/ml_model_family.py +0 -29
  51. vellum/types/ml_model_feature.py +0 -18
  52. vellum/types/ml_model_parameter_config.py +0 -32
  53. vellum/types/ml_model_parameter_config_request.py +0 -32
  54. vellum/types/ml_model_read.py +0 -92
  55. vellum/types/ml_model_request_authorization_config.py +0 -20
  56. vellum/types/ml_model_request_authorization_config_request.py +0 -20
  57. vellum/types/ml_model_request_authorization_config_type_enum.py +0 -5
  58. vellum/types/ml_model_request_config.py +0 -22
  59. vellum/types/ml_model_request_config_request.py +0 -22
  60. vellum/types/ml_model_response_config.py +0 -21
  61. vellum/types/ml_model_response_config_request.py +0 -21
  62. vellum/types/ml_model_tokenizer_config.py +0 -7
  63. vellum/types/ml_model_tokenizer_config_request.py +0 -7
  64. vellum/types/open_api_array_property.py +0 -41
  65. vellum/types/open_api_array_property_request.py +0 -41
  66. vellum/types/open_api_const_property.py +0 -26
  67. vellum/types/open_api_integer_property.py +0 -30
  68. vellum/types/open_api_integer_property_request.py +0 -30
  69. vellum/types/open_api_number_property.py +0 -31
  70. vellum/types/open_api_number_property_request.py +0 -31
  71. vellum/types/open_api_object_property.py +0 -40
  72. vellum/types/open_api_object_property_request.py +0 -40
  73. vellum/types/open_api_one_of_property_request.py +0 -33
  74. vellum/types/open_api_property.py +0 -27
  75. vellum/types/open_api_property_request.py +0 -27
  76. vellum/types/open_api_ref_property.py +0 -26
  77. vellum/types/open_api_ref_property_request.py +0 -26
  78. vellum/types/open_api_string_property.py +0 -30
  79. vellum/types/open_api_string_property_request.py +0 -30
  80. vellum/types/paginated_ml_model_read_list.py +0 -23
  81. vellum/types/visibility_enum.py +0 -5
  82. /vellum/resources/{ml_models → ad_hoc}/__init__.py +0 -0
  83. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/LICENSE +0 -0
  84. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/WHEEL +0 -0
vellum/__init__.py CHANGED
@@ -1,6 +1,12 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from .types import (
4
+ AdHocExecutePromptEvent,
5
+ AdHocExpandMetaRequest,
6
+ AdHocFulfilledPromptExecutionMeta,
7
+ AdHocInitiatedPromptExecutionMeta,
8
+ AdHocRejectedPromptExecutionMeta,
9
+ AdHocStreamingPromptExecutionMeta,
4
10
  AddOpenaiApiKeyEnum,
5
11
  ApiNodeResult,
6
12
  ApiNodeResultData,
@@ -21,6 +27,8 @@ from .types import (
21
27
  ChatMessage,
22
28
  ChatMessageContent,
23
29
  ChatMessageContentRequest,
30
+ ChatMessagePromptBlockPropertiesRequest,
31
+ ChatMessagePromptBlockRequest,
24
32
  ChatMessageRequest,
25
33
  ChatMessageRole,
26
34
  CodeExecutionNodeArrayResult,
@@ -57,6 +65,8 @@ from .types import (
57
65
  EnrichedNormalizedCompletion,
58
66
  EntityStatus,
59
67
  EnvironmentEnum,
68
+ EphemeralPromptCacheConfigRequest,
69
+ EphemeralPromptCacheConfigTypeEnum,
60
70
  ErrorVariableValue,
61
71
  ErrorVellumValue,
62
72
  ErrorVellumValueRequest,
@@ -76,6 +86,7 @@ from .types import (
76
86
  ExternalTestCaseExecution,
77
87
  ExternalTestCaseExecutionRequest,
78
88
  FinishReasonEnum,
89
+ FulfilledAdHocExecutePromptEvent,
79
90
  FulfilledEnum,
80
91
  FulfilledExecutePromptEvent,
81
92
  FulfilledExecutePromptResponse,
@@ -91,6 +102,8 @@ from .types import (
91
102
  FunctionCallVariableValue,
92
103
  FunctionCallVellumValue,
93
104
  FunctionCallVellumValueRequest,
105
+ FunctionDefinitionPromptBlockPropertiesRequest,
106
+ FunctionDefinitionPromptBlockRequest,
94
107
  GenerateOptionsRequest,
95
108
  GenerateRequest,
96
109
  GenerateResponse,
@@ -102,9 +115,6 @@ from .types import (
102
115
  GenerateStreamResultData,
103
116
  HkunlpInstructorXlVectorizer,
104
117
  HkunlpInstructorXlVectorizerRequest,
105
- HostedByEnum,
106
- HuggingFaceTokenizerConfig,
107
- HuggingFaceTokenizerConfigRequest,
108
118
  ImageChatMessageContent,
109
119
  ImageChatMessageContentRequest,
110
120
  ImageVariableValue,
@@ -113,12 +123,15 @@ from .types import (
113
123
  IndexingConfigVectorizer,
114
124
  IndexingConfigVectorizerRequest,
115
125
  IndexingStateEnum,
126
+ InitiatedAdHocExecutePromptEvent,
116
127
  InitiatedExecutePromptEvent,
117
128
  InitiatedPromptExecutionMeta,
118
129
  InitiatedWorkflowNodeResultEvent,
119
130
  InstructorVectorizerConfig,
120
131
  InstructorVectorizerConfigRequest,
121
132
  IterationStateEnum,
133
+ JinjaPromptBlockPropertiesRequest,
134
+ JinjaPromptBlockRequest,
122
135
  JsonInputRequest,
123
136
  JsonVariableValue,
124
137
  JsonVellumValue,
@@ -133,29 +146,6 @@ from .types import (
133
146
  MetadataFilterRuleCombinator,
134
147
  MetadataFilterRuleRequest,
135
148
  MetricNodeResult,
136
- MlModelDeveloper,
137
- MlModelDeveloperEnumValueLabel,
138
- MlModelDisplayConfigLabelled,
139
- MlModelDisplayConfigRequest,
140
- MlModelDisplayTag,
141
- MlModelDisplayTagEnumValueLabel,
142
- MlModelExecConfig,
143
- MlModelExecConfigRequest,
144
- MlModelFamily,
145
- MlModelFamilyEnumValueLabel,
146
- MlModelFeature,
147
- MlModelParameterConfig,
148
- MlModelParameterConfigRequest,
149
- MlModelRead,
150
- MlModelRequestAuthorizationConfig,
151
- MlModelRequestAuthorizationConfigRequest,
152
- MlModelRequestAuthorizationConfigTypeEnum,
153
- MlModelRequestConfig,
154
- MlModelRequestConfigRequest,
155
- MlModelResponseConfig,
156
- MlModelResponseConfigRequest,
157
- MlModelTokenizerConfig,
158
- MlModelTokenizerConfigRequest,
159
149
  MlModelUsage,
160
150
  NamedScenarioInputChatHistoryVariableValueRequest,
161
151
  NamedScenarioInputJsonVariableValueRequest,
@@ -210,28 +200,7 @@ from .types import (
210
200
  OpenAiVectorizerTextEmbedding3SmallRequest,
211
201
  OpenAiVectorizerTextEmbeddingAda002,
212
202
  OpenAiVectorizerTextEmbeddingAda002Request,
213
- OpenApiArrayProperty,
214
- OpenApiArrayPropertyRequest,
215
- OpenApiBooleanProperty,
216
- OpenApiBooleanPropertyRequest,
217
- OpenApiConstProperty,
218
- OpenApiConstPropertyRequest,
219
- OpenApiIntegerProperty,
220
- OpenApiIntegerPropertyRequest,
221
- OpenApiNumberProperty,
222
- OpenApiNumberPropertyRequest,
223
- OpenApiObjectProperty,
224
- OpenApiObjectPropertyRequest,
225
- OpenApiOneOfProperty,
226
- OpenApiOneOfPropertyRequest,
227
- OpenApiProperty,
228
- OpenApiPropertyRequest,
229
- OpenApiRefProperty,
230
- OpenApiRefPropertyRequest,
231
- OpenApiStringProperty,
232
- OpenApiStringPropertyRequest,
233
203
  PaginatedDocumentIndexReadList,
234
- PaginatedMlModelReadList,
235
204
  PaginatedSlimDeploymentReadList,
236
205
  PaginatedSlimDocumentList,
237
206
  PaginatedSlimWorkflowDeploymentList,
@@ -239,20 +208,29 @@ from .types import (
239
208
  PaginatedTestSuiteTestCaseList,
240
209
  PdfSearchResultMetaSource,
241
210
  PdfSearchResultMetaSourceRequest,
211
+ PlainTextPromptBlockRequest,
242
212
  ProcessingFailureReasonEnum,
243
213
  ProcessingStateEnum,
244
- PromptDeploymentExpandMetaRequestRequest,
214
+ PromptBlockRequest,
215
+ PromptBlockState,
216
+ PromptDeploymentExpandMetaRequest,
245
217
  PromptDeploymentInputRequest,
246
218
  PromptExecutionMeta,
247
219
  PromptNodeExecutionMeta,
248
220
  PromptNodeResult,
249
221
  PromptNodeResultData,
250
222
  PromptOutput,
223
+ PromptParametersRequest,
224
+ PromptRequestChatHistoryInputRequest,
225
+ PromptRequestInputRequest,
226
+ PromptRequestJsonInputRequest,
227
+ PromptRequestStringInputRequest,
251
228
  RawPromptExecutionOverridesRequest,
252
229
  ReductoChunkerConfig,
253
230
  ReductoChunkerConfigRequest,
254
231
  ReductoChunking,
255
232
  ReductoChunkingRequest,
233
+ RejectedAdHocExecutePromptEvent,
256
234
  RejectedExecutePromptEvent,
257
235
  RejectedExecutePromptResponse,
258
236
  RejectedExecuteWorkflowWorkflowResultEvent,
@@ -260,6 +238,8 @@ from .types import (
260
238
  RejectedWorkflowNodeResultEvent,
261
239
  ReleaseTagSource,
262
240
  ReplaceTestSuiteTestCaseRequest,
241
+ RichTextChildBlockRequest,
242
+ RichTextPromptBlockRequest,
263
243
  SandboxScenario,
264
244
  ScenarioInput,
265
245
  ScenarioInputChatHistoryVariableValue,
@@ -285,6 +265,7 @@ from .types import (
285
265
  SlimDeploymentRead,
286
266
  SlimDocument,
287
267
  SlimWorkflowDeployment,
268
+ StreamingAdHocExecutePromptEvent,
288
269
  StreamingExecutePromptEvent,
289
270
  StreamingPromptExecutionMeta,
290
271
  StreamingWorkflowNodeResultEvent,
@@ -377,22 +358,21 @@ from .types import (
377
358
  TestSuiteTestCaseReplacedBulkResult,
378
359
  TestSuiteTestCaseReplacedBulkResultData,
379
360
  TestSuiteTestCaseUpsertBulkOperationRequest,
380
- TikTokenTokenizerConfig,
381
- TikTokenTokenizerConfigRequest,
382
361
  TokenOverlappingWindowChunkerConfig,
383
362
  TokenOverlappingWindowChunkerConfigRequest,
384
363
  TokenOverlappingWindowChunking,
385
364
  TokenOverlappingWindowChunkingRequest,
386
365
  UploadDocumentResponse,
387
366
  UpsertTestSuiteTestCaseRequest,
367
+ VariablePromptBlockRequest,
388
368
  VellumError,
389
369
  VellumErrorCodeEnum,
390
370
  VellumErrorRequest,
391
371
  VellumImage,
392
372
  VellumImageRequest,
393
373
  VellumVariable,
374
+ VellumVariableRequest,
394
375
  VellumVariableType,
395
- VisibilityEnum,
396
376
  WorkflowDeploymentRead,
397
377
  WorkflowEventError,
398
378
  WorkflowExecutionActualChatHistoryRequest,
@@ -440,11 +420,11 @@ from .resources import (
440
420
  DeploymentsListRequestStatus,
441
421
  DocumentIndexesListRequestStatus,
442
422
  WorkflowDeploymentsListRequestStatus,
423
+ ad_hoc,
443
424
  deployments,
444
425
  document_indexes,
445
426
  documents,
446
427
  folder_entities,
447
- ml_models,
448
428
  sandboxes,
449
429
  test_suite_runs,
450
430
  test_suites,
@@ -456,6 +436,12 @@ from .environment import VellumEnvironment
456
436
  from .version import __version__
457
437
 
458
438
  __all__ = [
439
+ "AdHocExecutePromptEvent",
440
+ "AdHocExpandMetaRequest",
441
+ "AdHocFulfilledPromptExecutionMeta",
442
+ "AdHocInitiatedPromptExecutionMeta",
443
+ "AdHocRejectedPromptExecutionMeta",
444
+ "AdHocStreamingPromptExecutionMeta",
459
445
  "AddOpenaiApiKeyEnum",
460
446
  "ApiNodeResult",
461
447
  "ApiNodeResultData",
@@ -478,6 +464,8 @@ __all__ = [
478
464
  "ChatMessage",
479
465
  "ChatMessageContent",
480
466
  "ChatMessageContentRequest",
467
+ "ChatMessagePromptBlockPropertiesRequest",
468
+ "ChatMessagePromptBlockRequest",
481
469
  "ChatMessageRequest",
482
470
  "ChatMessageRole",
483
471
  "CodeExecutionNodeArrayResult",
@@ -516,6 +504,8 @@ __all__ = [
516
504
  "EnrichedNormalizedCompletion",
517
505
  "EntityStatus",
518
506
  "EnvironmentEnum",
507
+ "EphemeralPromptCacheConfigRequest",
508
+ "EphemeralPromptCacheConfigTypeEnum",
519
509
  "ErrorVariableValue",
520
510
  "ErrorVellumValue",
521
511
  "ErrorVellumValueRequest",
@@ -536,6 +526,7 @@ __all__ = [
536
526
  "ExternalTestCaseExecutionRequest",
537
527
  "FinishReasonEnum",
538
528
  "ForbiddenError",
529
+ "FulfilledAdHocExecutePromptEvent",
539
530
  "FulfilledEnum",
540
531
  "FulfilledExecutePromptEvent",
541
532
  "FulfilledExecutePromptResponse",
@@ -551,6 +542,8 @@ __all__ = [
551
542
  "FunctionCallVariableValue",
552
543
  "FunctionCallVellumValue",
553
544
  "FunctionCallVellumValueRequest",
545
+ "FunctionDefinitionPromptBlockPropertiesRequest",
546
+ "FunctionDefinitionPromptBlockRequest",
554
547
  "GenerateOptionsRequest",
555
548
  "GenerateRequest",
556
549
  "GenerateResponse",
@@ -562,9 +555,6 @@ __all__ = [
562
555
  "GenerateStreamResultData",
563
556
  "HkunlpInstructorXlVectorizer",
564
557
  "HkunlpInstructorXlVectorizerRequest",
565
- "HostedByEnum",
566
- "HuggingFaceTokenizerConfig",
567
- "HuggingFaceTokenizerConfigRequest",
568
558
  "ImageChatMessageContent",
569
559
  "ImageChatMessageContentRequest",
570
560
  "ImageVariableValue",
@@ -573,6 +563,7 @@ __all__ = [
573
563
  "IndexingConfigVectorizer",
574
564
  "IndexingConfigVectorizerRequest",
575
565
  "IndexingStateEnum",
566
+ "InitiatedAdHocExecutePromptEvent",
576
567
  "InitiatedExecutePromptEvent",
577
568
  "InitiatedPromptExecutionMeta",
578
569
  "InitiatedWorkflowNodeResultEvent",
@@ -580,6 +571,8 @@ __all__ = [
580
571
  "InstructorVectorizerConfigRequest",
581
572
  "InternalServerError",
582
573
  "IterationStateEnum",
574
+ "JinjaPromptBlockPropertiesRequest",
575
+ "JinjaPromptBlockRequest",
583
576
  "JsonInputRequest",
584
577
  "JsonVariableValue",
585
578
  "JsonVellumValue",
@@ -594,29 +587,6 @@ __all__ = [
594
587
  "MetadataFilterRuleCombinator",
595
588
  "MetadataFilterRuleRequest",
596
589
  "MetricNodeResult",
597
- "MlModelDeveloper",
598
- "MlModelDeveloperEnumValueLabel",
599
- "MlModelDisplayConfigLabelled",
600
- "MlModelDisplayConfigRequest",
601
- "MlModelDisplayTag",
602
- "MlModelDisplayTagEnumValueLabel",
603
- "MlModelExecConfig",
604
- "MlModelExecConfigRequest",
605
- "MlModelFamily",
606
- "MlModelFamilyEnumValueLabel",
607
- "MlModelFeature",
608
- "MlModelParameterConfig",
609
- "MlModelParameterConfigRequest",
610
- "MlModelRead",
611
- "MlModelRequestAuthorizationConfig",
612
- "MlModelRequestAuthorizationConfigRequest",
613
- "MlModelRequestAuthorizationConfigTypeEnum",
614
- "MlModelRequestConfig",
615
- "MlModelRequestConfigRequest",
616
- "MlModelResponseConfig",
617
- "MlModelResponseConfigRequest",
618
- "MlModelTokenizerConfig",
619
- "MlModelTokenizerConfigRequest",
620
590
  "MlModelUsage",
621
591
  "NamedScenarioInputChatHistoryVariableValueRequest",
622
592
  "NamedScenarioInputJsonVariableValueRequest",
@@ -672,28 +642,7 @@ __all__ = [
672
642
  "OpenAiVectorizerTextEmbedding3SmallRequest",
673
643
  "OpenAiVectorizerTextEmbeddingAda002",
674
644
  "OpenAiVectorizerTextEmbeddingAda002Request",
675
- "OpenApiArrayProperty",
676
- "OpenApiArrayPropertyRequest",
677
- "OpenApiBooleanProperty",
678
- "OpenApiBooleanPropertyRequest",
679
- "OpenApiConstProperty",
680
- "OpenApiConstPropertyRequest",
681
- "OpenApiIntegerProperty",
682
- "OpenApiIntegerPropertyRequest",
683
- "OpenApiNumberProperty",
684
- "OpenApiNumberPropertyRequest",
685
- "OpenApiObjectProperty",
686
- "OpenApiObjectPropertyRequest",
687
- "OpenApiOneOfProperty",
688
- "OpenApiOneOfPropertyRequest",
689
- "OpenApiProperty",
690
- "OpenApiPropertyRequest",
691
- "OpenApiRefProperty",
692
- "OpenApiRefPropertyRequest",
693
- "OpenApiStringProperty",
694
- "OpenApiStringPropertyRequest",
695
645
  "PaginatedDocumentIndexReadList",
696
- "PaginatedMlModelReadList",
697
646
  "PaginatedSlimDeploymentReadList",
698
647
  "PaginatedSlimDocumentList",
699
648
  "PaginatedSlimWorkflowDeploymentList",
@@ -701,20 +650,29 @@ __all__ = [
701
650
  "PaginatedTestSuiteTestCaseList",
702
651
  "PdfSearchResultMetaSource",
703
652
  "PdfSearchResultMetaSourceRequest",
653
+ "PlainTextPromptBlockRequest",
704
654
  "ProcessingFailureReasonEnum",
705
655
  "ProcessingStateEnum",
706
- "PromptDeploymentExpandMetaRequestRequest",
656
+ "PromptBlockRequest",
657
+ "PromptBlockState",
658
+ "PromptDeploymentExpandMetaRequest",
707
659
  "PromptDeploymentInputRequest",
708
660
  "PromptExecutionMeta",
709
661
  "PromptNodeExecutionMeta",
710
662
  "PromptNodeResult",
711
663
  "PromptNodeResultData",
712
664
  "PromptOutput",
665
+ "PromptParametersRequest",
666
+ "PromptRequestChatHistoryInputRequest",
667
+ "PromptRequestInputRequest",
668
+ "PromptRequestJsonInputRequest",
669
+ "PromptRequestStringInputRequest",
713
670
  "RawPromptExecutionOverridesRequest",
714
671
  "ReductoChunkerConfig",
715
672
  "ReductoChunkerConfigRequest",
716
673
  "ReductoChunking",
717
674
  "ReductoChunkingRequest",
675
+ "RejectedAdHocExecutePromptEvent",
718
676
  "RejectedExecutePromptEvent",
719
677
  "RejectedExecutePromptResponse",
720
678
  "RejectedExecuteWorkflowWorkflowResultEvent",
@@ -722,6 +680,8 @@ __all__ = [
722
680
  "RejectedWorkflowNodeResultEvent",
723
681
  "ReleaseTagSource",
724
682
  "ReplaceTestSuiteTestCaseRequest",
683
+ "RichTextChildBlockRequest",
684
+ "RichTextPromptBlockRequest",
725
685
  "SandboxScenario",
726
686
  "ScenarioInput",
727
687
  "ScenarioInputChatHistoryVariableValue",
@@ -747,6 +707,7 @@ __all__ = [
747
707
  "SlimDeploymentRead",
748
708
  "SlimDocument",
749
709
  "SlimWorkflowDeployment",
710
+ "StreamingAdHocExecutePromptEvent",
750
711
  "StreamingExecutePromptEvent",
751
712
  "StreamingPromptExecutionMeta",
752
713
  "StreamingWorkflowNodeResultEvent",
@@ -839,14 +800,13 @@ __all__ = [
839
800
  "TestSuiteTestCaseReplacedBulkResult",
840
801
  "TestSuiteTestCaseReplacedBulkResultData",
841
802
  "TestSuiteTestCaseUpsertBulkOperationRequest",
842
- "TikTokenTokenizerConfig",
843
- "TikTokenTokenizerConfigRequest",
844
803
  "TokenOverlappingWindowChunkerConfig",
845
804
  "TokenOverlappingWindowChunkerConfigRequest",
846
805
  "TokenOverlappingWindowChunking",
847
806
  "TokenOverlappingWindowChunkingRequest",
848
807
  "UploadDocumentResponse",
849
808
  "UpsertTestSuiteTestCaseRequest",
809
+ "VariablePromptBlockRequest",
850
810
  "Vellum",
851
811
  "VellumEnvironment",
852
812
  "VellumError",
@@ -855,8 +815,8 @@ __all__ = [
855
815
  "VellumImage",
856
816
  "VellumImageRequest",
857
817
  "VellumVariable",
818
+ "VellumVariableRequest",
858
819
  "VellumVariableType",
859
- "VisibilityEnum",
860
820
  "WorkflowDeploymentRead",
861
821
  "WorkflowDeploymentsListRequestStatus",
862
822
  "WorkflowEventError",
@@ -900,11 +860,11 @@ __all__ = [
900
860
  "WorkflowResultEventOutputDataString",
901
861
  "WorkflowStreamEvent",
902
862
  "__version__",
863
+ "ad_hoc",
903
864
  "deployments",
904
865
  "document_indexes",
905
866
  "documents",
906
867
  "folder_entities",
907
- "ml_models",
908
868
  "sandboxes",
909
869
  "test_suite_runs",
910
870
  "test_suites",
vellum/client.py CHANGED
@@ -4,18 +4,18 @@ import typing
4
4
  from .environment import VellumEnvironment
5
5
  import httpx
6
6
  from .core.client_wrapper import SyncClientWrapper
7
+ from .resources.ad_hoc.client import AdHocClient
7
8
  from .resources.deployments.client import DeploymentsClient
8
9
  from .resources.document_indexes.client import DocumentIndexesClient
9
10
  from .resources.documents.client import DocumentsClient
10
11
  from .resources.folder_entities.client import FolderEntitiesClient
11
- from .resources.ml_models.client import MlModelsClient
12
12
  from .resources.sandboxes.client import SandboxesClient
13
13
  from .resources.test_suite_runs.client import TestSuiteRunsClient
14
14
  from .resources.test_suites.client import TestSuitesClient
15
15
  from .resources.workflow_deployments.client import WorkflowDeploymentsClient
16
16
  from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
17
17
  from .types.prompt_deployment_input_request import PromptDeploymentInputRequest
18
- from .types.prompt_deployment_expand_meta_request_request import PromptDeploymentExpandMetaRequestRequest
18
+ from .types.prompt_deployment_expand_meta_request import PromptDeploymentExpandMetaRequest
19
19
  from .types.raw_prompt_execution_overrides_request import RawPromptExecutionOverridesRequest
20
20
  from .core.request_options import RequestOptions
21
21
  from .types.execute_prompt_response import ExecutePromptResponse
@@ -42,11 +42,11 @@ from .types.search_response import SearchResponse
42
42
  from .types.submit_completion_actual_request import SubmitCompletionActualRequest
43
43
  from .types.submit_workflow_execution_actual_request import SubmitWorkflowExecutionActualRequest
44
44
  from .core.client_wrapper import AsyncClientWrapper
45
+ from .resources.ad_hoc.client import AsyncAdHocClient
45
46
  from .resources.deployments.client import AsyncDeploymentsClient
46
47
  from .resources.document_indexes.client import AsyncDocumentIndexesClient
47
48
  from .resources.documents.client import AsyncDocumentsClient
48
49
  from .resources.folder_entities.client import AsyncFolderEntitiesClient
49
- from .resources.ml_models.client import AsyncMlModelsClient
50
50
  from .resources.sandboxes.client import AsyncSandboxesClient
51
51
  from .resources.test_suite_runs.client import AsyncTestSuiteRunsClient
52
52
  from .resources.test_suites.client import AsyncTestSuitesClient
@@ -111,11 +111,11 @@ class Vellum:
111
111
  else httpx.Client(timeout=_defaulted_timeout),
112
112
  timeout=_defaulted_timeout,
113
113
  )
114
+ self.ad_hoc = AdHocClient(client_wrapper=self._client_wrapper)
114
115
  self.deployments = DeploymentsClient(client_wrapper=self._client_wrapper)
115
116
  self.document_indexes = DocumentIndexesClient(client_wrapper=self._client_wrapper)
116
117
  self.documents = DocumentsClient(client_wrapper=self._client_wrapper)
117
118
  self.folder_entities = FolderEntitiesClient(client_wrapper=self._client_wrapper)
118
- self.ml_models = MlModelsClient(client_wrapper=self._client_wrapper)
119
119
  self.sandboxes = SandboxesClient(client_wrapper=self._client_wrapper)
120
120
  self.test_suite_runs = TestSuiteRunsClient(client_wrapper=self._client_wrapper)
121
121
  self.test_suites = TestSuitesClient(client_wrapper=self._client_wrapper)
@@ -130,7 +130,7 @@ class Vellum:
130
130
  prompt_deployment_name: typing.Optional[str] = OMIT,
131
131
  release_tag: typing.Optional[str] = OMIT,
132
132
  external_id: typing.Optional[str] = OMIT,
133
- expand_meta: typing.Optional[PromptDeploymentExpandMetaRequestRequest] = OMIT,
133
+ expand_meta: typing.Optional[PromptDeploymentExpandMetaRequest] = OMIT,
134
134
  raw_overrides: typing.Optional[RawPromptExecutionOverridesRequest] = OMIT,
135
135
  expand_raw: typing.Optional[typing.Sequence[str]] = OMIT,
136
136
  metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -156,7 +156,7 @@ class Vellum:
156
156
  external_id : typing.Optional[str]
157
157
  Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment.
158
158
 
159
- expand_meta : typing.Optional[PromptDeploymentExpandMetaRequestRequest]
159
+ expand_meta : typing.Optional[PromptDeploymentExpandMetaRequest]
160
160
  An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response.
161
161
 
162
162
  raw_overrides : typing.Optional[RawPromptExecutionOverridesRequest]
@@ -272,7 +272,7 @@ class Vellum:
272
272
  prompt_deployment_name: typing.Optional[str] = OMIT,
273
273
  release_tag: typing.Optional[str] = OMIT,
274
274
  external_id: typing.Optional[str] = OMIT,
275
- expand_meta: typing.Optional[PromptDeploymentExpandMetaRequestRequest] = OMIT,
275
+ expand_meta: typing.Optional[PromptDeploymentExpandMetaRequest] = OMIT,
276
276
  raw_overrides: typing.Optional[RawPromptExecutionOverridesRequest] = OMIT,
277
277
  expand_raw: typing.Optional[typing.Sequence[str]] = OMIT,
278
278
  metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -298,7 +298,7 @@ class Vellum:
298
298
  external_id : typing.Optional[str]
299
299
  Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment.
300
300
 
301
- expand_meta : typing.Optional[PromptDeploymentExpandMetaRequestRequest]
301
+ expand_meta : typing.Optional[PromptDeploymentExpandMetaRequest]
302
302
  An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response.
303
303
 
304
304
  raw_overrides : typing.Optional[RawPromptExecutionOverridesRequest]
@@ -321,7 +321,7 @@ class Vellum:
321
321
  Examples
322
322
  --------
323
323
  from vellum import (
324
- PromptDeploymentExpandMetaRequestRequest,
324
+ PromptDeploymentExpandMetaRequest,
325
325
  RawPromptExecutionOverridesRequest,
326
326
  StringInputRequest,
327
327
  Vellum,
@@ -341,7 +341,7 @@ class Vellum:
341
341
  prompt_deployment_name="string",
342
342
  release_tag="string",
343
343
  external_id="string",
344
- expand_meta=PromptDeploymentExpandMetaRequestRequest(
344
+ expand_meta=PromptDeploymentExpandMetaRequest(
345
345
  model_name=True,
346
346
  usage=True,
347
347
  finish_reason=True,
@@ -1278,11 +1278,11 @@ class AsyncVellum:
1278
1278
  else httpx.AsyncClient(timeout=_defaulted_timeout),
1279
1279
  timeout=_defaulted_timeout,
1280
1280
  )
1281
+ self.ad_hoc = AsyncAdHocClient(client_wrapper=self._client_wrapper)
1281
1282
  self.deployments = AsyncDeploymentsClient(client_wrapper=self._client_wrapper)
1282
1283
  self.document_indexes = AsyncDocumentIndexesClient(client_wrapper=self._client_wrapper)
1283
1284
  self.documents = AsyncDocumentsClient(client_wrapper=self._client_wrapper)
1284
1285
  self.folder_entities = AsyncFolderEntitiesClient(client_wrapper=self._client_wrapper)
1285
- self.ml_models = AsyncMlModelsClient(client_wrapper=self._client_wrapper)
1286
1286
  self.sandboxes = AsyncSandboxesClient(client_wrapper=self._client_wrapper)
1287
1287
  self.test_suite_runs = AsyncTestSuiteRunsClient(client_wrapper=self._client_wrapper)
1288
1288
  self.test_suites = AsyncTestSuitesClient(client_wrapper=self._client_wrapper)
@@ -1297,7 +1297,7 @@ class AsyncVellum:
1297
1297
  prompt_deployment_name: typing.Optional[str] = OMIT,
1298
1298
  release_tag: typing.Optional[str] = OMIT,
1299
1299
  external_id: typing.Optional[str] = OMIT,
1300
- expand_meta: typing.Optional[PromptDeploymentExpandMetaRequestRequest] = OMIT,
1300
+ expand_meta: typing.Optional[PromptDeploymentExpandMetaRequest] = OMIT,
1301
1301
  raw_overrides: typing.Optional[RawPromptExecutionOverridesRequest] = OMIT,
1302
1302
  expand_raw: typing.Optional[typing.Sequence[str]] = OMIT,
1303
1303
  metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -1323,7 +1323,7 @@ class AsyncVellum:
1323
1323
  external_id : typing.Optional[str]
1324
1324
  Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment.
1325
1325
 
1326
- expand_meta : typing.Optional[PromptDeploymentExpandMetaRequestRequest]
1326
+ expand_meta : typing.Optional[PromptDeploymentExpandMetaRequest]
1327
1327
  An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response.
1328
1328
 
1329
1329
  raw_overrides : typing.Optional[RawPromptExecutionOverridesRequest]
@@ -1447,7 +1447,7 @@ class AsyncVellum:
1447
1447
  prompt_deployment_name: typing.Optional[str] = OMIT,
1448
1448
  release_tag: typing.Optional[str] = OMIT,
1449
1449
  external_id: typing.Optional[str] = OMIT,
1450
- expand_meta: typing.Optional[PromptDeploymentExpandMetaRequestRequest] = OMIT,
1450
+ expand_meta: typing.Optional[PromptDeploymentExpandMetaRequest] = OMIT,
1451
1451
  raw_overrides: typing.Optional[RawPromptExecutionOverridesRequest] = OMIT,
1452
1452
  expand_raw: typing.Optional[typing.Sequence[str]] = OMIT,
1453
1453
  metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -1473,7 +1473,7 @@ class AsyncVellum:
1473
1473
  external_id : typing.Optional[str]
1474
1474
  Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment.
1475
1475
 
1476
- expand_meta : typing.Optional[PromptDeploymentExpandMetaRequestRequest]
1476
+ expand_meta : typing.Optional[PromptDeploymentExpandMetaRequest]
1477
1477
  An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response.
1478
1478
 
1479
1479
  raw_overrides : typing.Optional[RawPromptExecutionOverridesRequest]
@@ -1499,7 +1499,7 @@ class AsyncVellum:
1499
1499
 
1500
1500
  from vellum import (
1501
1501
  AsyncVellum,
1502
- PromptDeploymentExpandMetaRequestRequest,
1502
+ PromptDeploymentExpandMetaRequest,
1503
1503
  RawPromptExecutionOverridesRequest,
1504
1504
  StringInputRequest,
1505
1505
  )
@@ -1521,7 +1521,7 @@ class AsyncVellum:
1521
1521
  prompt_deployment_name="string",
1522
1522
  release_tag="string",
1523
1523
  external_id="string",
1524
- expand_meta=PromptDeploymentExpandMetaRequestRequest(
1524
+ expand_meta=PromptDeploymentExpandMetaRequest(
1525
1525
  model_name=True,
1526
1526
  usage=True,
1527
1527
  finish_reason=True,
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "vellum-ai",
20
- "X-Fern-SDK-Version": "0.8.4",
20
+ "X-Fern-SDK-Version": "0.8.6",
21
21
  }
22
22
  headers["X_API_KEY"] = self.api_key
23
23
  return headers
@@ -1,11 +1,11 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from . import (
4
+ ad_hoc,
4
5
  deployments,
5
6
  document_indexes,
6
7
  documents,
7
8
  folder_entities,
8
- ml_models,
9
9
  sandboxes,
10
10
  test_suite_runs,
11
11
  test_suites,
@@ -20,11 +20,11 @@ __all__ = [
20
20
  "DeploymentsListRequestStatus",
21
21
  "DocumentIndexesListRequestStatus",
22
22
  "WorkflowDeploymentsListRequestStatus",
23
+ "ad_hoc",
23
24
  "deployments",
24
25
  "document_indexes",
25
26
  "documents",
26
27
  "folder_entities",
27
- "ml_models",
28
28
  "sandboxes",
29
29
  "test_suite_runs",
30
30
  "test_suites",