agentex-sdk 0.4.23__py3-none-any.whl → 0.4.24__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.
- agentex/__init__.py +3 -1
- agentex/_base_client.py +9 -9
- agentex/_client.py +12 -12
- agentex/_models.py +10 -4
- agentex/_qs.py +7 -7
- agentex/_types.py +18 -11
- agentex/_utils/_transform.py +2 -2
- agentex/_utils/_utils.py +4 -4
- agentex/_version.py +1 -1
- agentex/lib/cli/handlers/deploy_handlers.py +1 -1
- agentex/lib/core/temporal/workers/worker.py +2 -2
- agentex/resources/agents.py +25 -25
- agentex/resources/events.py +9 -9
- agentex/resources/messages/batch.py +5 -5
- agentex/resources/messages/messages.py +15 -15
- agentex/resources/spans.py +39 -39
- agentex/resources/states.py +15 -15
- agentex/resources/tasks.py +19 -19
- agentex/resources/tracker.py +17 -17
- {agentex_sdk-0.4.23.dist-info → agentex_sdk-0.4.24.dist-info}/METADATA +3 -3
- {agentex_sdk-0.4.23.dist-info → agentex_sdk-0.4.24.dist-info}/RECORD +24 -24
- {agentex_sdk-0.4.23.dist-info → agentex_sdk-0.4.24.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.4.23.dist-info → agentex_sdk-0.4.24.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.4.23.dist-info → agentex_sdk-0.4.24.dist-info}/licenses/LICENSE +0 -0
@@ -6,7 +6,7 @@ from typing import Dict, Iterable
|
|
6
6
|
|
7
7
|
import httpx
|
8
8
|
|
9
|
-
from ..._types import
|
9
|
+
from ..._types import Body, Query, Headers, NotGiven, not_given
|
10
10
|
from ..._utils import maybe_transform, async_maybe_transform
|
11
11
|
from ..._compat import cached_property
|
12
12
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
@@ -55,7 +55,7 @@ class BatchResource(SyncAPIResource):
|
|
55
55
|
extra_headers: Headers | None = None,
|
56
56
|
extra_query: Query | None = None,
|
57
57
|
extra_body: Body | None = None,
|
58
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
58
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
59
59
|
) -> BatchCreateResponse:
|
60
60
|
"""
|
61
61
|
Batch Create Messages
|
@@ -94,7 +94,7 @@ class BatchResource(SyncAPIResource):
|
|
94
94
|
extra_headers: Headers | None = None,
|
95
95
|
extra_query: Query | None = None,
|
96
96
|
extra_body: Body | None = None,
|
97
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
97
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
98
98
|
) -> BatchUpdateResponse:
|
99
99
|
"""
|
100
100
|
Batch Update Messages
|
@@ -154,7 +154,7 @@ class AsyncBatchResource(AsyncAPIResource):
|
|
154
154
|
extra_headers: Headers | None = None,
|
155
155
|
extra_query: Query | None = None,
|
156
156
|
extra_body: Body | None = None,
|
157
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
157
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
158
158
|
) -> BatchCreateResponse:
|
159
159
|
"""
|
160
160
|
Batch Create Messages
|
@@ -193,7 +193,7 @@ class AsyncBatchResource(AsyncAPIResource):
|
|
193
193
|
extra_headers: Headers | None = None,
|
194
194
|
extra_query: Query | None = None,
|
195
195
|
extra_body: Body | None = None,
|
196
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
196
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
197
197
|
) -> BatchUpdateResponse:
|
198
198
|
"""
|
199
199
|
Batch Update Messages
|
@@ -16,7 +16,7 @@ from .batch import (
|
|
16
16
|
AsyncBatchResourceWithStreamingResponse,
|
17
17
|
)
|
18
18
|
from ...types import message_list_params, message_create_params, message_update_params
|
19
|
-
from ..._types import
|
19
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
20
20
|
from ..._utils import maybe_transform, async_maybe_transform
|
21
21
|
from ..._compat import cached_property
|
22
22
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
@@ -63,13 +63,13 @@ class MessagesResource(SyncAPIResource):
|
|
63
63
|
*,
|
64
64
|
content: TaskMessageContentParam,
|
65
65
|
task_id: str,
|
66
|
-
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] |
|
66
|
+
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] | Omit = omit,
|
67
67
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
68
68
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
69
69
|
extra_headers: Headers | None = None,
|
70
70
|
extra_query: Query | None = None,
|
71
71
|
extra_body: Body | None = None,
|
72
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
72
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
73
73
|
) -> TaskMessage:
|
74
74
|
"""
|
75
75
|
Create Message
|
@@ -108,7 +108,7 @@ class MessagesResource(SyncAPIResource):
|
|
108
108
|
extra_headers: Headers | None = None,
|
109
109
|
extra_query: Query | None = None,
|
110
110
|
extra_body: Body | None = None,
|
111
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
111
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
112
112
|
) -> TaskMessage:
|
113
113
|
"""
|
114
114
|
Get Message
|
@@ -138,13 +138,13 @@ class MessagesResource(SyncAPIResource):
|
|
138
138
|
*,
|
139
139
|
content: TaskMessageContentParam,
|
140
140
|
task_id: str,
|
141
|
-
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] |
|
141
|
+
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] | Omit = omit,
|
142
142
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
143
143
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
144
144
|
extra_headers: Headers | None = None,
|
145
145
|
extra_query: Query | None = None,
|
146
146
|
extra_body: Body | None = None,
|
147
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
147
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
148
148
|
) -> TaskMessage:
|
149
149
|
"""
|
150
150
|
Update Message
|
@@ -180,13 +180,13 @@ class MessagesResource(SyncAPIResource):
|
|
180
180
|
self,
|
181
181
|
*,
|
182
182
|
task_id: str,
|
183
|
-
limit: Optional[int] |
|
183
|
+
limit: Optional[int] | Omit = omit,
|
184
184
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
185
185
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
186
186
|
extra_headers: Headers | None = None,
|
187
187
|
extra_query: Query | None = None,
|
188
188
|
extra_body: Body | None = None,
|
189
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
189
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
190
190
|
) -> MessageListResponse:
|
191
191
|
"""
|
192
192
|
List Messages
|
@@ -250,13 +250,13 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
250
250
|
*,
|
251
251
|
content: TaskMessageContentParam,
|
252
252
|
task_id: str,
|
253
|
-
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] |
|
253
|
+
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] | Omit = omit,
|
254
254
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
255
255
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
256
256
|
extra_headers: Headers | None = None,
|
257
257
|
extra_query: Query | None = None,
|
258
258
|
extra_body: Body | None = None,
|
259
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
259
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
260
260
|
) -> TaskMessage:
|
261
261
|
"""
|
262
262
|
Create Message
|
@@ -295,7 +295,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
295
295
|
extra_headers: Headers | None = None,
|
296
296
|
extra_query: Query | None = None,
|
297
297
|
extra_body: Body | None = None,
|
298
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
298
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
299
299
|
) -> TaskMessage:
|
300
300
|
"""
|
301
301
|
Get Message
|
@@ -325,13 +325,13 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
325
325
|
*,
|
326
326
|
content: TaskMessageContentParam,
|
327
327
|
task_id: str,
|
328
|
-
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] |
|
328
|
+
streaming_status: Optional[Literal["IN_PROGRESS", "DONE"]] | Omit = omit,
|
329
329
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
330
330
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
331
331
|
extra_headers: Headers | None = None,
|
332
332
|
extra_query: Query | None = None,
|
333
333
|
extra_body: Body | None = None,
|
334
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
334
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
335
335
|
) -> TaskMessage:
|
336
336
|
"""
|
337
337
|
Update Message
|
@@ -367,13 +367,13 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
367
367
|
self,
|
368
368
|
*,
|
369
369
|
task_id: str,
|
370
|
-
limit: Optional[int] |
|
370
|
+
limit: Optional[int] | Omit = omit,
|
371
371
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
372
372
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
373
373
|
extra_headers: Headers | None = None,
|
374
374
|
extra_query: Query | None = None,
|
375
375
|
extra_body: Body | None = None,
|
376
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
376
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
377
377
|
) -> MessageListResponse:
|
378
378
|
"""
|
379
379
|
List Messages
|
agentex/resources/spans.py
CHANGED
@@ -8,7 +8,7 @@ from datetime import datetime
|
|
8
8
|
import httpx
|
9
9
|
|
10
10
|
from ..types import span_list_params, span_create_params, span_update_params
|
11
|
-
from .._types import
|
11
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
12
12
|
from .._utils import maybe_transform, async_maybe_transform
|
13
13
|
from .._compat import cached_property
|
14
14
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
@@ -51,18 +51,18 @@ class SpansResource(SyncAPIResource):
|
|
51
51
|
name: str,
|
52
52
|
start_time: Union[str, datetime],
|
53
53
|
trace_id: str,
|
54
|
-
id: Optional[str] |
|
55
|
-
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
56
|
-
end_time: Union[str, datetime, None] |
|
57
|
-
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
58
|
-
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
59
|
-
parent_id: Optional[str] |
|
54
|
+
id: Optional[str] | Omit = omit,
|
55
|
+
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
56
|
+
end_time: Union[str, datetime, None] | Omit = omit,
|
57
|
+
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
58
|
+
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
59
|
+
parent_id: Optional[str] | Omit = omit,
|
60
60
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
61
61
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
62
62
|
extra_headers: Headers | None = None,
|
63
63
|
extra_query: Query | None = None,
|
64
64
|
extra_body: Body | None = None,
|
65
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
65
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
66
66
|
) -> Span:
|
67
67
|
"""
|
68
68
|
Create a new span with the provided parameters
|
@@ -125,7 +125,7 @@ class SpansResource(SyncAPIResource):
|
|
125
125
|
extra_headers: Headers | None = None,
|
126
126
|
extra_query: Query | None = None,
|
127
127
|
extra_body: Body | None = None,
|
128
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
128
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
129
129
|
) -> Span:
|
130
130
|
"""
|
131
131
|
Get a span by ID
|
@@ -153,20 +153,20 @@ class SpansResource(SyncAPIResource):
|
|
153
153
|
self,
|
154
154
|
span_id: str,
|
155
155
|
*,
|
156
|
-
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
157
|
-
end_time: Union[str, datetime, None] |
|
158
|
-
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
159
|
-
name: Optional[str] |
|
160
|
-
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
161
|
-
parent_id: Optional[str] |
|
162
|
-
start_time: Union[str, datetime, None] |
|
163
|
-
trace_id: Optional[str] |
|
156
|
+
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
157
|
+
end_time: Union[str, datetime, None] | Omit = omit,
|
158
|
+
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
159
|
+
name: Optional[str] | Omit = omit,
|
160
|
+
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
161
|
+
parent_id: Optional[str] | Omit = omit,
|
162
|
+
start_time: Union[str, datetime, None] | Omit = omit,
|
163
|
+
trace_id: Optional[str] | Omit = omit,
|
164
164
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
165
165
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
166
166
|
extra_headers: Headers | None = None,
|
167
167
|
extra_query: Query | None = None,
|
168
168
|
extra_body: Body | None = None,
|
169
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
169
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
170
170
|
) -> Span:
|
171
171
|
"""
|
172
172
|
Update a span with the provided output data and mark it as complete
|
@@ -222,13 +222,13 @@ class SpansResource(SyncAPIResource):
|
|
222
222
|
def list(
|
223
223
|
self,
|
224
224
|
*,
|
225
|
-
trace_id: Optional[str] |
|
225
|
+
trace_id: Optional[str] | Omit = omit,
|
226
226
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
227
227
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
228
228
|
extra_headers: Headers | None = None,
|
229
229
|
extra_query: Query | None = None,
|
230
230
|
extra_body: Body | None = None,
|
231
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
231
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
232
232
|
) -> SpanListResponse:
|
233
233
|
"""
|
234
234
|
List all spans for a given trace ID
|
@@ -281,18 +281,18 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
281
281
|
name: str,
|
282
282
|
start_time: Union[str, datetime],
|
283
283
|
trace_id: str,
|
284
|
-
id: Optional[str] |
|
285
|
-
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
286
|
-
end_time: Union[str, datetime, None] |
|
287
|
-
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
288
|
-
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
289
|
-
parent_id: Optional[str] |
|
284
|
+
id: Optional[str] | Omit = omit,
|
285
|
+
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
286
|
+
end_time: Union[str, datetime, None] | Omit = omit,
|
287
|
+
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
288
|
+
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
289
|
+
parent_id: Optional[str] | Omit = omit,
|
290
290
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
291
291
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
292
292
|
extra_headers: Headers | None = None,
|
293
293
|
extra_query: Query | None = None,
|
294
294
|
extra_body: Body | None = None,
|
295
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
295
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
296
296
|
) -> Span:
|
297
297
|
"""
|
298
298
|
Create a new span with the provided parameters
|
@@ -355,7 +355,7 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
355
355
|
extra_headers: Headers | None = None,
|
356
356
|
extra_query: Query | None = None,
|
357
357
|
extra_body: Body | None = None,
|
358
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
358
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
359
359
|
) -> Span:
|
360
360
|
"""
|
361
361
|
Get a span by ID
|
@@ -383,20 +383,20 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
383
383
|
self,
|
384
384
|
span_id: str,
|
385
385
|
*,
|
386
|
-
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
387
|
-
end_time: Union[str, datetime, None] |
|
388
|
-
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
389
|
-
name: Optional[str] |
|
390
|
-
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] |
|
391
|
-
parent_id: Optional[str] |
|
392
|
-
start_time: Union[str, datetime, None] |
|
393
|
-
trace_id: Optional[str] |
|
386
|
+
data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
387
|
+
end_time: Union[str, datetime, None] | Omit = omit,
|
388
|
+
input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
389
|
+
name: Optional[str] | Omit = omit,
|
390
|
+
output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit,
|
391
|
+
parent_id: Optional[str] | Omit = omit,
|
392
|
+
start_time: Union[str, datetime, None] | Omit = omit,
|
393
|
+
trace_id: Optional[str] | Omit = omit,
|
394
394
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
395
395
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
396
396
|
extra_headers: Headers | None = None,
|
397
397
|
extra_query: Query | None = None,
|
398
398
|
extra_body: Body | None = None,
|
399
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
399
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
400
400
|
) -> Span:
|
401
401
|
"""
|
402
402
|
Update a span with the provided output data and mark it as complete
|
@@ -452,13 +452,13 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
452
452
|
async def list(
|
453
453
|
self,
|
454
454
|
*,
|
455
|
-
trace_id: Optional[str] |
|
455
|
+
trace_id: Optional[str] | Omit = omit,
|
456
456
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
457
457
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
458
458
|
extra_headers: Headers | None = None,
|
459
459
|
extra_query: Query | None = None,
|
460
460
|
extra_body: Body | None = None,
|
461
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
461
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
462
462
|
) -> SpanListResponse:
|
463
463
|
"""
|
464
464
|
List all spans for a given trace ID
|
agentex/resources/states.py
CHANGED
@@ -7,7 +7,7 @@ from typing import Dict, Optional
|
|
7
7
|
import httpx
|
8
8
|
|
9
9
|
from ..types import state_list_params, state_create_params, state_update_params
|
10
|
-
from .._types import
|
10
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
11
11
|
from .._utils import maybe_transform, async_maybe_transform
|
12
12
|
from .._compat import cached_property
|
13
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
@@ -55,7 +55,7 @@ class StatesResource(SyncAPIResource):
|
|
55
55
|
extra_headers: Headers | None = None,
|
56
56
|
extra_query: Query | None = None,
|
57
57
|
extra_body: Body | None = None,
|
58
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
58
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
59
59
|
) -> State:
|
60
60
|
"""
|
61
61
|
Create Task State
|
@@ -94,7 +94,7 @@ class StatesResource(SyncAPIResource):
|
|
94
94
|
extra_headers: Headers | None = None,
|
95
95
|
extra_query: Query | None = None,
|
96
96
|
extra_body: Body | None = None,
|
97
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
97
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
98
98
|
) -> State:
|
99
99
|
"""
|
100
100
|
Get a state by its unique state ID.
|
@@ -130,7 +130,7 @@ class StatesResource(SyncAPIResource):
|
|
130
130
|
extra_headers: Headers | None = None,
|
131
131
|
extra_query: Query | None = None,
|
132
132
|
extra_body: Body | None = None,
|
133
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
133
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
134
134
|
) -> State:
|
135
135
|
"""
|
136
136
|
Update Task State
|
@@ -165,14 +165,14 @@ class StatesResource(SyncAPIResource):
|
|
165
165
|
def list(
|
166
166
|
self,
|
167
167
|
*,
|
168
|
-
agent_id: Optional[str] |
|
169
|
-
task_id: Optional[str] |
|
168
|
+
agent_id: Optional[str] | Omit = omit,
|
169
|
+
task_id: Optional[str] | Omit = omit,
|
170
170
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
171
171
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
172
172
|
extra_headers: Headers | None = None,
|
173
173
|
extra_query: Query | None = None,
|
174
174
|
extra_body: Body | None = None,
|
175
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
175
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
176
176
|
) -> StateListResponse:
|
177
177
|
"""
|
178
178
|
List all states, optionally filtered by query parameters.
|
@@ -217,7 +217,7 @@ class StatesResource(SyncAPIResource):
|
|
217
217
|
extra_headers: Headers | None = None,
|
218
218
|
extra_query: Query | None = None,
|
219
219
|
extra_body: Body | None = None,
|
220
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
220
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
221
221
|
) -> State:
|
222
222
|
"""
|
223
223
|
Delete Task State
|
@@ -273,7 +273,7 @@ class AsyncStatesResource(AsyncAPIResource):
|
|
273
273
|
extra_headers: Headers | None = None,
|
274
274
|
extra_query: Query | None = None,
|
275
275
|
extra_body: Body | None = None,
|
276
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
276
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
277
277
|
) -> State:
|
278
278
|
"""
|
279
279
|
Create Task State
|
@@ -312,7 +312,7 @@ class AsyncStatesResource(AsyncAPIResource):
|
|
312
312
|
extra_headers: Headers | None = None,
|
313
313
|
extra_query: Query | None = None,
|
314
314
|
extra_body: Body | None = None,
|
315
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
315
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
316
316
|
) -> State:
|
317
317
|
"""
|
318
318
|
Get a state by its unique state ID.
|
@@ -348,7 +348,7 @@ class AsyncStatesResource(AsyncAPIResource):
|
|
348
348
|
extra_headers: Headers | None = None,
|
349
349
|
extra_query: Query | None = None,
|
350
350
|
extra_body: Body | None = None,
|
351
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
351
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
352
352
|
) -> State:
|
353
353
|
"""
|
354
354
|
Update Task State
|
@@ -383,14 +383,14 @@ class AsyncStatesResource(AsyncAPIResource):
|
|
383
383
|
async def list(
|
384
384
|
self,
|
385
385
|
*,
|
386
|
-
agent_id: Optional[str] |
|
387
|
-
task_id: Optional[str] |
|
386
|
+
agent_id: Optional[str] | Omit = omit,
|
387
|
+
task_id: Optional[str] | Omit = omit,
|
388
388
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
389
389
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
390
390
|
extra_headers: Headers | None = None,
|
391
391
|
extra_query: Query | None = None,
|
392
392
|
extra_body: Body | None = None,
|
393
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
393
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
394
394
|
) -> StateListResponse:
|
395
395
|
"""
|
396
396
|
List all states, optionally filtered by query parameters.
|
@@ -435,7 +435,7 @@ class AsyncStatesResource(AsyncAPIResource):
|
|
435
435
|
extra_headers: Headers | None = None,
|
436
436
|
extra_query: Query | None = None,
|
437
437
|
extra_body: Body | None = None,
|
438
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
438
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
439
439
|
) -> State:
|
440
440
|
"""
|
441
441
|
Delete Task State
|
agentex/resources/tasks.py
CHANGED
@@ -7,7 +7,7 @@ from typing import Optional
|
|
7
7
|
import httpx
|
8
8
|
|
9
9
|
from ..types import task_list_params
|
10
|
-
from .._types import
|
10
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
11
11
|
from .._utils import maybe_transform, async_maybe_transform
|
12
12
|
from .._compat import cached_property
|
13
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
@@ -55,7 +55,7 @@ class TasksResource(SyncAPIResource):
|
|
55
55
|
extra_headers: Headers | None = None,
|
56
56
|
extra_query: Query | None = None,
|
57
57
|
extra_body: Body | None = None,
|
58
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
58
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
59
59
|
) -> Task:
|
60
60
|
"""
|
61
61
|
Get a task by its unique ID.
|
@@ -82,14 +82,14 @@ class TasksResource(SyncAPIResource):
|
|
82
82
|
def list(
|
83
83
|
self,
|
84
84
|
*,
|
85
|
-
agent_id: Optional[str] |
|
86
|
-
agent_name: Optional[str] |
|
85
|
+
agent_id: Optional[str] | Omit = omit,
|
86
|
+
agent_name: Optional[str] | Omit = omit,
|
87
87
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
88
88
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
89
89
|
extra_headers: Headers | None = None,
|
90
90
|
extra_query: Query | None = None,
|
91
91
|
extra_body: Body | None = None,
|
92
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
92
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
93
93
|
) -> TaskListResponse:
|
94
94
|
"""
|
95
95
|
List all tasks.
|
@@ -130,7 +130,7 @@ class TasksResource(SyncAPIResource):
|
|
130
130
|
extra_headers: Headers | None = None,
|
131
131
|
extra_query: Query | None = None,
|
132
132
|
extra_body: Body | None = None,
|
133
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
133
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
134
134
|
) -> DeleteResponse:
|
135
135
|
"""
|
136
136
|
Delete a task by its unique ID.
|
@@ -163,7 +163,7 @@ class TasksResource(SyncAPIResource):
|
|
163
163
|
extra_headers: Headers | None = None,
|
164
164
|
extra_query: Query | None = None,
|
165
165
|
extra_body: Body | None = None,
|
166
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
166
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
167
167
|
) -> DeleteResponse:
|
168
168
|
"""
|
169
169
|
Delete a task by its unique name.
|
@@ -196,7 +196,7 @@ class TasksResource(SyncAPIResource):
|
|
196
196
|
extra_headers: Headers | None = None,
|
197
197
|
extra_query: Query | None = None,
|
198
198
|
extra_body: Body | None = None,
|
199
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
199
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
200
200
|
) -> Task:
|
201
201
|
"""
|
202
202
|
Get a task by its unique name.
|
@@ -229,7 +229,7 @@ class TasksResource(SyncAPIResource):
|
|
229
229
|
extra_headers: Headers | None = None,
|
230
230
|
extra_query: Query | None = None,
|
231
231
|
extra_body: Body | None = None,
|
232
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
232
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
233
233
|
) -> Stream[object]:
|
234
234
|
"""
|
235
235
|
Stream events for a task by its unique ID.
|
@@ -264,7 +264,7 @@ class TasksResource(SyncAPIResource):
|
|
264
264
|
extra_headers: Headers | None = None,
|
265
265
|
extra_query: Query | None = None,
|
266
266
|
extra_body: Body | None = None,
|
267
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
267
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
268
268
|
) -> Stream[object]:
|
269
269
|
"""
|
270
270
|
Stream events for a task by its unique name.
|
@@ -320,7 +320,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
320
320
|
extra_headers: Headers | None = None,
|
321
321
|
extra_query: Query | None = None,
|
322
322
|
extra_body: Body | None = None,
|
323
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
323
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
324
324
|
) -> Task:
|
325
325
|
"""
|
326
326
|
Get a task by its unique ID.
|
@@ -347,14 +347,14 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
347
347
|
async def list(
|
348
348
|
self,
|
349
349
|
*,
|
350
|
-
agent_id: Optional[str] |
|
351
|
-
agent_name: Optional[str] |
|
350
|
+
agent_id: Optional[str] | Omit = omit,
|
351
|
+
agent_name: Optional[str] | Omit = omit,
|
352
352
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
353
353
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
354
354
|
extra_headers: Headers | None = None,
|
355
355
|
extra_query: Query | None = None,
|
356
356
|
extra_body: Body | None = None,
|
357
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
357
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
358
358
|
) -> TaskListResponse:
|
359
359
|
"""
|
360
360
|
List all tasks.
|
@@ -395,7 +395,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
395
395
|
extra_headers: Headers | None = None,
|
396
396
|
extra_query: Query | None = None,
|
397
397
|
extra_body: Body | None = None,
|
398
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
398
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
399
399
|
) -> DeleteResponse:
|
400
400
|
"""
|
401
401
|
Delete a task by its unique ID.
|
@@ -428,7 +428,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
428
428
|
extra_headers: Headers | None = None,
|
429
429
|
extra_query: Query | None = None,
|
430
430
|
extra_body: Body | None = None,
|
431
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
431
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
432
432
|
) -> DeleteResponse:
|
433
433
|
"""
|
434
434
|
Delete a task by its unique name.
|
@@ -461,7 +461,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
461
461
|
extra_headers: Headers | None = None,
|
462
462
|
extra_query: Query | None = None,
|
463
463
|
extra_body: Body | None = None,
|
464
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
464
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
465
465
|
) -> Task:
|
466
466
|
"""
|
467
467
|
Get a task by its unique name.
|
@@ -494,7 +494,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
494
494
|
extra_headers: Headers | None = None,
|
495
495
|
extra_query: Query | None = None,
|
496
496
|
extra_body: Body | None = None,
|
497
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
497
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
498
498
|
) -> AsyncStream[object]:
|
499
499
|
"""
|
500
500
|
Stream events for a task by its unique ID.
|
@@ -529,7 +529,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
529
529
|
extra_headers: Headers | None = None,
|
530
530
|
extra_query: Query | None = None,
|
531
531
|
extra_body: Body | None = None,
|
532
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
532
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
533
533
|
) -> AsyncStream[object]:
|
534
534
|
"""
|
535
535
|
Stream events for a task by its unique name.
|