vellum-ai 0.1.13__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 +172 -4
- vellum/client.py +214 -10
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/__init__.py +15 -1
- vellum/resources/deployments/__init__.py +3 -0
- vellum/resources/deployments/client.py +113 -2
- vellum/resources/deployments/types/__init__.py +5 -0
- vellum/resources/deployments/types/deployments_list_request_status.py +17 -0
- vellum/resources/document_indexes/client.py +55 -9
- vellum/resources/documents/client.py +22 -2
- vellum/resources/model_versions/client.py +18 -0
- vellum/resources/registered_prompts/client.py +104 -0
- vellum/resources/sandboxes/client.py +66 -4
- vellum/resources/test_suites/client.py +6 -6
- vellum/resources/workflow_deployments/__init__.py +5 -0
- vellum/resources/workflow_deployments/client.py +116 -0
- vellum/resources/workflow_deployments/types/__init__.py +5 -0
- vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +17 -0
- vellum/types/__init__.py +180 -4
- vellum/types/array_chat_message_content.py +33 -0
- vellum/types/array_chat_message_content_item.py +43 -0
- vellum/types/array_chat_message_content_item_request.py +45 -0
- vellum/types/array_chat_message_content_request.py +33 -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_input_request.py +4 -0
- vellum/types/chat_history_variable_value.py +29 -0
- vellum/types/chat_message.py +3 -1
- vellum/types/chat_message_content.py +53 -0
- vellum/types/chat_message_content_request.py +56 -0
- vellum/types/chat_message_request.py +3 -1
- vellum/types/deployment_read.py +5 -11
- vellum/types/document_index_read.py +2 -2
- vellum/types/{document_index_status.py → entity_status.py} +3 -3
- 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/function_call_chat_message_content.py +33 -0
- vellum/types/function_call_chat_message_content_request.py +33 -0
- vellum/types/function_call_chat_message_content_value.py +34 -0
- vellum/types/function_call_chat_message_content_value_request.py +34 -0
- vellum/types/function_call_enum.py +5 -0
- vellum/types/image_chat_message_content.py +33 -0
- vellum/types/image_chat_message_content_request.py +33 -0
- vellum/types/image_enum.py +5 -0
- vellum/types/json_enum.py +5 -0
- vellum/types/json_input_request.py +4 -0
- vellum/types/model_version_exec_config_parameters.py +1 -0
- vellum/types/number_enum.py +5 -0
- vellum/types/number_variable_value.py +28 -0
- vellum/types/paginated_slim_deployment_read_list.py +32 -0
- vellum/types/paginated_slim_workflow_deployment_list.py +32 -0
- vellum/types/register_prompt_model_parameters_request.py +1 -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/slim_deployment_read.py +48 -0
- vellum/types/slim_workflow_deployment.py +57 -0
- vellum/types/string_chat_message_content.py +32 -0
- vellum/types/string_chat_message_content_request.py +32 -0
- vellum/types/string_enum.py +5 -0
- vellum/types/string_input_request.py +4 -0
- vellum/types/variable_value.py +102 -0
- vellum/types/vellum_image.py +29 -0
- vellum/types/vellum_image_request.py +29 -0
- vellum/types/vellum_variable_type.py +5 -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.1.13.dist-info → vellum_ai-0.2.1.dist-info}/METADATA +1 -1
- {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/RECORD +85 -31
- vellum/types/deployment_status.py +0 -31
- {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/LICENSE +0 -0
- {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,56 @@
|
|
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_chat_message_content_request import ArrayChatMessageContentRequest
|
10
|
+
from .function_call_chat_message_content_request import FunctionCallChatMessageContentRequest
|
11
|
+
from .image_chat_message_content_request import ImageChatMessageContentRequest
|
12
|
+
from .string_chat_message_content_request import StringChatMessageContentRequest
|
13
|
+
|
14
|
+
|
15
|
+
class ChatMessageContentRequest_String(StringChatMessageContentRequest):
|
16
|
+
type: typing_extensions.Literal["STRING"]
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
allow_population_by_field_name = True
|
22
|
+
|
23
|
+
|
24
|
+
class ChatMessageContentRequest_FunctionCall(FunctionCallChatMessageContentRequest):
|
25
|
+
type: typing_extensions.Literal["FUNCTION_CALL"]
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
allow_population_by_field_name = True
|
31
|
+
|
32
|
+
|
33
|
+
class ChatMessageContentRequest_Array(ArrayChatMessageContentRequest):
|
34
|
+
type: typing_extensions.Literal["ARRAY"]
|
35
|
+
|
36
|
+
class Config:
|
37
|
+
frozen = True
|
38
|
+
smart_union = True
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
|
41
|
+
|
42
|
+
class ChatMessageContentRequest_Image(ImageChatMessageContentRequest):
|
43
|
+
type: typing_extensions.Literal["IMAGE"]
|
44
|
+
|
45
|
+
class Config:
|
46
|
+
frozen = True
|
47
|
+
smart_union = True
|
48
|
+
allow_population_by_field_name = True
|
49
|
+
|
50
|
+
|
51
|
+
ChatMessageContentRequest = typing.Union[
|
52
|
+
ChatMessageContentRequest_String,
|
53
|
+
ChatMessageContentRequest_FunctionCall,
|
54
|
+
ChatMessageContentRequest_Array,
|
55
|
+
ChatMessageContentRequest_Image,
|
56
|
+
]
|
@@ -4,6 +4,7 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .chat_message_content_request import ChatMessageContentRequest
|
7
8
|
from .chat_message_role import ChatMessageRole
|
8
9
|
|
9
10
|
try:
|
@@ -13,8 +14,9 @@ except ImportError:
|
|
13
14
|
|
14
15
|
|
15
16
|
class ChatMessageRequest(pydantic.BaseModel):
|
16
|
-
text: str
|
17
|
+
text: typing.Optional[str]
|
17
18
|
role: ChatMessageRole
|
19
|
+
content: typing.Optional[ChatMessageContentRequest]
|
18
20
|
|
19
21
|
def json(self, **kwargs: typing.Any) -> str:
|
20
22
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
vellum/types/deployment_read.py
CHANGED
@@ -4,7 +4,7 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from .
|
7
|
+
from .entity_status import EntityStatus
|
8
8
|
from .environment_enum import EnvironmentEnum
|
9
9
|
from .vellum_variable import VellumVariable
|
10
10
|
|
@@ -19,14 +19,8 @@ class DeploymentRead(pydantic.BaseModel):
|
|
19
19
|
created: dt.datetime
|
20
20
|
label: str = pydantic.Field(description="A human-readable label for the deployment")
|
21
21
|
name: str = pydantic.Field(description="A name that uniquely identifies this deployment within its workspace")
|
22
|
-
status: typing.Optional[
|
23
|
-
description=(
|
24
|
-
"The current status of the deployment\n"
|
25
|
-
"\n"
|
26
|
-
"- `ACTIVE` - Active\n"
|
27
|
-
"- `INACTIVE` - Inactive\n"
|
28
|
-
"- `ARCHIVED` - Archived\n"
|
29
|
-
)
|
22
|
+
status: typing.Optional[EntityStatus] = pydantic.Field(
|
23
|
+
description=("The current status of the deployment\n" "\n" "- `ACTIVE` - Active\n" "- `ARCHIVED` - Archived\n")
|
30
24
|
)
|
31
25
|
environment: typing.Optional[EnvironmentEnum] = pydantic.Field(
|
32
26
|
description=(
|
@@ -37,11 +31,11 @@ class DeploymentRead(pydantic.BaseModel):
|
|
37
31
|
"- `PRODUCTION` - Production\n"
|
38
32
|
)
|
39
33
|
)
|
34
|
+
last_deployed_on: dt.datetime
|
35
|
+
input_variables: typing.List[VellumVariable]
|
40
36
|
active_model_version_ids: typing.List[str] = pydantic.Field(
|
41
37
|
description="Deprecated. The Prompt execution endpoints return a `prompt_version_id` that could be used instead."
|
42
38
|
)
|
43
|
-
last_deployed_on: dt.datetime
|
44
|
-
input_variables: typing.List[VellumVariable]
|
45
39
|
|
46
40
|
def json(self, **kwargs: typing.Any) -> str:
|
47
41
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -4,7 +4,7 @@ import datetime as dt
|
|
4
4
|
import typing
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from .
|
7
|
+
from .entity_status import EntityStatus
|
8
8
|
from .environment_enum import EnvironmentEnum
|
9
9
|
|
10
10
|
try:
|
@@ -18,7 +18,7 @@ class DocumentIndexRead(pydantic.BaseModel):
|
|
18
18
|
created: dt.datetime
|
19
19
|
label: str = pydantic.Field(description="A human-readable label for the document index")
|
20
20
|
name: str = pydantic.Field(description="A name that uniquely identifies this index within its workspace")
|
21
|
-
status: typing.Optional[
|
21
|
+
status: typing.Optional[EntityStatus] = pydantic.Field(
|
22
22
|
description=(
|
23
23
|
"The current status of the document index\n" "\n" "- `ACTIVE` - Active\n" "- `ARCHIVED` - Archived\n"
|
24
24
|
)
|
@@ -6,7 +6,7 @@ import typing
|
|
6
6
|
T_Result = typing.TypeVar("T_Result")
|
7
7
|
|
8
8
|
|
9
|
-
class
|
9
|
+
class EntityStatus(str, enum.Enum):
|
10
10
|
"""
|
11
11
|
- `ACTIVE` - Active
|
12
12
|
- `ARCHIVED` - Archived
|
@@ -16,7 +16,7 @@ class DocumentIndexStatus(str, enum.Enum):
|
|
16
16
|
ARCHIVED = "ARCHIVED"
|
17
17
|
|
18
18
|
def visit(self, active: typing.Callable[[], T_Result], archived: typing.Callable[[], T_Result]) -> T_Result:
|
19
|
-
if self is
|
19
|
+
if self is EntityStatus.ACTIVE:
|
20
20
|
return active()
|
21
|
-
if self is
|
21
|
+
if self is EntityStatus.ARCHIVED:
|
22
22
|
return archived()
|
@@ -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,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 .function_call_chat_message_content_value import FunctionCallChatMessageContentValue
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class FunctionCallChatMessageContent(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A function call value that is used in a chat message.
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: FunctionCallChatMessageContentValue
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -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 .function_call_chat_message_content_value_request import FunctionCallChatMessageContentValueRequest
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class FunctionCallChatMessageContentRequest(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A function call value that is used in a chat message.
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: FunctionCallChatMessageContentValueRequest
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
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 FunctionCallChatMessageContentValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
The final resolved function call value.
|
17
|
+
"""
|
18
|
+
|
19
|
+
name: str
|
20
|
+
arguments: typing.Dict[str, typing.Any]
|
21
|
+
id: typing.Optional[str]
|
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}
|
@@ -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 FunctionCallChatMessageContentValueRequest(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
The final resolved function call value.
|
17
|
+
"""
|
18
|
+
|
19
|
+
name: str
|
20
|
+
arguments: typing.Dict[str, typing.Any]
|
21
|
+
id: typing.Optional[str]
|
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}
|
@@ -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 .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 ImageChatMessageContent(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An image value that is used in a chat message.
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: VellumImage
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -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 .vellum_image_request import VellumImageRequest
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class ImageChatMessageContentRequest(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An image value that is used in a chat message.
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: VellumImageRequest
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -12,6 +12,10 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class JsonInputRequest(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
A user input representing a JSON object
|
17
|
+
"""
|
18
|
+
|
15
19
|
name: str = pydantic.Field(description="The variable's name, as defined in the deployment.")
|
16
20
|
value: typing.Dict[str, typing.Any]
|
17
21
|
|
@@ -20,6 +20,7 @@ class ModelVersionExecConfigParameters(pydantic.BaseModel):
|
|
20
20
|
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[float]]]
|
21
21
|
stop: typing.Optional[typing.List[str]]
|
22
22
|
top_k: typing.Optional[float]
|
23
|
+
custom_parameters: typing.Optional[typing.Dict[str, typing.Any]]
|
23
24
|
|
24
25
|
def json(self, **kwargs: typing.Any) -> str:
|
25
26
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -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,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 .slim_deployment_read import SlimDeploymentRead
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class PaginatedSlimDeploymentReadList(pydantic.BaseModel):
|
16
|
+
count: typing.Optional[int]
|
17
|
+
next: typing.Optional[str]
|
18
|
+
previous: typing.Optional[str]
|
19
|
+
results: typing.Optional[typing.List[SlimDeploymentRead]]
|
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,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 .slim_workflow_deployment import SlimWorkflowDeployment
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class PaginatedSlimWorkflowDeploymentList(pydantic.BaseModel):
|
16
|
+
count: typing.Optional[int]
|
17
|
+
next: typing.Optional[str]
|
18
|
+
previous: typing.Optional[str]
|
19
|
+
results: typing.Optional[typing.List[SlimWorkflowDeployment]]
|
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}
|
@@ -20,6 +20,7 @@ class RegisterPromptModelParametersRequest(pydantic.BaseModel):
|
|
20
20
|
frequency_penalty: float
|
21
21
|
presence_penalty: float
|
22
22
|
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[float]]]
|
23
|
+
custom_parameters: typing.Optional[typing.Dict[str, typing.Any]]
|
23
24
|
|
24
25
|
def json(self, **kwargs: typing.Any) -> str:
|
25
26
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|