vellum-ai 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +10 -2
- vellum/core/client_wrapper.py +1 -1
- vellum/types/__init__.py +10 -2
- vellum/types/error_vellum_value.py +30 -0
- vellum/types/function_call_variable_value.py +1 -1
- vellum/types/{node_output_compiled_function_value.py → function_call_vellum_value.py} +6 -3
- vellum/types/json_vellum_value.py +29 -0
- vellum/types/node_output_compiled_array_value.py +7 -1
- vellum/types/node_output_compiled_chat_history_value.py +7 -1
- vellum/types/node_output_compiled_error_value.py +7 -1
- vellum/types/node_output_compiled_function_call_value.py +33 -0
- vellum/types/node_output_compiled_json_value.py +7 -1
- vellum/types/node_output_compiled_number_value.py +7 -1
- vellum/types/node_output_compiled_search_results_value.py +7 -1
- vellum/types/node_output_compiled_string_value.py +7 -1
- vellum/types/node_output_compiled_value.py +2 -2
- vellum/types/prompt_output.py +8 -8
- vellum/types/string_vellum_value.py +29 -0
- {vellum_ai-0.5.1.dist-info → vellum_ai-0.5.2.dist-info}/METADATA +1 -1
- {vellum_ai-0.5.1.dist-info → vellum_ai-0.5.2.dist-info}/RECORD +22 -18
- {vellum_ai-0.5.1.dist-info → vellum_ai-0.5.2.dist-info}/LICENSE +0 -0
- {vellum_ai-0.5.1.dist-info → vellum_ai-0.5.2.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
@@ -71,6 +71,7 @@ from .types import (
|
|
71
71
|
EnvironmentEnum,
|
72
72
|
ErrorEnum,
|
73
73
|
ErrorVariableValue,
|
74
|
+
ErrorVellumValue,
|
74
75
|
ExecutePromptApiErrorResponse,
|
75
76
|
ExecutePromptEvent,
|
76
77
|
ExecutePromptEvent_Fulfilled,
|
@@ -121,6 +122,7 @@ from .types import (
|
|
121
122
|
FunctionCallChatMessageContentValueRequest,
|
122
123
|
FunctionCallEnum,
|
123
124
|
FunctionCallVariableValue,
|
125
|
+
FunctionCallVellumValue,
|
124
126
|
FunctionCall_Fulfilled,
|
125
127
|
FunctionCall_Rejected,
|
126
128
|
GenerateErrorResponse,
|
@@ -145,6 +147,7 @@ from .types import (
|
|
145
147
|
JsonEnum,
|
146
148
|
JsonInputRequest,
|
147
149
|
JsonVariableValue,
|
150
|
+
JsonVellumValue,
|
148
151
|
LogicalOperator,
|
149
152
|
LogprobsEnum,
|
150
153
|
MetadataFilterConfigRequest,
|
@@ -206,7 +209,7 @@ from .types import (
|
|
206
209
|
NodeOutputCompiledArrayValue,
|
207
210
|
NodeOutputCompiledChatHistoryValue,
|
208
211
|
NodeOutputCompiledErrorValue,
|
209
|
-
|
212
|
+
NodeOutputCompiledFunctionCallValue,
|
210
213
|
NodeOutputCompiledJsonValue,
|
211
214
|
NodeOutputCompiledNumberValue,
|
212
215
|
NodeOutputCompiledSearchResultsValue,
|
@@ -285,6 +288,7 @@ from .types import (
|
|
285
288
|
StringEnum,
|
286
289
|
StringInputRequest,
|
287
290
|
StringVariableValue,
|
291
|
+
StringVellumValue,
|
288
292
|
SubmitCompletionActualRequest,
|
289
293
|
SubmitCompletionActualsErrorResponse,
|
290
294
|
SubmitWorkflowExecutionActualRequest,
|
@@ -575,6 +579,7 @@ __all__ = [
|
|
575
579
|
"EnvironmentEnum",
|
576
580
|
"ErrorEnum",
|
577
581
|
"ErrorVariableValue",
|
582
|
+
"ErrorVellumValue",
|
578
583
|
"ExecutePromptApiErrorResponse",
|
579
584
|
"ExecutePromptEvent",
|
580
585
|
"ExecutePromptEvent_Fulfilled",
|
@@ -626,6 +631,7 @@ __all__ = [
|
|
626
631
|
"FunctionCallChatMessageContentValueRequest",
|
627
632
|
"FunctionCallEnum",
|
628
633
|
"FunctionCallVariableValue",
|
634
|
+
"FunctionCallVellumValue",
|
629
635
|
"FunctionCall_Fulfilled",
|
630
636
|
"FunctionCall_Rejected",
|
631
637
|
"GenerateErrorResponse",
|
@@ -651,6 +657,7 @@ __all__ = [
|
|
651
657
|
"JsonEnum",
|
652
658
|
"JsonInputRequest",
|
653
659
|
"JsonVariableValue",
|
660
|
+
"JsonVellumValue",
|
654
661
|
"LogicalOperator",
|
655
662
|
"LogprobsEnum",
|
656
663
|
"MetadataFilterConfigRequest",
|
@@ -712,7 +719,7 @@ __all__ = [
|
|
712
719
|
"NodeOutputCompiledArrayValue",
|
713
720
|
"NodeOutputCompiledChatHistoryValue",
|
714
721
|
"NodeOutputCompiledErrorValue",
|
715
|
-
"
|
722
|
+
"NodeOutputCompiledFunctionCallValue",
|
716
723
|
"NodeOutputCompiledJsonValue",
|
717
724
|
"NodeOutputCompiledNumberValue",
|
718
725
|
"NodeOutputCompiledSearchResultsValue",
|
@@ -792,6 +799,7 @@ __all__ = [
|
|
792
799
|
"StringEnum",
|
793
800
|
"StringInputRequest",
|
794
801
|
"StringVariableValue",
|
802
|
+
"StringVellumValue",
|
795
803
|
"SubmitCompletionActualRequest",
|
796
804
|
"SubmitCompletionActualsErrorResponse",
|
797
805
|
"SubmitWorkflowExecutionActualRequest",
|
vellum/core/client_wrapper.py
CHANGED
vellum/types/__init__.py
CHANGED
@@ -82,6 +82,7 @@ from .entity_status import EntityStatus
|
|
82
82
|
from .environment_enum import EnvironmentEnum
|
83
83
|
from .error_enum import ErrorEnum
|
84
84
|
from .error_variable_value import ErrorVariableValue
|
85
|
+
from .error_vellum_value import ErrorVellumValue
|
85
86
|
from .execute_prompt_api_error_response import ExecutePromptApiErrorResponse
|
86
87
|
from .execute_prompt_event import (
|
87
88
|
ExecutePromptEvent,
|
@@ -140,6 +141,7 @@ from .function_call_chat_message_content_value import FunctionCallChatMessageCon
|
|
140
141
|
from .function_call_chat_message_content_value_request import FunctionCallChatMessageContentValueRequest
|
141
142
|
from .function_call_enum import FunctionCallEnum
|
142
143
|
from .function_call_variable_value import FunctionCallVariableValue
|
144
|
+
from .function_call_vellum_value import FunctionCallVellumValue
|
143
145
|
from .generate_error_response import GenerateErrorResponse
|
144
146
|
from .generate_options_request import GenerateOptionsRequest
|
145
147
|
from .generate_request import GenerateRequest
|
@@ -162,6 +164,7 @@ from .initiated_workflow_node_result_event import InitiatedWorkflowNodeResultEve
|
|
162
164
|
from .json_enum import JsonEnum
|
163
165
|
from .json_input_request import JsonInputRequest
|
164
166
|
from .json_variable_value import JsonVariableValue
|
167
|
+
from .json_vellum_value import JsonVellumValue
|
165
168
|
from .logical_operator import LogicalOperator
|
166
169
|
from .logprobs_enum import LogprobsEnum
|
167
170
|
from .metadata_filter_config_request import MetadataFilterConfigRequest
|
@@ -231,7 +234,7 @@ from .node_input_variable_compiled_value import (
|
|
231
234
|
from .node_output_compiled_array_value import NodeOutputCompiledArrayValue
|
232
235
|
from .node_output_compiled_chat_history_value import NodeOutputCompiledChatHistoryValue
|
233
236
|
from .node_output_compiled_error_value import NodeOutputCompiledErrorValue
|
234
|
-
from .
|
237
|
+
from .node_output_compiled_function_call_value import NodeOutputCompiledFunctionCallValue
|
235
238
|
from .node_output_compiled_json_value import NodeOutputCompiledJsonValue
|
236
239
|
from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
|
237
240
|
from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
|
@@ -314,6 +317,7 @@ from .string_chat_message_content_request import StringChatMessageContentRequest
|
|
314
317
|
from .string_enum import StringEnum
|
315
318
|
from .string_input_request import StringInputRequest
|
316
319
|
from .string_variable_value import StringVariableValue
|
320
|
+
from .string_vellum_value import StringVellumValue
|
317
321
|
from .submit_completion_actual_request import SubmitCompletionActualRequest
|
318
322
|
from .submit_completion_actuals_error_response import SubmitCompletionActualsErrorResponse
|
319
323
|
from .submit_workflow_execution_actual_request import (
|
@@ -614,6 +618,7 @@ __all__ = [
|
|
614
618
|
"EnvironmentEnum",
|
615
619
|
"ErrorEnum",
|
616
620
|
"ErrorVariableValue",
|
621
|
+
"ErrorVellumValue",
|
617
622
|
"ExecutePromptApiErrorResponse",
|
618
623
|
"ExecutePromptEvent",
|
619
624
|
"ExecutePromptEvent_Fulfilled",
|
@@ -664,6 +669,7 @@ __all__ = [
|
|
664
669
|
"FunctionCallChatMessageContentValueRequest",
|
665
670
|
"FunctionCallEnum",
|
666
671
|
"FunctionCallVariableValue",
|
672
|
+
"FunctionCallVellumValue",
|
667
673
|
"FunctionCall_Fulfilled",
|
668
674
|
"FunctionCall_Rejected",
|
669
675
|
"GenerateErrorResponse",
|
@@ -688,6 +694,7 @@ __all__ = [
|
|
688
694
|
"JsonEnum",
|
689
695
|
"JsonInputRequest",
|
690
696
|
"JsonVariableValue",
|
697
|
+
"JsonVellumValue",
|
691
698
|
"LogicalOperator",
|
692
699
|
"LogprobsEnum",
|
693
700
|
"MetadataFilterConfigRequest",
|
@@ -749,7 +756,7 @@ __all__ = [
|
|
749
756
|
"NodeOutputCompiledArrayValue",
|
750
757
|
"NodeOutputCompiledChatHistoryValue",
|
751
758
|
"NodeOutputCompiledErrorValue",
|
752
|
-
"
|
759
|
+
"NodeOutputCompiledFunctionCallValue",
|
753
760
|
"NodeOutputCompiledJsonValue",
|
754
761
|
"NodeOutputCompiledNumberValue",
|
755
762
|
"NodeOutputCompiledSearchResultsValue",
|
@@ -828,6 +835,7 @@ __all__ = [
|
|
828
835
|
"StringEnum",
|
829
836
|
"StringInputRequest",
|
830
837
|
"StringVariableValue",
|
838
|
+
"StringVellumValue",
|
831
839
|
"SubmitCompletionActualRequest",
|
832
840
|
"SubmitCompletionActualsErrorResponse",
|
833
841
|
"SubmitWorkflowExecutionActualRequest",
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .vellum_error import VellumError
|
9
|
+
|
10
|
+
|
11
|
+
class ErrorVellumValue(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
A value representing an Error.
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[VellumError] = None
|
17
|
+
|
18
|
+
def json(self, **kwargs: typing.Any) -> str:
|
19
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
+
return super().json(**kwargs_with_defaults)
|
21
|
+
|
22
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().dict(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic_v1.Extra.allow
|
30
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -9,7 +9,7 @@ from .function_call import FunctionCall
|
|
9
9
|
|
10
10
|
|
11
11
|
class FunctionCallVariableValue(pydantic_v1.BaseModel):
|
12
|
-
value: FunctionCall
|
12
|
+
value: typing.Optional[FunctionCall] = None
|
13
13
|
|
14
14
|
def json(self, **kwargs: typing.Any) -> str:
|
15
15
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -8,9 +8,12 @@ from ..core.pydantic_utilities import pydantic_v1
|
|
8
8
|
from .function_call import FunctionCall
|
9
9
|
|
10
10
|
|
11
|
-
class
|
12
|
-
|
13
|
-
value
|
11
|
+
class FunctionCallVellumValue(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
A value representing a Function Call.
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: FunctionCall
|
14
17
|
|
15
18
|
def json(self, **kwargs: typing.Any) -> str:
|
16
19
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class JsonVellumValue(pydantic_v1.BaseModel):
|
11
|
+
"""
|
12
|
+
A value representing a JSON object.
|
13
|
+
"""
|
14
|
+
|
15
|
+
value: typing.Optional[typing.Dict[str, typing.Any]] = None
|
16
|
+
|
17
|
+
def json(self, **kwargs: typing.Any) -> str:
|
18
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
+
return super().json(**kwargs_with_defaults)
|
20
|
+
|
21
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().dict(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
class Config:
|
26
|
+
frozen = True
|
27
|
+
smart_union = True
|
28
|
+
extra = pydantic_v1.Extra.allow
|
29
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -6,11 +6,17 @@ import typing
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
8
|
from .array_variable_value_item import ArrayVariableValueItem
|
9
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
9
10
|
|
10
11
|
|
11
12
|
class NodeOutputCompiledArrayValue(pydantic_v1.BaseModel):
|
12
|
-
|
13
|
+
"""
|
14
|
+
An output returned by a node that is of type ARRAY.
|
15
|
+
"""
|
16
|
+
|
13
17
|
value: typing.Optional[typing.List[ArrayVariableValueItem]] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
14
20
|
|
15
21
|
def json(self, **kwargs: typing.Any) -> str:
|
16
22
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -6,11 +6,17 @@ import typing
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
8
|
from .chat_message import ChatMessage
|
9
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
9
10
|
|
10
11
|
|
11
12
|
class NodeOutputCompiledChatHistoryValue(pydantic_v1.BaseModel):
|
12
|
-
|
13
|
+
"""
|
14
|
+
An output returned by a node that is of type CHAT_HISTORY.
|
15
|
+
"""
|
16
|
+
|
13
17
|
value: typing.Optional[typing.List[ChatMessage]] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
14
20
|
|
15
21
|
def json(self, **kwargs: typing.Any) -> str:
|
16
22
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -6,11 +6,17 @@ import typing
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
8
|
from .vellum_error import VellumError
|
9
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
9
10
|
|
10
11
|
|
11
12
|
class NodeOutputCompiledErrorValue(pydantic_v1.BaseModel):
|
12
|
-
|
13
|
+
"""
|
14
|
+
An output returned by a node that is of type ERROR.
|
15
|
+
"""
|
16
|
+
|
13
17
|
value: typing.Optional[VellumError] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
14
20
|
|
15
21
|
def json(self, **kwargs: typing.Any) -> str:
|
16
22
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .function_call import FunctionCall
|
9
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
10
|
+
|
11
|
+
|
12
|
+
class NodeOutputCompiledFunctionCallValue(pydantic_v1.BaseModel):
|
13
|
+
"""
|
14
|
+
An output returned by a node that is of type FUNCTION_CALL.
|
15
|
+
"""
|
16
|
+
|
17
|
+
value: typing.Optional[FunctionCall] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
20
|
+
|
21
|
+
def json(self, **kwargs: typing.Any) -> str:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().json(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
+
return super().dict(**kwargs_with_defaults)
|
28
|
+
|
29
|
+
class Config:
|
30
|
+
frozen = True
|
31
|
+
smart_union = True
|
32
|
+
extra = pydantic_v1.Extra.allow
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -5,11 +5,17 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
8
9
|
|
9
10
|
|
10
11
|
class NodeOutputCompiledJsonValue(pydantic_v1.BaseModel):
|
11
|
-
|
12
|
+
"""
|
13
|
+
An output returned by a node that is of type JSON.
|
14
|
+
"""
|
15
|
+
|
12
16
|
value: typing.Optional[typing.Dict[str, typing.Any]] = None
|
17
|
+
node_output_id: str
|
18
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
13
19
|
|
14
20
|
def json(self, **kwargs: typing.Any) -> str:
|
15
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -5,11 +5,17 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
8
9
|
|
9
10
|
|
10
11
|
class NodeOutputCompiledNumberValue(pydantic_v1.BaseModel):
|
11
|
-
|
12
|
+
"""
|
13
|
+
An output returned by a node that is of type NUMBER.
|
14
|
+
"""
|
15
|
+
|
12
16
|
value: typing.Optional[float] = None
|
17
|
+
node_output_id: str
|
18
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
13
19
|
|
14
20
|
def json(self, **kwargs: typing.Any) -> str:
|
15
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -6,11 +6,17 @@ import typing
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
8
|
from .search_result import SearchResult
|
9
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
9
10
|
|
10
11
|
|
11
12
|
class NodeOutputCompiledSearchResultsValue(pydantic_v1.BaseModel):
|
12
|
-
|
13
|
+
"""
|
14
|
+
An output returned by a node that is of type SEARCH_RESULTS.
|
15
|
+
"""
|
16
|
+
|
13
17
|
value: typing.Optional[typing.List[SearchResult]] = None
|
18
|
+
node_output_id: str
|
19
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
14
20
|
|
15
21
|
def json(self, **kwargs: typing.Any) -> str:
|
16
22
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -5,11 +5,17 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .workflow_node_result_event_state import WorkflowNodeResultEventState
|
8
9
|
|
9
10
|
|
10
11
|
class NodeOutputCompiledStringValue(pydantic_v1.BaseModel):
|
11
|
-
|
12
|
+
"""
|
13
|
+
An output returned by a node that is of type STRING.
|
14
|
+
"""
|
15
|
+
|
12
16
|
value: typing.Optional[str] = None
|
17
|
+
node_output_id: str
|
18
|
+
state: typing.Optional[WorkflowNodeResultEventState] = None
|
13
19
|
|
14
20
|
def json(self, **kwargs: typing.Any) -> str:
|
15
21
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -7,7 +7,7 @@ import typing
|
|
7
7
|
from .node_output_compiled_array_value import NodeOutputCompiledArrayValue
|
8
8
|
from .node_output_compiled_chat_history_value import NodeOutputCompiledChatHistoryValue
|
9
9
|
from .node_output_compiled_error_value import NodeOutputCompiledErrorValue
|
10
|
-
from .
|
10
|
+
from .node_output_compiled_function_call_value import NodeOutputCompiledFunctionCallValue
|
11
11
|
from .node_output_compiled_json_value import NodeOutputCompiledJsonValue
|
12
12
|
from .node_output_compiled_number_value import NodeOutputCompiledNumberValue
|
13
13
|
from .node_output_compiled_search_results_value import NodeOutputCompiledSearchResultsValue
|
@@ -84,7 +84,7 @@ class NodeOutputCompiledValue_Array(NodeOutputCompiledArrayValue):
|
|
84
84
|
populate_by_name = True
|
85
85
|
|
86
86
|
|
87
|
-
class NodeOutputCompiledValue_FunctionCall(
|
87
|
+
class NodeOutputCompiledValue_FunctionCall(NodeOutputCompiledFunctionCallValue):
|
88
88
|
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
89
89
|
|
90
90
|
class Config:
|
vellum/types/prompt_output.py
CHANGED
@@ -4,13 +4,13 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
-
from .
|
8
|
-
from .
|
9
|
-
from .
|
10
|
-
from .
|
7
|
+
from .error_vellum_value import ErrorVellumValue
|
8
|
+
from .function_call_vellum_value import FunctionCallVellumValue
|
9
|
+
from .json_vellum_value import JsonVellumValue
|
10
|
+
from .string_vellum_value import StringVellumValue
|
11
11
|
|
12
12
|
|
13
|
-
class PromptOutput_String(
|
13
|
+
class PromptOutput_String(StringVellumValue):
|
14
14
|
type: typing.Literal["STRING"] = "STRING"
|
15
15
|
|
16
16
|
class Config:
|
@@ -20,7 +20,7 @@ class PromptOutput_String(StringVariableValue):
|
|
20
20
|
populate_by_name = True
|
21
21
|
|
22
22
|
|
23
|
-
class PromptOutput_Json(
|
23
|
+
class PromptOutput_Json(JsonVellumValue):
|
24
24
|
type: typing.Literal["JSON"] = "JSON"
|
25
25
|
|
26
26
|
class Config:
|
@@ -30,7 +30,7 @@ class PromptOutput_Json(JsonVariableValue):
|
|
30
30
|
populate_by_name = True
|
31
31
|
|
32
32
|
|
33
|
-
class PromptOutput_Error(
|
33
|
+
class PromptOutput_Error(ErrorVellumValue):
|
34
34
|
type: typing.Literal["ERROR"] = "ERROR"
|
35
35
|
|
36
36
|
class Config:
|
@@ -40,7 +40,7 @@ class PromptOutput_Error(ErrorVariableValue):
|
|
40
40
|
populate_by_name = True
|
41
41
|
|
42
42
|
|
43
|
-
class PromptOutput_FunctionCall(
|
43
|
+
class PromptOutput_FunctionCall(FunctionCallVellumValue):
|
44
44
|
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
45
45
|
|
46
46
|
class Config:
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class StringVellumValue(pydantic_v1.BaseModel):
|
11
|
+
"""
|
12
|
+
A value representing a string.
|
13
|
+
"""
|
14
|
+
|
15
|
+
value: typing.Optional[str] = None
|
16
|
+
|
17
|
+
def json(self, **kwargs: typing.Any) -> str:
|
18
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
+
return super().json(**kwargs_with_defaults)
|
20
|
+
|
21
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().dict(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
class Config:
|
26
|
+
frozen = True
|
27
|
+
smart_union = True
|
28
|
+
extra = pydantic_v1.Extra.allow
|
29
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
vellum/__init__.py,sha256=
|
1
|
+
vellum/__init__.py,sha256=2ostXxge8NAc5scrfOy_CJzYTDB3vZ-UqMc6C1_QDb4,35797
|
2
2
|
vellum/client.py,sha256=7JaU104s0u_WhB8QAqIZcMv9IyvU-a0nKVZhTPKiEpw,97089
|
3
3
|
vellum/core/__init__.py,sha256=1pNSKkwyQvMl_F0wohBqmoQAITptg3zlvCwsoSSzy7c,853
|
4
4
|
vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
5
|
-
vellum/core/client_wrapper.py,sha256=
|
5
|
+
vellum/core/client_wrapper.py,sha256=C_FHM-HHkz96oVY21a1pLVEWqbSwaz0w-rVEwzOUL4E,1697
|
6
6
|
vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
7
7
|
vellum/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
|
8
8
|
vellum/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
|
@@ -58,7 +58,7 @@ vellum/terraform/document_index/__init__.py,sha256=qq2zENI22bUvqGk_a1lmsoTr5O_xC
|
|
58
58
|
vellum/terraform/provider/__init__.py,sha256=K1yLlTZkYBxhD4bhUV1v23hxDGgbfsAIGsSyeB54dNQ,10298
|
59
59
|
vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
60
60
|
vellum/terraform/versions.json,sha256=STW6Mg3BKDacFmbWHXziHxE90GWncZf4AIzCLiXm_7o,56
|
61
|
-
vellum/types/__init__.py,sha256=
|
61
|
+
vellum/types/__init__.py,sha256=m1fh7wzVhKpXcxYmWjnmo78UxekJQh30pCrNjwHAXyA,47652
|
62
62
|
vellum/types/api_node_result.py,sha256=SvYIi1T-N_P3FVjzv9I91PaCT0IN958A3easp5Q7jqE,983
|
63
63
|
vellum/types/api_node_result_data.py,sha256=KFBmmizcEg73GwQMXUtEdJ4e9YGFpRLYAnalwxIcDug,1161
|
64
64
|
vellum/types/array_chat_message_content.py,sha256=vWO6D2eUf9N5wWvu3WPgLIdoKVRWa0tIV8UmGRbgW3c,1030
|
@@ -99,6 +99,7 @@ vellum/types/entity_status.py,sha256=bY0jEpISwXqFnbWd3PSb3yXEr-ounPXlAO_fyvHV7l8
|
|
99
99
|
vellum/types/environment_enum.py,sha256=Wcewxp1cpGAMDIAZbTp4Y0GGfvy2Bq_Qu_67f_wBDGA,179
|
100
100
|
vellum/types/error_enum.py,sha256=HF_ubfzqmFQN3vVCDFZALADjHFRChuvkU_-zqjxa3ns,116
|
101
101
|
vellum/types/error_variable_value.py,sha256=x5t2f3jk5zC6KyXYpk_ZgKv_lIRq_-P5hahou9Lohb0,926
|
102
|
+
vellum/types/error_vellum_value.py,sha256=LhArYgM0L1o1BkCl_Oym9R1dwRP24lxa_5kEEmTes7w,976
|
102
103
|
vellum/types/execute_prompt_api_error_response.py,sha256=-RA-JhnAyj8_L9zNOCy4RsmmNwsldmIhTo-_mjHX60s,948
|
103
104
|
vellum/types/execute_prompt_event.py,sha256=WBKdWBRgtDYoxMbHC7FjCjCxxTuOgjINonDYQITD1-4,1636
|
104
105
|
vellum/types/execute_prompt_response.py,sha256=HHD1EoPDz78OQA8XYcsopklbzk0fVYk-rXwjwW19n6M,914
|
@@ -132,7 +133,8 @@ vellum/types/function_call_chat_message_content_request.py,sha256=UOtsUEmAQ66-Un
|
|
132
133
|
vellum/types/function_call_chat_message_content_value.py,sha256=sckkwTHSa8nvpjvk5Wj9sQ2Ml4AI5UoB6Fj0TJM8Xcg,1013
|
133
134
|
vellum/types/function_call_chat_message_content_value_request.py,sha256=UJPQxmhOtbqGSt1-FfVmNHJG6VsKufu8H9ecStqU5aA,1020
|
134
135
|
vellum/types/function_call_enum.py,sha256=QK__nqbfcaPx1d6paBAoCFth7mWOStqgutY3MIit_cE,131
|
135
|
-
vellum/types/function_call_variable_value.py,sha256=
|
136
|
+
vellum/types/function_call_variable_value.py,sha256=3XFxR5zkeo4sc7fB_ot6x6fFT_QC4QKYC9c0cCQENlI,936
|
137
|
+
vellum/types/function_call_vellum_value.py,sha256=osdRV9vw_45RafoBZEqInDitGQcxft4eIXcpfAmF1kw,969
|
136
138
|
vellum/types/generate_error_response.py,sha256=Zrnq_Acm_2CfmZkZ60Axgw_uUISOjd6tbJBIkFuj2U0,940
|
137
139
|
vellum/types/generate_options_request.py,sha256=SD-39FB3py_HAZzMTaFyNeDRG0QbPPnayKICo2p9fTk,1079
|
138
140
|
vellum/types/generate_request.py,sha256=PdbtFLB-RfFJatIIB_b1prMWks-LSxChbXVszMIPIuw,1572
|
@@ -155,6 +157,7 @@ vellum/types/initiated_workflow_node_result_event.py,sha256=21Q_wO3U1qbYuNUAWBaX
|
|
155
157
|
vellum/types/json_enum.py,sha256=0Se0lTWxLGQe-JdQ8E9KwFt5NWXuI7BkOdWQcFKJg-8,114
|
156
158
|
vellum/types/json_input_request.py,sha256=fpBb3QS-E0a3hZU_mHZ5Yjkwr10-qqbQoMJbfhfGu_4,1048
|
157
159
|
vellum/types/json_variable_value.py,sha256=KdKz67NgVwVHpxXFgSxFPBeGBdjzTwZ_VKe22kcaWjo,904
|
160
|
+
vellum/types/json_vellum_value.py,sha256=c_fKVj3ZnjacNEGW8keuoSfsNs7MBSH7PkTNxZuWU4M,959
|
158
161
|
vellum/types/logical_operator.py,sha256=MuuMZ1-gOCDvy1WDQkMFfiBNHsRCqKgJei-b3727sKc,487
|
159
162
|
vellum/types/logprobs_enum.py,sha256=D_458cZX2CAb6dX_ovrQ6HARlJkYcZRadKwsi1Cr-JM,151
|
160
163
|
vellum/types/metadata_filter_config_request.py,sha256=_1CVIxmDmtXezTMWoaqeea9boe8hyCmmAn28u69NEUk,1355
|
@@ -189,15 +192,15 @@ vellum/types/node_input_compiled_number_value.py,sha256=Kpxo7ryDiOxylmzF1pz6jups
|
|
189
192
|
vellum/types/node_input_compiled_search_results_value.py,sha256=ejJuUB42LO9l-E12uKa0Ezk_T0nP6q023uuqDEqN4TU,995
|
190
193
|
vellum/types/node_input_compiled_string_value.py,sha256=cEssxmVjvY5SG2OINLYdw8pJPIJrKdEvdUgkU0xz_9k,926
|
191
194
|
vellum/types/node_input_variable_compiled_value.py,sha256=iXSNb6wRYmPOOzQZk8AWB929hedtL_NwFox17MjMT4w,3354
|
192
|
-
vellum/types/node_output_compiled_array_value.py,sha256=
|
193
|
-
vellum/types/node_output_compiled_chat_history_value.py,sha256=
|
194
|
-
vellum/types/node_output_compiled_error_value.py,sha256=
|
195
|
-
vellum/types/
|
196
|
-
vellum/types/node_output_compiled_json_value.py,sha256=
|
197
|
-
vellum/types/node_output_compiled_number_value.py,sha256=
|
198
|
-
vellum/types/node_output_compiled_search_results_value.py,sha256=
|
199
|
-
vellum/types/node_output_compiled_string_value.py,sha256=
|
200
|
-
vellum/types/node_output_compiled_value.py,sha256=
|
195
|
+
vellum/types/node_output_compiled_array_value.py,sha256=k0K0jLaKV5383hrx1CX_Lxg4bQLGIcdNvojAXqqWt8Y,1220
|
196
|
+
vellum/types/node_output_compiled_chat_history_value.py,sha256=G4uyylyx4pe9wroMruPaw8kFOmwVEzVCGl0xFRd3S_w,1198
|
197
|
+
vellum/types/node_output_compiled_error_value.py,sha256=Y9Zk8yJ5HXhNyDb2-iSW5RnTSxDIuLHCgqtt9-1CIkE,1172
|
198
|
+
vellum/types/node_output_compiled_function_call_value.py,sha256=-zKACRAG0jNpVWv4wRpJwi4BCoI368C0fglgEmKbnY0,1190
|
199
|
+
vellum/types/node_output_compiled_json_value.py,sha256=W8Y4zWV5fYpvdlYUKWHtd3ytH8UbdvuyaU5CZWRTexs,1149
|
200
|
+
vellum/types/node_output_compiled_number_value.py,sha256=dZxIdYaqfgM91CcSdqzIFA8_-WDPgCbicNh7FGhVxlk,1130
|
201
|
+
vellum/types/node_output_compiled_search_results_value.py,sha256=70JslI-j54Q0BmNhbwWuaLQkvDYggCcZ3pA2E03qfzg,1205
|
202
|
+
vellum/types/node_output_compiled_string_value.py,sha256=Ur9u-NZF9QHZSmXyXfyOSJopPW10u5J9idETLPn3b74,1128
|
203
|
+
vellum/types/node_output_compiled_value.py,sha256=iTvpjsz9EaahCHrW64awCN7cRo31gsLTXzx36LvHyB4,3275
|
201
204
|
vellum/types/normalized_log_probs.py,sha256=LN6Ap1sDIZ5KZ_F6Xxc89SFAoLlV6sqPjju78wstEVg,1000
|
202
205
|
vellum/types/normalized_token_log_probs.py,sha256=-PYJPYzykDfG9aeXqRselY8XHdIvr0K1s6qnecPCB-k,1008
|
203
206
|
vellum/types/number_enum.py,sha256=M_h5PmC5HxQYpQbfqqyw1DualhKu1QOCU-o1NYTQz_o,118
|
@@ -215,7 +218,7 @@ vellum/types/prompt_deployment_input_request.py,sha256=o8PCi7TsitddNxiAfDblxaXkJ
|
|
215
218
|
vellum/types/prompt_execution_meta.py,sha256=io92vwMO3qC7RsCIsyMPFEeY3Sizb2xv6X1TBwKu6eI,1370
|
216
219
|
vellum/types/prompt_node_result.py,sha256=BVRnp6zIKocaPquCln0UtqW2M18j8k_OnHLGWCB25hU,997
|
217
220
|
vellum/types/prompt_node_result_data.py,sha256=WaKh-Nh3vVklvitT3WxwVeMGt0VxAoeypDDW4gvcMpY,988
|
218
|
-
vellum/types/prompt_output.py,sha256=
|
221
|
+
vellum/types/prompt_output.py,sha256=wO0lz1HmPctCMt9lGLTsJRkL20wMXfmya5CxRhakOxU,1418
|
219
222
|
vellum/types/raw_prompt_execution_overrides_request.py,sha256=Hwfjk35PsGSqMfcRwBzwjfpaRiaixTVi8xsG9g9pV3E,1210
|
220
223
|
vellum/types/rejected_enum.py,sha256=ZatbMUdJos2j62CSK7lf2Pzv5xIh92XzRbzcsyc6NJg,122
|
221
224
|
vellum/types/rejected_execute_prompt_event.py,sha256=2giB2PrFd7i2eL3moa9FpGkA4BcR1_gXqnJ9Y5XVmeQ,1159
|
@@ -254,6 +257,7 @@ vellum/types/string_chat_message_content_request.py,sha256=veTDkbJ39AfdxLUZ1MQPm
|
|
254
257
|
vellum/types/string_enum.py,sha256=8uLrjmZyaGRDEf7Y6DpJF1e4abJct69wIoq6ZQX6F-s,118
|
255
258
|
vellum/types/string_input_request.py,sha256=2c7ZbrA2r_Au12O-LnfMwY-5rQKzAqQkLVu-jc-qjTI,1026
|
256
259
|
vellum/types/string_variable_value.py,sha256=YGjpJpTVnxywk0mtXisQw8BkIfTS_amY4JPugLQ6dW0,881
|
260
|
+
vellum/types/string_vellum_value.py,sha256=UCk0yx0DHUrANEp-rPsXO34dUNRWuzQPcSR2BsVPnlU,931
|
257
261
|
vellum/types/submit_completion_actual_request.py,sha256=D3JNFxE8DHJP7RaSQjDBsJiacOwsd3I8r6-peyNDES0,1825
|
258
262
|
vellum/types/submit_completion_actuals_error_response.py,sha256=f2XlGM5NBdwZLy4oOJN9LrcaHwW31fGtTCmzcJVzUV4,875
|
259
263
|
vellum/types/submit_workflow_execution_actual_request.py,sha256=zR5Di5a9GC2fchGC9qLEXGELitg3UxCoQUqeIyeyLDc,1487
|
@@ -376,7 +380,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=gazaUrC5
|
|
376
380
|
vellum/types/workflow_result_event_output_data_string.py,sha256=aVWIIGbLj4TJJhTTj6WzhbYXQkcZatKuhhNy8UYwXbw,1482
|
377
381
|
vellum/types/workflow_stream_event.py,sha256=KA6Bkk_XA6AIPWR-1vKnwF1A8l_Bm5y0arQCWWWRpsk,911
|
378
382
|
vellum/version.py,sha256=neLt8HBHHUtDF9M5fsyUzHT-pKooEPvceaLDqqIGb0s,77
|
379
|
-
vellum_ai-0.5.
|
380
|
-
vellum_ai-0.5.
|
381
|
-
vellum_ai-0.5.
|
382
|
-
vellum_ai-0.5.
|
383
|
+
vellum_ai-0.5.2.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
|
384
|
+
vellum_ai-0.5.2.dist-info/METADATA,sha256=eZs04Vzi6mhgnm2pqE2oG5qCcUS5UENyDq5gyKA0LV8,3549
|
385
|
+
vellum_ai-0.5.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
386
|
+
vellum_ai-0.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|