Skip to content

Commit cac54a8

Browse files
feat(api): update via SDK Studio
1 parent 6d62ab0 commit cac54a8

File tree

104 files changed

+9534
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+9534
-11
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fdigitalocean-genai-sdk-d8b53b5432334e3c25a01f8afa9cc6bb9213c8deb83721113ac48e0544a45c6a.yml
3-
openapi_spec_hash: f6129f6ab890acc4ce6da26611b8fe67
1+
configured_endpoints: 60
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fdigitalocean-genai-sdk-6e449984986e066baea73af5c2726811e74a284f0d68d49926ec5c7821c7ed31.yml
3+
openapi_spec_hash: 78f43f68f46df0d81891ae2ff66bf3a0
44
config_hash: 69dc66269416b2e01e8852b5a6788b97

api.md

Lines changed: 142 additions & 3 deletions
Large diffs are not rendered by default.

src/gradientai/_client.py

Lines changed: 160 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,27 @@
3131
)
3232

3333
if TYPE_CHECKING:
34-
from .resources import chat, agents, models, embeddings, indexing_jobs, knowledge_bases
34+
from .resources import (
35+
auth,
36+
chat,
37+
agents,
38+
models,
39+
regions,
40+
api_keys,
41+
providers,
42+
embeddings,
43+
indexing_jobs,
44+
knowledge_bases,
45+
)
3546
from .resources.chat import ChatResource, AsyncChatResource
3647
from .resources.models import ModelsResource, AsyncModelsResource
48+
from .resources.regions import RegionsResource, AsyncRegionsResource
49+
from .resources.auth.auth import AuthResource, AsyncAuthResource
3750
from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
3851
from .resources.agents.agents import AgentsResource, AsyncAgentsResource
3952
from .resources.indexing_jobs import IndexingJobsResource, AsyncIndexingJobsResource
53+
from .resources.api_keys.api_keys import APIKeysResource, AsyncAPIKeysResource
54+
from .resources.providers.providers import ProvidersResource, AsyncProvidersResource
4055
from .resources.knowledge_bases.knowledge_bases import KnowledgeBasesResource, AsyncKnowledgeBasesResource
4156

4257
__all__ = [
@@ -112,6 +127,24 @@ def agents(self) -> AgentsResource:
112127

113128
return AgentsResource(self)
114129

130+
@cached_property
131+
def providers(self) -> ProvidersResource:
132+
from .resources.providers import ProvidersResource
133+
134+
return ProvidersResource(self)
135+
136+
@cached_property
137+
def auth(self) -> AuthResource:
138+
from .resources.auth import AuthResource
139+
140+
return AuthResource(self)
141+
142+
@cached_property
143+
def regions(self) -> RegionsResource:
144+
from .resources.regions import RegionsResource
145+
146+
return RegionsResource(self)
147+
115148
@cached_property
116149
def indexing_jobs(self) -> IndexingJobsResource:
117150
from .resources.indexing_jobs import IndexingJobsResource
@@ -124,6 +157,12 @@ def knowledge_bases(self) -> KnowledgeBasesResource:
124157

125158
return KnowledgeBasesResource(self)
126159

160+
@cached_property
161+
def api_keys(self) -> APIKeysResource:
162+
from .resources.api_keys import APIKeysResource
163+
164+
return APIKeysResource(self)
165+
127166
@cached_property
128167
def chat(self) -> ChatResource:
129168
from .resources.chat import ChatResource
@@ -316,6 +355,24 @@ def agents(self) -> AsyncAgentsResource:
316355

317356
return AsyncAgentsResource(self)
318357

358+
@cached_property
359+
def providers(self) -> AsyncProvidersResource:
360+
from .resources.providers import AsyncProvidersResource
361+
362+
return AsyncProvidersResource(self)
363+
364+
@cached_property
365+
def auth(self) -> AsyncAuthResource:
366+
from .resources.auth import AsyncAuthResource
367+
368+
return AsyncAuthResource(self)
369+
370+
@cached_property
371+
def regions(self) -> AsyncRegionsResource:
372+
from .resources.regions import AsyncRegionsResource
373+
374+
return AsyncRegionsResource(self)
375+
319376
@cached_property
320377
def indexing_jobs(self) -> AsyncIndexingJobsResource:
321378
from .resources.indexing_jobs import AsyncIndexingJobsResource
@@ -328,6 +385,12 @@ def knowledge_bases(self) -> AsyncKnowledgeBasesResource:
328385

329386
return AsyncKnowledgeBasesResource(self)
330387

388+
@cached_property
389+
def api_keys(self) -> AsyncAPIKeysResource:
390+
from .resources.api_keys import AsyncAPIKeysResource
391+
392+
return AsyncAPIKeysResource(self)
393+
331394
@cached_property
332395
def chat(self) -> AsyncChatResource:
333396
from .resources.chat import AsyncChatResource
@@ -471,6 +534,24 @@ def agents(self) -> agents.AgentsResourceWithRawResponse:
471534

472535
return AgentsResourceWithRawResponse(self._client.agents)
473536

537+
@cached_property
538+
def providers(self) -> providers.ProvidersResourceWithRawResponse:
539+
from .resources.providers import ProvidersResourceWithRawResponse
540+
541+
return ProvidersResourceWithRawResponse(self._client.providers)
542+
543+
@cached_property
544+
def auth(self) -> auth.AuthResourceWithRawResponse:
545+
from .resources.auth import AuthResourceWithRawResponse
546+
547+
return AuthResourceWithRawResponse(self._client.auth)
548+
549+
@cached_property
550+
def regions(self) -> regions.RegionsResourceWithRawResponse:
551+
from .resources.regions import RegionsResourceWithRawResponse
552+
553+
return RegionsResourceWithRawResponse(self._client.regions)
554+
474555
@cached_property
475556
def indexing_jobs(self) -> indexing_jobs.IndexingJobsResourceWithRawResponse:
476557
from .resources.indexing_jobs import IndexingJobsResourceWithRawResponse
@@ -483,6 +564,12 @@ def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithRawRespon
483564

484565
return KnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases)
485566

