|
7 | 7 | from typing_extensions import Self, Literal, override |
8 | 8 |
|
9 | 9 | import httpx |
| 10 | +from yarl import cache_clear |
10 | 11 |
|
11 | | -from agentex.resources import DeploymentHistoryResource |
| 12 | +from agentex.resources import ( |
| 13 | + AsyncDeploymentHistoryResource, |
| 14 | + AsyncDeploymentHistoryResourceWithRawResponse, |
| 15 | + DeploymentHistoryResource, |
| 16 | +) |
12 | 17 |
|
13 | 18 | from . import _exceptions |
14 | 19 | from ._qs import Querystring |
|
33 | 38 | ) |
34 | 39 |
|
35 | 40 | if TYPE_CHECKING: |
36 | | - from .resources import spans, tasks, agents, events, states, tracker, messages |
| 41 | + from .resources import spans, tasks, agents, events, states, tracker, messages, deployment_history |
37 | 42 | from .resources.spans import SpansResource, AsyncSpansResource |
38 | 43 | from .resources.tasks import TasksResource, AsyncTasksResource |
39 | 44 | from .resources.agents import AgentsResource, AsyncAgentsResource |
@@ -417,6 +422,12 @@ def tracker(self) -> AsyncTrackerResource: |
417 | 422 |
|
418 | 423 | return AsyncTrackerResource(self) |
419 | 424 |
|
| 425 | + @cached_property |
| 426 | + def deployment_history(self) -> AsyncDeploymentHistoryResource: |
| 427 | + from .resources.deployment_history import AsyncDeploymentHistoryResource |
| 428 | + |
| 429 | + return AsyncDeploymentHistoryResource(self) |
| 430 | + |
420 | 431 | @cached_property |
421 | 432 | def with_raw_response(self) -> AsyncAgentexWithRawResponse: |
422 | 433 | return AsyncAgentexWithRawResponse(self) |
@@ -582,6 +593,12 @@ def tracker(self) -> tracker.TrackerResourceWithRawResponse: |
582 | 593 |
|
583 | 594 | return TrackerResourceWithRawResponse(self._client.tracker) |
584 | 595 |
|
| 596 | + @cached_property |
| 597 | + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithRawResponse: |
| 598 | + from .resources.deployment_history import DeploymentHistoryResourceWithRawResponse |
| 599 | + |
| 600 | + return DeploymentHistoryResourceWithRawResponse(self._client.deployment_history) |
| 601 | + |
585 | 602 |
|
586 | 603 | class AsyncAgentexWithRawResponse: |
587 | 604 | _client: AsyncAgentex |
@@ -631,6 +648,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithRawResponse: |
631 | 648 |
|
632 | 649 | return AsyncTrackerResourceWithRawResponse(self._client.tracker) |
633 | 650 |
|
| 651 | + @cached_property |
| 652 | + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithRawResponse: |
| 653 | + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithRawResponse |
| 654 | + |
| 655 | + return AsyncDeploymentHistoryResourceWithRawResponse(self._client.deployment_history) |
| 656 | + |
634 | 657 |
|
635 | 658 | class AgentexWithStreamedResponse: |
636 | 659 | _client: Agentex |
@@ -680,6 +703,12 @@ def tracker(self) -> tracker.TrackerResourceWithStreamingResponse: |
680 | 703 |
|
681 | 704 | return TrackerResourceWithStreamingResponse(self._client.tracker) |
682 | 705 |
|
| 706 | + @cached_property |
| 707 | + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithStreamingResponse: |
| 708 | + from .resources.deployment_history import DeploymentHistoryResourceWithStreamingResponse |
| 709 | + |
| 710 | + return DeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) |
| 711 | + |
683 | 712 |
|
684 | 713 | class AsyncAgentexWithStreamedResponse: |
685 | 714 | _client: AsyncAgentex |
@@ -729,6 +758,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithStreamingResponse: |
729 | 758 |
|
730 | 759 | return AsyncTrackerResourceWithStreamingResponse(self._client.tracker) |
731 | 760 |
|
| 761 | + @cached_property |
| 762 | + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithStreamingResponse: |
| 763 | + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithStreamingResponse |
| 764 | + |
| 765 | + return AsyncDeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) |
| 766 | + |
732 | 767 |
|
733 | 768 | Client = Agentex |
734 | 769 |
|
|
0 commit comments