langwatch 0.5.1__py3-none-any.whl → 0.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langwatch/__version__.py +1 -1
- langwatch/dspy/__init__.py +3 -7
- langwatch/generated/langwatch_rest_api_client/api/default/delete_api_prompts_by_id.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/delete_api_scenario_events.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/get_api_prompts.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/get_api_prompts_by_id.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/get_api_prompts_by_id_versions.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/post_api_prompts.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/post_api_prompts_by_id_sync.py +15 -4
- langwatch/generated/langwatch_rest_api_client/api/default/post_api_scenario_events.py +15 -4
- langwatch/generated/langwatch_rest_api_client/models/__init__.py +16 -0
- langwatch/generated/langwatch_rest_api_client/models/delete_api_prompts_by_id_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/delete_api_scenario_events_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_400.py +14 -11
- langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_401.py +14 -11
- langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_404.py +14 -11
- langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_422.py +14 -11
- langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_500.py +14 -11
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_response_200_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_response_200_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_versions_response_200_item_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_versions_response_200_item_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_by_id_versions_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_response_200_item_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_response_200_item_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/get_api_prompts_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_body_config_data_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_body_config_data_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_response_200_prompt_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_response_200_prompt_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_by_id_sync_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_response_200_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_response_200_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/post_api_prompts_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/post_api_scenario_events_response_422.py +70 -0
- langwatch/generated/langwatch_rest_api_client/models/put_api_prompts_by_id_body.py +19 -37
- langwatch/generated/langwatch_rest_api_client/models/put_api_prompts_by_id_response_200_demonstrations_inline_column_types_item.py +20 -2
- langwatch/generated/langwatch_rest_api_client/models/put_api_prompts_by_id_response_200_prompting_technique_demonstrations_inline_column_types_item.py +20 -2
- {langwatch-0.5.1.dist-info → langwatch-0.6.1.dist-info}/METADATA +2 -2
- {langwatch-0.5.1.dist-info → langwatch-0.6.1.dist-info}/RECORD +44 -36
- {langwatch-0.5.1.dist-info → langwatch-0.6.1.dist-info}/WHEEL +0 -0
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar("T", bound="GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -13,8 +15,9 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
13
15
|
Attributes:
|
|
14
16
|
name (str):
|
|
15
17
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
16
|
-
Literal['evaluations'], Literal['
|
|
17
|
-
Literal['spans'], Literal['string']]):
|
|
18
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
19
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
20
|
+
id (Union[Unset, str]):
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
name: str
|
|
@@ -24,6 +27,7 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
24
27
|
Literal["chat_messages"],
|
|
25
28
|
Literal["date"],
|
|
26
29
|
Literal["evaluations"],
|
|
30
|
+
Literal["image"],
|
|
27
31
|
Literal["json"],
|
|
28
32
|
Literal["list"],
|
|
29
33
|
Literal["number"],
|
|
@@ -31,6 +35,7 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
31
35
|
Literal["spans"],
|
|
32
36
|
Literal["string"],
|
|
33
37
|
]
|
|
38
|
+
id: Union[Unset, str] = UNSET
|
|
34
39
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
40
|
|
|
36
41
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -42,6 +47,7 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
42
47
|
Literal["chat_messages"],
|
|
43
48
|
Literal["date"],
|
|
44
49
|
Literal["evaluations"],
|
|
50
|
+
Literal["image"],
|
|
45
51
|
Literal["json"],
|
|
46
52
|
Literal["list"],
|
|
47
53
|
Literal["number"],
|
|
@@ -51,6 +57,8 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
51
57
|
]
|
|
52
58
|
type_ = self.type_
|
|
53
59
|
|
|
60
|
+
id = self.id
|
|
61
|
+
|
|
54
62
|
field_dict: dict[str, Any] = {}
|
|
55
63
|
field_dict.update(self.additional_properties)
|
|
56
64
|
field_dict.update(
|
|
@@ -59,6 +67,8 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
59
67
|
"type": type_,
|
|
60
68
|
}
|
|
61
69
|
)
|
|
70
|
+
if id is not UNSET:
|
|
71
|
+
field_dict["id"] = id
|
|
62
72
|
|
|
63
73
|
return field_dict
|
|
64
74
|
|
|
@@ -75,6 +85,7 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
75
85
|
Literal["chat_messages"],
|
|
76
86
|
Literal["date"],
|
|
77
87
|
Literal["evaluations"],
|
|
88
|
+
Literal["image"],
|
|
78
89
|
Literal["json"],
|
|
79
90
|
Literal["list"],
|
|
80
91
|
Literal["number"],
|
|
@@ -126,12 +137,19 @@ class GetApiPromptsResponse200ItemDemonstrationsInlineColumnTypesItem:
|
|
|
126
137
|
if type_type_10 != "evaluations":
|
|
127
138
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
128
139
|
return type_type_10
|
|
140
|
+
type_type_11 = cast(Literal["image"], data)
|
|
141
|
+
if type_type_11 != "image":
|
|
142
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
143
|
+
return type_type_11
|
|
129
144
|
|
|
130
145
|
type_ = _parse_type_(d.pop("type"))
|
|
131
146
|
|
|
147
|
+
id = d.pop("id", UNSET)
|
|
148
|
+
|
|
132
149
|
get_api_prompts_response_200_item_demonstrations_inline_column_types_item = cls(
|
|
133
150
|
name=name,
|
|
134
151
|
type_=type_,
|
|
152
|
+
id=id,
|
|
135
153
|
)
|
|
136
154
|
|
|
137
155
|
get_api_prompts_response_200_item_demonstrations_inline_column_types_item.additional_properties = d
|
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar("T", bound="GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTypesItem")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -13,8 +15,9 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
13
15
|
Attributes:
|
|
14
16
|
name (str):
|
|
15
17
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
16
|
-
Literal['evaluations'], Literal['
|
|
17
|
-
Literal['spans'], Literal['string']]):
|
|
18
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
19
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
20
|
+
id (Union[Unset, str]):
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
name: str
|
|
@@ -24,6 +27,7 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
24
27
|
Literal["chat_messages"],
|
|
25
28
|
Literal["date"],
|
|
26
29
|
Literal["evaluations"],
|
|
30
|
+
Literal["image"],
|
|
27
31
|
Literal["json"],
|
|
28
32
|
Literal["list"],
|
|
29
33
|
Literal["number"],
|
|
@@ -31,6 +35,7 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
31
35
|
Literal["spans"],
|
|
32
36
|
Literal["string"],
|
|
33
37
|
]
|
|
38
|
+
id: Union[Unset, str] = UNSET
|
|
34
39
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
40
|
|
|
36
41
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -42,6 +47,7 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
42
47
|
Literal["chat_messages"],
|
|
43
48
|
Literal["date"],
|
|
44
49
|
Literal["evaluations"],
|
|
50
|
+
Literal["image"],
|
|
45
51
|
Literal["json"],
|
|
46
52
|
Literal["list"],
|
|
47
53
|
Literal["number"],
|
|
@@ -51,6 +57,8 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
51
57
|
]
|
|
52
58
|
type_ = self.type_
|
|
53
59
|
|
|
60
|
+
id = self.id
|
|
61
|
+
|
|
54
62
|
field_dict: dict[str, Any] = {}
|
|
55
63
|
field_dict.update(self.additional_properties)
|
|
56
64
|
field_dict.update(
|
|
@@ -59,6 +67,8 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
59
67
|
"type": type_,
|
|
60
68
|
}
|
|
61
69
|
)
|
|
70
|
+
if id is not UNSET:
|
|
71
|
+
field_dict["id"] = id
|
|
62
72
|
|
|
63
73
|
return field_dict
|
|
64
74
|
|
|
@@ -75,6 +85,7 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
75
85
|
Literal["chat_messages"],
|
|
76
86
|
Literal["date"],
|
|
77
87
|
Literal["evaluations"],
|
|
88
|
+
Literal["image"],
|
|
78
89
|
Literal["json"],
|
|
79
90
|
Literal["list"],
|
|
80
91
|
Literal["number"],
|
|
@@ -126,12 +137,19 @@ class GetApiPromptsResponse200ItemPromptingTechniqueDemonstrationsInlineColumnTy
|
|
|
126
137
|
if type_type_10 != "evaluations":
|
|
127
138
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
128
139
|
return type_type_10
|
|
140
|
+
type_type_11 = cast(Literal["image"], data)
|
|
141
|
+
if type_type_11 != "image":
|
|
142
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
143
|
+
return type_type_11
|
|
129
144
|
|
|
130
145
|
type_ = _parse_type_(d.pop("type"))
|
|
131
146
|
|
|
147
|
+
id = d.pop("id", UNSET)
|
|
148
|
+
|
|
132
149
|
get_api_prompts_response_200_item_prompting_technique_demonstrations_inline_column_types_item = cls(
|
|
133
150
|
name=name,
|
|
134
151
|
type_=type_,
|
|
152
|
+
id=id,
|
|
135
153
|
)
|
|
136
154
|
|
|
137
155
|
get_api_prompts_response_200_item_prompting_technique_demonstrations_inline_column_types_item.additional_properties = d
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="GetApiPromptsResponse422")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class GetApiPromptsResponse422:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
error (str):
|
|
17
|
+
message (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
error: str
|
|
21
|
+
message: Union[Unset, str] = UNSET
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
error = self.error
|
|
26
|
+
|
|
27
|
+
message = self.message
|
|
28
|
+
|
|
29
|
+
field_dict: dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"error": error,
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
if message is not UNSET:
|
|
37
|
+
field_dict["message"] = message
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
43
|
+
d = dict(src_dict)
|
|
44
|
+
error = d.pop("error")
|
|
45
|
+
|
|
46
|
+
message = d.pop("message", UNSET)
|
|
47
|
+
|
|
48
|
+
get_api_prompts_response_422 = cls(
|
|
49
|
+
error=error,
|
|
50
|
+
message=message,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
get_api_prompts_response_422.additional_properties = d
|
|
54
|
+
return get_api_prompts_response_422
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def additional_keys(self) -> list[str]:
|
|
58
|
+
return list(self.additional_properties.keys())
|
|
59
|
+
|
|
60
|
+
def __getitem__(self, key: str) -> Any:
|
|
61
|
+
return self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
64
|
+
self.additional_properties[key] = value
|
|
65
|
+
|
|
66
|
+
def __delitem__(self, key: str) -> None:
|
|
67
|
+
del self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __contains__(self, key: str) -> bool:
|
|
70
|
+
return key in self.additional_properties
|
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar("T", bound="PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -13,8 +15,9 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
13
15
|
Attributes:
|
|
14
16
|
name (str):
|
|
15
17
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
16
|
-
Literal['evaluations'], Literal['
|
|
17
|
-
Literal['spans'], Literal['string']]):
|
|
18
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
19
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
20
|
+
id (Union[Unset, str]):
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
name: str
|
|
@@ -24,6 +27,7 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
24
27
|
Literal["chat_messages"],
|
|
25
28
|
Literal["date"],
|
|
26
29
|
Literal["evaluations"],
|
|
30
|
+
Literal["image"],
|
|
27
31
|
Literal["json"],
|
|
28
32
|
Literal["list"],
|
|
29
33
|
Literal["number"],
|
|
@@ -31,6 +35,7 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
31
35
|
Literal["spans"],
|
|
32
36
|
Literal["string"],
|
|
33
37
|
]
|
|
38
|
+
id: Union[Unset, str] = UNSET
|
|
34
39
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
40
|
|
|
36
41
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -42,6 +47,7 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
42
47
|
Literal["chat_messages"],
|
|
43
48
|
Literal["date"],
|
|
44
49
|
Literal["evaluations"],
|
|
50
|
+
Literal["image"],
|
|
45
51
|
Literal["json"],
|
|
46
52
|
Literal["list"],
|
|
47
53
|
Literal["number"],
|
|
@@ -51,6 +57,8 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
51
57
|
]
|
|
52
58
|
type_ = self.type_
|
|
53
59
|
|
|
60
|
+
id = self.id
|
|
61
|
+
|
|
54
62
|
field_dict: dict[str, Any] = {}
|
|
55
63
|
field_dict.update(self.additional_properties)
|
|
56
64
|
field_dict.update(
|
|
@@ -59,6 +67,8 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
59
67
|
"type": type_,
|
|
60
68
|
}
|
|
61
69
|
)
|
|
70
|
+
if id is not UNSET:
|
|
71
|
+
field_dict["id"] = id
|
|
62
72
|
|
|
63
73
|
return field_dict
|
|
64
74
|
|
|
@@ -75,6 +85,7 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
75
85
|
Literal["chat_messages"],
|
|
76
86
|
Literal["date"],
|
|
77
87
|
Literal["evaluations"],
|
|
88
|
+
Literal["image"],
|
|
78
89
|
Literal["json"],
|
|
79
90
|
Literal["list"],
|
|
80
91
|
Literal["number"],
|
|
@@ -126,12 +137,19 @@ class PostApiPromptsByIdSyncBodyConfigDataDemonstrationsInlineColumnTypesItem:
|
|
|
126
137
|
if type_type_10 != "evaluations":
|
|
127
138
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
128
139
|
return type_type_10
|
|
140
|
+
type_type_11 = cast(Literal["image"], data)
|
|
141
|
+
if type_type_11 != "image":
|
|
142
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
143
|
+
return type_type_11
|
|
129
144
|
|
|
130
145
|
type_ = _parse_type_(d.pop("type"))
|
|
131
146
|
|
|
147
|
+
id = d.pop("id", UNSET)
|
|
148
|
+
|
|
132
149
|
post_api_prompts_by_id_sync_body_config_data_demonstrations_inline_column_types_item = cls(
|
|
133
150
|
name=name,
|
|
134
151
|
type_=type_,
|
|
152
|
+
id=id,
|
|
135
153
|
)
|
|
136
154
|
|
|
137
155
|
post_api_prompts_by_id_sync_body_config_data_demonstrations_inline_column_types_item.additional_properties = d
|
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar("T", bound="PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInlineColumnTypesItem")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -13,8 +15,9 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
13
15
|
Attributes:
|
|
14
16
|
name (str):
|
|
15
17
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
16
|
-
Literal['evaluations'], Literal['
|
|
17
|
-
Literal['spans'], Literal['string']]):
|
|
18
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
19
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
20
|
+
id (Union[Unset, str]):
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
name: str
|
|
@@ -24,6 +27,7 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
24
27
|
Literal["chat_messages"],
|
|
25
28
|
Literal["date"],
|
|
26
29
|
Literal["evaluations"],
|
|
30
|
+
Literal["image"],
|
|
27
31
|
Literal["json"],
|
|
28
32
|
Literal["list"],
|
|
29
33
|
Literal["number"],
|
|
@@ -31,6 +35,7 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
31
35
|
Literal["spans"],
|
|
32
36
|
Literal["string"],
|
|
33
37
|
]
|
|
38
|
+
id: Union[Unset, str] = UNSET
|
|
34
39
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
40
|
|
|
36
41
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -42,6 +47,7 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
42
47
|
Literal["chat_messages"],
|
|
43
48
|
Literal["date"],
|
|
44
49
|
Literal["evaluations"],
|
|
50
|
+
Literal["image"],
|
|
45
51
|
Literal["json"],
|
|
46
52
|
Literal["list"],
|
|
47
53
|
Literal["number"],
|
|
@@ -51,6 +57,8 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
51
57
|
]
|
|
52
58
|
type_ = self.type_
|
|
53
59
|
|
|
60
|
+
id = self.id
|
|
61
|
+
|
|
54
62
|
field_dict: dict[str, Any] = {}
|
|
55
63
|
field_dict.update(self.additional_properties)
|
|
56
64
|
field_dict.update(
|
|
@@ -59,6 +67,8 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
59
67
|
"type": type_,
|
|
60
68
|
}
|
|
61
69
|
)
|
|
70
|
+
if id is not UNSET:
|
|
71
|
+
field_dict["id"] = id
|
|
62
72
|
|
|
63
73
|
return field_dict
|
|
64
74
|
|
|
@@ -75,6 +85,7 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
75
85
|
Literal["chat_messages"],
|
|
76
86
|
Literal["date"],
|
|
77
87
|
Literal["evaluations"],
|
|
88
|
+
Literal["image"],
|
|
78
89
|
Literal["json"],
|
|
79
90
|
Literal["list"],
|
|
80
91
|
Literal["number"],
|
|
@@ -126,12 +137,19 @@ class PostApiPromptsByIdSyncBodyConfigDataPromptingTechniqueDemonstrationsInline
|
|
|
126
137
|
if type_type_10 != "evaluations":
|
|
127
138
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
128
139
|
return type_type_10
|
|
140
|
+
type_type_11 = cast(Literal["image"], data)
|
|
141
|
+
if type_type_11 != "image":
|
|
142
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
143
|
+
return type_type_11
|
|
129
144
|
|
|
130
145
|
type_ = _parse_type_(d.pop("type"))
|
|
131
146
|
|
|
147
|
+
id = d.pop("id", UNSET)
|
|
148
|
+
|
|
132
149
|
post_api_prompts_by_id_sync_body_config_data_prompting_technique_demonstrations_inline_column_types_item = cls(
|
|
133
150
|
name=name,
|
|
134
151
|
type_=type_,
|
|
152
|
+
id=id,
|
|
135
153
|
)
|
|
136
154
|
|
|
137
155
|
post_api_prompts_by_id_sync_body_config_data_prompting_technique_demonstrations_inline_column_types_item.additional_properties = d
|
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar(
|
|
8
10
|
"T", bound="PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstrationsInlineColumnTypesItem"
|
|
9
11
|
)
|
|
@@ -15,8 +17,9 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
15
17
|
Attributes:
|
|
16
18
|
name (str):
|
|
17
19
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
18
|
-
Literal['evaluations'], Literal['
|
|
19
|
-
Literal['spans'], Literal['string']]):
|
|
20
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
21
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
22
|
+
id (Union[Unset, str]):
|
|
20
23
|
"""
|
|
21
24
|
|
|
22
25
|
name: str
|
|
@@ -26,6 +29,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
26
29
|
Literal["chat_messages"],
|
|
27
30
|
Literal["date"],
|
|
28
31
|
Literal["evaluations"],
|
|
32
|
+
Literal["image"],
|
|
29
33
|
Literal["json"],
|
|
30
34
|
Literal["list"],
|
|
31
35
|
Literal["number"],
|
|
@@ -33,6 +37,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
33
37
|
Literal["spans"],
|
|
34
38
|
Literal["string"],
|
|
35
39
|
]
|
|
40
|
+
id: Union[Unset, str] = UNSET
|
|
36
41
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
42
|
|
|
38
43
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -44,6 +49,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
44
49
|
Literal["chat_messages"],
|
|
45
50
|
Literal["date"],
|
|
46
51
|
Literal["evaluations"],
|
|
52
|
+
Literal["image"],
|
|
47
53
|
Literal["json"],
|
|
48
54
|
Literal["list"],
|
|
49
55
|
Literal["number"],
|
|
@@ -53,6 +59,8 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
53
59
|
]
|
|
54
60
|
type_ = self.type_
|
|
55
61
|
|
|
62
|
+
id = self.id
|
|
63
|
+
|
|
56
64
|
field_dict: dict[str, Any] = {}
|
|
57
65
|
field_dict.update(self.additional_properties)
|
|
58
66
|
field_dict.update(
|
|
@@ -61,6 +69,8 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
61
69
|
"type": type_,
|
|
62
70
|
}
|
|
63
71
|
)
|
|
72
|
+
if id is not UNSET:
|
|
73
|
+
field_dict["id"] = id
|
|
64
74
|
|
|
65
75
|
return field_dict
|
|
66
76
|
|
|
@@ -77,6 +87,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
77
87
|
Literal["chat_messages"],
|
|
78
88
|
Literal["date"],
|
|
79
89
|
Literal["evaluations"],
|
|
90
|
+
Literal["image"],
|
|
80
91
|
Literal["json"],
|
|
81
92
|
Literal["list"],
|
|
82
93
|
Literal["number"],
|
|
@@ -128,12 +139,19 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataDemonstration
|
|
|
128
139
|
if type_type_10 != "evaluations":
|
|
129
140
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
130
141
|
return type_type_10
|
|
142
|
+
type_type_11 = cast(Literal["image"], data)
|
|
143
|
+
if type_type_11 != "image":
|
|
144
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
145
|
+
return type_type_11
|
|
131
146
|
|
|
132
147
|
type_ = _parse_type_(d.pop("type"))
|
|
133
148
|
|
|
149
|
+
id = d.pop("id", UNSET)
|
|
150
|
+
|
|
134
151
|
post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_demonstrations_inline_column_types_item = cls(
|
|
135
152
|
name=name,
|
|
136
153
|
type_=type_,
|
|
154
|
+
id=id,
|
|
137
155
|
)
|
|
138
156
|
|
|
139
157
|
post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_demonstrations_inline_column_types_item.additional_properties = d
|
|
@@ -4,6 +4,8 @@ from typing import Any, Literal, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
7
9
|
T = TypeVar(
|
|
8
10
|
"T",
|
|
9
11
|
bound="PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTechniqueDemonstrationsInlineColumnTypesItem",
|
|
@@ -16,8 +18,9 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
16
18
|
Attributes:
|
|
17
19
|
name (str):
|
|
18
20
|
type_ (Union[Literal['annotations'], Literal['boolean'], Literal['chat_messages'], Literal['date'],
|
|
19
|
-
Literal['evaluations'], Literal['
|
|
20
|
-
Literal['spans'], Literal['string']]):
|
|
21
|
+
Literal['evaluations'], Literal['image'], Literal['json'], Literal['list'], Literal['number'],
|
|
22
|
+
Literal['rag_contexts'], Literal['spans'], Literal['string']]):
|
|
23
|
+
id (Union[Unset, str]):
|
|
21
24
|
"""
|
|
22
25
|
|
|
23
26
|
name: str
|
|
@@ -27,6 +30,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
27
30
|
Literal["chat_messages"],
|
|
28
31
|
Literal["date"],
|
|
29
32
|
Literal["evaluations"],
|
|
33
|
+
Literal["image"],
|
|
30
34
|
Literal["json"],
|
|
31
35
|
Literal["list"],
|
|
32
36
|
Literal["number"],
|
|
@@ -34,6 +38,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
34
38
|
Literal["spans"],
|
|
35
39
|
Literal["string"],
|
|
36
40
|
]
|
|
41
|
+
id: Union[Unset, str] = UNSET
|
|
37
42
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
43
|
|
|
39
44
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -45,6 +50,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
45
50
|
Literal["chat_messages"],
|
|
46
51
|
Literal["date"],
|
|
47
52
|
Literal["evaluations"],
|
|
53
|
+
Literal["image"],
|
|
48
54
|
Literal["json"],
|
|
49
55
|
Literal["list"],
|
|
50
56
|
Literal["number"],
|
|
@@ -54,6 +60,8 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
54
60
|
]
|
|
55
61
|
type_ = self.type_
|
|
56
62
|
|
|
63
|
+
id = self.id
|
|
64
|
+
|
|
57
65
|
field_dict: dict[str, Any] = {}
|
|
58
66
|
field_dict.update(self.additional_properties)
|
|
59
67
|
field_dict.update(
|
|
@@ -62,6 +70,8 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
62
70
|
"type": type_,
|
|
63
71
|
}
|
|
64
72
|
)
|
|
73
|
+
if id is not UNSET:
|
|
74
|
+
field_dict["id"] = id
|
|
65
75
|
|
|
66
76
|
return field_dict
|
|
67
77
|
|
|
@@ -78,6 +88,7 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
78
88
|
Literal["chat_messages"],
|
|
79
89
|
Literal["date"],
|
|
80
90
|
Literal["evaluations"],
|
|
91
|
+
Literal["image"],
|
|
81
92
|
Literal["json"],
|
|
82
93
|
Literal["list"],
|
|
83
94
|
Literal["number"],
|
|
@@ -129,12 +140,19 @@ class PostApiPromptsByIdSyncResponse200ConflictInfoRemoteConfigDataPromptingTech
|
|
|
129
140
|
if type_type_10 != "evaluations":
|
|
130
141
|
raise ValueError(f"type_type_10 must match const 'evaluations', got '{type_type_10}'")
|
|
131
142
|
return type_type_10
|
|
143
|
+
type_type_11 = cast(Literal["image"], data)
|
|
144
|
+
if type_type_11 != "image":
|
|
145
|
+
raise ValueError(f"type_type_11 must match const 'image', got '{type_type_11}'")
|
|
146
|
+
return type_type_11
|
|
132
147
|
|
|
133
148
|
type_ = _parse_type_(d.pop("type"))
|
|
134
149
|
|
|
150
|
+
id = d.pop("id", UNSET)
|
|
151
|
+
|
|
135
152
|
post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_prompting_technique_demonstrations_inline_column_types_item = cls(
|
|
136
153
|
name=name,
|
|
137
154
|
type_=type_,
|
|
155
|
+
id=id,
|
|
138
156
|
)
|
|
139
157
|
|
|
140
158
|
post_api_prompts_by_id_sync_response_200_conflict_info_remote_config_data_prompting_technique_demonstrations_inline_column_types_item.additional_properties = d
|