567+
@cached_property
568+
def api_keys(self) -> api_keys.APIKeysResourceWithRawResponse:
569+
from .resources.api_keys import APIKeysResourceWithRawResponse
570+
571+
return APIKeysResourceWithRawResponse(self._client.api_keys)
572+
486573
@cached_property
487574
def chat(self) -> chat.ChatResourceWithRawResponse:
488575
from .resources.chat import ChatResourceWithRawResponse
@@ -514,6 +601,24 @@ def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
514601

515602
return AsyncAgentsResourceWithRawResponse(self._client.agents)
516603

604+
@cached_property
605+
def providers(self) -> providers.AsyncProvidersResourceWithRawResponse:
606+
from .resources.providers import AsyncProvidersResourceWithRawResponse
607+
608+
return AsyncProvidersResourceWithRawResponse(self._client.providers)
609+
610+
@cached_property
611+
def auth(self) -> auth.AsyncAuthResourceWithRawResponse:
612+
from .resources.auth import AsyncAuthResourceWithRawResponse
613+
614+
return AsyncAuthResourceWithRawResponse(self._client.auth)
615+
616+
@cached_property
617+
def regions(self) -> regions.AsyncRegionsResourceWithRawResponse:
618+
from .resources.regions import AsyncRegionsResourceWithRawResponse
619+
620+
return AsyncRegionsResourceWithRawResponse(self._client.regions)
621+
517622
@cached_property
518623
def indexing_jobs(self) -> indexing_jobs.AsyncIndexingJobsResourceWithRawResponse:
519624
from .resources.indexing_jobs import AsyncIndexingJobsResourceWithRawResponse
@@ -526,6 +631,12 @@ def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithRawR
526631

527632
return AsyncKnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases)
528633

634+
@cached_property
635+
def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithRawResponse:
636+
from .resources.api_keys import AsyncAPIKeysResourceWithRawResponse
637+
638+
return AsyncAPIKeysResourceWithRawResponse(self._client.api_keys)
639+
529640
@cached_property
530641
def chat(self) -> chat.AsyncChatResourceWithRawResponse:
531642
from .resources.chat import AsyncChatResourceWithRawResponse
@@ -557,6 +668,24 @@ def agents(self) -> agents.AgentsResourceWithStreamingResponse:
557668

