vellum-ai 0.8.14__py3-none-any.whl → 0.8.15__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +18 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/types/__init__.py +18 -0
- vellum/types/array_variable_value.py +27 -0
- vellum/types/array_variable_value_item.py +9 -0
- vellum/types/array_vellum_value.py +31 -0
- vellum/types/array_vellum_value_item.py +15 -1
- vellum/types/array_vellum_value_item_request.py +9 -0
- vellum/types/array_vellum_value_request.py +31 -0
- vellum/types/chat_history_variable_value.py +21 -0
- vellum/types/chat_history_vellum_value.py +25 -0
- vellum/types/chat_history_vellum_value_request.py +25 -0
- vellum/types/code_execution_node_array_result.py +6 -0
- vellum/types/code_execution_node_result.py +6 -0
- vellum/types/code_execution_node_result_data.py +6 -0
- vellum/types/create_test_suite_test_case_request.py +6 -0
- vellum/types/execute_workflow_response.py +6 -0
- vellum/types/execution_array_vellum_value.py +6 -0
- vellum/types/external_test_case_execution.py +6 -0
- vellum/types/external_test_case_execution_request.py +6 -0
- vellum/types/fulfilled_execute_workflow_workflow_result_event.py +8 -0
- vellum/types/fulfilled_workflow_node_result_event.py +8 -0
- vellum/types/initiated_workflow_node_result_event.py +6 -0
- vellum/types/named_test_case_array_variable_value.py +6 -0
- vellum/types/named_test_case_array_variable_value_request.py +8 -0
- vellum/types/node_input_compiled_array_value.py +6 -0
- vellum/types/node_output_compiled_array_value.py +6 -0
- vellum/types/paginated_test_suite_run_execution_list.py +6 -0
- vellum/types/paginated_test_suite_test_case_list.py +6 -0
- vellum/types/rejected_workflow_node_result_event.py +6 -0
- vellum/types/replace_test_suite_test_case_request.py +6 -0
- vellum/types/search_results_variable_value.py +21 -0
- vellum/types/search_results_vellum_value.py +25 -0
- vellum/types/search_results_vellum_value_request.py +25 -0
- vellum/types/streaming_workflow_node_result_event.py +8 -0
- vellum/types/templating_node_array_result.py +6 -0
- vellum/types/templating_node_result.py +6 -0
- vellum/types/templating_node_result_data.py +6 -0
- vellum/types/terminal_node_array_result.py +6 -0
- vellum/types/terminal_node_result.py +6 -0
- vellum/types/terminal_node_result_data.py +6 -0
- vellum/types/test_case_array_variable_value.py +6 -0
- vellum/types/test_suite_run_execution.py +6 -0
- vellum/types/test_suite_run_execution_array_output.py +6 -0
- vellum/types/test_suite_run_external_exec_config.py +6 -0
- vellum/types/test_suite_run_external_exec_config_data.py +6 -0
- vellum/types/test_suite_run_external_exec_config_data_request.py +8 -0
- vellum/types/test_suite_run_external_exec_config_request.py +8 -0
- vellum/types/test_suite_run_read.py +6 -0
- vellum/types/test_suite_test_case.py +6 -0
- vellum/types/test_suite_test_case_create_bulk_operation_request.py +8 -0
- vellum/types/test_suite_test_case_replace_bulk_operation_request.py +8 -0
- vellum/types/test_suite_test_case_upsert_bulk_operation_request.py +8 -0
- vellum/types/upsert_test_suite_test_case_request.py +6 -0
- vellum/types/workflow_execution_node_result_event.py +8 -0
- vellum/types/workflow_execution_workflow_result_event.py +8 -0
- vellum/types/workflow_output_array.py +6 -0
- vellum/types/workflow_result_event.py +8 -0
- vellum/types/workflow_result_event_output_data_array.py +6 -0
- {vellum_ai-0.8.14.dist-info → vellum_ai-0.8.15.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.14.dist-info → vellum_ai-0.8.15.dist-info}/RECORD +63 -54
- {vellum_ai-0.8.14.dist-info → vellum_ai-0.8.15.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.14.dist-info → vellum_ai-0.8.15.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
@@ -14,9 +14,12 @@ from .types import (
|
|
14
14
|
ArrayChatMessageContentItem,
|
15
15
|
ArrayChatMessageContentItemRequest,
|
16
16
|
ArrayChatMessageContentRequest,
|
17
|
+
ArrayVariableValue,
|
17
18
|
ArrayVariableValueItem,
|
19
|
+
ArrayVellumValue,
|
18
20
|
ArrayVellumValueItem,
|
19
21
|
ArrayVellumValueItemRequest,
|
22
|
+
ArrayVellumValueRequest,
|
20
23
|
BasicVectorizerIntfloatMultilingualE5Large,
|
21
24
|
BasicVectorizerIntfloatMultilingualE5LargeRequest,
|
22
25
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1,
|
@@ -24,6 +27,9 @@ from .types import (
|
|
24
27
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1,
|
25
28
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
26
29
|
ChatHistoryInputRequest,
|
30
|
+
ChatHistoryVariableValue,
|
31
|
+
ChatHistoryVellumValue,
|
32
|
+
ChatHistoryVellumValueRequest,
|
27
33
|
ChatMessage,
|
28
34
|
ChatMessageContent,
|
29
35
|
ChatMessageContentRequest,
|
@@ -258,6 +264,9 @@ from .types import (
|
|
258
264
|
SearchResultMeta,
|
259
265
|
SearchResultMetaRequest,
|
260
266
|
SearchResultRequest,
|
267
|
+
SearchResultsVariableValue,
|
268
|
+
SearchResultsVellumValue,
|
269
|
+
SearchResultsVellumValueRequest,
|
261
270
|
SearchWeightsRequest,
|
262
271
|
SentenceChunkerConfig,
|
263
272
|
SentenceChunkerConfigRequest,
|
@@ -452,9 +461,12 @@ __all__ = [
|
|
452
461
|
"ArrayChatMessageContentItem",
|
453
462
|
"ArrayChatMessageContentItemRequest",
|
454
463
|
"ArrayChatMessageContentRequest",
|
464
|
+
"ArrayVariableValue",
|
455
465
|
"ArrayVariableValueItem",
|
466
|
+
"ArrayVellumValue",
|
456
467
|
"ArrayVellumValueItem",
|
457
468
|
"ArrayVellumValueItemRequest",
|
469
|
+
"ArrayVellumValueRequest",
|
458
470
|
"AsyncVellum",
|
459
471
|
"BadRequestError",
|
460
472
|
"BasicVectorizerIntfloatMultilingualE5Large",
|
@@ -464,6 +476,9 @@ __all__ = [
|
|
464
476
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
|
465
477
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
466
478
|
"ChatHistoryInputRequest",
|
479
|
+
"ChatHistoryVariableValue",
|
480
|
+
"ChatHistoryVellumValue",
|
481
|
+
"ChatHistoryVellumValueRequest",
|
467
482
|
"ChatMessage",
|
468
483
|
"ChatMessageContent",
|
469
484
|
"ChatMessageContentRequest",
|
@@ -703,6 +718,9 @@ __all__ = [
|
|
703
718
|
"SearchResultMeta",
|
704
719
|
"SearchResultMetaRequest",
|
705
720
|
"SearchResultRequest",
|
721
|
+
"SearchResultsVariableValue",
|
722
|
+
"SearchResultsVellumValue",
|
723
|
+
"SearchResultsVellumValueRequest",
|
706
724
|
"SearchWeightsRequest",
|
707
725
|
"SentenceChunkerConfig",
|
708
726
|
"SentenceChunkerConfigRequest",
|
vellum/core/client_wrapper.py
CHANGED
@@ -17,7 +17,7 @@ class BaseClientWrapper:
|
|
17
17
|
headers: typing.Dict[str, str] = {
|
18
18
|
"X-Fern-Language": "Python",
|
19
19
|
"X-Fern-SDK-Name": "vellum-ai",
|
20
|
-
"X-Fern-SDK-Version": "0.8.
|
20
|
+
"X-Fern-SDK-Version": "0.8.15",
|
21
21
|
}
|
22
22
|
headers["X_API_KEY"] = self.api_key
|
23
23
|
return headers
|
vellum/types/__init__.py
CHANGED
@@ -13,9 +13,12 @@ from .array_chat_message_content import ArrayChatMessageContent
|
|
13
13
|
from .array_chat_message_content_item import ArrayChatMessageContentItem
|
14
14
|
from .array_chat_message_content_item_request import ArrayChatMessageContentItemRequest
|
15
15
|
from .array_chat_message_content_request import ArrayChatMessageContentRequest
|
16
|
+
from .array_variable_value import ArrayVariableValue
|
16
17
|
from .array_variable_value_item import ArrayVariableValueItem
|
18
|
+
from .array_vellum_value import ArrayVellumValue
|
17
19
|
from .array_vellum_value_item import ArrayVellumValueItem
|
18
20
|
from .array_vellum_value_item_request import ArrayVellumValueItemRequest
|
21
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
19
22
|
from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
|
20
23
|
from .basic_vectorizer_intfloat_multilingual_e_5_large_request import BasicVectorizerIntfloatMultilingualE5LargeRequest
|
21
24
|
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1 import (
|
@@ -31,6 +34,9 @@ from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request
|
|
31
34
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
32
35
|
)
|
33
36
|
from .chat_history_input_request import ChatHistoryInputRequest
|
37
|
+
from .chat_history_variable_value import ChatHistoryVariableValue
|
38
|
+
from .chat_history_vellum_value import ChatHistoryVellumValue
|
39
|
+
from .chat_history_vellum_value_request import ChatHistoryVellumValueRequest
|
34
40
|
from .chat_message import ChatMessage
|
35
41
|
from .chat_message_content import ChatMessageContent
|
36
42
|
from .chat_message_content_request import ChatMessageContentRequest
|
@@ -265,6 +271,9 @@ from .search_result_merging_request import SearchResultMergingRequest
|
|
265
271
|
from .search_result_meta import SearchResultMeta
|
266
272
|
from .search_result_meta_request import SearchResultMetaRequest
|
267
273
|
from .search_result_request import SearchResultRequest
|
274
|
+
from .search_results_variable_value import SearchResultsVariableValue
|
275
|
+
from .search_results_vellum_value import SearchResultsVellumValue
|
276
|
+
from .search_results_vellum_value_request import SearchResultsVellumValueRequest
|
268
277
|
from .search_weights_request import SearchWeightsRequest
|
269
278
|
from .sentence_chunker_config import SentenceChunkerConfig
|
270
279
|
from .sentence_chunker_config_request import SentenceChunkerConfigRequest
|
@@ -443,9 +452,12 @@ __all__ = [
|
|
443
452
|
"ArrayChatMessageContentItem",
|
444
453
|
"ArrayChatMessageContentItemRequest",
|
445
454
|
"ArrayChatMessageContentRequest",
|
455
|
+
"ArrayVariableValue",
|
446
456
|
"ArrayVariableValueItem",
|
457
|
+
"ArrayVellumValue",
|
447
458
|
"ArrayVellumValueItem",
|
448
459
|
"ArrayVellumValueItemRequest",
|
460
|
+
"ArrayVellumValueRequest",
|
449
461
|
"BasicVectorizerIntfloatMultilingualE5Large",
|
450
462
|
"BasicVectorizerIntfloatMultilingualE5LargeRequest",
|
451
463
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1",
|
@@ -453,6 +465,9 @@ __all__ = [
|
|
453
465
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1",
|
454
466
|
"BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request",
|
455
467
|
"ChatHistoryInputRequest",
|
468
|
+
"ChatHistoryVariableValue",
|
469
|
+
"ChatHistoryVellumValue",
|
470
|
+
"ChatHistoryVellumValueRequest",
|
456
471
|
"ChatMessage",
|
457
472
|
"ChatMessageContent",
|
458
473
|
"ChatMessageContentRequest",
|
@@ -687,6 +702,9 @@ __all__ = [
|
|
687
702
|
"SearchResultMeta",
|
688
703
|
"SearchResultMetaRequest",
|
689
704
|
"SearchResultRequest",
|
705
|
+
"SearchResultsVariableValue",
|
706
|
+
"SearchResultsVellumValue",
|
707
|
+
"SearchResultsVellumValueRequest",
|
690
708
|
"SearchWeightsRequest",
|
691
709
|
"SentenceChunkerConfig",
|
692
710
|
"SentenceChunkerConfigRequest",
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
|
+
|
10
|
+
|
11
|
+
class ArrayVariableValue(UniversalBaseModel):
|
12
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
13
|
+
value: typing.Optional[typing.List["ArrayVariableValueItem"]] = None
|
14
|
+
|
15
|
+
if IS_PYDANTIC_V2:
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
17
|
+
else:
|
18
|
+
|
19
|
+
class Config:
|
20
|
+
frozen = True
|
21
|
+
smart_union = True
|
22
|
+
extra = pydantic.Extra.allow
|
23
|
+
|
24
|
+
|
25
|
+
from .array_variable_value_item import ArrayVariableValueItem # noqa: E402
|
26
|
+
|
27
|
+
update_forward_refs(ArrayVariableValue)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
import typing
|
4
5
|
from .string_variable_value import StringVariableValue
|
5
6
|
from .number_variable_value import NumberVariableValue
|
@@ -7,7 +8,12 @@ from .json_variable_value import JsonVariableValue
|
|
7
8
|
from .error_variable_value import ErrorVariableValue
|
8
9
|
from .function_call_variable_value import FunctionCallVariableValue
|
9
10
|
from .image_variable_value import ImageVariableValue
|
11
|
+
from .chat_history_variable_value import ChatHistoryVariableValue
|
12
|
+
from .search_results_variable_value import SearchResultsVariableValue
|
13
|
+
import typing
|
10
14
|
|
15
|
+
if typing.TYPE_CHECKING:
|
16
|
+
from .array_variable_value import ArrayVariableValue
|
11
17
|
ArrayVariableValueItem = typing.Union[
|
12
18
|
StringVariableValue,
|
13
19
|
NumberVariableValue,
|
@@ -15,4 +21,7 @@ ArrayVariableValueItem = typing.Union[
|
|
15
21
|
ErrorVariableValue,
|
16
22
|
FunctionCallVariableValue,
|
17
23
|
ImageVariableValue,
|
24
|
+
ChatHistoryVariableValue,
|
25
|
+
SearchResultsVariableValue,
|
26
|
+
"ArrayVariableValue",
|
18
27
|
]
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
|
+
|
10
|
+
|
11
|
+
class ArrayVellumValue(UniversalBaseModel):
|
12
|
+
"""
|
13
|
+
A value representing an array of Vellum variable values.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
17
|
+
value: typing.Optional[typing.List["ArrayVellumValueItem"]] = None
|
18
|
+
|
19
|
+
if IS_PYDANTIC_V2:
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
21
|
+
else:
|
22
|
+
|
23
|
+
class Config:
|
24
|
+
frozen = True
|
25
|
+
smart_union = True
|
26
|
+
extra = pydantic.Extra.allow
|
27
|
+
|
28
|
+
|
29
|
+
from .array_vellum_value_item import ArrayVellumValueItem # noqa: E402
|
30
|
+
|
31
|
+
update_forward_refs(ArrayVellumValue)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
import typing
|
4
5
|
from .string_vellum_value import StringVellumValue
|
5
6
|
from .number_vellum_value import NumberVellumValue
|
@@ -7,7 +8,20 @@ from .json_vellum_value import JsonVellumValue
|
|
7
8
|
from .image_vellum_value import ImageVellumValue
|
8
9
|
from .function_call_vellum_value import FunctionCallVellumValue
|
9
10
|
from .error_vellum_value import ErrorVellumValue
|
11
|
+
from .chat_history_vellum_value import ChatHistoryVellumValue
|
12
|
+
from .search_results_vellum_value import SearchResultsVellumValue
|
13
|
+
import typing
|
10
14
|
|
15
|
+
if typing.TYPE_CHECKING:
|
16
|
+
from .array_vellum_value import ArrayVellumValue
|
11
17
|
ArrayVellumValueItem = typing.Union[
|
12
|
-
StringVellumValue,
|
18
|
+
StringVellumValue,
|
19
|
+
NumberVellumValue,
|
20
|
+
JsonVellumValue,
|
21
|
+
ImageVellumValue,
|
22
|
+
FunctionCallVellumValue,
|
23
|
+
ErrorVellumValue,
|
24
|
+
ChatHistoryVellumValue,
|
25
|
+
SearchResultsVellumValue,
|
26
|
+
"ArrayVellumValue",
|
13
27
|
]
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
import typing
|
4
5
|
from .string_vellum_value_request import StringVellumValueRequest
|
5
6
|
from .number_vellum_value_request import NumberVellumValueRequest
|
@@ -7,7 +8,12 @@ from .json_vellum_value_request import JsonVellumValueRequest
|
|
7
8
|
from .image_vellum_value_request import ImageVellumValueRequest
|
8
9
|
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
|
9
10
|
from .error_vellum_value_request import ErrorVellumValueRequest
|
11
|
+
from .chat_history_vellum_value_request import ChatHistoryVellumValueRequest
|
12
|
+
from .search_results_vellum_value_request import SearchResultsVellumValueRequest
|
13
|
+
import typing
|
10
14
|
|
15
|
+
if typing.TYPE_CHECKING:
|
16
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
11
17
|
ArrayVellumValueItemRequest = typing.Union[
|
12
18
|
StringVellumValueRequest,
|
13
19
|
NumberVellumValueRequest,
|
@@ -15,4 +21,7 @@ ArrayVellumValueItemRequest = typing.Union[
|
|
15
21
|
ImageVellumValueRequest,
|
16
22
|
FunctionCallVellumValueRequest,
|
17
23
|
ErrorVellumValueRequest,
|
24
|
+
ChatHistoryVellumValueRequest,
|
25
|
+
SearchResultsVellumValueRequest,
|
26
|
+
"ArrayVellumValueRequest",
|
18
27
|
]
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
|
+
|
10
|
+
|
11
|
+
class ArrayVellumValueRequest(UniversalBaseModel):
|
12
|
+
"""
|
13
|
+
A value representing an array of Vellum variable values.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
17
|
+
value: typing.Optional[typing.List["ArrayVellumValueItemRequest"]] = None
|
18
|
+
|
19
|
+
if IS_PYDANTIC_V2:
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
21
|
+
else:
|
22
|
+
|
23
|
+
class Config:
|
24
|
+
frozen = True
|
25
|
+
smart_union = True
|
26
|
+
extra = pydantic.Extra.allow
|
27
|
+
|
28
|
+
|
29
|
+
from .array_vellum_value_item_request import ArrayVellumValueItemRequest # noqa: E402
|
30
|
+
|
31
|
+
update_forward_refs(ArrayVellumValueRequest)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import typing
|
5
|
+
from .chat_message import ChatMessage
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class ChatHistoryVariableValue(UniversalBaseModel):
|
11
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
12
|
+
value: typing.Optional[typing.List[ChatMessage]] = None
|
13
|
+
|
14
|
+
if IS_PYDANTIC_V2:
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
16
|
+
else:
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import typing
|
5
|
+
from .chat_message import ChatMessage
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class ChatHistoryVellumValue(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A value representing Chat History.
|
13
|
+
"""
|
14
|
+
|
15
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
16
|
+
value: typing.Optional[typing.List[ChatMessage]] = None
|
17
|
+
|
18
|
+
if IS_PYDANTIC_V2:
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
20
|
+
else:
|
21
|
+
|
22
|
+
class Config:
|
23
|
+
frozen = True
|
24
|
+
smart_union = True
|
25
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import typing
|
5
|
+
from .chat_message_request import ChatMessageRequest
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class ChatHistoryVellumValueRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A value representing Chat History.
|
13
|
+
"""
|
14
|
+
|
15
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
16
|
+
value: typing.Optional[typing.List[ChatMessageRequest]] = None
|
17
|
+
|
18
|
+
if IS_PYDANTIC_V2:
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
20
|
+
else:
|
21
|
+
|
22
|
+
class Config:
|
23
|
+
frozen = True
|
24
|
+
smart_union = True
|
25
|
+
extra = pydantic.Extra.allow
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_variable_value import ArrayVariableValue
|
4
6
|
import typing
|
5
7
|
from .array_variable_value_item import ArrayVariableValueItem
|
6
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
9
|
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class CodeExecutionNodeArrayResult(UniversalBaseModel):
|
@@ -20,3 +23,6 @@ class CodeExecutionNodeArrayResult(UniversalBaseModel):
|
|
20
23
|
frozen = True
|
21
24
|
smart_union = True
|
22
25
|
extra = pydantic.Extra.allow
|
26
|
+
|
27
|
+
|
28
|
+
update_forward_refs(ArrayVariableValue, CodeExecutionNodeArrayResult=CodeExecutionNodeArrayResult)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_variable_value import ArrayVariableValue
|
4
6
|
import typing
|
5
7
|
from .code_execution_node_result_data import CodeExecutionNodeResultData
|
6
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
9
|
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class CodeExecutionNodeResult(UniversalBaseModel):
|
@@ -23,3 +26,6 @@ class CodeExecutionNodeResult(UniversalBaseModel):
|
|
23
26
|
frozen = True
|
24
27
|
smart_union = True
|
25
28
|
extra = pydantic.Extra.allow
|
29
|
+
|
30
|
+
|
31
|
+
update_forward_refs(ArrayVariableValue, CodeExecutionNodeResult=CodeExecutionNodeResult)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_variable_value import ArrayVariableValue
|
4
6
|
from .code_execution_node_result_output import CodeExecutionNodeResultOutput
|
5
7
|
import typing
|
6
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
9
|
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class CodeExecutionNodeResultData(UniversalBaseModel):
|
@@ -19,3 +22,6 @@ class CodeExecutionNodeResultData(UniversalBaseModel):
|
|
19
22
|
frozen = True
|
20
23
|
smart_union = True
|
21
24
|
extra = pydantic.Extra.allow
|
25
|
+
|
26
|
+
|
27
|
+
update_forward_refs(ArrayVariableValue, CodeExecutionNodeResultData=CodeExecutionNodeResultData)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
4
6
|
import typing
|
5
7
|
import pydantic
|
6
8
|
from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
7
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class CreateTestSuiteTestCaseRequest(UniversalBaseModel):
|
@@ -40,3 +43,6 @@ class CreateTestSuiteTestCaseRequest(UniversalBaseModel):
|
|
40
43
|
frozen = True
|
41
44
|
smart_union = True
|
42
45
|
extra = pydantic.Extra.allow
|
46
|
+
|
47
|
+
|
48
|
+
update_forward_refs(ArrayVellumValueRequest, CreateTestSuiteTestCaseRequest=CreateTestSuiteTestCaseRequest)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
4
6
|
import typing
|
5
7
|
from .execute_workflow_workflow_result_event import ExecuteWorkflowWorkflowResultEvent
|
6
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
9
|
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class ExecuteWorkflowResponse(UniversalBaseModel):
|
@@ -21,3 +24,6 @@ class ExecuteWorkflowResponse(UniversalBaseModel):
|
|
21
24
|
frozen = True
|
22
25
|
smart_union = True
|
23
26
|
extra = pydantic.Extra.allow
|
27
|
+
|
28
|
+
|
29
|
+
update_forward_refs(ArrayVellumValue, ExecuteWorkflowResponse=ExecuteWorkflowResponse)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
4
6
|
import pydantic
|
5
7
|
import typing
|
6
8
|
from .array_vellum_value_item import ArrayVellumValueItem
|
7
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class ExecutionArrayVellumValue(UniversalBaseModel):
|
@@ -29,3 +32,6 @@ class ExecutionArrayVellumValue(UniversalBaseModel):
|
|
29
32
|
frozen = True
|
30
33
|
smart_union = True
|
31
34
|
extra = pydantic.Extra.allow
|
35
|
+
|
36
|
+
|
37
|
+
update_forward_refs(ArrayVellumValue, ExecutionArrayVellumValue=ExecutionArrayVellumValue)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
4
6
|
import typing
|
5
7
|
from .named_test_case_variable_value import NamedTestCaseVariableValue
|
6
8
|
import pydantic
|
7
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class ExternalTestCaseExecution(UniversalBaseModel):
|
@@ -23,3 +26,6 @@ class ExternalTestCaseExecution(UniversalBaseModel):
|
|
23
26
|
frozen = True
|
24
27
|
smart_union = True
|
25
28
|
extra = pydantic.Extra.allow
|
29
|
+
|
30
|
+
|
31
|
+
update_forward_refs(ArrayVellumValue, ExternalTestCaseExecution=ExternalTestCaseExecution)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
4
6
|
import typing
|
5
7
|
from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
6
8
|
import pydantic
|
7
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class ExternalTestCaseExecutionRequest(UniversalBaseModel):
|
@@ -23,3 +26,6 @@ class ExternalTestCaseExecutionRequest(UniversalBaseModel):
|
|
23
26
|
frozen = True
|
24
27
|
smart_union = True
|
25
28
|
extra = pydantic.Extra.allow
|
29
|
+
|
30
|
+
|
31
|
+
update_forward_refs(ArrayVellumValueRequest, ExternalTestCaseExecutionRequest=ExternalTestCaseExecutionRequest)
|
@@ -1,11 +1,14 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
4
6
|
import typing
|
5
7
|
import datetime as dt
|
6
8
|
from .workflow_output import WorkflowOutput
|
7
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
10
|
import pydantic
|
11
|
+
from ..core.pydantic_utilities import update_forward_refs
|
9
12
|
|
10
13
|
|
11
14
|
class FulfilledExecuteWorkflowWorkflowResultEvent(UniversalBaseModel):
|
@@ -26,3 +29,8 @@ class FulfilledExecuteWorkflowWorkflowResultEvent(UniversalBaseModel):
|
|
26
29
|
frozen = True
|
27
30
|
smart_union = True
|
28
31
|
extra = pydantic.Extra.allow
|
32
|
+
|
33
|
+
|
34
|
+
update_forward_refs(
|
35
|
+
ArrayVellumValue, FulfilledExecuteWorkflowWorkflowResultEvent=FulfilledExecuteWorkflowWorkflowResultEvent
|
36
|
+
)
|
@@ -1,12 +1,16 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_variable_value import ArrayVariableValue
|
6
|
+
from .array_vellum_value import ArrayVellumValue
|
4
7
|
import typing
|
5
8
|
import datetime as dt
|
6
9
|
from .workflow_node_result_data import WorkflowNodeResultData
|
7
10
|
from .node_output_compiled_value import NodeOutputCompiledValue
|
8
11
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
9
12
|
import pydantic
|
13
|
+
from ..core.pydantic_utilities import update_forward_refs
|
10
14
|
|
11
15
|
|
12
16
|
class FulfilledWorkflowNodeResultEvent(UniversalBaseModel):
|
@@ -32,3 +36,7 @@ class FulfilledWorkflowNodeResultEvent(UniversalBaseModel):
|
|
32
36
|
frozen = True
|
33
37
|
smart_union = True
|
34
38
|
extra = pydantic.Extra.allow
|
39
|
+
|
40
|
+
|
41
|
+
update_forward_refs(ArrayVariableValue, FulfilledWorkflowNodeResultEvent=FulfilledWorkflowNodeResultEvent)
|
42
|
+
update_forward_refs(ArrayVellumValue, FulfilledWorkflowNodeResultEvent=FulfilledWorkflowNodeResultEvent)
|
@@ -1,12 +1,15 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_variable_value import ArrayVariableValue
|
4
6
|
import typing
|
5
7
|
import datetime as dt
|
6
8
|
from .workflow_node_result_data import WorkflowNodeResultData
|
7
9
|
from .node_input_variable_compiled_value import NodeInputVariableCompiledValue
|
8
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
9
11
|
import pydantic
|
12
|
+
from ..core.pydantic_utilities import update_forward_refs
|
10
13
|
|
11
14
|
|
12
15
|
class InitiatedWorkflowNodeResultEvent(UniversalBaseModel):
|
@@ -31,3 +34,6 @@ class InitiatedWorkflowNodeResultEvent(UniversalBaseModel):
|
|
31
34
|
frozen = True
|
32
35
|
smart_union = True
|
33
36
|
extra = pydantic.Extra.allow
|
37
|
+
|
38
|
+
|
39
|
+
update_forward_refs(ArrayVariableValue, InitiatedWorkflowNodeResultEvent=InitiatedWorkflowNodeResultEvent)
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
from __future__ import annotations
|
3
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value import ArrayVellumValue
|
4
6
|
import typing
|
5
7
|
from .array_vellum_value_item import ArrayVellumValueItem
|
6
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
9
|
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
8
11
|
|
9
12
|
|
10
13
|
class NamedTestCaseArrayVariableValue(UniversalBaseModel):
|
@@ -24,3 +27,6 @@ class NamedTestCaseArrayVariableValue(UniversalBaseModel):
|
|
24
27
|
frozen = True
|
25
28
|
smart_union = True
|
26
29
|
extra = pydantic.Extra.allow
|
30
|
+
|
31
|
+
|
32
|
+
update_forward_refs(ArrayVellumValue, NamedTestCaseArrayVariableValue=NamedTestCaseArrayVariableValue)
|