vellum-ai 0.9.11__py3-none-any.whl → 0.9.12__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +26 -20
- vellum/client.py +20 -20
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/ad_hoc/client.py +2 -2
- vellum/resources/metric_definitions/client.py +11 -11
- vellum/types/__init__.py +26 -20
- vellum/types/{array_input_request.py → array_input.py} +5 -5
- vellum/types/chat_history_input.py +30 -0
- vellum/types/{code_execution_package_request.py → code_execution_package.py} +1 -1
- vellum/types/code_executor_input.py +24 -0
- vellum/types/{code_executor_secret_input_request.py → code_executor_secret_input.py} +1 -1
- vellum/types/document_processing_state.py +7 -0
- vellum/types/document_read.py +2 -11
- vellum/types/{error_input_request.py → error_input.py} +3 -3
- vellum/types/{function_call_input_request.py → function_call_input.py} +3 -3
- vellum/types/json_input.py +29 -0
- vellum/types/metric_definition_input.py +9 -0
- vellum/types/{number_input_request.py → number_input.py} +1 -1
- vellum/types/{search_results_input_request.py → search_results_input.py} +3 -3
- vellum/types/slim_document.py +2 -11
- vellum/types/string_input.py +29 -0
- vellum/types/vellum_error_code_enum.py +6 -1
- {vellum_ai-0.9.11.dist-info → vellum_ai-0.9.12.dist-info}/METADATA +1 -1
- {vellum_ai-0.9.11.dist-info → vellum_ai-0.9.12.dist-info}/RECORD +26 -23
- vellum/types/code_executor_input_request.py +0 -24
- vellum/types/metric_definition_input_request.py +0 -11
- vellum/types/processing_state_enum.py +0 -5
- {vellum_ai-0.9.11.dist-info → vellum_ai-0.9.12.dist-info}/LICENSE +0 -0
- {vellum_ai-0.9.11.dist-info → vellum_ai-0.9.12.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
@@ -14,7 +14,7 @@ from .types import (
|
|
14
14
|
ArrayChatMessageContentItem,
|
15
15
|
ArrayChatMessageContentItemRequest,
|
16
16
|
ArrayChatMessageContentRequest,
|
17
|
-
|
17
|
+
ArrayInput,
|
18
18
|
ArrayVariableValue,
|
19
19
|
ArrayVariableValueItem,
|
20
20
|
ArrayVellumValue,
|
@@ -30,6 +30,7 @@ from .types import (
|
|
30
30
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request,
|
31
31
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1,
|
32
32
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
33
|
+
ChatHistoryInput,
|
33
34
|
ChatHistoryInputRequest,
|
34
35
|
ChatHistoryVariableValue,
|
35
36
|
ChatHistoryVellumValue,
|
@@ -51,11 +52,11 @@ from .types import (
|
|
51
52
|
CodeExecutionNodeResultOutput,
|
52
53
|
CodeExecutionNodeSearchResultsResult,
|
53
54
|
CodeExecutionNodeStringResult,
|
54
|
-
|
55
|
+
CodeExecutionPackage,
|
55
56
|
CodeExecutionRuntime,
|
56
|
-
|
57
|
+
CodeExecutorInput,
|
57
58
|
CodeExecutorResponse,
|
58
|
-
|
59
|
+
CodeExecutorSecretInput,
|
59
60
|
CompilePromptDeploymentExpandMetaRequest,
|
60
61
|
CompilePromptMeta,
|
61
62
|
ComponentsSchemasPdfSearchResultMetaSource,
|
@@ -77,6 +78,7 @@ from .types import (
|
|
77
78
|
DocumentIndexIndexingConfig,
|
78
79
|
DocumentIndexIndexingConfigRequest,
|
79
80
|
DocumentIndexRead,
|
81
|
+
DocumentProcessingState,
|
80
82
|
DocumentRead,
|
81
83
|
DocumentStatus,
|
82
84
|
EnrichedNormalizedCompletion,
|
@@ -85,7 +87,7 @@ from .types import (
|
|
85
87
|
EnvironmentEnum,
|
86
88
|
EphemeralPromptCacheConfig,
|
87
89
|
EphemeralPromptCacheConfigTypeEnum,
|
88
|
-
|
90
|
+
ErrorInput,
|
89
91
|
ErrorVariableValue,
|
90
92
|
ErrorVellumValue,
|
91
93
|
ErrorVellumValueRequest,
|
@@ -128,7 +130,7 @@ from .types import (
|
|
128
130
|
FunctionCallChatMessageContentRequest,
|
129
131
|
FunctionCallChatMessageContentValue,
|
130
132
|
FunctionCallChatMessageContentValueRequest,
|
131
|
-
|
133
|
+
FunctionCallInput,
|
132
134
|
FunctionCallRequest,
|
133
135
|
FunctionCallVariableValue,
|
134
136
|
FunctionCallVellumValue,
|
@@ -167,6 +169,7 @@ from .types import (
|
|
167
169
|
InstructorVectorizerConfigRequest,
|
168
170
|
IterationStateEnum,
|
169
171
|
JinjaPromptBlock,
|
172
|
+
JsonInput,
|
170
173
|
JsonInputRequest,
|
171
174
|
JsonVariableValue,
|
172
175
|
JsonVellumValue,
|
@@ -182,7 +185,7 @@ from .types import (
|
|
182
185
|
MetadataFilterRuleRequest,
|
183
186
|
MetadataFiltersRequest,
|
184
187
|
MetricDefinitionExecution,
|
185
|
-
|
188
|
+
MetricDefinitionInput,
|
186
189
|
MetricNodeResult,
|
187
190
|
MlModelUsage,
|
188
191
|
NamedScenarioInputChatHistoryVariableValueRequest,
|
@@ -227,7 +230,7 @@ from .types import (
|
|
227
230
|
NodeOutputCompiledValue,
|
228
231
|
NormalizedLogProbs,
|
229
232
|
NormalizedTokenLogProbs,
|
230
|
-
|
233
|
+
NumberInput,
|
231
234
|
NumberVariableValue,
|
232
235
|
NumberVellumValue,
|
233
236
|
NumberVellumValueRequest,
|
@@ -254,7 +257,6 @@ from .types import (
|
|
254
257
|
PlainTextPromptBlock,
|
255
258
|
Price,
|
256
259
|
ProcessingFailureReasonEnum,
|
257
|
-
ProcessingStateEnum,
|
258
260
|
PromptBlock,
|
259
261
|
PromptBlockState,
|
260
262
|
PromptDeploymentExpandMetaRequest,
|
@@ -302,7 +304,7 @@ from .types import (
|
|
302
304
|
SearchResultMeta,
|
303
305
|
SearchResultMetaRequest,
|
304
306
|
SearchResultRequest,
|
305
|
-
|
307
|
+
SearchResultsInput,
|
306
308
|
SearchResultsVariableValue,
|
307
309
|
SearchResultsVellumValue,
|
308
310
|
SearchResultsVellumValueRequest,
|
@@ -321,6 +323,7 @@ from .types import (
|
|
321
323
|
StreamingWorkflowNodeResultEvent,
|
322
324
|
StringChatMessageContent,
|
323
325
|
StringChatMessageContentRequest,
|
326
|
+
StringInput,
|
324
327
|
StringInputRequest,
|
325
328
|
StringVariableValue,
|
326
329
|
StringVellumValue,
|
@@ -520,7 +523,7 @@ __all__ = [
|
|
520
523
|
"ArrayChatMessageContentItem",
|
521
524
|
"ArrayChatMessageContentItemRequest",
|
522
525
|
"ArrayChatMessageContentRequest",
|
523
|
-
"
|
526
|
+
"ArrayInput",
|
524
527
|
"ArrayVariableValue",
|
525
528
|
"ArrayVariableValueItem",
|
526
529
|
"ArrayVellumValue",
|
@@ -538,6 +541,7 @@ __all__ = [
|
|
538
541
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request",
|
539
542
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
|
540
543
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
544
|
+
"ChatHistoryInput",
|
541
545
|
"ChatHistoryInputRequest",
|
542
546
|
"ChatHistoryVariableValue",
|
543
547
|
"ChatHistoryVellumValue",
|
@@ -559,11 +563,11 @@ __all__ = [
|
|
559
563
|
"CodeExecutionNodeResultOutput",
|
560
564
|
"CodeExecutionNodeSearchResultsResult",
|
561
565
|
"CodeExecutionNodeStringResult",
|
562
|
-
"
|
566
|
+
"CodeExecutionPackage",
|
563
567
|
"CodeExecutionRuntime",
|
564
|
-
"
|
568
|
+
"CodeExecutorInput",
|
565
569
|
"CodeExecutorResponse",
|
566
|
-
"
|
570
|
+
"CodeExecutorSecretInput",
|
567
571
|
"CompilePromptDeploymentExpandMetaRequest",
|
568
572
|
"CompilePromptMeta",
|
569
573
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
@@ -587,6 +591,7 @@ __all__ = [
|
|
587
591
|
"DocumentIndexIndexingConfigRequest",
|
588
592
|
"DocumentIndexRead",
|
589
593
|
"DocumentIndexesListRequestStatus",
|
594
|
+
"DocumentProcessingState",
|
590
595
|
"DocumentRead",
|
591
596
|
"DocumentStatus",
|
592
597
|
"EnrichedNormalizedCompletion",
|
@@ -595,7 +600,7 @@ __all__ = [
|
|
595
600
|
"EnvironmentEnum",
|
596
601
|
"EphemeralPromptCacheConfig",
|
597
602
|
"EphemeralPromptCacheConfigTypeEnum",
|
598
|
-
"
|
603
|
+
"ErrorInput",
|
599
604
|
"ErrorVariableValue",
|
600
605
|
"ErrorVellumValue",
|
601
606
|
"ErrorVellumValueRequest",
|
@@ -640,7 +645,7 @@ __all__ = [
|
|
640
645
|
"FunctionCallChatMessageContentRequest",
|
641
646
|
"FunctionCallChatMessageContentValue",
|
642
647
|
"FunctionCallChatMessageContentValueRequest",
|
643
|
-
"
|
648
|
+
"FunctionCallInput",
|
644
649
|
"FunctionCallRequest",
|
645
650
|
"FunctionCallVariableValue",
|
646
651
|
"FunctionCallVellumValue",
|
@@ -680,6 +685,7 @@ __all__ = [
|
|
680
685
|
"InternalServerError",
|
681
686
|
"IterationStateEnum",
|
682
687
|
"JinjaPromptBlock",
|
688
|
+
"JsonInput",
|
683
689
|
"JsonInputRequest",
|
684
690
|
"JsonVariableValue",
|
685
691
|
"JsonVellumValue",
|
@@ -697,7 +703,7 @@ __all__ = [
|
|
697
703
|
"MetadataFilterRuleRequest",
|
698
704
|
"MetadataFiltersRequest",
|
699
705
|
"MetricDefinitionExecution",
|
700
|
-
"
|
706
|
+
"MetricDefinitionInput",
|
701
707
|
"MetricNodeResult",
|
702
708
|
"MlModelUsage",
|
703
709
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
@@ -743,7 +749,7 @@ __all__ = [
|
|
743
749
|
"NormalizedLogProbs",
|
744
750
|
"NormalizedTokenLogProbs",
|
745
751
|
"NotFoundError",
|
746
|
-
"
|
752
|
+
"NumberInput",
|
747
753
|
"NumberVariableValue",
|
748
754
|
"NumberVellumValue",
|
749
755
|
"NumberVellumValueRequest",
|
@@ -770,7 +776,6 @@ __all__ = [
|
|
770
776
|
"PlainTextPromptBlock",
|
771
777
|
"Price",
|
772
778
|
"ProcessingFailureReasonEnum",
|
773
|
-
"ProcessingStateEnum",
|
774
779
|
"PromptBlock",
|
775
780
|
"PromptBlockState",
|
776
781
|
"PromptDeploymentExpandMetaRequest",
|
@@ -818,7 +823,7 @@ __all__ = [
|
|
818
823
|
"SearchResultMeta",
|
819
824
|
"SearchResultMetaRequest",
|
820
825
|
"SearchResultRequest",
|
821
|
-
"
|
826
|
+
"SearchResultsInput",
|
822
827
|
"SearchResultsVariableValue",
|
823
828
|
"SearchResultsVellumValue",
|
824
829
|
"SearchResultsVellumValueRequest",
|
@@ -837,6 +842,7 @@ __all__ = [
|
|
837
842
|
"StreamingWorkflowNodeResultEvent",
|
838
843
|
"StringChatMessageContent",
|
839
844
|
"StringChatMessageContentRequest",
|
845
|
+
"StringInput",
|
840
846
|
"StringInputRequest",
|
841
847
|
"StringVariableValue",
|
842
848
|
"StringVellumValue",
|
vellum/client.py
CHANGED
@@ -19,8 +19,8 @@ from .resources.workflow_sandboxes.client import WorkflowSandboxesClient
|
|
19
19
|
from .resources.workflows.client import WorkflowsClient
|
20
20
|
from .resources.workspace_secrets.client import WorkspaceSecretsClient
|
21
21
|
from .types.code_execution_runtime import CodeExecutionRuntime
|
22
|
-
from .types.
|
23
|
-
from .types.
|
22
|
+
from .types.code_executor_input import CodeExecutorInput
|
23
|
+
from .types.code_execution_package import CodeExecutionPackage
|
24
24
|
from .types.vellum_variable_type import VellumVariableType
|
25
25
|
from .core.request_options import RequestOptions
|
26
26
|
from .types.code_executor_response import CodeExecutorResponse
|
@@ -145,8 +145,8 @@ class Vellum:
|
|
145
145
|
*,
|
146
146
|
code: str,
|
147
147
|
runtime: CodeExecutionRuntime,
|
148
|
-
input_values: typing.Sequence[
|
149
|
-
packages: typing.Sequence[
|
148
|
+
input_values: typing.Sequence[CodeExecutorInput],
|
149
|
+
packages: typing.Sequence[CodeExecutionPackage],
|
150
150
|
output_type: VellumVariableType,
|
151
151
|
request_options: typing.Optional[RequestOptions] = None,
|
152
152
|
) -> CodeExecutorResponse:
|
@@ -159,9 +159,9 @@ class Vellum:
|
|
159
159
|
|
160
160
|
runtime : CodeExecutionRuntime
|
161
161
|
|
162
|
-
input_values : typing.Sequence[
|
162
|
+
input_values : typing.Sequence[CodeExecutorInput]
|
163
163
|
|
164
|
-
packages : typing.Sequence[
|
164
|
+
packages : typing.Sequence[CodeExecutionPackage]
|
165
165
|
|
166
166
|
output_type : VellumVariableType
|
167
167
|
|
@@ -175,7 +175,7 @@ class Vellum:
|
|
175
175
|
|
176
176
|
Examples
|
177
177
|
--------
|
178
|
-
from vellum import
|
178
|
+
from vellum import CodeExecutionPackage, StringInput, Vellum
|
179
179
|
|
180
180
|
client = Vellum(
|
181
181
|
api_key="YOUR_API_KEY",
|
@@ -184,13 +184,13 @@ class Vellum:
|
|
184
184
|
code="code",
|
185
185
|
runtime="PYTHON_3_11_6",
|
186
186
|
input_values=[
|
187
|
-
|
187
|
+
StringInput(
|
188
188
|
name="name",
|
189
189
|
value="value",
|
190
190
|
)
|
191
191
|
],
|
192
192
|
packages=[
|
193
|
-
|
193
|
+
CodeExecutionPackage(
|
194
194
|
version="version",
|
195
195
|
name="name",
|
196
196
|
)
|
@@ -206,10 +206,10 @@ class Vellum:
|
|
206
206
|
"code": code,
|
207
207
|
"runtime": runtime,
|
208
208
|
"input_values": convert_and_respect_annotation_metadata(
|
209
|
-
object_=input_values, annotation=typing.Sequence[
|
209
|
+
object_=input_values, annotation=typing.Sequence[CodeExecutorInput], direction="write"
|
210
210
|
),
|
211
211
|
"packages": convert_and_respect_annotation_metadata(
|
212
|
-
object_=packages, annotation=typing.Sequence[
|
212
|
+
object_=packages, annotation=typing.Sequence[CodeExecutionPackage], direction="write"
|
213
213
|
),
|
214
214
|
"output_type": output_type,
|
215
215
|
},
|
@@ -1464,8 +1464,8 @@ class AsyncVellum:
|
|
1464
1464
|
*,
|
1465
1465
|
code: str,
|
1466
1466
|
runtime: CodeExecutionRuntime,
|
1467
|
-
input_values: typing.Sequence[
|
1468
|
-
packages: typing.Sequence[
|
1467
|
+
input_values: typing.Sequence[CodeExecutorInput],
|
1468
|
+
packages: typing.Sequence[CodeExecutionPackage],
|
1469
1469
|
output_type: VellumVariableType,
|
1470
1470
|
request_options: typing.Optional[RequestOptions] = None,
|
1471
1471
|
) -> CodeExecutorResponse:
|
@@ -1478,9 +1478,9 @@ class AsyncVellum:
|
|
1478
1478
|
|
1479
1479
|
runtime : CodeExecutionRuntime
|
1480
1480
|
|
1481
|
-
input_values : typing.Sequence[
|
1481
|
+
input_values : typing.Sequence[CodeExecutorInput]
|
1482
1482
|
|
1483
|
-
packages : typing.Sequence[
|
1483
|
+
packages : typing.Sequence[CodeExecutionPackage]
|
1484
1484
|
|
1485
1485
|
output_type : VellumVariableType
|
1486
1486
|
|
@@ -1496,7 +1496,7 @@ class AsyncVellum:
|
|
1496
1496
|
--------
|
1497
1497
|
import asyncio
|
1498
1498
|
|
1499
|
-
from vellum import AsyncVellum,
|
1499
|
+
from vellum import AsyncVellum, CodeExecutionPackage, StringInput
|
1500
1500
|
|
1501
1501
|
client = AsyncVellum(
|
1502
1502
|
api_key="YOUR_API_KEY",
|
@@ -1508,13 +1508,13 @@ class AsyncVellum:
|
|
1508
1508
|
code="code",
|
1509
1509
|
runtime="PYTHON_3_11_6",
|
1510
1510
|
input_values=[
|
1511
|
-
|
1511
|
+
StringInput(
|
1512
1512
|
name="name",
|
1513
1513
|
value="value",
|
1514
1514
|
)
|
1515
1515
|
],
|
1516
1516
|
packages=[
|
1517
|
-
|
1517
|
+
CodeExecutionPackage(
|
1518
1518
|
version="version",
|
1519
1519
|
name="name",
|
1520
1520
|
)
|
@@ -1533,10 +1533,10 @@ class AsyncVellum:
|
|
1533
1533
|
"code": code,
|
1534
1534
|
"runtime": runtime,
|
1535
1535
|
"input_values": convert_and_respect_annotation_metadata(
|
1536
|
-
object_=input_values, annotation=typing.Sequence[
|
1536
|
+
object_=input_values, annotation=typing.Sequence[CodeExecutorInput], direction="write"
|
1537
1537
|
),
|
1538
1538
|
"packages": convert_and_respect_annotation_metadata(
|
1539
|
-
object_=packages, annotation=typing.Sequence[
|
1539
|
+
object_=packages, annotation=typing.Sequence[CodeExecutionPackage], direction="write"
|
1540
1540
|
),
|
1541
1541
|
"output_type": output_type,
|
1542
1542
|
},
|
vellum/core/client_wrapper.py
CHANGED
@@ -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.9.
|
20
|
+
"X-Fern-SDK-Version": "0.9.12",
|
21
21
|
}
|
22
22
|
headers["X_API_KEY"] = self.api_key
|
23
23
|
return headers
|
@@ -100,7 +100,7 @@ class AdHocClient:
|
|
100
100
|
type="STRING",
|
101
101
|
required=True,
|
102
102
|
default=StringVellumValue(
|
103
|
-
value=
|
103
|
+
value="string",
|
104
104
|
),
|
105
105
|
extensions=VellumVariableExtensions(
|
106
106
|
color={"key": "value"},
|
@@ -300,7 +300,7 @@ class AsyncAdHocClient:
|
|
300
300
|
type="STRING",
|
301
301
|
required=True,
|
302
302
|
default=StringVellumValue(
|
303
|
-
value=
|
303
|
+
value="string",
|
304
304
|
),
|
305
305
|
extensions=VellumVariableExtensions(
|
306
306
|
color={"key": "value"},
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import typing
|
4
4
|
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from ...types.
|
5
|
+
from ...types.metric_definition_input import MetricDefinitionInput
|
6
6
|
from ...core.request_options import RequestOptions
|
7
7
|
from ...types.metric_definition_execution import MetricDefinitionExecution
|
8
8
|
from ...core.jsonable_encoder import jsonable_encoder
|
@@ -24,7 +24,7 @@ class MetricDefinitionsClient:
|
|
24
24
|
self,
|
25
25
|
id: str,
|
26
26
|
*,
|
27
|
-
inputs: typing.Sequence[
|
27
|
+
inputs: typing.Sequence[MetricDefinitionInput],
|
28
28
|
release_tag: typing.Optional[str] = OMIT,
|
29
29
|
request_options: typing.Optional[RequestOptions] = None,
|
30
30
|
) -> MetricDefinitionExecution:
|
@@ -36,7 +36,7 @@ class MetricDefinitionsClient:
|
|
36
36
|
id : str
|
37
37
|
Either the Metric Definition's ID or its unique name
|
38
38
|
|
39
|
-
inputs : typing.Sequence[
|
39
|
+
inputs : typing.Sequence[MetricDefinitionInput]
|
40
40
|
|
41
41
|
release_tag : typing.Optional[str]
|
42
42
|
|
@@ -50,7 +50,7 @@ class MetricDefinitionsClient:
|
|
50
50
|
|
51
51
|
Examples
|
52
52
|
--------
|
53
|
-
from vellum import
|
53
|
+
from vellum import StringInput, Vellum
|
54
54
|
|
55
55
|
client = Vellum(
|
56
56
|
api_key="YOUR_API_KEY",
|
@@ -58,7 +58,7 @@ class MetricDefinitionsClient:
|
|
58
58
|
client.metric_definitions.execute_metric_definition(
|
59
59
|
id="id",
|
60
60
|
inputs=[
|
61
|
-
|
61
|
+
StringInput(
|
62
62
|
name="name",
|
63
63
|
value="value",
|
64
64
|
)
|
@@ -71,7 +71,7 @@ class MetricDefinitionsClient:
|
|
71
71
|
method="POST",
|
72
72
|
json={
|
73
73
|
"inputs": convert_and_respect_annotation_metadata(
|
74
|
-
object_=inputs, annotation=typing.Sequence[
|
74
|
+
object_=inputs, annotation=typing.Sequence[MetricDefinitionInput], direction="write"
|
75
75
|
),
|
76
76
|
"release_tag": release_tag,
|
77
77
|
},
|
@@ -101,7 +101,7 @@ class AsyncMetricDefinitionsClient:
|
|
101
101
|
self,
|
102
102
|
id: str,
|
103
103
|
*,
|
104
|
-
inputs: typing.Sequence[
|
104
|
+
inputs: typing.Sequence[MetricDefinitionInput],
|
105
105
|
release_tag: typing.Optional[str] = OMIT,
|
106
106
|
request_options: typing.Optional[RequestOptions] = None,
|
107
107
|
) -> MetricDefinitionExecution:
|
@@ -113,7 +113,7 @@ class AsyncMetricDefinitionsClient:
|
|
113
113
|
id : str
|
114
114
|
Either the Metric Definition's ID or its unique name
|
115
115
|
|
116
|
-
inputs : typing.Sequence[
|
116
|
+
inputs : typing.Sequence[MetricDefinitionInput]
|
117
117
|
|
118
118
|
release_tag : typing.Optional[str]
|
119
119
|
|
@@ -129,7 +129,7 @@ class AsyncMetricDefinitionsClient:
|
|
129
129
|
--------
|
130
130
|
import asyncio
|
131
131
|
|
132
|
-
from vellum import AsyncVellum,
|
132
|
+
from vellum import AsyncVellum, StringInput
|
133
133
|
|
134
134
|
client = AsyncVellum(
|
135
135
|
api_key="YOUR_API_KEY",
|
@@ -140,7 +140,7 @@ class AsyncMetricDefinitionsClient:
|
|
140
140
|
await client.metric_definitions.execute_metric_definition(
|
141
141
|
id="id",
|
142
142
|
inputs=[
|
143
|
-
|
143
|
+
StringInput(
|
144
144
|
name="name",
|
145
145
|
value="value",
|
146
146
|
)
|
@@ -156,7 +156,7 @@ class AsyncMetricDefinitionsClient:
|
|
156
156
|
method="POST",
|
157
157
|
json={
|
158
158
|
"inputs": convert_and_respect_annotation_metadata(
|
159
|
-
object_=inputs, annotation=typing.Sequence[
|
159
|
+
object_=inputs, annotation=typing.Sequence[MetricDefinitionInput], direction="write"
|
160
160
|
),
|
161
161
|
"release_tag": release_tag,
|
162
162
|
},
|
vellum/types/__init__.py
CHANGED
@@ -13,7 +13,7 @@ from .array_chat_message_content import ArrayChatMessageContent
|
|
13
13
|
from .array_chat_message_content_item import ArrayChatMessageContentItem
|
14
14
|
from .array_chat_message_content_item_request import ArrayChatMessageContentItemRequest
|
15
15
|
from .array_chat_message_content_request import ArrayChatMessageContentRequest
|
16
|
-
from .
|
16
|
+
from .array_input import ArrayInput
|
17
17
|
from .array_variable_value import ArrayVariableValue
|
18
18
|
from .array_variable_value_item import ArrayVariableValueItem
|
19
19
|
from .array_vellum_value import ArrayVellumValue
|
@@ -37,6 +37,7 @@ from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1 import
|
|
37
37
|
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request import (
|
38
38
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
39
39
|
)
|
40
|
+
from .chat_history_input import ChatHistoryInput
|
40
41
|
from .chat_history_input_request import ChatHistoryInputRequest
|
41
42
|
from .chat_history_variable_value import ChatHistoryVariableValue
|
42
43
|
from .chat_history_vellum_value import ChatHistoryVellumValue
|
@@ -58,11 +59,11 @@ from .code_execution_node_result_data import CodeExecutionNodeResultData
|
|
58
59
|
from .code_execution_node_result_output import CodeExecutionNodeResultOutput
|
59
60
|
from .code_execution_node_search_results_result import CodeExecutionNodeSearchResultsResult
|
60
61
|
from .code_execution_node_string_result import CodeExecutionNodeStringResult
|
61
|
-
from .
|
62
|
+
from .code_execution_package import CodeExecutionPackage
|
62
63
|
from .code_execution_runtime import CodeExecutionRuntime
|
63
|
-
from .
|
64
|
+
from .code_executor_input import CodeExecutorInput
|
64
65
|
from .code_executor_response import CodeExecutorResponse
|
65
|
-
from .
|
66
|
+
from .code_executor_secret_input import CodeExecutorSecretInput
|
66
67
|
from .compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
67
68
|
from .compile_prompt_meta import CompilePromptMeta
|
68
69
|
from .components_schemas_pdf_search_result_meta_source import ComponentsSchemasPdfSearchResultMetaSource
|
@@ -84,6 +85,7 @@ from .document_index_chunking_request import DocumentIndexChunkingRequest
|
|
84
85
|
from .document_index_indexing_config import DocumentIndexIndexingConfig
|
85
86
|
from .document_index_indexing_config_request import DocumentIndexIndexingConfigRequest
|
86
87
|
from .document_index_read import DocumentIndexRead
|
88
|
+
from .document_processing_state import DocumentProcessingState
|
87
89
|
from .document_read import DocumentRead
|
88
90
|
from .document_status import DocumentStatus
|
89
91
|
from .enriched_normalized_completion import EnrichedNormalizedCompletion
|
@@ -92,7 +94,7 @@ from .entity_visibility import EntityVisibility
|
|
92
94
|
from .environment_enum import EnvironmentEnum
|
93
95
|
from .ephemeral_prompt_cache_config import EphemeralPromptCacheConfig
|
94
96
|
from .ephemeral_prompt_cache_config_type_enum import EphemeralPromptCacheConfigTypeEnum
|
95
|
-
from .
|
97
|
+
from .error_input import ErrorInput
|
96
98
|
from .error_variable_value import ErrorVariableValue
|
97
99
|
from .error_vellum_value import ErrorVellumValue
|
98
100
|
from .error_vellum_value_request import ErrorVellumValueRequest
|
@@ -135,7 +137,7 @@ from .function_call_chat_message_content import FunctionCallChatMessageContent
|
|
135
137
|
from .function_call_chat_message_content_request import FunctionCallChatMessageContentRequest
|
136
138
|
from .function_call_chat_message_content_value import FunctionCallChatMessageContentValue
|
137
139
|
from .function_call_chat_message_content_value_request import FunctionCallChatMessageContentValueRequest
|
138
|
-
from .
|
140
|
+
from .function_call_input import FunctionCallInput
|
139
141
|
from .function_call_request import FunctionCallRequest
|
140
142
|
from .function_call_variable_value import FunctionCallVariableValue
|
141
143
|
from .function_call_vellum_value import FunctionCallVellumValue
|
@@ -178,6 +180,7 @@ from .instructor_vectorizer_config import InstructorVectorizerConfig
|
|
178
180
|
from .instructor_vectorizer_config_request import InstructorVectorizerConfigRequest
|
179
181
|
from .iteration_state_enum import IterationStateEnum
|
180
182
|
from .jinja_prompt_block import JinjaPromptBlock
|
183
|
+
from .json_input import JsonInput
|
181
184
|
from .json_input_request import JsonInputRequest
|
182
185
|
from .json_variable_value import JsonVariableValue
|
183
186
|
from .json_vellum_value import JsonVellumValue
|
@@ -193,7 +196,7 @@ from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
|
|
193
196
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
194
197
|
from .metadata_filters_request import MetadataFiltersRequest
|
195
198
|
from .metric_definition_execution import MetricDefinitionExecution
|
196
|
-
from .
|
199
|
+
from .metric_definition_input import MetricDefinitionInput
|
197
200
|
from .metric_node_result import MetricNodeResult
|
198
201
|
from .ml_model_usage import MlModelUsage
|
199
202
|
from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
|
@@ -238,7 +241,7 @@ from .node_output_compiled_string_value import NodeOutputCompiledStringValue
|
|
238
241
|
from .node_output_compiled_value import NodeOutputCompiledValue
|
239
242
|
from .normalized_log_probs import NormalizedLogProbs
|
240
243
|
from .normalized_token_log_probs import NormalizedTokenLogProbs
|
241
|
-
from .
|
244
|
+
from .number_input import NumberInput
|
242
245
|
from .number_variable_value import NumberVariableValue
|
243
246
|
from .number_vellum_value import NumberVellumValue
|
244
247
|
from .number_vellum_value_request import NumberVellumValueRequest
|
@@ -265,7 +268,6 @@ from .pdf_search_result_meta_source_request import PdfSearchResultMetaSourceRequ
|
|
265
268
|
from .plain_text_prompt_block import PlainTextPromptBlock
|
266
269
|
from .price import Price
|
267
270
|
from .processing_failure_reason_enum import ProcessingFailureReasonEnum
|
268
|
-
from .processing_state_enum import ProcessingStateEnum
|
269
271
|
from .prompt_block import PromptBlock
|
270
272
|
from .prompt_block_state import PromptBlockState
|
271
273
|
from .prompt_deployment_expand_meta_request import PromptDeploymentExpandMetaRequest
|
@@ -313,7 +315,7 @@ from .search_result_merging_request import SearchResultMergingRequest
|
|
313
315
|
from .search_result_meta import SearchResultMeta
|
314
316
|
from .search_result_meta_request import SearchResultMetaRequest
|
315
317
|
from .search_result_request import SearchResultRequest
|
316
|
-
from .
|
318
|
+
from .search_results_input import SearchResultsInput
|
317
319
|
from .search_results_variable_value import SearchResultsVariableValue
|
318
320
|
from .search_results_vellum_value import SearchResultsVellumValue
|
319
321
|
from .search_results_vellum_value_request import SearchResultsVellumValueRequest
|
@@ -332,6 +334,7 @@ from .streaming_prompt_execution_meta import StreamingPromptExecutionMeta
|
|
332
334
|
from .streaming_workflow_node_result_event import StreamingWorkflowNodeResultEvent
|
333
335
|
from .string_chat_message_content import StringChatMessageContent
|
334
336
|
from .string_chat_message_content_request import StringChatMessageContentRequest
|
337
|
+
from .string_input import StringInput
|
335
338
|
from .string_input_request import StringInputRequest
|
336
339
|
from .string_variable_value import StringVariableValue
|
337
340
|
from .string_vellum_value import StringVellumValue
|
@@ -507,7 +510,7 @@ __all__ = [
|
|
507
510
|
"ArrayChatMessageContentItem",
|
508
511
|
"ArrayChatMessageContentItemRequest",
|
509
512
|
"ArrayChatMessageContentRequest",
|
510
|
-
"
|
513
|
+
"ArrayInput",
|
511
514
|
"ArrayVariableValue",
|
512
515
|
"ArrayVariableValueItem",
|
513
516
|
"ArrayVellumValue",
|
@@ -523,6 +526,7 @@ __all__ = [
|
|
523
526
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request",
|
524
527
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
|
525
528
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
529
|
+
"ChatHistoryInput",
|
526
530
|
"ChatHistoryInputRequest",
|
527
531
|
"ChatHistoryVariableValue",
|
528
532
|
"ChatHistoryVellumValue",
|
@@ -544,11 +548,11 @@ __all__ = [
|
|
544
548
|
"CodeExecutionNodeResultOutput",
|
545
549
|
"CodeExecutionNodeSearchResultsResult",
|
546
550
|
"CodeExecutionNodeStringResult",
|
547
|
-
"
|
551
|
+
"CodeExecutionPackage",
|
548
552
|
"CodeExecutionRuntime",
|
549
|
-
"
|
553
|
+
"CodeExecutorInput",
|
550
554
|
"CodeExecutorResponse",
|
551
|
-
"
|
555
|
+
"CodeExecutorSecretInput",
|
552
556
|
"CompilePromptDeploymentExpandMetaRequest",
|
553
557
|
"CompilePromptMeta",
|
554
558
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
@@ -570,6 +574,7 @@ __all__ = [
|
|
570
574
|
"DocumentIndexIndexingConfig",
|
571
575
|
"DocumentIndexIndexingConfigRequest",
|
572
576
|
"DocumentIndexRead",
|
577
|
+
"DocumentProcessingState",
|
573
578
|
"DocumentRead",
|
574
579
|
"DocumentStatus",
|
575
580
|
"EnrichedNormalizedCompletion",
|
@@ -578,7 +583,7 @@ __all__ = [
|
|
578
583
|
"EnvironmentEnum",
|
579
584
|
"EphemeralPromptCacheConfig",
|
580
585
|
"EphemeralPromptCacheConfigTypeEnum",
|
581
|
-
"
|
586
|
+
"ErrorInput",
|
582
587
|
"ErrorVariableValue",
|
583
588
|
"ErrorVellumValue",
|
584
589
|
"ErrorVellumValueRequest",
|
@@ -621,7 +626,7 @@ __all__ = [
|
|
621
626
|
"FunctionCallChatMessageContentRequest",
|
622
627
|
"FunctionCallChatMessageContentValue",
|
623
628
|
"FunctionCallChatMessageContentValueRequest",
|
624
|
-
"
|
629
|
+
"FunctionCallInput",
|
625
630
|
"FunctionCallRequest",
|
626
631
|
"FunctionCallVariableValue",
|
627
632
|
"FunctionCallVellumValue",
|
@@ -660,6 +665,7 @@ __all__ = [
|
|
660
665
|
"InstructorVectorizerConfigRequest",
|
661
666
|
"IterationStateEnum",
|
662
667
|
"JinjaPromptBlock",
|
668
|
+
"JsonInput",
|
663
669
|
"JsonInputRequest",
|
664
670
|
"JsonVariableValue",
|
665
671
|
"JsonVellumValue",
|
@@ -675,7 +681,7 @@ __all__ = [
|
|
675
681
|
"MetadataFilterRuleRequest",
|
676
682
|
"MetadataFiltersRequest",
|
677
683
|
"MetricDefinitionExecution",
|
678
|
-
"
|
684
|
+
"MetricDefinitionInput",
|
679
685
|
"MetricNodeResult",
|
680
686
|
"MlModelUsage",
|
681
687
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
@@ -720,7 +726,7 @@ __all__ = [
|
|
720
726
|
"NodeOutputCompiledValue",
|
721
727
|
"NormalizedLogProbs",
|
722
728
|
"NormalizedTokenLogProbs",
|
723
|
-
"
|
729
|
+
"NumberInput",
|
724
730
|
"NumberVariableValue",
|
725
731
|
"NumberVellumValue",
|
726
732
|
"NumberVellumValueRequest",
|
@@ -747,7 +753,6 @@ __all__ = [
|
|
747
753
|
"PlainTextPromptBlock",
|
748
754
|
"Price",
|
749
755
|
"ProcessingFailureReasonEnum",
|
750
|
-
"ProcessingStateEnum",
|
751
756
|
"PromptBlock",
|
752
757
|
"PromptBlockState",
|
753
758
|
"PromptDeploymentExpandMetaRequest",
|
@@ -795,7 +800,7 @@ __all__ = [
|
|
795
800
|
"SearchResultMeta",
|
796
801
|
"SearchResultMetaRequest",
|
797
802
|
"SearchResultRequest",
|
798
|
-
"
|
803
|
+
"SearchResultsInput",
|
799
804
|
"SearchResultsVariableValue",
|
800
805
|
"SearchResultsVellumValue",
|
801
806
|
"SearchResultsVellumValueRequest",
|
@@ -814,6 +819,7 @@ __all__ = [
|
|
814
819
|
"StreamingWorkflowNodeResultEvent",
|
815
820
|
"StringChatMessageContent",
|
816
821
|
"StringChatMessageContentRequest",
|
822
|
+
"StringInput",
|
817
823
|
"StringInputRequest",
|
818
824
|
"StringVariableValue",
|
819
825
|
"StringVellumValue",
|
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
-
from .
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
6
6
|
import pydantic
|
7
7
|
import typing
|
8
|
-
from .
|
8
|
+
from .vellum_value import VellumValue
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
10
|
from ..core.pydantic_utilities import update_forward_refs
|
11
11
|
|
12
12
|
|
13
|
-
class
|
13
|
+
class ArrayInput(UniversalBaseModel):
|
14
14
|
"""
|
15
15
|
A user input representing a Vellum Array value
|
16
16
|
"""
|
@@ -21,7 +21,7 @@ class ArrayInputRequest(UniversalBaseModel):
|
|
21
21
|
"""
|
22
22
|
|
23
23
|
type: typing.Literal["ARRAY"] = "ARRAY"
|
24
|
-
value: typing.List[
|
24
|
+
value: typing.List[VellumValue]
|
25
25
|
|
26
26
|
if IS_PYDANTIC_V2:
|
27
27
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -33,4 +33,4 @@ class ArrayInputRequest(UniversalBaseModel):
|
|
33
33
|
extra = pydantic.Extra.allow
|
34
34
|
|
35
35
|
|
36
|
-
update_forward_refs(
|
36
|
+
update_forward_refs(ArrayVellumValue, ArrayInput=ArrayInput)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from .chat_message import ChatMessage
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
|
9
|
+
|
10
|
+
class ChatHistoryInput(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a list of chat messages
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name, as defined in the deployment.
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
21
|
+
value: typing.List[ChatMessage]
|
22
|
+
|
23
|
+
if IS_PYDANTIC_V2:
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
+
else:
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .string_input import StringInput
|
5
|
+
from .json_input import JsonInput
|
6
|
+
from .chat_history_input import ChatHistoryInput
|
7
|
+
from .number_input import NumberInput
|
8
|
+
from .search_results_input import SearchResultsInput
|
9
|
+
from .error_input import ErrorInput
|
10
|
+
from .array_input import ArrayInput
|
11
|
+
from .function_call_input import FunctionCallInput
|
12
|
+
from .code_executor_secret_input import CodeExecutorSecretInput
|
13
|
+
|
14
|
+
CodeExecutorInput = typing.Union[
|
15
|
+
StringInput,
|
16
|
+
JsonInput,
|
17
|
+
ChatHistoryInput,
|
18
|
+
NumberInput,
|
19
|
+
SearchResultsInput,
|
20
|
+
ErrorInput,
|
21
|
+
ArrayInput,
|
22
|
+
FunctionCallInput,
|
23
|
+
CodeExecutorSecretInput,
|
24
|
+
]
|
vellum/types/document_read.py
CHANGED
@@ -4,7 +4,7 @@ from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
4
|
import typing
|
5
5
|
import pydantic
|
6
6
|
import datetime as dt
|
7
|
-
from .
|
7
|
+
from .document_processing_state import DocumentProcessingState
|
8
8
|
from .document_status import DocumentStatus
|
9
9
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
@@ -23,16 +23,7 @@ class DocumentRead(UniversalBaseModel):
|
|
23
23
|
A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
24
24
|
"""
|
25
25
|
|
26
|
-
processing_state:
|
27
|
-
"""
|
28
|
-
The current processing state of the document
|
29
|
-
|
30
|
-
- `QUEUED` - Queued
|
31
|
-
- `PROCESSING` - Processing
|
32
|
-
- `PROCESSED` - Processed
|
33
|
-
- `FAILED` - Failed
|
34
|
-
"""
|
35
|
-
|
26
|
+
processing_state: DocumentProcessingState
|
36
27
|
status: typing.Optional[DocumentStatus] = pydantic.Field(default=None)
|
37
28
|
"""
|
38
29
|
The current status of the document
|
@@ -3,11 +3,11 @@
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
4
4
|
import pydantic
|
5
5
|
import typing
|
6
|
-
from .
|
6
|
+
from .vellum_error import VellumError
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class ErrorInput(UniversalBaseModel):
|
11
11
|
"""
|
12
12
|
A user input representing a Vellum Error value
|
13
13
|
"""
|
@@ -18,7 +18,7 @@ class ErrorInputRequest(UniversalBaseModel):
|
|
18
18
|
"""
|
19
19
|
|
20
20
|
type: typing.Literal["ERROR"] = "ERROR"
|
21
|
-
value:
|
21
|
+
value: VellumError
|
22
22
|
|
23
23
|
if IS_PYDANTIC_V2:
|
24
24
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -3,11 +3,11 @@
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
4
4
|
import pydantic
|
5
5
|
import typing
|
6
|
-
from .
|
6
|
+
from .function_call import FunctionCall
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class FunctionCallInput(UniversalBaseModel):
|
11
11
|
"""
|
12
12
|
A user input representing a Vellum Function Call value
|
13
13
|
"""
|
@@ -18,7 +18,7 @@ class FunctionCallInputRequest(UniversalBaseModel):
|
|
18
18
|
"""
|
19
19
|
|
20
20
|
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
21
|
-
value:
|
21
|
+
value: FunctionCall
|
22
22
|
|
23
23
|
if IS_PYDANTIC_V2:
|
24
24
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
|
8
|
+
|
9
|
+
class JsonInput(UniversalBaseModel):
|
10
|
+
"""
|
11
|
+
A user input representing a JSON object
|
12
|
+
"""
|
13
|
+
|
14
|
+
name: str = pydantic.Field()
|
15
|
+
"""
|
16
|
+
The variable's name
|
17
|
+
"""
|
18
|
+
|
19
|
+
type: typing.Literal["JSON"] = "JSON"
|
20
|
+
value: typing.Optional[typing.Any] = None
|
21
|
+
|
22
|
+
if IS_PYDANTIC_V2:
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
24
|
+
else:
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .string_input import StringInput
|
5
|
+
from .json_input import JsonInput
|
6
|
+
from .chat_history_input import ChatHistoryInput
|
7
|
+
from .number_input import NumberInput
|
8
|
+
|
9
|
+
MetricDefinitionInput = typing.Union[StringInput, JsonInput, ChatHistoryInput, NumberInput]
|
@@ -3,11 +3,11 @@
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
4
4
|
import pydantic
|
5
5
|
import typing
|
6
|
-
from .
|
6
|
+
from .search_result import SearchResult
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class SearchResultsInput(UniversalBaseModel):
|
11
11
|
"""
|
12
12
|
A user input representing a search results value
|
13
13
|
"""
|
@@ -18,7 +18,7 @@ class SearchResultsInputRequest(UniversalBaseModel):
|
|
18
18
|
"""
|
19
19
|
|
20
20
|
type: typing.Literal["SEARCH_RESULTS"] = "SEARCH_RESULTS"
|
21
|
-
value: typing.List[
|
21
|
+
value: typing.List[SearchResult]
|
22
22
|
|
23
23
|
if IS_PYDANTIC_V2:
|
24
24
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
vellum/types/slim_document.py
CHANGED
@@ -4,7 +4,7 @@ from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
4
|
import pydantic
|
5
5
|
import typing
|
6
6
|
import datetime as dt
|
7
|
-
from .
|
7
|
+
from .document_processing_state import DocumentProcessingState
|
8
8
|
from .processing_failure_reason_enum import ProcessingFailureReasonEnum
|
9
9
|
from .document_status import DocumentStatus
|
10
10
|
from .document_document_to_document_index import DocumentDocumentToDocumentIndex
|
@@ -32,16 +32,7 @@ class SlimDocument(UniversalBaseModel):
|
|
32
32
|
Human-friendly name for this document.
|
33
33
|
"""
|
34
34
|
|
35
|
-
processing_state:
|
36
|
-
"""
|
37
|
-
An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
|
38
|
-
|
39
|
-
- `QUEUED` - Queued
|
40
|
-
- `PROCESSING` - Processing
|
41
|
-
- `PROCESSED` - Processed
|
42
|
-
- `FAILED` - Failed
|
43
|
-
"""
|
44
|
-
|
35
|
+
processing_state: DocumentProcessingState
|
45
36
|
processing_failure_reason: typing.Optional[ProcessingFailureReasonEnum] = pydantic.Field(default=None)
|
46
37
|
"""
|
47
38
|
An enum value representing why the document could not be processed. Is null unless processing_state is FAILED.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
|
8
|
+
|
9
|
+
class StringInput(UniversalBaseModel):
|
10
|
+
"""
|
11
|
+
A user input representing a string value
|
12
|
+
"""
|
13
|
+
|
14
|
+
name: str = pydantic.Field()
|
15
|
+
"""
|
16
|
+
The variable's name
|
17
|
+
"""
|
18
|
+
|
19
|
+
type: typing.Literal["STRING"] = "STRING"
|
20
|
+
value: str
|
21
|
+
|
22
|
+
if IS_PYDANTIC_V2:
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
24
|
+
else:
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic.Extra.allow
|
@@ -4,7 +4,12 @@ import typing
|
|
4
4
|
|
5
5
|
VellumErrorCodeEnum = typing.Union[
|
6
6
|
typing.Literal[
|
7
|
-
"INVALID_REQUEST",
|
7
|
+
"INVALID_REQUEST",
|
8
|
+
"INVALID_INPUTS",
|
9
|
+
"PROVIDER_ERROR",
|
10
|
+
"REQUEST_TIMEOUT",
|
11
|
+
"INTERNAL_SERVER_ERROR",
|
12
|
+
"USER_DEFINED_ERROR",
|
8
13
|
],
|
9
14
|
typing.Any,
|
10
15
|
]
|
@@ -1,8 +1,8 @@
|
|
1
|
-
vellum/__init__.py,sha256=
|
2
|
-
vellum/client.py,sha256=
|
1
|
+
vellum/__init__.py,sha256=jgwx_FeayL9btCxwf_azwPxMqwBIGyJ4oPdiKjLKmdo,34242
|
2
|
+
vellum/client.py,sha256=GtF36JNWxnFRV348M0-YcGd9N6ES-l0Q5b32rwHCR5E,115031
|
3
3
|
vellum/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
4
4
|
vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
5
|
-
vellum/core/client_wrapper.py,sha256=
|
5
|
+
vellum/core/client_wrapper.py,sha256=yB4sWmj_3iPctZKEdAasBft2xWadUsYYb9r9OguEmcs,1890
|
6
6
|
vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
7
7
|
vellum/core/file.py,sha256=X9IbmkZmB2bB_DpmZAO3crWdXagOakAyn6UCOCImCPg,2322
|
8
8
|
vellum/core/http_client.py,sha256=R0pQpCppnEtxccGvXl4uJ76s7ro_65Fo_erlNNLp_AI,19228
|
@@ -32,7 +32,7 @@ vellum/lib/utils/uuid.py,sha256=nedyhTNQDS2YvrU5gL3PtvG9cgGH87yKOcpGDJAe44E,214
|
|
32
32
|
vellum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
vellum/resources/__init__.py,sha256=6tqe3AwLJGLW38iua0Tje0n3uz3a4vkqMFxbUJGRs98,1346
|
34
34
|
vellum/resources/ad_hoc/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
35
|
-
vellum/resources/ad_hoc/client.py,sha256=
|
35
|
+
vellum/resources/ad_hoc/client.py,sha256=bTNVk1CzPUHhegK_oVI1aN49J8Unin2V9nHGYXfaF3k,16091
|
36
36
|
vellum/resources/container_images/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
37
37
|
vellum/resources/container_images/client.py,sha256=jK1n-NFsdBKCeEKh-EIqvw7R8AG9PP4GxxcoH9F0GYs,15463
|
38
38
|
vellum/resources/deployments/__init__.py,sha256=m64MNuPx3qVazOnTNwOY8oEeDrAkNwMJvUEe5xoMDvs,239
|
@@ -51,7 +51,7 @@ vellum/resources/folder_entities/client.py,sha256=ep5dnfJmEuEyrOSUftEVwKaeXrg1DE
|
|
51
51
|
vellum/resources/folder_entities/types/__init__.py,sha256=cHabrupjC-HL3kj-UZ9WdVzqHoQHCu6QsLFB3wlOs7k,212
|
52
52
|
vellum/resources/folder_entities/types/folder_entities_list_request_entity_status.py,sha256=nK9b9fRSeCfjn2V2Hifl1IbhFeVsNkoeXJ8rCAPADFg,183
|
53
53
|
vellum/resources/metric_definitions/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
54
|
-
vellum/resources/metric_definitions/client.py,sha256=
|
54
|
+
vellum/resources/metric_definitions/client.py,sha256=w-2IQ-ILDNqws6bWjZj6V9G86qw5zCVLXKq4j3Nebzw,5924
|
55
55
|
vellum/resources/sandboxes/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
56
56
|
vellum/resources/sandboxes/client.py,sha256=i-6DHap5k6gFcYS-kWI8ayJFVZxb-GENRft6BJwVam4,17158
|
57
57
|
vellum/resources/test_suite_runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
@@ -82,7 +82,7 @@ vellum/terraform/ml_model/__init__.py,sha256=I8h1Ru-Rb-Hi_HusK6G7nJQZEKQGsAAHMmw
|
|
82
82
|
vellum/terraform/provider/__init__.py,sha256=-06xKmAmknpohVzw5TD-t1bnUHta8OrQYqvMd04XM-U,12684
|
83
83
|
vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
84
84
|
vellum/terraform/versions.json,sha256=45c7jjRD5i4w9DJQHs5ZqLLVXRnQwP9Rirq3mWY-xEo,56
|
85
|
-
vellum/types/__init__.py,sha256=
|
85
|
+
vellum/types/__init__.py,sha256=8zqfmyAI_sKFL7ugWSV9dlmIlWo1Ah5xzppj1qqvDCY,51735
|
86
86
|
vellum/types/ad_hoc_execute_prompt_event.py,sha256=bCjujA2XsOgyF3bRZbcEqV2rOIymRgsLoIRtZpB14xg,607
|
87
87
|
vellum/types/ad_hoc_expand_meta.py,sha256=1gv-NCsy_6xBYupLvZH979yf2VMdxAU-l0y0ynMKZaw,1331
|
88
88
|
vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py,sha256=Bfvf1d_dkmshxRACVM5vcxbH_7AQY23RmrrnPc0ytYY,939
|
@@ -96,7 +96,7 @@ vellum/types/array_chat_message_content.py,sha256=353TDzStNXA2dQETvnJrazCr33nlFx
|
|
96
96
|
vellum/types/array_chat_message_content_item.py,sha256=7Um9YRe91I4F6YAOMEHoaJeplRdKwLP7a5HyLpYk_Y4,510
|
97
97
|
vellum/types/array_chat_message_content_item_request.py,sha256=sF6gvW2UqE1EDJlG8w7mmiGWYehdSyfU350r1LTpwJM,618
|
98
98
|
vellum/types/array_chat_message_content_request.py,sha256=vpPV0KmM_uui7vFHY6f6kE1yj7iOwqOjxEuGhh1ZxFM,809
|
99
|
-
vellum/types/
|
99
|
+
vellum/types/array_input.py,sha256=RPscmg0-YBNsViK4fWBnz_iXw7hq3QVnjL4R-9xFb74,1004
|
100
100
|
vellum/types/array_variable_value.py,sha256=_BQX5Kk1OLJaAyk3CPgsIgiLR_FI2pvbe5Ne8q9gsqY,876
|
101
101
|
vellum/types/array_variable_value_item.py,sha256=5GDpe5sFc4aeJOeXqPxsyLSRYxQ9hFBg5RYlv12ZHaU,1040
|
102
102
|
vellum/types/array_vellum_value.py,sha256=6ZDizIzijUFX29JD4lnNv1mOH-venLD_c_sIiONWzqE,915
|
@@ -112,6 +112,7 @@ vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.
|
|
112
112
|
vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py,sha256=QDv4d6ml773U6EpiAkNRJCHi3jgiRPOoCLXXMhGyJ7o,918
|
113
113
|
vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py,sha256=n1ijP1zw-lQnxbj_ZfederNYD4LW-FGDklUOlYewxwg,911
|
114
114
|
vellum/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py,sha256=Y79jx-9QkbTzb7jSx8xF6YtbAB914u9E9uXOapk8TQc,918
|
115
|
+
vellum/types/chat_history_input.py,sha256=lNh5j5mFxs0nTknzsL8kt9yAERpAWid7EWUU0i8BybM,853
|
115
116
|
vellum/types/chat_history_input_request.py,sha256=0dmWfRWN9lOGEorQ3P1jKPAQtcXVexxiU9UEoJKP_pU,882
|
116
117
|
vellum/types/chat_history_variable_value.py,sha256=pHMZQSnkfbAfVZaeiZaPVMDt1xdlVtZFL2kI7UKlipE,709
|
117
118
|
vellum/types/chat_history_vellum_value.py,sha256=_yg6qk2Jci_rjFPOd3KNkXY0AduoEX1Tk8oPzQVpBYw,763
|
@@ -133,11 +134,11 @@ vellum/types/code_execution_node_result_data.py,sha256=CJ73aynNfct57S0AVD1cr8Kj4
|
|
133
134
|
vellum/types/code_execution_node_result_output.py,sha256=ZddnayoP01i5alC12OaoNdSgLoXr_Y4Nl343xGJvJeU,1069
|
134
135
|
vellum/types/code_execution_node_search_results_result.py,sha256=yPh94v7pgFL-4x1JPSnXXGihUi42i-OfOaNVHLN4jE8,740
|
135
136
|
vellum/types/code_execution_node_string_result.py,sha256=uH6KO57muMko4u_xISchhvP0E-VzJfhKD_rijXgisZ8,655
|
136
|
-
vellum/types/
|
137
|
+
vellum/types/code_execution_package.py,sha256=2cPKwG_5pxbHND-ChLH-4lk4O5TRWSv3KCsxNZYXZyw,580
|
137
138
|
vellum/types/code_execution_runtime.py,sha256=ucMXj7mUYl9-B_KentTfRuRIeDq33PV3OV_GWKiG-lo,181
|
138
|
-
vellum/types/
|
139
|
+
vellum/types/code_executor_input.py,sha256=Dj6XRaIRHjbXDZ-wR_XusJkrxYD_lJ1-UZY0Ga4xeqI,694
|
139
140
|
vellum/types/code_executor_response.py,sha256=iG3q95G7sXABhdkh81DhBYKHKrgZAFK1SvOa3Su6giM,849
|
140
|
-
vellum/types/
|
141
|
+
vellum/types/code_executor_secret_input.py,sha256=GmQG38-iQ6wTIvRw3fglOLepuw3LDL2I3joNXn3z-WA,766
|
141
142
|
vellum/types/compile_prompt_deployment_expand_meta_request.py,sha256=z0iMR9nLGz5h2MbqamIwUxB8EiXGvqdf0tlYAQsBFbA,1136
|
142
143
|
vellum/types/compile_prompt_meta.py,sha256=lQOFdrhMpzMOf_hasn4vb1AKnX2VuASr-1evaugJ4ro,848
|
143
144
|
vellum/types/components_schemas_pdf_search_result_meta_source.py,sha256=WEB3B__R6zLakrJMMn_1z9FIylBcxencQ6JHVPs7HSg,206
|
@@ -159,7 +160,8 @@ vellum/types/document_index_chunking_request.py,sha256=g9BKCsHKg5kzjG7YYeMNQ_5R8
|
|
159
160
|
vellum/types/document_index_indexing_config.py,sha256=xL1pCzUOkw5sSie1OrBpasE3bVnv0UyZBn7uZztbhbs,781
|
160
161
|
vellum/types/document_index_indexing_config_request.py,sha256=Wt-ys1o_acHNyLU0c1laG2PVT7rgCfwO54f5nudAxk4,832
|
161
162
|
vellum/types/document_index_read.py,sha256=9btlJ9-H7DwTFfBljT2PuxtyTQjhiWTStvGqVJMwirE,1469
|
162
|
-
vellum/types/
|
163
|
+
vellum/types/document_processing_state.py,sha256=ISlurj7jQzwHzxPzDZTqeAIgSIIGMBBPgcOSoe04pTU,211
|
164
|
+
vellum/types/document_read.py,sha256=NpI11FeW03pFiv-SMLEHu2yMkzibHQzzxqXRpcngi-s,1713
|
163
165
|
vellum/types/document_status.py,sha256=GD_TSoFmZUBJnPl-chAmaQFzQ2_TYO3PSqi3-9QfEHE,122
|
164
166
|
vellum/types/enriched_normalized_completion.py,sha256=qk8o_PCj8rvgxa9omng0Nx5SvGNgzS7wnXMpoH56s8k,1825
|
165
167
|
vellum/types/entity_status.py,sha256=bY0jEpISwXqFnbWd3PSb3yXEr-ounPXlAO_fyvHV7l8,158
|
@@ -167,7 +169,7 @@ vellum/types/entity_visibility.py,sha256=BX1KdYd7dirpv878XDDvtOHkMOqebM8-lkWmLyF
|
|
167
169
|
vellum/types/environment_enum.py,sha256=Wcewxp1cpGAMDIAZbTp4Y0GGfvy2Bq_Qu_67f_wBDGA,179
|
168
170
|
vellum/types/ephemeral_prompt_cache_config.py,sha256=PK26yfHCLPAnXd89r8gz0rCD9hRR5pjKrE-o6-Mk-dI,712
|
169
171
|
vellum/types/ephemeral_prompt_cache_config_type_enum.py,sha256=houFyNbNr9r2uXTBoRTA0eZJaBDe0CFTIUbsDyWK2e4,145
|
170
|
-
vellum/types/
|
172
|
+
vellum/types/error_input.py,sha256=UiYDo7pxeCmW7REuk80ByzUp1hxEQwQCEA5isZc0ZUc,786
|
171
173
|
vellum/types/error_variable_value.py,sha256=ULT_D9h8dKeHTnXEDv6UHxNlpmwQ3iDHTGU6Zg8a6H0,676
|
172
174
|
vellum/types/error_vellum_value.py,sha256=Y7yO8Y1eOlbRyOqbOh6MyPRNHYKH48gIhlZIRcw1UaA,726
|
173
175
|
vellum/types/error_vellum_value_request.py,sha256=o0aSn34dRcpnAwAfwW_sgwP7CkODGd5448w2Olg-spg,755
|
@@ -210,7 +212,7 @@ vellum/types/function_call_chat_message_content.py,sha256=qXbrMQeXn_CLjfDzQvv9ll
|
|
210
212
|
vellum/types/function_call_chat_message_content_request.py,sha256=HVGxHs6jc4EBgW7rdJXlF8KRlugY5YHa0ujDrEQqPCo,860
|
211
213
|
vellum/types/function_call_chat_message_content_value.py,sha256=DHRZYAMc4Y5MerUS_6CIxQBtORftKn-gBx8Skgivm_A,736
|
212
214
|
vellum/types/function_call_chat_message_content_value_request.py,sha256=67EZ3qSR9zO5akOgloswRE0Pv8BcjtWhdTRJIwuQU04,743
|
213
|
-
vellum/types/
|
215
|
+
vellum/types/function_call_input.py,sha256=Iiqk2-IX6xUI2UnRj3bum5C0OlQn9jRmBwatUzJQQt8,820
|
214
216
|
vellum/types/function_call_request.py,sha256=eJBIN-wLkkkDUIwAy1nMeWHu3MZ5aJpOXyWtBa39RFA,811
|
215
217
|
vellum/types/function_call_variable_value.py,sha256=VQKCiEtJsmIK3i7CtFV_2ZpxeX70rqpUViXIvAci8L0,702
|
216
218
|
vellum/types/function_call_vellum_value.py,sha256=lLJb-S_-S_UXm6una1BMyCbqLpMhbbMcaVIYNO45h5o,759
|
@@ -249,6 +251,7 @@ vellum/types/instructor_vectorizer_config.py,sha256=7udlosXv4CUWTW_Q9m0mz3VRi1FK
|
|
249
251
|
vellum/types/instructor_vectorizer_config_request.py,sha256=6LGFFQKntMfX7bdetUqEMVdr3KJHEps0oDp2bNmqWbM,738
|
250
252
|
vellum/types/iteration_state_enum.py,sha256=83JSh842OJgQiLtNn1KMimy6RlEYRVH3mDmYWS6Ewzo,180
|
251
253
|
vellum/types/jinja_prompt_block.py,sha256=Q2aIQh8a-i09kL1ISM-kzTq7TZoyaafDDlmCkUmLnVw,939
|
254
|
+
vellum/types/json_input.py,sha256=ZUA2O9YueBCx0IMMdB8uYNSWJiSDZxMm5ogwbwCmz_g,761
|
252
255
|
vellum/types/json_input_request.py,sha256=x5sA-VXxF4QH-98xRcIKPZhsMVbnJNUQofiUQqyfGk4,768
|
253
256
|
vellum/types/json_variable_value.py,sha256=X7eBEWxuozfvIdqD5sIZ5L-L77Ou6IIsZaQVNXh5G2k,634
|
254
257
|
vellum/types/json_vellum_value.py,sha256=8irlw6NkRRVafysfTc1Q5BFFhRrWJYzdwrDYTdJK4JY,689
|
@@ -264,7 +267,7 @@ vellum/types/metadata_filter_rule_combinator.py,sha256=3Vpp1Mnv3As7efkxWTeV8qd4g
|
|
264
267
|
vellum/types/metadata_filter_rule_request.py,sha256=Pcs0TsU7CRnsEUoH0DWb-c9DTP2UW67lJKXlsTLXV48,1135
|
265
268
|
vellum/types/metadata_filters_request.py,sha256=Yaiu7rkcrV2bCFk6HrZSjuF6V-6JYjZTpzxv7_MFe70,345
|
266
269
|
vellum/types/metric_definition_execution.py,sha256=xwr5VJTo32k77isUtz2uzHGmtRm6K_VyOlTCbJr0JNU,672
|
267
|
-
vellum/types/
|
270
|
+
vellum/types/metric_definition_input.py,sha256=4nmwpPqbeNQYCzLkXCkc-FGV5K2Zfa22xqSUe_L6o5s,331
|
268
271
|
vellum/types/metric_node_result.py,sha256=YdKq1DZiBD1RBtjyMejImylv3BqrwY8B_UF4Ij-6_64,660
|
269
272
|
vellum/types/ml_model_usage.py,sha256=WcZ2F1hfxyTwe-spOVwv-qJYDjs4hf9sn7BF2abawPo,910
|
270
273
|
vellum/types/named_scenario_input_chat_history_variable_value_request.py,sha256=aVZmAxu-47c34NyhSkfi9tQqIPy29cdJ7Pb4MIgKeNw,862
|
@@ -309,7 +312,7 @@ vellum/types/node_output_compiled_string_value.py,sha256=pR_ku51KL_gwplMCiy6oT4s
|
|
309
312
|
vellum/types/node_output_compiled_value.py,sha256=ADqSZuj1Gk0OdV9xrAfV--cW-6VrbBSZ7YZ_qFa0REs,1063
|
310
313
|
vellum/types/normalized_log_probs.py,sha256=XNfwhKgK9vPlJQh9dcup2Rl5mTlmV154rrIRsf3dYx8,706
|
311
314
|
vellum/types/normalized_token_log_probs.py,sha256=C0VHuRQbbcCFzQ9fJNbNjXAc2aUMUT5MxIt929-KMEA,714
|
312
|
-
vellum/types/
|
315
|
+
vellum/types/number_input.py,sha256=e5hNmwXv-rBfkJ-SdwbJzU6UKY0ej2m6jO7uEKJ_n4M,739
|
313
316
|
vellum/types/number_variable_value.py,sha256=L2WKopg_1l8Uq1WZVhpcK1wztzRCxauE-ALameuEqRs,635
|
314
317
|
vellum/types/number_vellum_value.py,sha256=LWQuMygk1Ai5Gjk_2bcp2idsEtzliotMolIyk_hgtnI,685
|
315
318
|
vellum/types/number_vellum_value_request.py,sha256=vdp8WZpc_YvITT7g3bzIVIxDUYQgfNIzPTIyk2Sem-I,692
|
@@ -336,7 +339,6 @@ vellum/types/pdf_search_result_meta_source_request.py,sha256=nUhaD2Kw1paGC6O_ICV
|
|
336
339
|
vellum/types/plain_text_prompt_block.py,sha256=GlzovdRbT6mhunMvIpF94_0apjh_0SZtkdlx5HFrE0k,930
|
337
340
|
vellum/types/price.py,sha256=ewzXDBVLaleuXMVQ-gQ3G1Nl5J2OWOVEMEFfnQIpiTk,610
|
338
341
|
vellum/types/processing_failure_reason_enum.py,sha256=R_KIW7TcQejhc-vLhtNf9SdkYADgoZCn4ch4_RRIvsI,195
|
339
|
-
vellum/types/processing_state_enum.py,sha256=lIEunnCpgYQExm2bGyTb12KyjQ3O7XOx636aWXb_Iwo,190
|
340
342
|
vellum/types/prompt_block.py,sha256=qJISp3lSZ0EVrTuqs9306KO14mZPQmj-yeghBqqfBao,606
|
341
343
|
vellum/types/prompt_block_state.py,sha256=BRAzTYARoSU36IVZGWMeeqhl5fgFMXCyhJ8rCbfB-f0,163
|
342
344
|
vellum/types/prompt_deployment_expand_meta_request.py,sha256=agsiAaHB6lDoZPlnfJ2nmhB4Ud4EiJJTX05YmduyCPo,1910
|
@@ -384,7 +386,7 @@ vellum/types/search_result_merging_request.py,sha256=YiAgNuwvrpjwJBVS5_F6-UHmOLO
|
|
384
386
|
vellum/types/search_result_meta.py,sha256=A8xNQbxbkwgT_VbHLPXgMYPAmwuHC6BZG0o7Dy7W8_k,729
|
385
387
|
vellum/types/search_result_meta_request.py,sha256=e0Mg1XAdqGtBFJ9zj8YYLfctZLP2d2AQr3GGjtXQBfY,758
|
386
388
|
vellum/types/search_result_request.py,sha256=cfKvzUCes4TxH757bu1D8ieM3nuW6A4yu1J00tAjhDQ,1245
|
387
|
-
vellum/types/
|
389
|
+
vellum/types/search_results_input.py,sha256=kUfXw_NttVClGdEu9qGiZWXggFBKaIlpZ3bbWN2nV1U,830
|
388
390
|
vellum/types/search_results_variable_value.py,sha256=zUnHDpyT_OgC9ZQkmeUUn_oYaDxK8z-ztURkHqG8i_8,718
|
389
391
|
vellum/types/search_results_vellum_value.py,sha256=i_7d5cANsjuFSRwI3qUgzNdz6ZyrhakuxP4lMQeUFu4,774
|
390
392
|
vellum/types/search_results_vellum_value_request.py,sha256=Y36g5iLmweV4k_UiTDI9gSXf9Pn_aCwho0Z7dUNiVZU,803
|
@@ -395,7 +397,7 @@ vellum/types/sentence_chunker_config_request.py,sha256=EpGTP4z3YttiThYmdjwIBOI5Y
|
|
395
397
|
vellum/types/sentence_chunking.py,sha256=guqU3072X4h8Laf6LhTWQ5lpjBpTgoXRxKp5iXJby2U,783
|
396
398
|
vellum/types/sentence_chunking_request.py,sha256=77gv1fVc9IaTuGGx3O1HB0LF9sXM5pSTWksl8BEmvLU,812
|
397
399
|
vellum/types/slim_deployment_read.py,sha256=DIYkuill3hfoNDYpgO8oZ7Aq9KGbM09dZv2gOEPPGeQ,1826
|
398
|
-
vellum/types/slim_document.py,sha256
|
400
|
+
vellum/types/slim_document.py,sha256=x3xcsgazw5wjlA-oMLqwb4b04QFvMvJGUnc9zrobfW0,2382
|
399
401
|
vellum/types/slim_workflow_deployment.py,sha256=FW7qXPtSIP9QAzECbl8gKL1iFqKWTAfIjSVwNTIL6GA,2189
|
400
402
|
vellum/types/streaming_ad_hoc_execute_prompt_event.py,sha256=NdgmJ3AZMp6io-whZIGnGb49aiqz6__KafsrzjEF_9o,1183
|
401
403
|
vellum/types/streaming_execute_prompt_event.py,sha256=bjfY5ZU8ZI048a7x1VW8dDXMtSl-3Ej5koSpfKboJj0,1161
|
@@ -403,6 +405,7 @@ vellum/types/streaming_prompt_execution_meta.py,sha256=vFLNQAVbbuvQamO9NeKDDTLQD
|
|
403
405
|
vellum/types/streaming_workflow_node_result_event.py,sha256=AEPuKp9rtq1EodBxXVADdwTfe7EAioM2Vuxk2Ipt1ZQ,1413
|
404
406
|
vellum/types/string_chat_message_content.py,sha256=6ZVl5cofQXFV2RlEJvVdWWYa9WVe172DPOZ-Uk82lDM,682
|
405
407
|
vellum/types/string_chat_message_content_request.py,sha256=qFB_JJvI4FgbW7bB60tyGChWDNINnHqa7hW13rlOvak,689
|
408
|
+
vellum/types/string_input.py,sha256=fNrA_6lhZ0SMLDIMojmR94n6S7zE5wiSARYmujvT0jM,737
|
406
409
|
vellum/types/string_input_request.py,sha256=6GjNnhuK2krO_8U-id0TOqNyND2GfNpDm7OWd60DyqE,744
|
407
410
|
vellum/types/string_variable_value.py,sha256=KNYKEGdChEIbGhyJHE6__5lKU1ybfjoNPxKvRlH36lc,633
|
408
411
|
vellum/types/string_vellum_value.py,sha256=qnMmHG0Mo6T27JtMSr3qFxqsmTfX8xlXE2gqENHWg88,683
|
@@ -502,7 +505,7 @@ vellum/types/variable_prompt_block.py,sha256=TnFQpfulqvbO-Ogs0u_IqQ6TPMMRC_Grz5u
|
|
502
505
|
vellum/types/vellum_audio.py,sha256=oPm1bcxk7fTfWfHWOPSLvrZrRBjCyPDVDRMACPoWmMI,721
|
503
506
|
vellum/types/vellum_audio_request.py,sha256=y9CZgQ1TteW0AHNk8GuAZLNVFa981rh7P9vyV8bfgys,728
|
504
507
|
vellum/types/vellum_error.py,sha256=jCKfuCkDTiyFb1-QyP2cg0wReja6wMuooKPAjNhBA0M,643
|
505
|
-
vellum/types/vellum_error_code_enum.py,sha256=
|
508
|
+
vellum/types/vellum_error_code_enum.py,sha256=OtW7fuM3RrRIDHbbJtk2FxPf70JjP4XYCBdc6lKPIVA,330
|
506
509
|
vellum/types/vellum_error_request.py,sha256=RacXJoIgR8MeXXWDMI76pkxLBhCRgHnbj-aIJytZtP4,650
|
507
510
|
vellum/types/vellum_image.py,sha256=wkFRgxOkxFPrmRdWTO58_41_vk0HYn5k4xsc-5ywxEs,637
|
508
511
|
vellum/types/vellum_image_request.py,sha256=_Gr4L7PSY8PNQINyTy04hPdwLc8_bR1RTUWZ73RQRYM,644
|
@@ -560,7 +563,7 @@ vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb
|
|
560
563
|
vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
|
561
564
|
vellum/types/workspace_secret_read.py,sha256=3CnHDG72IAY0KRNvc31F0xLmhnpwjQHnDYCfQJzCxI0,714
|
562
565
|
vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
|
563
|
-
vellum_ai-0.9.
|
564
|
-
vellum_ai-0.9.
|
565
|
-
vellum_ai-0.9.
|
566
|
-
vellum_ai-0.9.
|
566
|
+
vellum_ai-0.9.12.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
|
567
|
+
vellum_ai-0.9.12.dist-info/METADATA,sha256=x24G6l3nAPZze0IEi_D4vwitY6b5lpYrlqGnGgxk8lE,4395
|
568
|
+
vellum_ai-0.9.12.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
569
|
+
vellum_ai-0.9.12.dist-info/RECORD,,
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import typing
|
4
|
-
from .string_input_request import StringInputRequest
|
5
|
-
from .json_input_request import JsonInputRequest
|
6
|
-
from .chat_history_input_request import ChatHistoryInputRequest
|
7
|
-
from .number_input_request import NumberInputRequest
|
8
|
-
from .search_results_input_request import SearchResultsInputRequest
|
9
|
-
from .error_input_request import ErrorInputRequest
|
10
|
-
from .array_input_request import ArrayInputRequest
|
11
|
-
from .function_call_input_request import FunctionCallInputRequest
|
12
|
-
from .code_executor_secret_input_request import CodeExecutorSecretInputRequest
|
13
|
-
|
14
|
-
CodeExecutorInputRequest = typing.Union[
|
15
|
-
StringInputRequest,
|
16
|
-
JsonInputRequest,
|
17
|
-
ChatHistoryInputRequest,
|
18
|
-
NumberInputRequest,
|
19
|
-
SearchResultsInputRequest,
|
20
|
-
ErrorInputRequest,
|
21
|
-
ArrayInputRequest,
|
22
|
-
FunctionCallInputRequest,
|
23
|
-
CodeExecutorSecretInputRequest,
|
24
|
-
]
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import typing
|
4
|
-
from .string_input_request import StringInputRequest
|
5
|
-
from .json_input_request import JsonInputRequest
|
6
|
-
from .chat_history_input_request import ChatHistoryInputRequest
|
7
|
-
from .number_input_request import NumberInputRequest
|
8
|
-
|
9
|
-
MetricDefinitionInputRequest = typing.Union[
|
10
|
-
StringInputRequest, JsonInputRequest, ChatHistoryInputRequest, NumberInputRequest
|
11
|
-
]
|
File without changes
|
File without changes
|