vellum-ai 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +90 -0
- vellum/client.py +107 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/types/__init__.py +96 -0
- vellum/types/array_enum.py +5 -0
- vellum/types/array_variable_value.py +35 -0
- vellum/types/chat_history_enum.py +5 -0
- vellum/types/chat_history_variable_value.py +29 -0
- vellum/types/error_enum.py +5 -0
- vellum/types/execute_workflow_error_response.py +28 -0
- vellum/types/execute_workflow_response.py +32 -0
- vellum/types/execute_workflow_workflow_result_event.py +33 -0
- vellum/types/fulfilled_execute_workflow_workflow_result_event.py +35 -0
- vellum/types/json_enum.py +5 -0
- vellum/types/number_enum.py +5 -0
- vellum/types/number_variable_value.py +28 -0
- vellum/types/rejected_execute_workflow_workflow_result_event.py +35 -0
- vellum/types/scenario_input_type_enum.py +2 -2
- vellum/types/search_results_enum.py +5 -0
- vellum/types/search_results_variable_value.py +29 -0
- vellum/types/variable_value.py +102 -0
- vellum/types/workflow_output.py +111 -0
- vellum/types/workflow_output_array.py +35 -0
- vellum/types/workflow_output_chat_history.py +35 -0
- vellum/types/workflow_output_error.py +35 -0
- vellum/types/workflow_output_function_call.py +35 -0
- vellum/types/workflow_output_image.py +35 -0
- vellum/types/workflow_output_json.py +34 -0
- vellum/types/workflow_output_number.py +34 -0
- vellum/types/workflow_output_search_results.py +35 -0
- vellum/types/workflow_output_string.py +34 -0
- vellum/types/workflow_result_event.py +2 -0
- {vellum_ai-0.2.0.dist-info → vellum_ai-0.2.1.dist-info}/METADATA +1 -1
- {vellum_ai-0.2.0.dist-info → vellum_ai-0.2.1.dist-info}/RECORD +36 -10
- {vellum_ai-0.2.0.dist-info → vellum_ai-0.2.1.dist-info}/LICENSE +0 -0
- {vellum_ai-0.2.0.dist-info → vellum_ai-0.2.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,28 @@
|
|
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
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class ExecuteWorkflowErrorResponse(pydantic.BaseModel):
|
15
|
+
detail: str = pydantic.Field(description="Details about why the request failed.")
|
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
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,32 @@
|
|
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 .execute_workflow_workflow_result_event import ExecuteWorkflowWorkflowResultEvent
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class ExecuteWorkflowResponse(pydantic.BaseModel):
|
16
|
+
execution_id: str
|
17
|
+
run_id: typing.Optional[str]
|
18
|
+
external_id: typing.Optional[str]
|
19
|
+
data: ExecuteWorkflowWorkflowResultEvent
|
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
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
import typing
|
6
|
+
|
7
|
+
import typing_extensions
|
8
|
+
|
9
|
+
from .fulfilled_execute_workflow_workflow_result_event import FulfilledExecuteWorkflowWorkflowResultEvent
|
10
|
+
from .rejected_execute_workflow_workflow_result_event import RejectedExecuteWorkflowWorkflowResultEvent
|
11
|
+
|
12
|
+
|
13
|
+
class ExecuteWorkflowWorkflowResultEvent_Fulfilled(FulfilledExecuteWorkflowWorkflowResultEvent):
|
14
|
+
state: typing_extensions.Literal["FULFILLED"]
|
15
|
+
|
16
|
+
class Config:
|
17
|
+
frozen = True
|
18
|
+
smart_union = True
|
19
|
+
allow_population_by_field_name = True
|
20
|
+
|
21
|
+
|
22
|
+
class ExecuteWorkflowWorkflowResultEvent_Rejected(RejectedExecuteWorkflowWorkflowResultEvent):
|
23
|
+
state: typing_extensions.Literal["REJECTED"]
|
24
|
+
|
25
|
+
class Config:
|
26
|
+
frozen = True
|
27
|
+
smart_union = True
|
28
|
+
allow_population_by_field_name = True
|
29
|
+
|
30
|
+
|
31
|
+
ExecuteWorkflowWorkflowResultEvent = typing.Union[
|
32
|
+
ExecuteWorkflowWorkflowResultEvent_Fulfilled, ExecuteWorkflowWorkflowResultEvent_Rejected
|
33
|
+
]
|
@@ -0,0 +1,35 @@
|
|
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 .workflow_output import WorkflowOutput
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class FulfilledExecuteWorkflowWorkflowResultEvent(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
The successful response from the Workflow execution containing the produced outputs.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
ts: dt.datetime
|
22
|
+
outputs: typing.List[WorkflowOutput]
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,28 @@
|
|
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
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class NumberVariableValue(pydantic.BaseModel):
|
15
|
+
value: typing.Optional[float]
|
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
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
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 .workflow_event_error import WorkflowEventError
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class RejectedExecuteWorkflowWorkflowResultEvent(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
The unsuccessful response from the Workflow execution containing an error specifying what went wrong.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
ts: dt.datetime
|
22
|
+
error: WorkflowEventError
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .search_result import SearchResult
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class SearchResultsVariableValue(pydantic.BaseModel):
|
16
|
+
value: typing.Optional[typing.List[SearchResult]]
|
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
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
import typing
|
6
|
+
|
7
|
+
import typing_extensions
|
8
|
+
|
9
|
+
from .array_variable_value import ArrayVariableValue
|
10
|
+
from .chat_history_variable_value import ChatHistoryVariableValue
|
11
|
+
from .error_variable_value import ErrorVariableValue
|
12
|
+
from .function_call_variable_value import FunctionCallVariableValue
|
13
|
+
from .json_variable_value import JsonVariableValue
|
14
|
+
from .number_variable_value import NumberVariableValue
|
15
|
+
from .search_results_variable_value import SearchResultsVariableValue
|
16
|
+
from .string_variable_value import StringVariableValue
|
17
|
+
|
18
|
+
|
19
|
+
class VariableValue_String(StringVariableValue):
|
20
|
+
type: typing_extensions.Literal["STRING"]
|
21
|
+
|
22
|
+
class Config:
|
23
|
+
frozen = True
|
24
|
+
smart_union = True
|
25
|
+
allow_population_by_field_name = True
|
26
|
+
|
27
|
+
|
28
|
+
class VariableValue_Number(NumberVariableValue):
|
29
|
+
type: typing_extensions.Literal["NUMBER"]
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
allow_population_by_field_name = True
|
35
|
+
|
36
|
+
|
37
|
+
class VariableValue_Json(JsonVariableValue):
|
38
|
+
type: typing_extensions.Literal["JSON"]
|
39
|
+
|
40
|
+
class Config:
|
41
|
+
frozen = True
|
42
|
+
smart_union = True
|
43
|
+
allow_population_by_field_name = True
|
44
|
+
|
45
|
+
|
46
|
+
class VariableValue_ChatHistory(ChatHistoryVariableValue):
|
47
|
+
type: typing_extensions.Literal["CHAT_HISTORY"]
|
48
|
+
|
49
|
+
class Config:
|
50
|
+
frozen = True
|
51
|
+
smart_union = True
|
52
|
+
allow_population_by_field_name = True
|
53
|
+
|
54
|
+
|
55
|
+
class VariableValue_SearchResults(SearchResultsVariableValue):
|
56
|
+
type: typing_extensions.Literal["SEARCH_RESULTS"]
|
57
|
+
|
58
|
+
class Config:
|
59
|
+
frozen = True
|
60
|
+
smart_union = True
|
61
|
+
allow_population_by_field_name = True
|
62
|
+
|
63
|
+
|
64
|
+
class VariableValue_Error(ErrorVariableValue):
|
65
|
+
type: typing_extensions.Literal["ERROR"]
|
66
|
+
|
67
|
+
class Config:
|
68
|
+
frozen = True
|
69
|
+
smart_union = True
|
70
|
+
allow_population_by_field_name = True
|
71
|
+
|
72
|
+
|
73
|
+
class VariableValue_Array(ArrayVariableValue):
|
74
|
+
type: typing_extensions.Literal["ARRAY"]
|
75
|
+
|
76
|
+
class Config:
|
77
|
+
frozen = True
|
78
|
+
smart_union = True
|
79
|
+
allow_population_by_field_name = True
|
80
|
+
|
81
|
+
|
82
|
+
class VariableValue_FunctionCall(FunctionCallVariableValue):
|
83
|
+
type: typing_extensions.Literal["FUNCTION_CALL"]
|
84
|
+
|
85
|
+
class Config:
|
86
|
+
frozen = True
|
87
|
+
smart_union = True
|
88
|
+
allow_population_by_field_name = True
|
89
|
+
|
90
|
+
|
91
|
+
VariableValue = typing.Union[
|
92
|
+
VariableValue_String,
|
93
|
+
VariableValue_Number,
|
94
|
+
VariableValue_Json,
|
95
|
+
VariableValue_ChatHistory,
|
96
|
+
VariableValue_SearchResults,
|
97
|
+
VariableValue_Error,
|
98
|
+
VariableValue_Array,
|
99
|
+
VariableValue_FunctionCall,
|
100
|
+
]
|
101
|
+
|
102
|
+
VariableValue_Array.update_forward_refs()
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
import typing
|
6
|
+
|
7
|
+
import typing_extensions
|
8
|
+
|
9
|
+
from .workflow_output_array import WorkflowOutputArray
|
10
|
+
from .workflow_output_chat_history import WorkflowOutputChatHistory
|
11
|
+
from .workflow_output_error import WorkflowOutputError
|
12
|
+
from .workflow_output_function_call import WorkflowOutputFunctionCall
|
13
|
+
from .workflow_output_image import WorkflowOutputImage
|
14
|
+
from .workflow_output_json import WorkflowOutputJson
|
15
|
+
from .workflow_output_number import WorkflowOutputNumber
|
16
|
+
from .workflow_output_search_results import WorkflowOutputSearchResults
|
17
|
+
from .workflow_output_string import WorkflowOutputString
|
18
|
+
|
19
|
+
|
20
|
+
class WorkflowOutput_String(WorkflowOutputString):
|
21
|
+
type: typing_extensions.Literal["STRING"]
|
22
|
+
|
23
|
+
class Config:
|
24
|
+
frozen = True
|
25
|
+
smart_union = True
|
26
|
+
allow_population_by_field_name = True
|
27
|
+
|
28
|
+
|
29
|
+
class WorkflowOutput_Number(WorkflowOutputNumber):
|
30
|
+
type: typing_extensions.Literal["NUMBER"]
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
allow_population_by_field_name = True
|
36
|
+
|
37
|
+
|
38
|
+
class WorkflowOutput_Json(WorkflowOutputJson):
|
39
|
+
type: typing_extensions.Literal["JSON"]
|
40
|
+
|
41
|
+
class Config:
|
42
|
+
frozen = True
|
43
|
+
smart_union = True
|
44
|
+
allow_population_by_field_name = True
|
45
|
+
|
46
|
+
|
47
|
+
class WorkflowOutput_ChatHistory(WorkflowOutputChatHistory):
|
48
|
+
type: typing_extensions.Literal["CHAT_HISTORY"]
|
49
|
+
|
50
|
+
class Config:
|
51
|
+
frozen = True
|
52
|
+
smart_union = True
|
53
|
+
allow_population_by_field_name = True
|
54
|
+
|
55
|
+
|
56
|
+
class WorkflowOutput_SearchResults(WorkflowOutputSearchResults):
|
57
|
+
type: typing_extensions.Literal["SEARCH_RESULTS"]
|
58
|
+
|
59
|
+
class Config:
|
60
|
+
frozen = True
|
61
|
+
smart_union = True
|
62
|
+
allow_population_by_field_name = True
|
63
|
+
|
64
|
+
|
65
|
+
class WorkflowOutput_Error(WorkflowOutputError):
|
66
|
+
type: typing_extensions.Literal["ERROR"]
|
67
|
+
|
68
|
+
class Config:
|
69
|
+
frozen = True
|
70
|
+
smart_union = True
|
71
|
+
allow_population_by_field_name = True
|
72
|
+
|
73
|
+
|
74
|
+
class WorkflowOutput_Array(WorkflowOutputArray):
|
75
|
+
type: typing_extensions.Literal["ARRAY"]
|
76
|
+
|
77
|
+
class Config:
|
78
|
+
frozen = True
|
79
|
+
smart_union = True
|
80
|
+
allow_population_by_field_name = True
|
81
|
+
|
82
|
+
|
83
|
+
class WorkflowOutput_FunctionCall(WorkflowOutputFunctionCall):
|
84
|
+
type: typing_extensions.Literal["FUNCTION_CALL"]
|
85
|
+
|
86
|
+
class Config:
|
87
|
+
frozen = True
|
88
|
+
smart_union = True
|
89
|
+
allow_population_by_field_name = True
|
90
|
+
|
91
|
+
|
92
|
+
class WorkflowOutput_Image(WorkflowOutputImage):
|
93
|
+
type: typing_extensions.Literal["IMAGE"]
|
94
|
+
|
95
|
+
class Config:
|
96
|
+
frozen = True
|
97
|
+
smart_union = True
|
98
|
+
allow_population_by_field_name = True
|
99
|
+
|
100
|
+
|
101
|
+
WorkflowOutput = typing.Union[
|
102
|
+
WorkflowOutput_String,
|
103
|
+
WorkflowOutput_Number,
|
104
|
+
WorkflowOutput_Json,
|
105
|
+
WorkflowOutput_ChatHistory,
|
106
|
+
WorkflowOutput_SearchResults,
|
107
|
+
WorkflowOutput_Error,
|
108
|
+
WorkflowOutput_Array,
|
109
|
+
WorkflowOutput_FunctionCall,
|
110
|
+
WorkflowOutput_Image,
|
111
|
+
]
|
@@ -0,0 +1,35 @@
|
|
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 .variable_value import VariableValue
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class WorkflowOutputArray(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An array of outputs from a Workflow execution.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
22
|
+
value: typing.List[VariableValue]
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
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 .chat_message import ChatMessage
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class WorkflowOutputChatHistory(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A chat history output from a Workflow execution.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
22
|
+
value: typing.List[ChatMessage]
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
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 .vellum_error import VellumError
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class WorkflowOutputError(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An error output from a Workflow execution.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
22
|
+
value: VellumError
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
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 .function_call import FunctionCall
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class WorkflowOutputFunctionCall(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A function call output from a Workflow execution.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
22
|
+
value: FunctionCall
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
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 .vellum_image import VellumImage
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class WorkflowOutputImage(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An image output from a Workflow execution.
|
18
|
+
"""
|
19
|
+
|
20
|
+
id: str
|
21
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
22
|
+
value: VellumImage
|
23
|
+
|
24
|
+
def json(self, **kwargs: typing.Any) -> str:
|
25
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
+
return super().json(**kwargs_with_defaults)
|
27
|
+
|
28
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
+
return super().dict(**kwargs_with_defaults)
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
frozen = True
|
34
|
+
smart_union = True
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class WorkflowOutputJson(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
A JSON output from a Workflow execution.
|
17
|
+
"""
|
18
|
+
|
19
|
+
id: str
|
20
|
+
name: str = pydantic.Field(description="The output's name, as defined in the workflow")
|
21
|
+
value: typing.Dict[str, typing.Any]
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
json_encoders = {dt.datetime: serialize_datetime}
|