Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
6,399 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
6,399
◇
Types & classes
2,012
↳
Endpoints
17
↓ 1 callers
Method
setup_skills
Download the session agent's skills into ``{workdir}/skills/<name>/``. No-op unless :attr:`client` is set together with :attr:`session` (or
src/anthropic/lib/tools/agent_toolset.py:303
↓ 1 callers
Function
skeleton
Compact structural skeleton of a spliced stream — no text content.
tests/lib/test_refusal_fallback_streaming.py:171
↓ 1 callers
Function
stainless_helper_header
Build x-stainless-helper header dict from tools and messages. Returns an empty dict if no helpers are found.
src/anthropic/lib/_stainless_helpers.py:128
↓ 1 callers
Method
start
Track a content_block_start, shifting `event["index"]`.
src/anthropic/lib/middleware/_fallbacks.py:1246
↓ 1 callers
Method
stop
(self)
examples/memory/basic.py:55
↓ 1 callers
Method
str_replace
Replace text in a memory file.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:258
↓ 1 callers
Method
stream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:573
↓ 1 callers
Method
stringify
( self, params: Params, *, array_format: ArrayFormat | NotGiven = not_given,
src/anthropic/_qs.py:36
↓ 1 callers
Method
sync_auth_flow
(self, request: httpx2.Request)
src/anthropic/lib/credentials/_auth.py:105
↓ 1 callers
Function
sync_client
()
examples/vertex.py:6
↓ 1 callers
Method
take_slot
(self)
src/anthropic/lib/tools/_memories.py:152
↓ 1 callers
Function
takes_pydantic
(model: pydantic.BaseModel)
tests/test_models.py:637
↓ 1 callers
Method
text
(self)
src/anthropic/lib/tools/_files.py:85
↓ 1 callers
Function
to_aiter
(iter: Iterator[bytes])
tests/decoders/test_jsonl.py:63
↓ 1 callers
Method
to_dict
Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude. By default, fields t
src/anthropic/_models.py:145
↓ 1 callers
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:73
↓ 1 callers
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:91
↓ 1 callers
Function
to_thread
( func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs )
src/anthropic/_utils/_sync.py:16
↓ 1 callers
Function
transform
Transform dictionaries based off of type information from the given type, for example: ```py class Params(TypedDict, total=False): ca
src/anthropic/_utils/_transform.py:92
↓ 1 callers
Method
until_done
Drive the runner to completion, discarding the per-call observations. Named to match ``BetaToolRunner.until_done`` (and to avoid colliding
src/anthropic/lib/tools/_beta_session_runner.py:474
↓ 1 callers
Method
until_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:125
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:278
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:274
↓ 1 callers
Function
validate_async_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:107
↓ 1 callers
Function
validate_sync_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:85
↓ 1 callers
Method
view
View the contents of a memory path.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:248
↓ 1 callers
Method
wait_ended
(self)
src/anthropic/lib/environments/_worker.py:147
↓ 1 callers
Function
walk
(e: Optional[BaseException])
tests/lib/test_credentials.py:3521
↓ 1 callers
Function
warn_env_static_shadows_auto_discovery
Warn that an ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` from the environment is shadowing the SDK's profile / federation auto-discovery.
src/anthropic/lib/credentials/_auth.py:47
↓ 1 callers
Function
warn_explicit_static_shadows_credentials
Warn that an explicit ``api_key=`` / ``auth_token=`` argument shadows an explicit ``credentials=`` provider passed to the same constructor or
src/anthropic/lib/credentials/_auth.py:31
↓ 1 callers
Function
write
Write a file, creating parent directories as needed.
src/anthropic/lib/tools/agent_toolset.py:726
Method
__aenter__
(self)
src/anthropic/_response.py:680
Method
__aenter__
(self: _T)
src/anthropic/_base_client.py:1725
Method
__aenter__
(self)
src/anthropic/_streaming.py:297
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:230
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:329
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:226
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:324
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:684
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1728
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:300
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:233
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:334
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:229
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:329
Method
__aexit__
(self, *exc: object)
tests/lib/tools/test_session_runner.py:154
Method
__aiter__
(self)
src/anthropic/_base_client.py:325
Method
__aiter__
(self)
src/anthropic/_base_client.py:351
Method
__aiter__
(self)
src/anthropic/_streaming.py:194
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:385
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:469
Method
__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1628
Method
__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:226
Method
__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:222
Method
__aiter__
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:71
Method
__aiter__
(self)
src/anthropic/_decoders/jsonl.py:121
Method
__aiter__
(self)
tests/lib/tools/test_session_runner.py:157
Method
__anext__
(self)
src/anthropic/lib/tools/_beta_runner.py:382
Method
__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:223
Method
__anext__
(self)
src/anthropic/lib/streaming/_messages.py:219
Method
__anext__
(self)
src/anthropic/_decoders/jsonl.py:118
Method
__await__
(self)
src/anthropic/_base_client.py:309
Method
__bool__
(self)
src/anthropic/_types.py:146
Method
__bool__
(self)
src/anthropic/_types.py:176
Method
__bool__
(self)
src/anthropic/_base_client.py:2295
Method
__call__
(self)
src/anthropic/lib/tools/_beta_functions.py:186
Method
__call__
(self, *_args: Any, **_kwds: Any)
src/anthropic/lib/tools/_beta_functions.py:235
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_types.py:59
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:124
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:135
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:506
Method
__call__
(self)
src/anthropic/lib/credentials/_providers.py:772
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:249
Method
__call__
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:297
Method
__call__
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:308
Method
__call__
(self, *_args: Any, **_kwds: Any)
tests/test_utils/test_proxy.py:13
Method
__call__
(self)
tests/lib/test_credentials.py:1444
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1453
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1500
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1560
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1577
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1593
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2949
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:3124
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:3177
Method
__call__
(self, **kwargs: object)
tests/lib/test_bedrock_mantle.py:19
Method
__call__
(self)
tests/lib/tools/memory_sync/conftest.py:22
Method
__contains__
(self, value: object, /)
src/anthropic/_types.py:262
Method
__del__
(self)
src/anthropic/_base_client.py:947
Method
__del__
(self)
src/anthropic/_base_client.py:1642
Method
__dir__
(self)
src/anthropic/_utils/_proxy.py:40
Method
__enter__
(self)
src/anthropic/_response.py:656
Method
__enter__
(self: _T)
src/anthropic/_base_client.py:1032
Method
__enter__
(self)
src/anthropic/lib/credentials/_workload.py:238
Method
__enter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:81
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:77
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:174
Method
__enter__
(self)
src/anthropic/lib/streaming/_messages.py:170
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:660
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1035
← previous
next →
1,001–1,100 of 6,399, ranked by callers