langwatch 0.5.0__py3-none-any.whl → 0.6.0__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.0.dist-info → langwatch-0.6.0.dist-info}/METADATA +2 -2
- {langwatch-0.5.0.dist-info → langwatch-0.6.0.dist-info}/RECORD +44 -36
- {langwatch-0.5.0.dist-info → langwatch-0.6.0.dist-info}/WHEEL +0 -0
|
@@ -9,6 +9,7 @@ from ...models.post_api_prompts_by_id_sync_body import PostApiPromptsByIdSyncBod
|
|
|
9
9
|
from ...models.post_api_prompts_by_id_sync_response_200 import PostApiPromptsByIdSyncResponse200
|
|
10
10
|
from ...models.post_api_prompts_by_id_sync_response_400 import PostApiPromptsByIdSyncResponse400
|
|
11
11
|
from ...models.post_api_prompts_by_id_sync_response_401 import PostApiPromptsByIdSyncResponse401
|
|
12
|
+
from ...models.post_api_prompts_by_id_sync_response_422 import PostApiPromptsByIdSyncResponse422
|
|
12
13
|
from ...models.post_api_prompts_by_id_sync_response_500 import PostApiPromptsByIdSyncResponse500
|
|
13
14
|
from ...types import Response
|
|
14
15
|
|
|
@@ -41,6 +42,7 @@ def _parse_response(
|
|
|
41
42
|
PostApiPromptsByIdSyncResponse200,
|
|
42
43
|
PostApiPromptsByIdSyncResponse400,
|
|
43
44
|
PostApiPromptsByIdSyncResponse401,
|
|
45
|
+
PostApiPromptsByIdSyncResponse422,
|
|
44
46
|
PostApiPromptsByIdSyncResponse500,
|
|
45
47
|
]
|
|
46
48
|
]:
|
|
@@ -56,6 +58,10 @@ def _parse_response(
|
|
|
56
58
|
response_401 = PostApiPromptsByIdSyncResponse401.from_dict(response.json())
|
|
57
59
|
|
|
58
60
|
return response_401
|
|
61
|
+
if response.status_code == 422:
|
|
62
|
+
response_422 = PostApiPromptsByIdSyncResponse422.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_422
|
|
59
65
|
if response.status_code == 500:
|
|
60
66
|
response_500 = PostApiPromptsByIdSyncResponse500.from_dict(response.json())
|
|
61
67
|
|
|
@@ -73,6 +79,7 @@ def _build_response(
|
|
|
73
79
|
PostApiPromptsByIdSyncResponse200,
|
|
74
80
|
PostApiPromptsByIdSyncResponse400,
|
|
75
81
|
PostApiPromptsByIdSyncResponse401,
|
|
82
|
+
PostApiPromptsByIdSyncResponse422,
|
|
76
83
|
PostApiPromptsByIdSyncResponse500,
|
|
77
84
|
]
|
|
78
85
|
]:
|
|
@@ -94,6 +101,7 @@ def sync_detailed(
|
|
|
94
101
|
PostApiPromptsByIdSyncResponse200,
|
|
95
102
|
PostApiPromptsByIdSyncResponse400,
|
|
96
103
|
PostApiPromptsByIdSyncResponse401,
|
|
104
|
+
PostApiPromptsByIdSyncResponse422,
|
|
97
105
|
PostApiPromptsByIdSyncResponse500,
|
|
98
106
|
]
|
|
99
107
|
]:
|
|
@@ -108,7 +116,7 @@ def sync_detailed(
|
|
|
108
116
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
117
|
|
|
110
118
|
Returns:
|
|
111
|
-
Response[Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse500]]
|
|
119
|
+
Response[Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse422, PostApiPromptsByIdSyncResponse500]]
|
|
112
120
|
"""
|
|
113
121
|
|
|
114
122
|
kwargs = _get_kwargs(
|
|
@@ -133,6 +141,7 @@ def sync(
|
|
|
133
141
|
PostApiPromptsByIdSyncResponse200,
|
|
134
142
|
PostApiPromptsByIdSyncResponse400,
|
|
135
143
|
PostApiPromptsByIdSyncResponse401,
|
|
144
|
+
PostApiPromptsByIdSyncResponse422,
|
|
136
145
|
PostApiPromptsByIdSyncResponse500,
|
|
137
146
|
]
|
|
138
147
|
]:
|
|
@@ -147,7 +156,7 @@ def sync(
|
|
|
147
156
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
148
157
|
|
|
149
158
|
Returns:
|
|
150
|
-
Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse500]
|
|
159
|
+
Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse422, PostApiPromptsByIdSyncResponse500]
|
|
151
160
|
"""
|
|
152
161
|
|
|
153
162
|
return sync_detailed(
|
|
@@ -167,6 +176,7 @@ async def asyncio_detailed(
|
|
|
167
176
|
PostApiPromptsByIdSyncResponse200,
|
|
168
177
|
PostApiPromptsByIdSyncResponse400,
|
|
169
178
|
PostApiPromptsByIdSyncResponse401,
|
|
179
|
+
PostApiPromptsByIdSyncResponse422,
|
|
170
180
|
PostApiPromptsByIdSyncResponse500,
|
|
171
181
|
]
|
|
172
182
|
]:
|
|
@@ -181,7 +191,7 @@ async def asyncio_detailed(
|
|
|
181
191
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
182
192
|
|
|
183
193
|
Returns:
|
|
184
|
-
Response[Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse500]]
|
|
194
|
+
Response[Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse422, PostApiPromptsByIdSyncResponse500]]
|
|
185
195
|
"""
|
|
186
196
|
|
|
187
197
|
kwargs = _get_kwargs(
|
|
@@ -204,6 +214,7 @@ async def asyncio(
|
|
|
204
214
|
PostApiPromptsByIdSyncResponse200,
|
|
205
215
|
PostApiPromptsByIdSyncResponse400,
|
|
206
216
|
PostApiPromptsByIdSyncResponse401,
|
|
217
|
+
PostApiPromptsByIdSyncResponse422,
|
|
207
218
|
PostApiPromptsByIdSyncResponse500,
|
|
208
219
|
]
|
|
209
220
|
]:
|
|
@@ -218,7 +229,7 @@ async def asyncio(
|
|
|
218
229
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
219
230
|
|
|
220
231
|
Returns:
|
|
221
|
-
Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse500]
|
|
232
|
+
Union[PostApiPromptsByIdSyncResponse200, PostApiPromptsByIdSyncResponse400, PostApiPromptsByIdSyncResponse401, PostApiPromptsByIdSyncResponse422, PostApiPromptsByIdSyncResponse500]
|
|
222
233
|
"""
|
|
223
234
|
|
|
224
235
|
return (
|
|
@@ -11,6 +11,7 @@ from ...models.post_api_scenario_events_body_type_2 import PostApiScenarioEvents
|
|
|
11
11
|
from ...models.post_api_scenario_events_response_201 import PostApiScenarioEventsResponse201
|
|
12
12
|
from ...models.post_api_scenario_events_response_400 import PostApiScenarioEventsResponse400
|
|
13
13
|
from ...models.post_api_scenario_events_response_401 import PostApiScenarioEventsResponse401
|
|
14
|
+
from ...models.post_api_scenario_events_response_422 import PostApiScenarioEventsResponse422
|
|
14
15
|
from ...models.post_api_scenario_events_response_500 import PostApiScenarioEventsResponse500
|
|
15
16
|
from ...types import Response
|
|
16
17
|
|
|
@@ -48,6 +49,7 @@ def _parse_response(
|
|
|
48
49
|
PostApiScenarioEventsResponse201,
|
|
49
50
|
PostApiScenarioEventsResponse400,
|
|
50
51
|
PostApiScenarioEventsResponse401,
|
|
52
|
+
PostApiScenarioEventsResponse422,
|
|
51
53
|
PostApiScenarioEventsResponse500,
|
|
52
54
|
]
|
|
53
55
|
]:
|
|
@@ -63,6 +65,10 @@ def _parse_response(
|
|
|
63
65
|
response_401 = PostApiScenarioEventsResponse401.from_dict(response.json())
|
|
64
66
|
|
|
65
67
|
return response_401
|
|
68
|
+
if response.status_code == 422:
|
|
69
|
+
response_422 = PostApiScenarioEventsResponse422.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_422
|
|
66
72
|
if response.status_code == 500:
|
|
67
73
|
response_500 = PostApiScenarioEventsResponse500.from_dict(response.json())
|
|
68
74
|
|
|
@@ -80,6 +86,7 @@ def _build_response(
|
|
|
80
86
|
PostApiScenarioEventsResponse201,
|
|
81
87
|
PostApiScenarioEventsResponse400,
|
|
82
88
|
PostApiScenarioEventsResponse401,
|
|
89
|
+
PostApiScenarioEventsResponse422,
|
|
83
90
|
PostApiScenarioEventsResponse500,
|
|
84
91
|
]
|
|
85
92
|
]:
|
|
@@ -100,6 +107,7 @@ def sync_detailed(
|
|
|
100
107
|
PostApiScenarioEventsResponse201,
|
|
101
108
|
PostApiScenarioEventsResponse400,
|
|
102
109
|
PostApiScenarioEventsResponse401,
|
|
110
|
+
PostApiScenarioEventsResponse422,
|
|
103
111
|
PostApiScenarioEventsResponse500,
|
|
104
112
|
]
|
|
105
113
|
]:
|
|
@@ -114,7 +122,7 @@ def sync_detailed(
|
|
|
114
122
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
115
123
|
|
|
116
124
|
Returns:
|
|
117
|
-
Response[Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse500]]
|
|
125
|
+
Response[Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse422, PostApiScenarioEventsResponse500]]
|
|
118
126
|
"""
|
|
119
127
|
|
|
120
128
|
kwargs = _get_kwargs(
|
|
@@ -137,6 +145,7 @@ def sync(
|
|
|
137
145
|
PostApiScenarioEventsResponse201,
|
|
138
146
|
PostApiScenarioEventsResponse400,
|
|
139
147
|
PostApiScenarioEventsResponse401,
|
|
148
|
+
PostApiScenarioEventsResponse422,
|
|
140
149
|
PostApiScenarioEventsResponse500,
|
|
141
150
|
]
|
|
142
151
|
]:
|
|
@@ -151,7 +160,7 @@ def sync(
|
|
|
151
160
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
152
161
|
|
|
153
162
|
Returns:
|
|
154
|
-
Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse500]
|
|
163
|
+
Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse422, PostApiScenarioEventsResponse500]
|
|
155
164
|
"""
|
|
156
165
|
|
|
157
166
|
return sync_detailed(
|
|
@@ -169,6 +178,7 @@ async def asyncio_detailed(
|
|
|
169
178
|
PostApiScenarioEventsResponse201,
|
|
170
179
|
PostApiScenarioEventsResponse400,
|
|
171
180
|
PostApiScenarioEventsResponse401,
|
|
181
|
+
PostApiScenarioEventsResponse422,
|
|
172
182
|
PostApiScenarioEventsResponse500,
|
|
173
183
|
]
|
|
174
184
|
]:
|
|
@@ -183,7 +193,7 @@ async def asyncio_detailed(
|
|
|
183
193
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
184
194
|
|
|
185
195
|
Returns:
|
|
186
|
-
Response[Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse500]]
|
|
196
|
+
Response[Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse422, PostApiScenarioEventsResponse500]]
|
|
187
197
|
"""
|
|
188
198
|
|
|
189
199
|
kwargs = _get_kwargs(
|
|
@@ -204,6 +214,7 @@ async def asyncio(
|
|
|
204
214
|
PostApiScenarioEventsResponse201,
|
|
205
215
|
PostApiScenarioEventsResponse400,
|
|
206
216
|
PostApiScenarioEventsResponse401,
|
|
217
|
+
PostApiScenarioEventsResponse422,
|
|
207
218
|
PostApiScenarioEventsResponse500,
|
|
208
219
|
]
|
|
209
220
|
]:
|
|
@@ -218,7 +229,7 @@ async def asyncio(
|
|
|
218
229
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
219
230
|
|
|
220
231
|
Returns:
|
|
221
|
-
Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse500]
|
|
232
|
+
Union[PostApiScenarioEventsResponse201, PostApiScenarioEventsResponse400, PostApiScenarioEventsResponse401, PostApiScenarioEventsResponse422, PostApiScenarioEventsResponse500]
|
|
222
233
|
"""
|
|
223
234
|
|
|
224
235
|
return (
|
|
@@ -8,10 +8,12 @@ from .delete_api_prompts_by_id_response_200 import DeleteApiPromptsByIdResponse2
|
|
|
8
8
|
from .delete_api_prompts_by_id_response_400 import DeleteApiPromptsByIdResponse400
|
|
9
9
|
from .delete_api_prompts_by_id_response_401 import DeleteApiPromptsByIdResponse401
|
|
10
10
|
from .delete_api_prompts_by_id_response_404 import DeleteApiPromptsByIdResponse404
|
|
11
|
+
from .delete_api_prompts_by_id_response_422 import DeleteApiPromptsByIdResponse422
|
|
11
12
|
from .delete_api_prompts_by_id_response_500 import DeleteApiPromptsByIdResponse500
|
|
12
13
|
from .delete_api_scenario_events_response_200 import DeleteApiScenarioEventsResponse200
|
|
13
14
|
from .delete_api_scenario_events_response_400 import DeleteApiScenarioEventsResponse400
|
|
14
15
|
from .delete_api_scenario_events_response_401 import DeleteApiScenarioEventsResponse401
|
|
16
|
+
from .delete_api_scenario_events_response_422 import DeleteApiScenarioEventsResponse422
|
|
15
17
|
from .delete_api_scenario_events_response_500 import DeleteApiScenarioEventsResponse500
|
|
16
18
|
from .error import Error
|
|
17
19
|
from .evaluation import Evaluation
|
|
@@ -70,6 +72,7 @@ from .get_api_prompts_by_id_response_200_scope import GetApiPromptsByIdResponse2
|
|
|
70
72
|
from .get_api_prompts_by_id_response_400 import GetApiPromptsByIdResponse400
|
|
71
73
|
from .get_api_prompts_by_id_response_401 import GetApiPromptsByIdResponse401
|
|
72
74
|
from .get_api_prompts_by_id_response_404 import GetApiPromptsByIdResponse404
|
|
75
|
+
from .get_api_prompts_by_id_response_422 import GetApiPromptsByIdResponse422
|
|
73
76
|
from .get_api_prompts_by_id_response_500 import GetApiPromptsByIdResponse500
|
|
74
77
|
from .get_api_prompts_by_id_versions_response_200_item import GetApiPromptsByIdVersionsResponse200Item
|
|
75
78
|
from .get_api_prompts_by_id_versions_response_200_item_demonstrations import (
|
|
@@ -139,6 +142,7 @@ from .get_api_prompts_by_id_versions_response_200_item_scope import GetApiPrompt
|
|
|
139
142
|
from .get_api_prompts_by_id_versions_response_400 import GetApiPromptsByIdVersionsResponse400
|
|
140
143
|
from .get_api_prompts_by_id_versions_response_401 import GetApiPromptsByIdVersionsResponse401
|
|
141
144
|
from .get_api_prompts_by_id_versions_response_404 import GetApiPromptsByIdVersionsResponse404
|
|
145
|
+
from .get_api_prompts_by_id_versions_response_422 import GetApiPromptsByIdVersionsResponse422
|
|
142
146
|
from .get_api_prompts_by_id_versions_response_500 import GetApiPromptsByIdVersionsResponse500
|
|
143
147
|
from .get_api_prompts_response_200_item import GetApiPromptsResponse200Item
|
|
144
148
|
from .get_api_prompts_response_200_item_demonstrations import GetApiPromptsResponse200ItemDemonstrations
|
|
@@ -185,6 +189,7 @@ from .get_api_prompts_response_200_item_response_format_type import GetApiPrompt
|
|
|
185
189
|
from .get_api_prompts_response_200_item_scope import GetApiPromptsResponse200ItemScope
|
|
186
190
|
from .get_api_prompts_response_400 import GetApiPromptsResponse400
|
|
187
191
|
from .get_api_prompts_response_401 import GetApiPromptsResponse401
|
|
192
|
+
from .get_api_prompts_response_422 import GetApiPromptsResponse422
|
|
188
193
|
from .get_api_prompts_response_500 import GetApiPromptsResponse500
|
|
189
194
|
from .get_api_trace_id_response_200 import GetApiTraceIdResponse200
|
|
190
195
|
from .get_api_trace_id_response_200_error_type_0 import GetApiTraceIdResponse200ErrorType0
|
|
@@ -433,6 +438,7 @@ from .post_api_prompts_by_id_sync_response_200_prompt_response_format_type impor
|
|
|
433
438
|
from .post_api_prompts_by_id_sync_response_200_prompt_scope import PostApiPromptsByIdSyncResponse200PromptScope
|
|
434
439
|
from .post_api_prompts_by_id_sync_response_400 import PostApiPromptsByIdSyncResponse400
|
|
435
440
|
from .post_api_prompts_by_id_sync_response_401 import PostApiPromptsByIdSyncResponse401
|
|
441
|
+
from .post_api_prompts_by_id_sync_response_422 import PostApiPromptsByIdSyncResponse422
|
|
436
442
|
from .post_api_prompts_by_id_sync_response_500 import PostApiPromptsByIdSyncResponse500
|
|
437
443
|
from .post_api_prompts_response_200 import PostApiPromptsResponse200
|
|
438
444
|
from .post_api_prompts_response_200_demonstrations import PostApiPromptsResponse200Demonstrations
|
|
@@ -476,6 +482,7 @@ from .post_api_prompts_response_200_scope import PostApiPromptsResponse200Scope
|
|
|
476
482
|
from .post_api_prompts_response_400 import PostApiPromptsResponse400
|
|
477
483
|
from .post_api_prompts_response_401 import PostApiPromptsResponse401
|
|
478
484
|
from .post_api_prompts_response_409 import PostApiPromptsResponse409
|
|
485
|
+
from .post_api_prompts_response_422 import PostApiPromptsResponse422
|
|
479
486
|
from .post_api_prompts_response_500 import PostApiPromptsResponse500
|
|
480
487
|
from .post_api_scenario_events_body_type_0 import PostApiScenarioEventsBodyType0
|
|
481
488
|
from .post_api_scenario_events_body_type_0_metadata import PostApiScenarioEventsBodyType0Metadata
|
|
@@ -490,6 +497,7 @@ from .post_api_scenario_events_body_type_2_messages_item import PostApiScenarioE
|
|
|
490
497
|
from .post_api_scenario_events_response_201 import PostApiScenarioEventsResponse201
|
|
491
498
|
from .post_api_scenario_events_response_400 import PostApiScenarioEventsResponse400
|
|
492
499
|
from .post_api_scenario_events_response_401 import PostApiScenarioEventsResponse401
|
|
500
|
+
from .post_api_scenario_events_response_422 import PostApiScenarioEventsResponse422
|
|
493
501
|
from .post_api_scenario_events_response_500 import PostApiScenarioEventsResponse500
|
|
494
502
|
from .post_api_trace_id_share_response_200 import PostApiTraceIdShareResponse200
|
|
495
503
|
from .post_api_trace_id_unshare_response_200 import PostApiTraceIdUnshareResponse200
|
|
@@ -591,10 +599,12 @@ __all__ = (
|
|
|
591
599
|
"DeleteApiPromptsByIdResponse400",
|
|
592
600
|
"DeleteApiPromptsByIdResponse401",
|
|
593
601
|
"DeleteApiPromptsByIdResponse404",
|
|
602
|
+
"DeleteApiPromptsByIdResponse422",
|
|
594
603
|
"DeleteApiPromptsByIdResponse500",
|
|
595
604
|
"DeleteApiScenarioEventsResponse200",
|
|
596
605
|
"DeleteApiScenarioEventsResponse400",
|
|
597
606
|
"DeleteApiScenarioEventsResponse401",
|
|
607
|
+
"DeleteApiScenarioEventsResponse422",
|
|
598
608
|
"DeleteApiScenarioEventsResponse500",
|
|
599
609
|
"Error",
|
|
600
610
|
"Evaluation",
|
|
@@ -633,6 +643,7 @@ __all__ = (
|
|
|
633
643
|
"GetApiPromptsByIdResponse400",
|
|
634
644
|
"GetApiPromptsByIdResponse401",
|
|
635
645
|
"GetApiPromptsByIdResponse404",
|
|
646
|
+
"GetApiPromptsByIdResponse422",
|
|
636
647
|
"GetApiPromptsByIdResponse500",
|
|
637
648
|
"GetApiPromptsByIdVersionsResponse200Item",
|
|
638
649
|
"GetApiPromptsByIdVersionsResponse200ItemDemonstrations",
|
|
@@ -660,6 +671,7 @@ __all__ = (
|
|
|
660
671
|
"GetApiPromptsByIdVersionsResponse400",
|
|
661
672
|
"GetApiPromptsByIdVersionsResponse401",
|
|
662
673
|
"GetApiPromptsByIdVersionsResponse404",
|
|
674
|
+
"GetApiPromptsByIdVersionsResponse422",
|
|
663
675
|
"GetApiPromptsByIdVersionsResponse500",
|
|
664
676
|
"GetApiPromptsResponse200Item",
|
|
665
677
|
"GetApiPromptsResponse200ItemDemonstrations",
|
|
@@ -686,6 +698,7 @@ __all__ = (
|
|
|
686
698
|
"GetApiPromptsResponse200ItemScope",
|
|
687
699
|
"GetApiPromptsResponse400",
|
|
688
700
|
"GetApiPromptsResponse401",
|
|
701
|
+
"GetApiPromptsResponse422",
|
|
689
702
|
"GetApiPromptsResponse500",
|
|
690
703
|
"GetApiTraceIdResponse200",
|
|
691
704
|
"GetApiTraceIdResponse200ErrorType0",
|
|
@@ -808,6 +821,7 @@ __all__ = (
|
|
|
808
821
|
"PostApiPromptsByIdSyncResponse200PromptScope",
|
|
809
822
|
"PostApiPromptsByIdSyncResponse400",
|
|
810
823
|
"PostApiPromptsByIdSyncResponse401",
|
|
824
|
+
"PostApiPromptsByIdSyncResponse422",
|
|
811
825
|
"PostApiPromptsByIdSyncResponse500",
|
|
812
826
|
"PostApiPromptsResponse200",
|
|
813
827
|
"PostApiPromptsResponse200Demonstrations",
|
|
@@ -835,6 +849,7 @@ __all__ = (
|
|
|
835
849
|
"PostApiPromptsResponse400",
|
|
836
850
|
"PostApiPromptsResponse401",
|
|
837
851
|
"PostApiPromptsResponse409",
|
|
852
|
+
"PostApiPromptsResponse422",
|
|
838
853
|
"PostApiPromptsResponse500",
|
|
839
854
|
"PostApiScenarioEventsBodyType0",
|
|
840
855
|
"PostApiScenarioEventsBodyType0Metadata",
|
|
@@ -847,6 +862,7 @@ __all__ = (
|
|
|
847
862
|
"PostApiScenarioEventsResponse201",
|
|
848
863
|
"PostApiScenarioEventsResponse400",
|
|
849
864
|
"PostApiScenarioEventsResponse401",
|
|
865
|
+
"PostApiScenarioEventsResponse422",
|
|
850
866
|
"PostApiScenarioEventsResponse500",
|
|
851
867
|
"PostApiTraceIdShareResponse200",
|
|
852
868
|
"PostApiTraceIdUnshareResponse200",
|
|
@@ -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="DeleteApiPromptsByIdResponse422")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class DeleteApiPromptsByIdResponse422:
|
|
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
|
+
delete_api_prompts_by_id_response_422 = cls(
|
|
49
|
+
error=error,
|
|
50
|
+
message=message,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
delete_api_prompts_by_id_response_422.additional_properties = d
|
|
54
|
+
return delete_api_prompts_by_id_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
|
langwatch/generated/langwatch_rest_api_client/models/delete_api_scenario_events_response_422.py
ADDED
|
@@ -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="DeleteApiScenarioEventsResponse422")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class DeleteApiScenarioEventsResponse422:
|
|
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
|
+
delete_api_scenario_events_response_422 = cls(
|
|
49
|
+
error=error,
|
|
50
|
+
message=message,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
delete_api_scenario_events_response_422.additional_properties = d
|
|
54
|
+
return delete_api_scenario_events_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
|
langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_400.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
3
|
|
|
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="GetApiDatasetBySlugOrIdResponse400")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -11,16 +13,16 @@ T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse400")
|
|
|
11
13
|
class GetApiDatasetBySlugOrIdResponse400:
|
|
12
14
|
"""
|
|
13
15
|
Attributes:
|
|
14
|
-
|
|
15
|
-
message (str):
|
|
16
|
+
error (str):
|
|
17
|
+
message (Union[Unset, str]):
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
error: str
|
|
21
|
+
message: Union[Unset, str] = UNSET
|
|
20
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
23
|
|
|
22
24
|
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
|
|
25
|
+
error = self.error
|
|
24
26
|
|
|
25
27
|
message = self.message
|
|
26
28
|
|
|
@@ -28,22 +30,23 @@ class GetApiDatasetBySlugOrIdResponse400:
|
|
|
28
30
|
field_dict.update(self.additional_properties)
|
|
29
31
|
field_dict.update(
|
|
30
32
|
{
|
|
31
|
-
"
|
|
32
|
-
"message": message,
|
|
33
|
+
"error": error,
|
|
33
34
|
}
|
|
34
35
|
)
|
|
36
|
+
if message is not UNSET:
|
|
37
|
+
field_dict["message"] = message
|
|
35
38
|
|
|
36
39
|
return field_dict
|
|
37
40
|
|
|
38
41
|
@classmethod
|
|
39
42
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
40
43
|
d = dict(src_dict)
|
|
41
|
-
|
|
44
|
+
error = d.pop("error")
|
|
42
45
|
|
|
43
|
-
message = d.pop("message")
|
|
46
|
+
message = d.pop("message", UNSET)
|
|
44
47
|
|
|
45
48
|
get_api_dataset_by_slug_or_id_response_400 = cls(
|
|
46
|
-
|
|
49
|
+
error=error,
|
|
47
50
|
message=message,
|
|
48
51
|
)
|
|
49
52
|
|
langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_401.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
3
|
|
|
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="GetApiDatasetBySlugOrIdResponse401")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -11,16 +13,16 @@ T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse401")
|
|
|
11
13
|
class GetApiDatasetBySlugOrIdResponse401:
|
|
12
14
|
"""
|
|
13
15
|
Attributes:
|
|
14
|
-
|
|
15
|
-
message (str):
|
|
16
|
+
error (str):
|
|
17
|
+
message (Union[Unset, str]):
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
error: str
|
|
21
|
+
message: Union[Unset, str] = UNSET
|
|
20
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
23
|
|
|
22
24
|
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
|
|
25
|
+
error = self.error
|
|
24
26
|
|
|
25
27
|
message = self.message
|
|
26
28
|
|
|
@@ -28,22 +30,23 @@ class GetApiDatasetBySlugOrIdResponse401:
|
|
|
28
30
|
field_dict.update(self.additional_properties)
|
|
29
31
|
field_dict.update(
|
|
30
32
|
{
|
|
31
|
-
"
|
|
32
|
-
"message": message,
|
|
33
|
+
"error": error,
|
|
33
34
|
}
|
|
34
35
|
)
|
|
36
|
+
if message is not UNSET:
|
|
37
|
+
field_dict["message"] = message
|
|
35
38
|
|
|
36
39
|
return field_dict
|
|
37
40
|
|
|
38
41
|
@classmethod
|
|
39
42
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
40
43
|
d = dict(src_dict)
|
|
41
|
-
|
|
44
|
+
error = d.pop("error")
|
|
42
45
|
|
|
43
|
-
message = d.pop("message")
|
|
46
|
+
message = d.pop("message", UNSET)
|
|
44
47
|
|
|
45
48
|
get_api_dataset_by_slug_or_id_response_401 = cls(
|
|
46
|
-
|
|
49
|
+
error=error,
|
|
47
50
|
message=message,
|
|
48
51
|
)
|
|
49
52
|
|
langwatch/generated/langwatch_rest_api_client/models/get_api_dataset_by_slug_or_id_response_404.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
3
|
|
|
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="GetApiDatasetBySlugOrIdResponse404")
|
|
8
10
|
|
|
9
11
|
|
|
@@ -11,16 +13,16 @@ T = TypeVar("T", bound="GetApiDatasetBySlugOrIdResponse404")
|
|
|
11
13
|
class GetApiDatasetBySlugOrIdResponse404:
|
|
12
14
|
"""
|
|
13
15
|
Attributes:
|
|
14
|
-
|
|
15
|
-
message (str):
|
|
16
|
+
error (str):
|
|
17
|
+
message (Union[Unset, str]):
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
error: str
|
|
21
|
+
message: Union[Unset, str] = UNSET
|
|
20
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
23
|
|
|
22
24
|
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
|
|
25
|
+
error = self.error
|
|
24
26
|
|
|
25
27
|
message = self.message
|
|
26
28
|
|
|
@@ -28,22 +30,23 @@ class GetApiDatasetBySlugOrIdResponse404:
|
|
|
28
30
|
field_dict.update(self.additional_properties)
|
|
29
31
|
field_dict.update(
|
|
30
32
|
{
|
|
31
|
-
"
|
|
32
|
-
"message": message,
|
|
33
|
+
"error": error,
|
|
33
34
|
}
|
|
34
35
|
)
|
|
36
|
+
if message is not UNSET:
|
|
37
|
+
field_dict["message"] = message
|
|
35
38
|
|
|
36
39
|
return field_dict
|
|
37
40
|
|
|
38
41
|
@classmethod
|
|
39
42
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
40
43
|
d = dict(src_dict)
|
|
41
|
-
|
|
44
|
+
error = d.pop("error")
|
|
42
45
|
|
|
43
|
-
message = d.pop("message")
|
|
46
|
+
message = d.pop("message", UNSET)
|
|
44
47
|
|
|
45
48
|
get_api_dataset_by_slug_or_id_response_404 = cls(
|
|
46
|
-
|
|
49
|
+
error=error,
|
|
47
50
|
message=message,
|
|
48
51
|
)
|
|
49
52
|
|