-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20487ea
commit 3978411
Showing
28 changed files
with
3,332 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 2 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-4769b27b6e13acc458cc71fbadd8676ea8074d76f91e37b96eaa97464c4e97af.yml | ||
configured_endpoints: 3 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fb94a03f85580f7eacef034518becfb463502e6d74b0f7932f6153239de23a5b.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .beta import ( | ||
Beta, | ||
AsyncBeta, | ||
BetaWithRawResponse, | ||
AsyncBetaWithRawResponse, | ||
BetaWithStreamingResponse, | ||
AsyncBetaWithStreamingResponse, | ||
) | ||
from .prompt_caching import ( | ||
PromptCaching, | ||
AsyncPromptCaching, | ||
PromptCachingWithRawResponse, | ||
AsyncPromptCachingWithRawResponse, | ||
PromptCachingWithStreamingResponse, | ||
AsyncPromptCachingWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"PromptCaching", | ||
"AsyncPromptCaching", | ||
"PromptCachingWithRawResponse", | ||
"AsyncPromptCachingWithRawResponse", | ||
"PromptCachingWithStreamingResponse", | ||
"AsyncPromptCachingWithStreamingResponse", | ||
"Beta", | ||
"AsyncBeta", | ||
"BetaWithRawResponse", | ||
"AsyncBetaWithRawResponse", | ||
"BetaWithStreamingResponse", | ||
"AsyncBetaWithStreamingResponse", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from ..._compat import cached_property | ||
from ..._resource import SyncAPIResource, AsyncAPIResource | ||
from .prompt_caching import ( | ||
PromptCaching, | ||
AsyncPromptCaching, | ||
PromptCachingWithRawResponse, | ||
AsyncPromptCachingWithRawResponse, | ||
PromptCachingWithStreamingResponse, | ||
AsyncPromptCachingWithStreamingResponse, | ||
) | ||
from .prompt_caching.prompt_caching import PromptCaching, AsyncPromptCaching | ||
|
||
__all__ = ["Beta", "AsyncBeta"] | ||
|
||
|
||
class Beta(SyncAPIResource): | ||
@cached_property | ||
def prompt_caching(self) -> PromptCaching: | ||
return PromptCaching(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> BetaWithRawResponse: | ||
return BetaWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> BetaWithStreamingResponse: | ||
return BetaWithStreamingResponse(self) | ||
|
||
|
||
class AsyncBeta(AsyncAPIResource): | ||
@cached_property | ||
def prompt_caching(self) -> AsyncPromptCaching: | ||
return AsyncPromptCaching(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncBetaWithRawResponse: | ||
return AsyncBetaWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncBetaWithStreamingResponse: | ||
return AsyncBetaWithStreamingResponse(self) | ||
|
||
|
||
class BetaWithRawResponse: | ||
def __init__(self, beta: Beta) -> None: | ||
self._beta = beta | ||
|
||
@cached_property | ||
def prompt_caching(self) -> PromptCachingWithRawResponse: | ||
return PromptCachingWithRawResponse(self._beta.prompt_caching) | ||
|
||
|
||
class AsyncBetaWithRawResponse: | ||
def __init__(self, beta: AsyncBeta) -> None: | ||
self._beta = beta | ||
|
||
@cached_property | ||
def prompt_caching(self) -> AsyncPromptCachingWithRawResponse: | ||
return AsyncPromptCachingWithRawResponse(self._beta.prompt_caching) | ||
|
||
|
||
class BetaWithStreamingResponse: | ||
def __init__(self, beta: Beta) -> None: | ||
self._beta = beta | ||
|
||
@cached_property | ||
def prompt_caching(self) -> PromptCachingWithStreamingResponse: | ||
return PromptCachingWithStreamingResponse(self._beta.prompt_caching) | ||
|
||
|
||
class AsyncBetaWithStreamingResponse: | ||
def __init__(self, beta: AsyncBeta) -> None: | ||
self._beta = beta | ||
|
||
@cached_property | ||
def prompt_caching(self) -> AsyncPromptCachingWithStreamingResponse: | ||
return AsyncPromptCachingWithStreamingResponse(self._beta.prompt_caching) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .messages import ( | ||
Messages, | ||
AsyncMessages, | ||
MessagesWithRawResponse, | ||
AsyncMessagesWithRawResponse, | ||
MessagesWithStreamingResponse, | ||
AsyncMessagesWithStreamingResponse, | ||
) | ||
from .prompt_caching import ( | ||
PromptCaching, | ||
AsyncPromptCaching, | ||
PromptCachingWithRawResponse, | ||
AsyncPromptCachingWithRawResponse, | ||
PromptCachingWithStreamingResponse, | ||
AsyncPromptCachingWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Messages", | ||
"AsyncMessages", | ||
"MessagesWithRawResponse", | ||
"AsyncMessagesWithRawResponse", | ||
"MessagesWithStreamingResponse", | ||
"AsyncMessagesWithStreamingResponse", | ||
"PromptCaching", | ||
"AsyncPromptCaching", | ||
"PromptCachingWithRawResponse", | ||
"AsyncPromptCachingWithRawResponse", | ||
"PromptCachingWithStreamingResponse", | ||
"AsyncPromptCachingWithStreamingResponse", | ||
] |
Oops, something went wrong.