agentex-sdk 0.4.22__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.
@@ -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 NOT_GIVEN, Body, Query, Headers, NotGiven
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] | NotGiven = NOT_GIVEN,
55
- data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
56
- end_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
57
- input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
58
- output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
59
- parent_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
157
- end_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
158
- input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
159
- name: Optional[str] | NotGiven = NOT_GIVEN,
160
- output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
161
- parent_id: Optional[str] | NotGiven = NOT_GIVEN,
162
- start_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
163
- trace_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
285
- data: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
286
- end_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
287
- input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
288
- output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
289
- parent_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
387
- end_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
388
- input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
389
- name: Optional[str] | NotGiven = NOT_GIVEN,
390
- output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | NotGiven = NOT_GIVEN,
391
- parent_id: Optional[str] | NotGiven = NOT_GIVEN,
392
- start_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
393
- trace_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
461
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
462
462
  ) -> SpanListResponse:
463
463
  """
464
464
  List all spans for a given trace ID
@@ -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 NOT_GIVEN, Body, Query, Headers, NotGiven
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
169
- task_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
387
- task_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
438
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
439
439
  ) -> State:
440
440
  """
441
441
  Delete Task State
@@ -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 NOT_GIVEN, Body, Query, Headers, NotGiven
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
86
- agent_name: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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] | NotGiven = NOT_GIVEN,
351
- agent_name: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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.
@@ -7,7 +7,7 @@ from typing import Optional
7
7
  import httpx
8
8
 
9
9
  from ..types import tracker_list_params, tracker_update_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
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
@@ -53,7 +53,7 @@ class TrackerResource(SyncAPIResource):
53
53
  extra_headers: Headers | None = None,
54
54
  extra_query: Query | None = None,
55
55
  extra_body: Body | None = None,
56
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
57
  ) -> AgentTaskTracker:
58
58
  """
59
59
  Get agent task tracker by tracker ID
@@ -81,15 +81,15 @@ class TrackerResource(SyncAPIResource):
81
81
  self,
82
82
  tracker_id: str,
83
83
  *,
84
- last_processed_event_id: Optional[str] | NotGiven = NOT_GIVEN,
85
- status: Optional[str] | NotGiven = NOT_GIVEN,
86
- status_reason: Optional[str] | NotGiven = NOT_GIVEN,
84
+ last_processed_event_id: Optional[str] | Omit = omit,
85
+ status: Optional[str] | Omit = omit,
86
+ status_reason: 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 = NOT_GIVEN,
92
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
93
93
  ) -> AgentTaskTracker:
94
94
  """
95
95
  Update agent task tracker by tracker ID
@@ -130,14 +130,14 @@ class TrackerResource(SyncAPIResource):
130
130
  def list(
131
131
  self,
132
132
  *,
133
- agent_id: Optional[str] | NotGiven = NOT_GIVEN,
134
- task_id: Optional[str] | NotGiven = NOT_GIVEN,
133
+ agent_id: Optional[str] | Omit = omit,
134
+ task_id: Optional[str] | Omit = omit,
135
135
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
136
136
  # The extra values given here take precedence over values defined on the client or passed to this method.
137
137
  extra_headers: Headers | None = None,
138
138
  extra_query: Query | None = None,
139
139
  extra_body: Body | None = None,
140
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
140
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
141
141
  ) -> TrackerListResponse:
142
142
  """
143
143
  List all agent task trackers, optionally filtered by query parameters.
@@ -203,7 +203,7 @@ class AsyncTrackerResource(AsyncAPIResource):
203
203
  extra_headers: Headers | None = None,
204
204
  extra_query: Query | None = None,
205
205
  extra_body: Body | None = None,
206
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
206
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
207
207
  ) -> AgentTaskTracker:
208
208
  """
209
209
  Get agent task tracker by tracker ID
@@ -231,15 +231,15 @@ class AsyncTrackerResource(AsyncAPIResource):
231
231
  self,
232
232
  tracker_id: str,
233
233
  *,
234
- last_processed_event_id: Optional[str] | NotGiven = NOT_GIVEN,
235
- status: Optional[str] | NotGiven = NOT_GIVEN,
236
- status_reason: Optional[str] | NotGiven = NOT_GIVEN,
234
+ last_processed_event_id: Optional[str] | Omit = omit,
235
+ status: Optional[str] | Omit = omit,
236
+ status_reason: Optional[str] | Omit = omit,
237
237
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
238
238
  # The extra values given here take precedence over values defined on the client or passed to this method.
239
239
  extra_headers: Headers | None = None,
240
240
  extra_query: Query | None = None,
241
241
  extra_body: Body | None = None,
242
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
242
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
243
243
  ) -> AgentTaskTracker:
244
244
  """
245
245
  Update agent task tracker by tracker ID
@@ -280,14 +280,14 @@ class AsyncTrackerResource(AsyncAPIResource):
280
280
  async def list(
281
281
  self,
282
282
  *,
283
- agent_id: Optional[str] | NotGiven = NOT_GIVEN,
284
- task_id: Optional[str] | NotGiven = NOT_GIVEN,
283
+ agent_id: Optional[str] | Omit = omit,
284
+ task_id: Optional[str] | Omit = omit,
285
285
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
286
286
  # The extra values given here take precedence over values defined on the client or passed to this method.
287
287
  extra_headers: Headers | None = None,
288
288
  extra_query: Query | None = None,
289
289
  extra_body: Body | None = None,
290
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
290
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
291
291
  ) -> TrackerListResponse:
292
292
  """
293
293
  List all agent task trackers, optionally filtered by query parameters.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: agentex-sdk
3
- Version: 0.4.22
3
+ Version: 0.4.24
4
4
  Summary: The official Python library for the agentex API
5
5
  Project-URL: Homepage, https://github.com/scaleapi/agentex-python
6
6
  Project-URL: Repository, https://github.com/scaleapi/agentex-python
7
- Author: Agentex
7
+ Author-email: Agentex <roxanne.farhad@scale.com>
8
8
  License: Apache-2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
@@ -76,7 +76,7 @@ It is generated with [Stainless](https://www.stainless.com/).
76
76
 
77
77
  ## Documentation
78
78
 
79
- The full API of this library can be found in [api.md](https://github.com/scaleapi/agentex-python/tree/main/api.md).
79
+ The REST API documentation can be found on [docs.gp.scale.com](https://docs.gp.scale.com). The full API of this library can be found in [api.md](https://github.com/scaleapi/agentex-python/tree/main/api.md).
80
80
 
81
81
  ## Installation
82
82