agentex-sdk 0.7.4__py3-none-any.whl → 0.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentex/_base_client.py +1 -1
- agentex/_client.py +38 -1
- agentex/_version.py +1 -1
- agentex/resources/messages/messages.py +1996 -4
- agentex/types/__init__.py +2 -2
- agentex/types/message_list_paginated_params.py +500 -1
- agentex/types/message_list_params.py +500 -1
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/METADATA +1 -1
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/RECORD +12 -12
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/licenses/LICENSE +0 -0
agentex/_base_client.py
CHANGED
|
@@ -1774,7 +1774,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1774
1774
|
options: RequestOptions = {},
|
|
1775
1775
|
) -> ResponseT:
|
|
1776
1776
|
opts = FinalRequestOptions.construct(
|
|
1777
|
-
method="patch", url=path, json_data=body, files=
|
|
1777
|
+
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
|
|
1778
1778
|
)
|
|
1779
1779
|
return await self.request(cast_to, opts)
|
|
1780
1780
|
|
agentex/_client.py
CHANGED
|
@@ -31,7 +31,7 @@ from ._base_client import (
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
|
-
from .resources import spans, tasks, agents, events, states, tracker, messages
|
|
34
|
+
from .resources import spans, tasks, agents, events, states, tracker, messages, deployment_history
|
|
35
35
|
from .resources.spans import SpansResource, AsyncSpansResource
|
|
36
36
|
from .resources.tasks import TasksResource, AsyncTasksResource
|
|
37
37
|
from .resources.agents import AgentsResource, AsyncAgentsResource
|
|
@@ -39,6 +39,7 @@ if TYPE_CHECKING:
|
|
|
39
39
|
from .resources.states import StatesResource, AsyncStatesResource
|
|
40
40
|
from .resources.tracker import TrackerResource, AsyncTrackerResource
|
|
41
41
|
from .resources.messages.messages import MessagesResource, AsyncMessagesResource
|
|
42
|
+
from .resources.deployment_history import DeploymentHistoryResource, AsyncDeploymentHistoryResource
|
|
42
43
|
|
|
43
44
|
__all__ = [
|
|
44
45
|
"ENVIRONMENTS",
|
|
@@ -175,6 +176,12 @@ class Agentex(SyncAPIClient):
|
|
|
175
176
|
|
|
176
177
|
return TrackerResource(self)
|
|
177
178
|
|
|
179
|
+
@cached_property
|
|
180
|
+
def deployment_history(self) -> DeploymentHistoryResource:
|
|
181
|
+
from .resources.deployment_history import DeploymentHistoryResource
|
|
182
|
+
|
|
183
|
+
return DeploymentHistoryResource(self)
|
|
184
|
+
|
|
178
185
|
@cached_property
|
|
179
186
|
def with_raw_response(self) -> AgentexWithRawResponse:
|
|
180
187
|
return AgentexWithRawResponse(self)
|
|
@@ -409,6 +416,12 @@ class AsyncAgentex(AsyncAPIClient):
|
|
|
409
416
|
|
|
410
417
|
return AsyncTrackerResource(self)
|
|
411
418
|
|
|
419
|
+
@cached_property
|
|
420
|
+
def deployment_history(self) -> AsyncDeploymentHistoryResource:
|
|
421
|
+
from .resources.deployment_history import AsyncDeploymentHistoryResource
|
|
422
|
+
|
|
423
|
+
return AsyncDeploymentHistoryResource(self)
|
|
424
|
+
|
|
412
425
|
@cached_property
|
|
413
426
|
def with_raw_response(self) -> AsyncAgentexWithRawResponse:
|
|
414
427
|
return AsyncAgentexWithRawResponse(self)
|
|
@@ -574,6 +587,12 @@ class AgentexWithRawResponse:
|
|
|
574
587
|
|
|
575
588
|
return TrackerResourceWithRawResponse(self._client.tracker)
|
|
576
589
|
|
|
590
|
+
@cached_property
|
|
591
|
+
def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithRawResponse:
|
|
592
|
+
from .resources.deployment_history import DeploymentHistoryResourceWithRawResponse
|
|
593
|
+
|
|
594
|
+
return DeploymentHistoryResourceWithRawResponse(self._client.deployment_history)
|
|
595
|
+
|
|
577
596
|
|
|
578
597
|
class AsyncAgentexWithRawResponse:
|
|
579
598
|
_client: AsyncAgentex
|
|
@@ -623,6 +642,12 @@ class AsyncAgentexWithRawResponse:
|
|
|
623
642
|
|
|
624
643
|
return AsyncTrackerResourceWithRawResponse(self._client.tracker)
|
|
625
644
|
|
|
645
|
+
@cached_property
|
|
646
|
+
def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithRawResponse:
|
|
647
|
+
from .resources.deployment_history import AsyncDeploymentHistoryResourceWithRawResponse
|
|
648
|
+
|
|
649
|
+
return AsyncDeploymentHistoryResourceWithRawResponse(self._client.deployment_history)
|
|
650
|
+
|
|
626
651
|
|
|
627
652
|
class AgentexWithStreamedResponse:
|
|
628
653
|
_client: Agentex
|
|
@@ -672,6 +697,12 @@ class AgentexWithStreamedResponse:
|
|
|
672
697
|
|
|
673
698
|
return TrackerResourceWithStreamingResponse(self._client.tracker)
|
|
674
699
|
|
|
700
|
+
@cached_property
|
|
701
|
+
def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithStreamingResponse:
|
|
702
|
+
from .resources.deployment_history import DeploymentHistoryResourceWithStreamingResponse
|
|
703
|
+
|
|
704
|
+
return DeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history)
|
|
705
|
+
|
|
675
706
|
|
|
676
707
|
class AsyncAgentexWithStreamedResponse:
|
|
677
708
|
_client: AsyncAgentex
|
|
@@ -721,6 +752,12 @@ class AsyncAgentexWithStreamedResponse:
|
|
|
721
752
|
|
|
722
753
|
return AsyncTrackerResourceWithStreamingResponse(self._client.tracker)
|
|
723
754
|
|
|
755
|
+
@cached_property
|
|
756
|
+
def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithStreamingResponse:
|
|
757
|
+
from .resources.deployment_history import AsyncDeploymentHistoryResourceWithStreamingResponse
|
|
758
|
+
|
|
759
|
+
return AsyncDeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history)
|
|
760
|
+
|
|
724
761
|
|
|
725
762
|
Client = Agentex
|
|
726
763
|
|
agentex/_version.py
CHANGED