558669
return AgentsResourceWithStreamingResponse(self._client.agents)
559670

671+
@cached_property
672+
def providers(self) -> providers.ProvidersResourceWithStreamingResponse:
673+
from .resources.providers import ProvidersResourceWithStreamingResponse
674+
675+
return ProvidersResourceWithStreamingResponse(self._client.providers)
676+
677+
@cached_property
678+
def auth(self) -> auth.AuthResourceWithStreamingResponse:
679+
from .resources.auth import AuthResourceWithStreamingResponse
680+
681+
return AuthResourceWithStreamingResponse(self._client.auth)
682+
683+
@cached_property
684+
def regions(self) -> regions.RegionsResourceWithStreamingResponse:
685+
from .resources.regions import RegionsResourceWithStreamingResponse
686+
687+
return RegionsResourceWithStreamingResponse(self._client.regions)
688+
560689
@cached_property
561690
def indexing_jobs(self) -> indexing_jobs.IndexingJobsResourceWithStreamingResponse:
562691
from .resources.indexing_jobs import IndexingJobsResourceWithStreamingResponse
@@ -569,6 +698,12 @@ def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithStreaming
569698

570699
return KnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases)
571700

701+
@cached_property
702+
def api_keys(self) -> api_keys.APIKeysResourceWithStreamingResponse:
703+
from .resources.api_keys import APIKeysResourceWithStreamingResponse
704+
705+
return APIKeysResourceWithStreamingResponse(self._client.api_keys)
706+
572707
@cached_property
573708
def chat(self) -> chat.ChatResourceWithStreamingResponse:
574709
from .resources.chat import ChatResourceWithStreamingResponse
@@ -600,6 +735,24 @@ def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
600735

601736
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
602737

738+
@cached_property
739+
def providers(self) -> providers.AsyncProvidersResourceWithStreamingResponse:
740+
from .resources.providers import AsyncProvidersResourceWithStreamingResponse
741+
742+
return AsyncProvidersResourceWithStreamingResponse(self._client.providers)
743+
744+
@cached_property
745+
def auth(self) -> auth.AsyncAuthResourceWithStreamingResponse:
746+
from .resources.auth import AsyncAuthResourceWithStreamingResponse
747+
748+
return AsyncAuthResourceWithStreamingResponse(self._client.auth)
749+
750+
@cached_property
751+
def regions(self) -> regions.AsyncRegionsResourceWithStreamingResponse:
752+
from .resources.regions import AsyncRegionsResourceWithStreamingResponse
753+
754+
return AsyncRegionsResourceWithStreamingResponse(self._client.regions)
755+
603756
@cached_property
604757
def indexing_jobs(self) -> indexing_jobs.AsyncIndexingJobsResourceWithStreamingResponse:
605758
from .resources.indexing_jobs import AsyncIndexingJobsResourceWithStreamingResponse
@@ -612,6 +765,12 @@ def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithStre
612765

613766
return AsyncKnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases)
614767

768+
@cached_property
769+
def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithStreamingResponse:
770+
from .resources.api_keys import AsyncAPIKeysResourceWithStreamingResponse
771+
772+
return AsyncAPIKeysResourceWithStreamingResponse(self._client.api_keys)
773+
615774
@cached_property
616775
def chat(self) -> chat.AsyncChatResourceWithStreamingResponse:
617776
from .resources.chat import AsyncChatResourceWithStreamingResponse

