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.
Files changed (86) hide show
  1. vellum/__init__.py +172 -4
  2. vellum/client.py +214 -10
  3. vellum/core/client_wrapper.py +1 -1
  4. vellum/resources/__init__.py +15 -1
  5. vellum/resources/deployments/__init__.py +3 -0
  6. vellum/resources/deployments/client.py +113 -2
  7. vellum/resources/deployments/types/__init__.py +5 -0
  8. vellum/resources/deployments/types/deployments_list_request_status.py +17 -0
  9. vellum/resources/document_indexes/client.py +55 -9
  10. vellum/resources/documents/client.py +22 -2
  11. vellum/resources/model_versions/client.py +18 -0
  12. vellum/resources/registered_prompts/client.py +104 -0
  13. vellum/resources/sandboxes/client.py +66 -4
  14. vellum/resources/test_suites/client.py +6 -6
  15. vellum/resources/workflow_deployments/__init__.py +5 -0
  16. vellum/resources/workflow_deployments/client.py +116 -0
  17. vellum/resources/workflow_deployments/types/__init__.py +5 -0
  18. vellum/resources/workflow_deployments/types/workflow_deployments_list_request_status.py +17 -0
  19. vellum/types/__init__.py +180 -4
  20. vellum/types/array_chat_message_content.py +33 -0
  21. vellum/types/array_chat_message_content_item.py +43 -0
  22. vellum/types/array_chat_message_content_item_request.py +45 -0
  23. vellum/types/array_chat_message_content_request.py +33 -0
  24. vellum/types/array_enum.py +5 -0
  25. vellum/types/array_variable_value.py +35 -0
  26. vellum/types/chat_history_enum.py +5 -0
  27. vellum/types/chat_history_input_request.py +4 -0
  28. vellum/types/chat_history_variable_value.py +29 -0
  29. vellum/types/chat_message.py +3 -1
  30. vellum/types/chat_message_content.py +53 -0
  31. vellum/types/chat_message_content_request.py +56 -0
  32. vellum/types/chat_message_request.py +3 -1
  33. vellum/types/deployment_read.py +5 -11
  34. vellum/types/document_index_read.py +2 -2
  35. vellum/types/{document_index_status.py → entity_status.py} +3 -3
  36. vellum/types/error_enum.py +5 -0
  37. vellum/types/execute_workflow_error_response.py +28 -0
  38. vellum/types/execute_workflow_response.py +32 -0
  39. vellum/types/execute_workflow_workflow_result_event.py +33 -0
  40. vellum/types/fulfilled_execute_workflow_workflow_result_event.py +35 -0
  41. vellum/types/function_call_chat_message_content.py +33 -0
  42. vellum/types/function_call_chat_message_content_request.py +33 -0
  43. vellum/types/function_call_chat_message_content_value.py +34 -0
  44. vellum/types/function_call_chat_message_content_value_request.py +34 -0
  45. vellum/types/function_call_enum.py +5 -0
  46. vellum/types/image_chat_message_content.py +33 -0
  47. vellum/types/image_chat_message_content_request.py +33 -0
  48. vellum/types/image_enum.py +5 -0
  49. vellum/types/json_enum.py +5 -0
  50. vellum/types/json_input_request.py +4 -0
  51. vellum/types/model_version_exec_config_parameters.py +1 -0
  52. vellum/types/number_enum.py +5 -0
  53. vellum/types/number_variable_value.py +28 -0
  54. vellum/types/paginated_slim_deployment_read_list.py +32 -0
  55. vellum/types/paginated_slim_workflow_deployment_list.py +32 -0
  56. vellum/types/register_prompt_model_parameters_request.py +1 -0
  57. vellum/types/rejected_execute_workflow_workflow_result_event.py +35 -0
  58. vellum/types/scenario_input_type_enum.py +2 -2
  59. vellum/types/search_results_enum.py +5 -0
  60. vellum/types/search_results_variable_value.py +29 -0
  61. vellum/types/slim_deployment_read.py +48 -0
  62. vellum/types/slim_workflow_deployment.py +57 -0
  63. vellum/types/string_chat_message_content.py +32 -0
  64. vellum/types/string_chat_message_content_request.py +32 -0
  65. vellum/types/string_enum.py +5 -0
  66. vellum/types/string_input_request.py +4 -0
  67. vellum/types/variable_value.py +102 -0
  68. vellum/types/vellum_image.py +29 -0
  69. vellum/types/vellum_image_request.py +29 -0
  70. vellum/types/vellum_variable_type.py +5 -0
  71. vellum/types/workflow_output.py +111 -0
  72. vellum/types/workflow_output_array.py +35 -0
  73. vellum/types/workflow_output_chat_history.py +35 -0
  74. vellum/types/workflow_output_error.py +35 -0
  75. vellum/types/workflow_output_function_call.py +35 -0
  76. vellum/types/workflow_output_image.py +35 -0
  77. vellum/types/workflow_output_json.py +34 -0
  78. vellum/types/workflow_output_number.py +34 -0
  79. vellum/types/workflow_output_search_results.py +35 -0
  80. vellum/types/workflow_output_string.py +34 -0
  81. vellum/types/workflow_result_event.py +2 -0
  82. {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/METADATA +1 -1
  83. {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/RECORD +85 -31
  84. vellum/types/deployment_status.py +0 -31
  85. {vellum_ai-0.1.13.dist-info → vellum_ai-0.2.1.dist-info}/LICENSE +0 -0
  86. {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}
@@ -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 .deployment_status import DeploymentStatus
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[DeploymentStatus] = pydantic.Field(
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 .document_index_status import DocumentIndexStatus
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[DocumentIndexStatus] = pydantic.Field(
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 DocumentIndexStatus(str, enum.Enum):
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 DocumentIndexStatus.ACTIVE:
19
+ if self is EntityStatus.ACTIVE:
20
20
  return active()
21
- if self is DocumentIndexStatus.ARCHIVED:
21
+ if self is EntityStatus.ARCHIVED:
22
22
  return archived()
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ ErrorEnum = typing_extensions.Literal["ERROR"]
@@ -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,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ FunctionCallEnum = typing_extensions.Literal["FUNCTION_CALL"]
@@ -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}
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ ImageEnum = typing_extensions.Literal["IMAGE"]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ JsonEnum = typing_extensions.Literal["JSON"]
@@ -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,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing_extensions
4
+
5
+ NumberEnum = typing_extensions.Literal["NUMBER"]
@@ -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}