agentex-sdk 0.7.3__py3-none-any.whl → 0.7.4__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/_base_client.py +8 -2
- agentex/_client.py +290 -83
- agentex/_version.py +1 -1
- agentex/resources/messages/messages.py +16 -0
- agentex/types/__init__.py +2 -2
- agentex/types/message_list_paginated_params.py +3 -0
- agentex/types/message_list_params.py +3 -0
- {agentex_sdk-0.7.3.dist-info → agentex_sdk-0.7.4.dist-info}/METADATA +1 -1
- {agentex_sdk-0.7.3.dist-info → agentex_sdk-0.7.4.dist-info}/RECORD +12 -12
- {agentex_sdk-0.7.3.dist-info → agentex_sdk-0.7.4.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.7.3.dist-info → agentex_sdk-0.7.4.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.7.3.dist-info → agentex_sdk-0.7.4.dist-info}/licenses/LICENSE +0 -0
agentex/_base_client.py
CHANGED
|
@@ -1247,9 +1247,12 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
1247
1247
|
*,
|
|
1248
1248
|
cast_to: Type[ResponseT],
|
|
1249
1249
|
body: Body | None = None,
|
|
1250
|
+
files: RequestFiles | None = None,
|
|
1250
1251
|
options: RequestOptions = {},
|
|
1251
1252
|
) -> ResponseT:
|
|
1252
|
-
opts = FinalRequestOptions.construct(
|
|
1253
|
+
opts = FinalRequestOptions.construct(
|
|
1254
|
+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
|
|
1255
|
+
)
|
|
1253
1256
|
return self.request(cast_to, opts)
|
|
1254
1257
|
|
|
1255
1258
|
def put(
|
|
@@ -1767,9 +1770,12 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1767
1770
|
*,
|
|
1768
1771
|
cast_to: Type[ResponseT],
|
|
1769
1772
|
body: Body | None = None,
|
|
1773
|
+
files: RequestFiles | None = None,
|
|
1770
1774
|
options: RequestOptions = {},
|
|
1771
1775
|
) -> ResponseT:
|
|
1772
|
-
opts = FinalRequestOptions.construct(
|
|
1776
|
+
opts = FinalRequestOptions.construct(
|
|
1777
|
+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
|
|
1778
|
+
)
|
|
1773
1779
|
return await self.request(cast_to, opts)
|
|
1774
1780
|
|
|
1775
1781
|
async def put(
|
agentex/_client.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import Any, Dict, Mapping, cast
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Dict, Mapping, cast
|
|
7
7
|
from typing_extensions import Self, Literal, override
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
@@ -20,8 +20,8 @@ from ._types import (
|
|
|
20
20
|
not_given,
|
|
21
21
|
)
|
|
22
22
|
from ._utils import is_given, get_async_library
|
|
23
|
+
from ._compat import cached_property
|
|
23
24
|
from ._version import __version__
|
|
24
|
-
from .resources import spans, tasks, agents, events, states, tracker, deployment_history
|
|
25
25
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
26
26
|
from ._exceptions import APIStatusError
|
|
27
27
|
from ._base_client import (
|
|
@@ -29,7 +29,16 @@ from ._base_client import (
|
|
|
29
29
|
SyncAPIClient,
|
|
30
30
|
AsyncAPIClient,
|
|
31
31
|
)
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
if TYPE_CHECKING:
|
|
34
|
+
from .resources import spans, tasks, agents, events, states, tracker, messages
|
|
35
|
+
from .resources.spans import SpansResource, AsyncSpansResource
|
|
36
|
+
from .resources.tasks import TasksResource, AsyncTasksResource
|
|
37
|
+
from .resources.agents import AgentsResource, AsyncAgentsResource
|
|
38
|
+
from .resources.events import EventsResource, AsyncEventsResource
|
|
39
|
+
from .resources.states import StatesResource, AsyncStatesResource
|
|
40
|
+
from .resources.tracker import TrackerResource, AsyncTrackerResource
|
|
41
|
+
from .resources.messages.messages import MessagesResource, AsyncMessagesResource
|
|
33
42
|
|
|
34
43
|
__all__ = [
|
|
35
44
|
"ENVIRONMENTS",
|
|
@@ -50,17 +59,6 @@ ENVIRONMENTS: Dict[str, str] = {
|
|
|
50
59
|
|
|
51
60
|
|
|
52
61
|
class Agentex(SyncAPIClient):
|
|
53
|
-
agents: agents.AgentsResource
|
|
54
|
-
tasks: tasks.TasksResource
|
|
55
|
-
messages: messages.MessagesResource
|
|
56
|
-
spans: spans.SpansResource
|
|
57
|
-
states: states.StatesResource
|
|
58
|
-
events: events.EventsResource
|
|
59
|
-
tracker: tracker.TrackerResource
|
|
60
|
-
deployment_history: deployment_history.DeploymentHistoryResource
|
|
61
|
-
with_raw_response: AgentexWithRawResponse
|
|
62
|
-
with_streaming_response: AgentexWithStreamedResponse
|
|
63
|
-
|
|
64
62
|
# client options
|
|
65
63
|
api_key: str | None
|
|
66
64
|
|
|
@@ -135,16 +133,55 @@ class Agentex(SyncAPIClient):
|
|
|
135
133
|
_strict_response_validation=_strict_response_validation,
|
|
136
134
|
)
|
|
137
135
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
@cached_property
|
|
137
|
+
def agents(self) -> AgentsResource:
|
|
138
|
+
from .resources.agents import AgentsResource
|
|
139
|
+
|
|
140
|
+
return AgentsResource(self)
|
|
141
|
+
|
|
142
|
+
@cached_property
|
|
143
|
+
def tasks(self) -> TasksResource:
|
|
144
|
+
from .resources.tasks import TasksResource
|
|
145
|
+
|
|
146
|
+
return TasksResource(self)
|
|
147
|
+
|
|
148
|
+
@cached_property
|
|
149
|
+
def messages(self) -> MessagesResource:
|
|
150
|
+
from .resources.messages import MessagesResource
|
|
151
|
+
|
|
152
|
+
return MessagesResource(self)
|
|
153
|
+
|
|
154
|
+
@cached_property
|
|
155
|
+
def spans(self) -> SpansResource:
|
|
156
|
+
from .resources.spans import SpansResource
|
|
157
|
+
|
|
158
|
+
return SpansResource(self)
|
|
159
|
+
|
|
160
|
+
@cached_property
|
|
161
|
+
def states(self) -> StatesResource:
|
|
162
|
+
from .resources.states import StatesResource
|
|
163
|
+
|
|
164
|
+
return StatesResource(self)
|
|
165
|
+
|
|
166
|
+
@cached_property
|
|
167
|
+
def events(self) -> EventsResource:
|
|
168
|
+
from .resources.events import EventsResource
|
|
169
|
+
|
|
170
|
+
return EventsResource(self)
|
|
171
|
+
|
|
172
|
+
@cached_property
|
|
173
|
+
def tracker(self) -> TrackerResource:
|
|
174
|
+
from .resources.tracker import TrackerResource
|
|
175
|
+
|
|
176
|
+
return TrackerResource(self)
|
|
177
|
+
|
|
178
|
+
@cached_property
|
|
179
|
+
def with_raw_response(self) -> AgentexWithRawResponse:
|
|
180
|
+
return AgentexWithRawResponse(self)
|
|
181
|
+
|
|
182
|
+
@cached_property
|
|
183
|
+
def with_streaming_response(self) -> AgentexWithStreamedResponse:
|
|
184
|
+
return AgentexWithStreamedResponse(self)
|
|
148
185
|
|
|
149
186
|
@property
|
|
150
187
|
@override
|
|
@@ -256,17 +293,6 @@ class Agentex(SyncAPIClient):
|
|
|
256
293
|
|
|
257
294
|
|
|
258
295
|
class AsyncAgentex(AsyncAPIClient):
|
|
259
|
-
agents: agents.AsyncAgentsResource
|
|
260
|
-
tasks: tasks.AsyncTasksResource
|
|
261
|
-
messages: messages.AsyncMessagesResource
|
|
262
|
-
spans: spans.AsyncSpansResource
|
|
263
|
-
states: states.AsyncStatesResource
|
|
264
|
-
events: events.AsyncEventsResource
|
|
265
|
-
tracker: tracker.AsyncTrackerResource
|
|
266
|
-
deployment_history: deployment_history.AsyncDeploymentHistoryResource
|
|
267
|
-
with_raw_response: AsyncAgentexWithRawResponse
|
|
268
|
-
with_streaming_response: AsyncAgentexWithStreamedResponse
|
|
269
|
-
|
|
270
296
|
# client options
|
|
271
297
|
api_key: str | None
|
|
272
298
|
|
|
@@ -341,16 +367,55 @@ class AsyncAgentex(AsyncAPIClient):
|
|
|
341
367
|
_strict_response_validation=_strict_response_validation,
|
|
342
368
|
)
|
|
343
369
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
370
|
+
@cached_property
|
|
371
|
+
def agents(self) -> AsyncAgentsResource:
|
|
372
|
+
from .resources.agents import AsyncAgentsResource
|
|
373
|
+
|
|
374
|
+
return AsyncAgentsResource(self)
|
|
375
|
+
|
|
376
|
+
@cached_property
|
|
377
|
+
def tasks(self) -> AsyncTasksResource:
|
|
378
|
+
from .resources.tasks import AsyncTasksResource
|
|
379
|
+
|
|
380
|
+
return AsyncTasksResource(self)
|
|
381
|
+
|
|
382
|
+
@cached_property
|
|
383
|
+
def messages(self) -> AsyncMessagesResource:
|
|
384
|
+
from .resources.messages import AsyncMessagesResource
|
|
385
|
+
|
|
386
|
+
return AsyncMessagesResource(self)
|
|
387
|
+
|
|
388
|
+
@cached_property
|
|
389
|
+
def spans(self) -> AsyncSpansResource:
|
|
390
|
+
from .resources.spans import AsyncSpansResource
|
|
391
|
+
|
|
392
|
+
return AsyncSpansResource(self)
|
|
393
|
+
|
|
394
|
+
@cached_property
|
|
395
|
+
def states(self) -> AsyncStatesResource:
|
|
396
|
+
from .resources.states import AsyncStatesResource
|
|
397
|
+
|
|
398
|
+
return AsyncStatesResource(self)
|
|
399
|
+
|
|
400
|
+
@cached_property
|
|
401
|
+
def events(self) -> AsyncEventsResource:
|
|
402
|
+
from .resources.events import AsyncEventsResource
|
|
403
|
+
|
|
404
|
+
return AsyncEventsResource(self)
|
|
405
|
+
|
|
406
|
+
@cached_property
|
|
407
|
+
def tracker(self) -> AsyncTrackerResource:
|
|
408
|
+
from .resources.tracker import AsyncTrackerResource
|
|
409
|
+
|
|
410
|
+
return AsyncTrackerResource(self)
|
|
411
|
+
|
|
412
|
+
@cached_property
|
|
413
|
+
def with_raw_response(self) -> AsyncAgentexWithRawResponse:
|
|
414
|
+
return AsyncAgentexWithRawResponse(self)
|
|
415
|
+
|
|
416
|
+
@cached_property
|
|
417
|
+
def with_streaming_response(self) -> AsyncAgentexWithStreamedResponse:
|
|
418
|
+
return AsyncAgentexWithStreamedResponse(self)
|
|
354
419
|
|
|
355
420
|
@property
|
|
356
421
|
@override
|
|
@@ -462,57 +527,199 @@ class AsyncAgentex(AsyncAPIClient):
|
|
|
462
527
|
|
|
463
528
|
|
|
464
529
|
class AgentexWithRawResponse:
|
|
530
|
+
_client: Agentex
|
|
531
|
+
|
|
465
532
|
def __init__(self, client: Agentex) -> None:
|
|
466
|
-
self.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
self.
|
|
473
|
-
|
|
533
|
+
self._client = client
|
|
534
|
+
|
|
535
|
+
@cached_property
|
|
536
|
+
def agents(self) -> agents.AgentsResourceWithRawResponse:
|
|
537
|
+
from .resources.agents import AgentsResourceWithRawResponse
|
|
538
|
+
|
|
539
|
+
return AgentsResourceWithRawResponse(self._client.agents)
|
|
540
|
+
|
|
541
|
+
@cached_property
|
|
542
|
+
def tasks(self) -> tasks.TasksResourceWithRawResponse:
|
|
543
|
+
from .resources.tasks import TasksResourceWithRawResponse
|
|
544
|
+
|
|
545
|
+
return TasksResourceWithRawResponse(self._client.tasks)
|
|
546
|
+
|
|
547
|
+
@cached_property
|
|
548
|
+
def messages(self) -> messages.MessagesResourceWithRawResponse:
|
|
549
|
+
from .resources.messages import MessagesResourceWithRawResponse
|
|
550
|
+
|
|
551
|
+
return MessagesResourceWithRawResponse(self._client.messages)
|
|
552
|
+
|
|
553
|
+
@cached_property
|
|
554
|
+
def spans(self) -> spans.SpansResourceWithRawResponse:
|
|
555
|
+
from .resources.spans import SpansResourceWithRawResponse
|
|
556
|
+
|
|
557
|
+
return SpansResourceWithRawResponse(self._client.spans)
|
|
558
|
+
|
|
559
|
+
@cached_property
|
|
560
|
+
def states(self) -> states.StatesResourceWithRawResponse:
|
|
561
|
+
from .resources.states import StatesResourceWithRawResponse
|
|
562
|
+
|
|
563
|
+
return StatesResourceWithRawResponse(self._client.states)
|
|
564
|
+
|
|
565
|
+
@cached_property
|
|
566
|
+
def events(self) -> events.EventsResourceWithRawResponse:
|
|
567
|
+
from .resources.events import EventsResourceWithRawResponse
|
|
568
|
+
|
|
569
|
+
return EventsResourceWithRawResponse(self._client.events)
|
|
570
|
+
|
|
571
|
+
@cached_property
|
|
572
|
+
def tracker(self) -> tracker.TrackerResourceWithRawResponse:
|
|
573
|
+
from .resources.tracker import TrackerResourceWithRawResponse
|
|
574
|
+
|
|
575
|
+
return TrackerResourceWithRawResponse(self._client.tracker)
|
|
474
576
|
|
|
475
577
|
|
|
476
578
|
class AsyncAgentexWithRawResponse:
|
|
579
|
+
_client: AsyncAgentex
|
|
580
|
+
|
|
477
581
|
def __init__(self, client: AsyncAgentex) -> None:
|
|
478
|
-
self.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
self.
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
582
|
+
self._client = client
|
|
583
|
+
|
|
584
|
+
@cached_property
|
|
585
|
+
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
|
|
586
|
+
from .resources.agents import AsyncAgentsResourceWithRawResponse
|
|
587
|
+
|
|
588
|
+
return AsyncAgentsResourceWithRawResponse(self._client.agents)
|
|
589
|
+
|
|
590
|
+
@cached_property
|
|
591
|
+
def tasks(self) -> tasks.AsyncTasksResourceWithRawResponse:
|
|
592
|
+
from .resources.tasks import AsyncTasksResourceWithRawResponse
|
|
593
|
+
|
|
594
|
+
return AsyncTasksResourceWithRawResponse(self._client.tasks)
|
|
595
|
+
|
|
596
|
+
@cached_property
|
|
597
|
+
def messages(self) -> messages.AsyncMessagesResourceWithRawResponse:
|
|
598
|
+
from .resources.messages import AsyncMessagesResourceWithRawResponse
|
|
599
|
+
|
|
600
|
+
return AsyncMessagesResourceWithRawResponse(self._client.messages)
|
|
601
|
+
|
|
602
|
+
@cached_property
|
|
603
|
+
def spans(self) -> spans.AsyncSpansResourceWithRawResponse:
|
|
604
|
+
from .resources.spans import AsyncSpansResourceWithRawResponse
|
|
605
|
+
|
|
606
|
+
return AsyncSpansResourceWithRawResponse(self._client.spans)
|
|
607
|
+
|
|
608
|
+
@cached_property
|
|
609
|
+
def states(self) -> states.AsyncStatesResourceWithRawResponse:
|
|
610
|
+
from .resources.states import AsyncStatesResourceWithRawResponse
|
|
611
|
+
|
|
612
|
+
return AsyncStatesResourceWithRawResponse(self._client.states)
|
|
613
|
+
|
|
614
|
+
@cached_property
|
|
615
|
+
def events(self) -> events.AsyncEventsResourceWithRawResponse:
|
|
616
|
+
from .resources.events import AsyncEventsResourceWithRawResponse
|
|
617
|
+
|
|
618
|
+
return AsyncEventsResourceWithRawResponse(self._client.events)
|
|
619
|
+
|
|
620
|
+
@cached_property
|
|
621
|
+
def tracker(self) -> tracker.AsyncTrackerResourceWithRawResponse:
|
|
622
|
+
from .resources.tracker import AsyncTrackerResourceWithRawResponse
|
|
623
|
+
|
|
624
|
+
return AsyncTrackerResourceWithRawResponse(self._client.tracker)
|
|
488
625
|
|
|
489
626
|
|
|
490
627
|
class AgentexWithStreamedResponse:
|
|
628
|
+
_client: Agentex
|
|
629
|
+
|
|
491
630
|
def __init__(self, client: Agentex) -> None:
|
|
492
|
-
self.
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
self.
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
631
|
+
self._client = client
|
|
632
|
+
|
|
633
|
+
@cached_property
|
|
634
|
+
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
|
|
635
|
+
from .resources.agents import AgentsResourceWithStreamingResponse
|
|
636
|
+
|
|
637
|
+
return AgentsResourceWithStreamingResponse(self._client.agents)
|
|
638
|
+
|
|
639
|
+
@cached_property
|
|
640
|
+
def tasks(self) -> tasks.TasksResourceWithStreamingResponse:
|
|
641
|
+
from .resources.tasks import TasksResourceWithStreamingResponse
|
|
642
|
+
|
|
643
|
+
return TasksResourceWithStreamingResponse(self._client.tasks)
|
|
644
|
+
|
|
645
|
+
@cached_property
|
|
646
|
+
def messages(self) -> messages.MessagesResourceWithStreamingResponse:
|
|
647
|
+
from .resources.messages import MessagesResourceWithStreamingResponse
|
|
648
|
+
|
|
649
|
+
return MessagesResourceWithStreamingResponse(self._client.messages)
|
|
650
|
+
|
|
651
|
+
@cached_property
|
|
652
|
+
def spans(self) -> spans.SpansResourceWithStreamingResponse:
|
|
653
|
+
from .resources.spans import SpansResourceWithStreamingResponse
|
|
654
|
+
|
|
655
|
+
return SpansResourceWithStreamingResponse(self._client.spans)
|
|
656
|
+
|
|
657
|
+
@cached_property
|
|
658
|
+
def states(self) -> states.StatesResourceWithStreamingResponse:
|
|
659
|
+
from .resources.states import StatesResourceWithStreamingResponse
|
|
660
|
+
|
|
661
|
+
return StatesResourceWithStreamingResponse(self._client.states)
|
|
662
|
+
|
|
663
|
+
@cached_property
|
|
664
|
+
def events(self) -> events.EventsResourceWithStreamingResponse:
|
|
665
|
+
from .resources.events import EventsResourceWithStreamingResponse
|
|
666
|
+
|
|
667
|
+
return EventsResourceWithStreamingResponse(self._client.events)
|
|
668
|
+
|
|
669
|
+
@cached_property
|
|
670
|
+
def tracker(self) -> tracker.TrackerResourceWithStreamingResponse:
|
|
671
|
+
from .resources.tracker import TrackerResourceWithStreamingResponse
|
|
672
|
+
|
|
673
|
+
return TrackerResourceWithStreamingResponse(self._client.tracker)
|
|
502
674
|
|
|
503
675
|
|
|
504
676
|
class AsyncAgentexWithStreamedResponse:
|
|
677
|
+
_client: AsyncAgentex
|
|
678
|
+
|
|
505
679
|
def __init__(self, client: AsyncAgentex) -> None:
|
|
506
|
-
self.
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
self.
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
680
|
+
self._client = client
|
|
681
|
+
|
|
682
|
+
@cached_property
|
|
683
|
+
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
|
|
684
|
+
from .resources.agents import AsyncAgentsResourceWithStreamingResponse
|
|
685
|
+
|
|
686
|
+
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
|
|
687
|
+
|
|
688
|
+
@cached_property
|
|
689
|
+
def tasks(self) -> tasks.AsyncTasksResourceWithStreamingResponse:
|
|
690
|
+
from .resources.tasks import AsyncTasksResourceWithStreamingResponse
|
|
691
|
+
|
|
692
|
+
return AsyncTasksResourceWithStreamingResponse(self._client.tasks)
|
|
693
|
+
|
|
694
|
+
@cached_property
|
|
695
|
+
def messages(self) -> messages.AsyncMessagesResourceWithStreamingResponse:
|
|
696
|
+
from .resources.messages import AsyncMessagesResourceWithStreamingResponse
|
|
697
|
+
|
|
698
|
+
return AsyncMessagesResourceWithStreamingResponse(self._client.messages)
|
|
699
|
+
|
|
700
|
+
@cached_property
|
|
701
|
+
def spans(self) -> spans.AsyncSpansResourceWithStreamingResponse:
|
|
702
|
+
from .resources.spans import AsyncSpansResourceWithStreamingResponse
|
|
703
|
+
|
|
704
|
+
return AsyncSpansResourceWithStreamingResponse(self._client.spans)
|
|
705
|
+
|
|
706
|
+
@cached_property
|
|
707
|
+
def states(self) -> states.AsyncStatesResourceWithStreamingResponse:
|
|
708
|
+
from .resources.states import AsyncStatesResourceWithStreamingResponse
|
|
709
|
+
|
|
710
|
+
return AsyncStatesResourceWithStreamingResponse(self._client.states)
|
|
711
|
+
|
|
712
|
+
@cached_property
|
|
713
|
+
def events(self) -> events.AsyncEventsResourceWithStreamingResponse:
|
|
714
|
+
from .resources.events import AsyncEventsResourceWithStreamingResponse
|
|
715
|
+
|
|
716
|
+
return AsyncEventsResourceWithStreamingResponse(self._client.events)
|
|
717
|
+
|
|
718
|
+
@cached_property
|
|
719
|
+
def tracker(self) -> tracker.AsyncTrackerResourceWithStreamingResponse:
|
|
720
|
+
from .resources.tracker import AsyncTrackerResourceWithStreamingResponse
|
|
721
|
+
|
|
722
|
+
return AsyncTrackerResourceWithStreamingResponse(self._client.tracker)
|
|
516
723
|
|
|
517
724
|
|
|
518
725
|
Client = Agentex
|
agentex/_version.py
CHANGED
|
@@ -186,6 +186,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
186
186
|
self,
|
|
187
187
|
*,
|
|
188
188
|
task_id: str,
|
|
189
|
+
filters: Optional[str] | Omit = omit,
|
|
189
190
|
limit: int | Omit = omit,
|
|
190
191
|
order_by: Optional[str] | Omit = omit,
|
|
191
192
|
order_direction: str | Omit = omit,
|
|
@@ -206,6 +207,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
206
207
|
Args:
|
|
207
208
|
task_id: The task ID
|
|
208
209
|
|
|
210
|
+
filters: JSON-encoded filter object
|
|
211
|
+
|
|
209
212
|
extra_headers: Send extra headers
|
|
210
213
|
|
|
211
214
|
extra_query: Add additional query parameters to the request
|
|
@@ -224,6 +227,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
224
227
|
query=maybe_transform(
|
|
225
228
|
{
|
|
226
229
|
"task_id": task_id,
|
|
230
|
+
"filters": filters,
|
|
227
231
|
"limit": limit,
|
|
228
232
|
"order_by": order_by,
|
|
229
233
|
"order_direction": order_direction,
|
|
@@ -241,6 +245,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
241
245
|
task_id: str,
|
|
242
246
|
cursor: Optional[str] | Omit = omit,
|
|
243
247
|
direction: Literal["older", "newer"] | Omit = omit,
|
|
248
|
+
filters: Optional[str] | Omit = omit,
|
|
244
249
|
limit: int | Omit = omit,
|
|
245
250
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
246
251
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -271,6 +276,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
271
276
|
Args:
|
|
272
277
|
task_id: The task ID
|
|
273
278
|
|
|
279
|
+
filters: JSON-encoded filter object
|
|
280
|
+
|
|
274
281
|
extra_headers: Send extra headers
|
|
275
282
|
|
|
276
283
|
extra_query: Add additional query parameters to the request
|
|
@@ -291,6 +298,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
291
298
|
"task_id": task_id,
|
|
292
299
|
"cursor": cursor,
|
|
293
300
|
"direction": direction,
|
|
301
|
+
"filters": filters,
|
|
294
302
|
"limit": limit,
|
|
295
303
|
},
|
|
296
304
|
message_list_paginated_params.MessageListPaginatedParams,
|
|
@@ -446,6 +454,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
446
454
|
self,
|
|
447
455
|
*,
|
|
448
456
|
task_id: str,
|
|
457
|
+
filters: Optional[str] | Omit = omit,
|
|
449
458
|
limit: int | Omit = omit,
|
|
450
459
|
order_by: Optional[str] | Omit = omit,
|
|
451
460
|
order_direction: str | Omit = omit,
|
|
@@ -466,6 +475,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
466
475
|
Args:
|
|
467
476
|
task_id: The task ID
|
|
468
477
|
|
|
478
|
+
filters: JSON-encoded filter object
|
|
479
|
+
|
|
469
480
|
extra_headers: Send extra headers
|
|
470
481
|
|
|
471
482
|
extra_query: Add additional query parameters to the request
|
|
@@ -484,6 +495,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
484
495
|
query=await async_maybe_transform(
|
|
485
496
|
{
|
|
486
497
|
"task_id": task_id,
|
|
498
|
+
"filters": filters,
|
|
487
499
|
"limit": limit,
|
|
488
500
|
"order_by": order_by,
|
|
489
501
|
"order_direction": order_direction,
|
|
@@ -501,6 +513,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
501
513
|
task_id: str,
|
|
502
514
|
cursor: Optional[str] | Omit = omit,
|
|
503
515
|
direction: Literal["older", "newer"] | Omit = omit,
|
|
516
|
+
filters: Optional[str] | Omit = omit,
|
|
504
517
|
limit: int | Omit = omit,
|
|
505
518
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
506
519
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -531,6 +544,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
531
544
|
Args:
|
|
532
545
|
task_id: The task ID
|
|
533
546
|
|
|
547
|
+
filters: JSON-encoded filter object
|
|
548
|
+
|
|
534
549
|
extra_headers: Send extra headers
|
|
535
550
|
|
|
536
551
|
extra_query: Add additional query parameters to the request
|
|
@@ -551,6 +566,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
551
566
|
"task_id": task_id,
|
|
552
567
|
"cursor": cursor,
|
|
553
568
|
"direction": direction,
|
|
569
|
+
"filters": filters,
|
|
554
570
|
"limit": limit,
|
|
555
571
|
},
|
|
556
572
|
message_list_paginated_params.MessageListPaginatedParams,
|
agentex/types/__init__.py
CHANGED
|
@@ -62,9 +62,9 @@ from .agent_rpc_by_name_params import AgentRpcByNameParams as AgentRpcByNamePara
|
|
|
62
62
|
from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam
|
|
63
63
|
from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam
|
|
64
64
|
from .tool_response_content_param import ToolResponseContentParam as ToolResponseContentParam
|
|
65
|
+
from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams
|
|
66
|
+
from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse
|
|
65
67
|
from .task_retrieve_by_name_params import TaskRetrieveByNameParams as TaskRetrieveByNameParams
|
|
66
68
|
from .message_list_paginated_params import MessageListPaginatedParams as MessageListPaginatedParams
|
|
67
|
-
from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams
|
|
68
69
|
from .task_retrieve_by_name_response import TaskRetrieveByNameResponse as TaskRetrieveByNameResponse
|
|
69
70
|
from .message_list_paginated_response import MessageListPaginatedResponse as MessageListPaginatedResponse
|
|
70
|
-
from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: agentex-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: The official Python library for the agentex API
|
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/scale-agentex-python
|
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/scale-agentex-python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
agentex/__init__.py,sha256=TvS8DtvGAnubcoUjYIsuCpBzpsdpxBaJCS76s-l-PRo,2712
|
|
2
|
-
agentex/_base_client.py,sha256=
|
|
3
|
-
agentex/_client.py,sha256=
|
|
2
|
+
agentex/_base_client.py,sha256=Nns3uFuKrkl0dBaM1wq9-PJMSVdxROP-WIKQOF3DNYg,67236
|
|
3
|
+
agentex/_client.py,sha256=WJM1kkmccMO8RNEuqUgxMyTcHXsIxVh3dOENIo0jXWw,26659
|
|
4
4
|
agentex/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
5
|
agentex/_constants.py,sha256=oGldMuFz7eZtwD8_6rJUippKhZB5fGSA7ffbCDGourA,466
|
|
6
6
|
agentex/_exceptions.py,sha256=B09aFjWFRSShb9BFJd-MNDblsGDyGk3w-vItYmjg_AI,3222
|
|
@@ -11,7 +11,7 @@ agentex/_resource.py,sha256=S1t7wmR5WUvoDIhZjo_x-E7uoTJBynJ3d8tPJMQYdjw,1106
|
|
|
11
11
|
agentex/_response.py,sha256=Tb9zazsnemO2rTxWtBjAD5WBqlhli5ZaXGbiKgdu5DE,28794
|
|
12
12
|
agentex/_streaming.py,sha256=aOvLOte7kaclPGm-D0iNdM3uRcWrZ-T2B8t9BDNmpuA,10225
|
|
13
13
|
agentex/_types.py,sha256=00q2kgDxUPJC16dU-YIUeOFsN5MzNW0zjzVXMlBYGV0,7296
|
|
14
|
-
agentex/_version.py,sha256=
|
|
14
|
+
agentex/_version.py,sha256=Hf2agCUD_8_Q4jqB1GQI-d_np2rLTR_qF8kMrfcQPM8,159
|
|
15
15
|
agentex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
agentex/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
agentex/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -277,8 +277,8 @@ agentex/resources/tasks.py,sha256=PYclyozaR1az30ZcsEtP4WMvBoXPeF1mEvcNYOAWt0I,27
|
|
|
277
277
|
agentex/resources/tracker.py,sha256=bxRuzI9ThHrZtJbZoctU9vodE1kxAqcdlwQVrcbQTb4,15089
|
|
278
278
|
agentex/resources/messages/__init__.py,sha256=_J1eusFtr_k6zrAntJSuqx6LWEUBSTrV1OZZh7MaDPE,1015
|
|
279
279
|
agentex/resources/messages/batch.py,sha256=bYDIf0ZF3-sTKnGfFmzFQUn8LMtMYoniY977J3zr8q8,9653
|
|
280
|
-
agentex/resources/messages/messages.py,sha256=
|
|
281
|
-
agentex/types/__init__.py,sha256=
|
|
280
|
+
agentex/resources/messages/messages.py,sha256=t3b_Gv3hWdlD8XgvWKwa_llfpND01ewGL8RuJWhZRss,25304
|
|
281
|
+
agentex/types/__init__.py,sha256=p14jAyCFSwh8rtQQhA-6Kpf28G77wYIQFCfUPUfwyx8,4725
|
|
282
282
|
agentex/types/acp_type.py,sha256=lEn_w4z-RIgyUVTQr8mm5l9OdFDQMDclbJU_lKa4Mi8,217
|
|
283
283
|
agentex/types/agent.py,sha256=hwgmtylJYezzmGJbzbBQ7sn3oV2_bCZqgqlNq9WpZ0g,1318
|
|
284
284
|
agentex/types/agent_list_params.py,sha256=s4heb3MQwMprmuol_smUDL2N0u-5WUbUCxt3J5Dqnag,515
|
|
@@ -299,9 +299,9 @@ agentex/types/event_list_params.py,sha256=Rrz0yo2w3gMTNYe3HQS9YCX1VktE_aaktuHezx
|
|
|
299
299
|
agentex/types/event_list_response.py,sha256=rjUCkwS0pXnfqHEVPEKZdLIGJ14uXOrjatuOfR36s5s,254
|
|
300
300
|
agentex/types/message_author.py,sha256=_IIVLAcZsLTG_vQWFpjWuxLIaHrc6wkv3q7qu5gam0o,218
|
|
301
301
|
agentex/types/message_create_params.py,sha256=Vt7Hig0lI8qxWDpJ4JhjfjglSzptI2PjzbrOD1Qkmxk,502
|
|
302
|
-
agentex/types/message_list_paginated_params.py,sha256=
|
|
302
|
+
agentex/types/message_list_paginated_params.py,sha256=tZr9_0L4tawzAKmyNyFvM5EmSmLlOBLfXJ0lqxsNn9o,511
|
|
303
303
|
agentex/types/message_list_paginated_response.py,sha256=VRPr20UNkBRchJrkroujPT46d830qK1Z-G6h1ziSUS4,582
|
|
304
|
-
agentex/types/message_list_params.py,sha256=
|
|
304
|
+
agentex/types/message_list_params.py,sha256=sLLLIDcuBwD5LXzJkZX8OzOfEyJDcTBrFW6BVOD221g,492
|
|
305
305
|
agentex/types/message_list_response.py,sha256=YYDf-57zLS-E1eX3EZxz7c6XCuBcRBws01_q2G7uk4Y,277
|
|
306
306
|
agentex/types/message_style.py,sha256=nuoXzoDyP3KAQsQeKHaiby1EMxeY-8TJjWr8eMMpQEE,219
|
|
307
307
|
agentex/types/message_update_params.py,sha256=_KpnJ56FNeoIcwodQmAgsweqH1YAeIgYVT2jo9ahUhY,502
|
|
@@ -351,8 +351,8 @@ agentex/types/messages/batch_update_params.py,sha256=Ug5CThbD49a8j4qucg04OdmVrp_
|
|
|
351
351
|
agentex/types/messages/batch_update_response.py,sha256=TbSBe6SuPzjXXWSj-nRjT1JHGBooTshHQQDa1AixQA8,278
|
|
352
352
|
agentex/types/shared/__init__.py,sha256=IKs-Qn5Yja0kFh1G1kDqYZo43qrOu1hSoxlPdN-85dI,149
|
|
353
353
|
agentex/types/shared/delete_response.py,sha256=8qH3zvQXaOHYQSHyXi7UQxdR4miTzR7V9K4zXVsiUyk,215
|
|
354
|
-
agentex_sdk-0.7.
|
|
355
|
-
agentex_sdk-0.7.
|
|
356
|
-
agentex_sdk-0.7.
|
|
357
|
-
agentex_sdk-0.7.
|
|
358
|
-
agentex_sdk-0.7.
|
|
354
|
+
agentex_sdk-0.7.4.dist-info/METADATA,sha256=fpcGYHadmvZQH2XJ3cqFZe1hLvrkG1vmAHlrP3Nkhww,15553
|
|
355
|
+
agentex_sdk-0.7.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
356
|
+
agentex_sdk-0.7.4.dist-info/entry_points.txt,sha256=V7vJuMZdF0UlvgX6KiBN7XUvq_cxF5kplcYvc1QlFaQ,62
|
|
357
|
+
agentex_sdk-0.7.4.dist-info/licenses/LICENSE,sha256=Q1AOx2FtRcMlyMgQJ9eVN2WKPq2mQ33lnB4tvWxabLA,11337
|
|
358
|
+
agentex_sdk-0.7.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|