|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import objects, secrets, devboxes, scenarios, benchmarks, blueprints, repositories |
| 34 | + from .resources import agents, objects, secrets, devboxes, scenarios, benchmarks, blueprints, repositories |
| 35 | + from .resources.agents import AgentsResource, AsyncAgentsResource |
35 | 36 | from .resources.objects import ObjectsResource, AsyncObjectsResource |
36 | 37 | from .resources.secrets import SecretsResource, AsyncSecretsResource |
37 | 38 | from .resources.blueprints import BlueprintsResource, AsyncBlueprintsResource |
@@ -106,6 +107,12 @@ def benchmarks(self) -> BenchmarksResource: |
106 | 107 |
|
107 | 108 | return BenchmarksResource(self) |
108 | 109 |
|
| 110 | + @cached_property |
| 111 | + def agents(self) -> AgentsResource: |
| 112 | + from .resources.agents import AgentsResource |
| 113 | + |
| 114 | + return AgentsResource(self) |
| 115 | + |
109 | 116 | @cached_property |
110 | 117 | def blueprints(self) -> BlueprintsResource: |
111 | 118 | from .resources.blueprints import BlueprintsResource |
@@ -318,6 +325,12 @@ def benchmarks(self) -> AsyncBenchmarksResource: |
318 | 325 |
|
319 | 326 | return AsyncBenchmarksResource(self) |
320 | 327 |
|
| 328 | + @cached_property |
| 329 | + def agents(self) -> AsyncAgentsResource: |
| 330 | + from .resources.agents import AsyncAgentsResource |
| 331 | + |
| 332 | + return AsyncAgentsResource(self) |
| 333 | + |
321 | 334 | @cached_property |
322 | 335 | def blueprints(self) -> AsyncBlueprintsResource: |
323 | 336 | from .resources.blueprints import AsyncBlueprintsResource |
@@ -479,6 +492,12 @@ def benchmarks(self) -> benchmarks.BenchmarksResourceWithRawResponse: |
479 | 492 |
|
480 | 493 | return BenchmarksResourceWithRawResponse(self._client.benchmarks) |
481 | 494 |
|
| 495 | + @cached_property |
| 496 | + def agents(self) -> agents.AgentsResourceWithRawResponse: |
| 497 | + from .resources.agents import AgentsResourceWithRawResponse |
| 498 | + |
| 499 | + return AgentsResourceWithRawResponse(self._client.agents) |
| 500 | + |
482 | 501 | @cached_property |
483 | 502 | def blueprints(self) -> blueprints.BlueprintsResourceWithRawResponse: |
484 | 503 | from .resources.blueprints import BlueprintsResourceWithRawResponse |
@@ -528,6 +547,12 @@ def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithRawResponse: |
528 | 547 |
|
529 | 548 | return AsyncBenchmarksResourceWithRawResponse(self._client.benchmarks) |
530 | 549 |
|
| 550 | + @cached_property |
| 551 | + def agents(self) -> agents.AsyncAgentsResourceWithRawResponse: |
| 552 | + from .resources.agents import AsyncAgentsResourceWithRawResponse |
| 553 | + |
| 554 | + return AsyncAgentsResourceWithRawResponse(self._client.agents) |
| 555 | + |
531 | 556 | @cached_property |
532 | 557 | def blueprints(self) -> blueprints.AsyncBlueprintsResourceWithRawResponse: |
533 | 558 | from .resources.blueprints import AsyncBlueprintsResourceWithRawResponse |
@@ -577,6 +602,12 @@ def benchmarks(self) -> benchmarks.BenchmarksResourceWithStreamingResponse: |
577 | 602 |
|
578 | 603 | return BenchmarksResourceWithStreamingResponse(self._client.benchmarks) |
579 | 604 |
|
| 605 | + @cached_property |
| 606 | + def agents(self) -> agents.AgentsResourceWithStreamingResponse: |
| 607 | + from .resources.agents import AgentsResourceWithStreamingResponse |
| 608 | + |
| 609 | + return AgentsResourceWithStreamingResponse(self._client.agents) |
| 610 | + |
580 | 611 | @cached_property |
581 | 612 | def blueprints(self) -> blueprints.BlueprintsResourceWithStreamingResponse: |
582 | 613 | from .resources.blueprints import BlueprintsResourceWithStreamingResponse |
@@ -626,6 +657,12 @@ def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithStreamingResponse: |
626 | 657 |
|
627 | 658 | return AsyncBenchmarksResourceWithStreamingResponse(self._client.benchmarks) |
628 | 659 |
|
| 660 | + @cached_property |
| 661 | + def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse: |
| 662 | + from .resources.agents import AsyncAgentsResourceWithStreamingResponse |
| 663 | + |
| 664 | + return AsyncAgentsResourceWithStreamingResponse(self._client.agents) |
| 665 | + |
629 | 666 | @cached_property |
630 | 667 | def blueprints(self) -> blueprints.AsyncBlueprintsResourceWithStreamingResponse: |
631 | 668 | from .resources.blueprints import AsyncBlueprintsResourceWithStreamingResponse |
|
0 commit comments