MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-python / functions

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Method__init__
( self, func: CallableT, *, name: str | None = None, description: str
src/anthropic/lib/tools/_beta_functions.py:147
Method__init__
(self, *, func: Callable[..., Any], parsed_docstring: Any)
src/anthropic/lib/tools/_beta_functions.py:232
Method__init__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:166
Method__init__
( self, client: AsyncAnthropic, session_id: str, *, tools: Sequence[Be
src/anthropic/lib/tools/_beta_session_runner.py:439
Method__init__
( self, client: AsyncAnthropic, *, workdir: str | os.PathLike[str], sy
src/anthropic/lib/tools/_memories.py:228
Method__init__
( self, *, configs: BetaComputerToolsetConfigsParam | None, confirm: _ConfirmT
src/anthropic/lib/tools/_toolsets/_computer.py:105
Method__init__
A computer toolset with the given options; a mistake in them raises `ToolsetConfigError` here. Args: configs: The `configs` objec
src/anthropic/lib/tools/_toolsets/_computer.py:153
Method__init__
An asynchronous computer toolset with the given options; `confirm` may be a plain or an `async` callable here. A mistake in the options raises
src/anthropic/lib/tools/_toolsets/_computer.py:272
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_base.py:153
Method__init__
(self, what: str, *, twin: str)
src/anthropic/lib/tools/_toolsets/_base.py:160
Method__init__
(self, what: str, *, twin: str)
src/anthropic/lib/tools/_toolsets/_base.py:165
Method__init__
( self, cls: type[BaseToolset[Any, Any, Any]], *, registry: Registry[_NameT, _
src/anthropic/lib/tools/_toolsets/_base.py:183
Method__init__
(self, options: BaseToolsetOptions[_NameT, _InputT, _ConfirmT])
src/anthropic/lib/tools/_toolsets/_base.py:234
Method__init__
(self, options: BaseToolsetOptions[_NameT, _InputT, _ConfirmT])
src/anthropic/lib/tools/_toolsets/_base.py:251
Method__init__
(self, options: BaseToolsetOptions[_NameT, _InputT, _ConfirmT])
src/anthropic/lib/tools/_toolsets/_base.py:344
Method__init__
(self, *, context: BetaToolsetCallContext, name: str, raw_input: Mapping[str, object])
src/anthropic/lib/tools/_toolsets/_pipeline.py:50
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_pipeline.py:154
Method__init__
(self, exc: Exception)
src/anthropic/lib/tools/_toolsets/_browser.py:102
Method__init__
( self, *, configs: BetaBrowserToolsetConfigsParam | None, confirm: BetaConfir
src/anthropic/lib/tools/_toolsets/_browser.py:161
Method__init__
A browser toolset with the given options. A mistake in them raises `ToolsetConfigError` here. Args: configs: The `configs` object
src/anthropic/lib/tools/_toolsets/_browser.py:214
Method__init__
An asynchronous browser toolset with the given options. `confirm` and `url_policy` may be plain or `async` callables here. A mistake in the op
src/anthropic/lib/tools/_toolsets/_browser.py:454
Method__init__
(self, action: Literal["add", "replace", "remove"], toolset_name: str)
src/anthropic/lib/tools/_toolsets/_errors.py:63
Method__init__
(self, name: str, *, family: ToolsetFamily)
src/anthropic/lib/tools/_toolsets/_errors.py:84
Method__init__
(self, name: str)
src/anthropic/lib/tools/_toolsets/_errors.py:91
Method__init__
(self, name: str, *, family: ToolsetFamily)
src/anthropic/lib/tools/_toolsets/_errors.py:100
Method__init__
(self, name: str, problem: str, *, family: ToolsetFamily)
src/anthropic/lib/tools/_toolsets/_errors.py:108
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_errors.py:124
Method__init__
(self, name: str)
src/anthropic/lib/tools/_toolsets/_errors.py:133
Method__init__
(self, name: str)
src/anthropic/lib/tools/_toolsets/_errors.py:142
Method__init__
(self, reason: str)
src/anthropic/lib/tools/_toolsets/_errors.py:153
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_errors.py:160
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_errors.py:167
Method__init__
( self, *, upload_roots: Sequence[str | os.PathLike[str]] = (), upload_documen
src/anthropic/lib/tools/_toolsets/_security.py:175
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:70
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:79
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:88
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:97
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:71
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:80
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:89
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:98
Method__init__
( self, *, cast_to: type[_T], response: httpx2.Response, client: Async
src/anthropic/lib/bedrock/_stream.py:28
Method__init__
( self, *, aws_access_key: str | None = None, aws_secret_key: str | None = Non
src/anthropic/lib/bedrock/_mantle.py:358
Method__init__
( self, aws_secret_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/bedrock/_client.py:314
Method__init__
(self)
src/anthropic/lib/bedrock/_stream_decoder.py:26
Method__init__
( self, *, owned_event: Optional[_EventT], force: bool, advisory_fallb
src/anthropic/lib/credentials/_cache.py:57
Method__init__
( self, provider: AccessTokenProvider | AsyncAccessTokenProvider, *, advisory_
src/anthropic/lib/credentials/_cache.py:115
Method__init__
(self, token_cache: TokenCache)
src/anthropic/lib/credentials/_auth.py:80
Method__init__
(self, token: str)
src/anthropic/lib/credentials/_providers.py:121
Method__init__
(self, env_var: str = ENV_AUTH_TOKEN)
src/anthropic/lib/credentials/_providers.py:132
Method__init__
( self, profile: Optional[str] = None, *, http_client: Optional[httpx2.Client]
src/anthropic/lib/credentials/_providers.py:188
Method__init__
(self, path: Union[str, "os.PathLike[str]", None] = None)
src/anthropic/lib/credentials/_providers.py:754
Method__init__
( self, config: Dict[str, Any], *, identity_token_provider: Optional[IdentityT
src/anthropic/lib/credentials/_providers.py:826
Method__init__
(self, type_name: str)
src/anthropic/lib/credentials/_secrets.py:25
Method__init__
( self, message: str, *, status_code: Optional[int] = None, body: Any
src/anthropic/lib/credentials/_workload.py:117
Method__init__
( self, *, identity_token_provider: IdentityTokenProvider, federation_rule_id:
src/anthropic/lib/credentials/_workload.py:162
Method__init__
(self)
src/anthropic/lib/middleware/_fallbacks.py:78
Method__init__
Args: fallbacks: The fallback chain, tried in order. An empty chain disables the middleware. betas:
src/anthropic/lib/middleware/_fallbacks.py:172
Method__init__
( self, *, index_base: int, has_next: bool, splice: _SpliceInfo | None
src/anthropic/lib/middleware/_fallbacks.py:816
Method__init__
(self, body: dict[str, Any])
src/anthropic/lib/middleware/_fallbacks.py:1077
Method__init__
(self, index_base: int = 0)
src/anthropic/lib/middleware/_fallbacks.py:1261
Method__init__
(self, frames: Generator[bytes, None, None])
src/anthropic/lib/middleware/_fallbacks.py:1638
Method__init__
(self, frames: AsyncGenerator[bytes, None])
src/anthropic/lib/middleware/_fallbacks.py:1651
Method__init__
(self, *, library: str, extra: str)
src/anthropic/lib/_extras/_common.py:12
Method__init__
( self, raw_stream: Stream[BetaRawMessageStreamEvent], output_format: ResponseFormatT
src/anthropic/lib/streaming/_beta_messages.py:47
Method__init__
( self, api_request: Callable[[], Stream[BetaRawMessageStreamEvent]], *, outpu
src/anthropic/lib/streaming/_beta_messages.py:165
Method__init__
( self, raw_stream: AsyncStream[BetaRawMessageStreamEvent], output_format: ResponseFor
src/anthropic/lib/streaming/_beta_messages.py:201
Method__init__
( self, api_request: Awaitable[AsyncStream[BetaRawMessageStreamEvent]], *, out
src/anthropic/lib/streaming/_beta_messages.py:321
Method__init__
( self, raw_stream: Stream[RawMessageStreamEvent], output_format: ResponseFormatT | No
src/anthropic/lib/streaming/_messages.py:44
Method__init__
( self, api_request: Callable[[], Stream[RawMessageStreamEvent]], *, output_fo
src/anthropic/lib/streaming/_messages.py:161
Method__init__
( self, raw_stream: AsyncStream[RawMessageStreamEvent], output_format: ResponseFormatT
src/anthropic/lib/streaming/_messages.py:197
Method__init__
( self, api_request: Awaitable[AsyncStream[RawMessageStreamEvent]], *, output_
src/anthropic/lib/streaming/_messages.py:316
Method__init__
( self, *, api_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/aws/_client.py:249
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:70
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:79
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:88
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:97
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:73
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:82
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:91
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:100
Method__init__
( self, *, region: str | NotGiven = not_given, project_id: str | NotGiven = no
src/anthropic/lib/vertex/_client.py:260
Method__init__
(self, credentials: GoogleCredentials | None)
src/anthropic/lib/google_cloud/_client.py:58
Method__init__
Construct a new asynchronous Claude Platform on Google Cloud client. `token_provider` may be sync or async; sync providers are run off the
src/anthropic/lib/google_cloud/_client.py:454
Method__init__
(self, aiohttp_response: ClientResponse)
src/anthropic/_vendor/httpx_aiohttp/transport.py:68
Method__init__
( self, verify: ssl.SSLContext | str | bool = True, cert: t.Union[str, t.Tuple[str, st
src/anthropic/_vendor/httpx_aiohttp/transport.py:82
Method__init__
( self, *, raw_iterator: AsyncIterator[bytes], line_type: type[_T], ht
src/anthropic/_decoders/jsonl.py:79
Method__init__
(self, client: Anthropic | AsyncAnthropic)
tests/test_prepare.py:60
Method__init__
(self)
tests/test_prepare.py:140
Method__init__
( self, handler: Callable[[httpx2.Request], httpx2.Response] | Callable[[httpx2.Reques
tests/test_client.py:64
Method__init__
(self, name: str = "middleware", events: "list[str] | None" = None)
tests/test_middleware.py:90
Method__init__
(self, **changes: object)
tests/test_middleware.py:116
Method__init__
(self, fallback_model: str)
tests/test_middleware.py:134
Method__init__
(self, max_tokens: int)
tests/test_middleware.py:158
Method__init__
(self, message: Message)
tests/test_middleware.py:182
Method__init__
(self)
tests/test_middleware.py:200
Method__init__
(self)
tests/test_middleware.py:257
Method__init__
(self)
tests/test_middleware.py:276
Method__init__
(self)
tests/test_middleware.py:295
Method__init__
(self)
tests/test_middleware.py:306
← previousnext →1,901–2,000 of 9,455, ranked by callers