src/gradientai/resources/__init__.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from .auth import (
4+
AuthResource,
5+
AsyncAuthResource,
6+
AuthResourceWithRawResponse,
7+
AsyncAuthResourceWithRawResponse,
8+
AuthResourceWithStreamingResponse,
9+
AsyncAuthResourceWithStreamingResponse,
10+
)
311
from .chat import (
412
ChatResource,
513
AsyncChatResource,
@@ -24,6 +32,30 @@
2432
ModelsResourceWithStreamingResponse,
2533
AsyncModelsResourceWithStreamingResponse,
2634
)
35+
from .regions import (
36+
RegionsResource,
37+
AsyncRegionsResource,
38+
RegionsResourceWithRawResponse,
39+
AsyncRegionsResourceWithRawResponse,
40+
RegionsResourceWithStreamingResponse,
41+
AsyncRegionsResourceWithStreamingResponse,
42+
)
43+
from .api_keys import (
44+
APIKeysResource,
45+
AsyncAPIKeysResource,
46+
APIKeysResourceWithRawResponse,
47+
AsyncAPIKeysResourceWithRawResponse,
48+
APIKeysResourceWithStreamingResponse,
49+
AsyncAPIKeysResourceWithStreamingResponse,
50+
)
51+
from .providers import (
52+
ProvidersResource,
53+
AsyncProvidersResource,
54+
ProvidersResourceWithRawResponse,
55+
AsyncProvidersResourceWithRawResponse,
56+
ProvidersResourceWithStreamingResponse,
57+
AsyncProvidersResourceWithStreamingResponse,
58+
)
2759
from .embeddings import (
2860
EmbeddingsResource,
2961
AsyncEmbeddingsResource,
@@ -56,6 +88,24 @@
5688
"AsyncAgentsResourceWithRawResponse",
5789
"AgentsResourceWithStreamingResponse",
5890
"AsyncAgentsResourceWithStreamingResponse",
91+
"ProvidersResource",
92+
"AsyncProvidersResource",
93+
"ProvidersResourceWithRawResponse",
94+
"AsyncProvidersResourceWithRawResponse",
95+
"ProvidersResourceWithStreamingResponse",
96+
"AsyncProvidersResourceWithStreamingResponse",
97+
"AuthResource",
98+
"AsyncAuthResource",
99+
"AuthResourceWithRawResponse",
100+
"AsyncAuthResourceWithRawResponse",
101+
"AuthResourceWithStreamingResponse",
102+
"AsyncAuthResourceWithStreamingResponse",
103+
"RegionsResource",
104+
"AsyncRegionsResource",
105+
"RegionsResourceWithRawResponse",
106+
"AsyncRegionsResourceWithRawResponse",
107+
"RegionsResourceWithStreamingResponse",
108+
"AsyncRegionsResourceWithStreamingResponse",
59109
"IndexingJobsResource",
60110
"AsyncIndexingJobsResource",
61111
"IndexingJobsResourceWithRawResponse",
@@ -68,6 +118,12 @@
68118
"AsyncKnowledgeBasesResourceWithRawResponse",
69119
"KnowledgeBasesResourceWithStreamingResponse",
70120
"AsyncKnowledgeBasesResourceWithStreamingResponse",
121+
"APIKeysResource",
122+
"AsyncAPIKeysResource",
123+
"APIKeysResourceWithRawResponse",
124+
"AsyncAPIKeysResourceWithRawResponse",
125+
"APIKeysResourceWithStreamingResponse",
126+
"AsyncAPIKeysResourceWithStreamingResponse",
71127
"ChatResource",
72128
"AsyncChatResource",
73129
"ChatResourceWithRawResponse",

src/gradientai/resources/agents/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
FunctionsResourceWithStreamingResponse,
3333
AsyncFunctionsResourceWithStreamingResponse,
3434
)
35+
from .child_agents import (
36+
ChildAgentsResource,
37+
AsyncChildAgentsResource,
38+
ChildAgentsResourceWithRawResponse,
39+
AsyncChildAgentsResourceWithRawResponse,
40+
ChildAgentsResourceWithStreamingResponse,
41+
AsyncChildAgentsResourceWithStreamingResponse,
42+
)
3543
from .knowledge_bases import (
3644
KnowledgeBasesResource,
3745
AsyncKnowledgeBasesResource,
@@ -66,6 +74,12 @@
6674
"AsyncKnowledgeBasesResourceWithRawResponse",
6775
"KnowledgeBasesResourceWithStreamingResponse",
6876
"AsyncKnowledgeBasesResourceWithStreamingResponse",
77+
"ChildAgentsResource",
78+
"AsyncChildAgentsResource",
79+
"ChildAgentsResourceWithRawResponse",
80+
"AsyncChildAgentsResourceWithRawResponse",
81+
"ChildAgentsResourceWithStreamingResponse",
82+
"AsyncChildAgentsResourceWithStreamingResponse",
6983
"AgentsResource",
7084
"AsyncAgentsResource",
7185
"AgentsResourceWithRawResponse",

0 commit comments

Comments
 (0)