Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Function
mirror_request_content
(request: httpx2.Request)
tests/test_client.py:58
Function
misuse
(ctx: BetaURLContext, url: str)
tests/lib/tools/toolsets/test_enforcement.py:120
Function
mock_aws_config
( profiles: t.List[AwsConfigProfile], monkeypatch: t.Any, )
tests/lib/test_bedrock.py:108
Method
mock_handler
(request: httpx2.Request)
tests/test_client.py:1018
Method
mock_handler
(request: httpx2.Request)
tests/test_client.py:2456
Method
model_fields_set
(self)
src/anthropic/_models.py:155
Method
model_id
(self)
tests/test_models.py:491
Function
model_parse_json
(model: type[_ModelT], data: str | bytes)
src/anthropic/_compat.py:129
Method
models
(self)
src/anthropic/_client.py:320
Method
models
(self)
src/anthropic/_client.py:728
Method
models
(self)
src/anthropic/_client.py:981
Method
models
(self)
src/anthropic/_client.py:1030
Method
models
(self)
src/anthropic/_client.py:1079
Method
models
(self)
src/anthropic/_client.py:1128
Method
models
(self)
src/anthropic/resources/beta/beta.py:132
Method
models
(self)
src/anthropic/resources/beta/beta.py:217
Method
models
(self)
src/anthropic/resources/beta/beta.py:305
Method
models
(self)
src/anthropic/resources/beta/beta.py:370
Method
models
(self)
src/anthropic/resources/beta/beta.py:435
Method
models
(self)
src/anthropic/resources/beta/beta.py:500
Method
models
Models endpoint is not supported for Anthropic Foundry client.
src/anthropic/lib/foundry.py:196
Method
models
Models endpoint is not supported for Anthropic Foundry client.
src/anthropic/lib/foundry.py:408
Method
monotonic
(self)
tests/lib/environments/test_poller_method.py:349
Function
most_utf8_size
The most that `utf8_size` can be, without reading `text`: no character is more than four bytes.
src/anthropic/lib/_tracing/_content.py:155
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_computer.py:220
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_computer.py:338
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaBrowserMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_browser.py:372
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaBrowserMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_browser.py:622
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
tests/lib/tools/toolsets/_computer_fakes.py:101
Method
mouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
tests/lib/tools/toolsets/_computer_fakes.py:156
Method
multiply
Multiply two numbers.
tests/lib/tools/test_functions.py:375
Function
my_async_provider
(*, force_refresh: bool = False)
examples/workload_identity.py:172
Function
my_provider
(*, force_refresh: bool = False)
examples/workload_identity.py:147
Method
name
(self)
src/anthropic/lib/tools/_tool_dispatch.py:125
Method
name
(self)
src/anthropic/lib/tools/_beta_functions.py:81
Method
name
(self)
src/anthropic/lib/tools/_beta_functions.py:99
Function
navigate
()
tests/lib/tools/toolsets/test_runnable.py:38
Function
navigate
()
tests/lib/tools/toolsets/test_runner.py:152
Method
navigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
src/anthropic/lib/tools/_toolsets/_browser.py:336
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
src/anthropic/lib/tools/_toolsets/_browser.py:578
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_pipeline.py:81
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_pipeline.py:93
Method
navigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
tests/lib/tools/toolsets/_fakes.py:168
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/_fakes.py:238
Method
navigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
tests/lib/tools/toolsets/test_interface.py:50
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:60
Method
navigate
( # pyright: ignore[reportIncompatibleMethodOverride] self, context: BetaToolsetCallContext, inpu
tests/lib/tools/toolsets/test_interface.py:244
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:257
Method
navigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:307
Function
navigate_async
()
tests/lib/tools/toolsets/test_browser_runner.py:356
Method
never_respond
(_request: httpx2.Request)
tests/lib/threads/test_async_beta_threads.py:417
Function
new
(server: Server | None = None, open_telemetry: OpenTelemetryClientOption = None)
tests/test_tracing.py:129
Function
new_error
(error_class: type[AnthropicError], *args: object)
src/anthropic/_exceptions.py:267
Method
new_tab
(self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput)
src/anthropic/lib/tools/_toolsets/_browser.py:424
Method
new_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:674
Method
new_tab
(self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput)
tests/lib/tools/toolsets/_fakes.py:208
Method
new_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput )
tests/lib/tools/toolsets/_fakes.py:282
Method
next_page_info
(self)
src/anthropic/pagination.py:45
Method
next_page_info
(self)
src/anthropic/pagination.py:82
Method
next_page_info
(self)
src/anthropic/pagination.py:118
Method
next_page_info
(self)
src/anthropic/pagination.py:147
Function
no_ambient_credentials
No API key, auth token or credentials provider discoverable from the environment.
tests/test_header_case_sensitivity.py:39
Function
no_changes
()
src/anthropic/lib/tools/_toolsets/_results.py:28
Method
no_default_credentials
(**_kwargs: object)
tests/test_client.py:559
Method
no_default_credentials
(**_kwargs: object)
tests/test_client.py:1993
Function
no_default_creds_file
Point the config directory at an empty location so a real ~/.config/anthropic/ on the dev machine doesn't leak into tests. Patches `_config_d
tests/lib/test_credentials.py:92
Method
no_docs
(x: int)
tests/lib/tools/test_functions.py:191
Function
no_internal
(context: Any, url: str)
tests/lib/tools/toolsets/test_confirm.py:236
Function
no_logout
(context: BetaURLContext, url: str)
tests/lib/tools/toolsets/test_refusals.py:93
Method
no_types
(x, y=10)
tests/lib/tools/test_functions.py:199
Function
no_wait
(*_args: object, **_kwargs: object)
tests/test_open_telemetry.py:2916
Method
noschema_cm
()
tests/lib/tools/test_functions.py:555
Method
nothing
(city: str)
tests/lib/tools/test_open_telemetry.py:408
Function
observe_as_self_hosted_worker
Secondary scenario — NOT called by main(); shown for reference. Use this shape when you *are* a self-hosted worker (you poll a work queue and
examples/managed-agents-observe-tool-calls.py:119
Method
observed_read_bytes
(self: pathlib.Path)
tests/lib/streaming/test_messages.py:527
Method
observed_read_bytes
(self: pathlib.Path)
tests/lib/streaming/test_beta_messages.py:706
Method
observed_set_attribute
(span: SdkSpan, key: str, value: Any)
tests/test_open_telemetry.py:2745
Method
on_end
(self, span: ReadableSpan)
tests/test_open_telemetry.py:7900
Method
on_start
(self, span: SdkSpan, parent_context: context.Context | None = None)
tests/test_open_telemetry.py:705
Method
on_start
(self, span: SdkSpan, parent_context: context.Context | None = None)
tests/test_open_telemetry.py:7895
Method
one
()
src/anthropic/lib/tools/_file_store.py:207
Method
one_at_a_time
(attributes: dict[AttributeName, Any], limit: int)
tests/test_open_telemetry.py:6537
Method
open_telemetry
This client's `open_telemetry` option, with `propagation` and every field of its `traces` set. The fields that the option given to the client
src/anthropic/_base_client.py:501
Method
open_telemetry
(self)
tests/lib/tools/test_session_runner.py:301
Method
opened
(self)
src/anthropic/lib/middleware/_fallbacks.py:856
Method
opened_tab_id
The `tab_id` of the tab a `new_tab` call opened, from the tab entry it returned, or `None` for any other call or result.
src/anthropic/lib/tools/_toolsets/_pipeline.py:76
Method
organization
(self)
src/anthropic/_client.py:344
Method
organization
(self)
src/anthropic/_client.py:752
Method
organization
(self)
src/anthropic/_client.py:1005
Method
organization
(self)
src/anthropic/_client.py:1054
Method
organization
(self)
src/anthropic/_client.py:1103
Method
organization
(self)
src/anthropic/_client.py:1152
Method
organization
(self)
src/anthropic/resources/beta/beta.py:192
Method
organization
(self)
src/anthropic/resources/beta/beta.py:277
Method
organization
(self)
src/anthropic/resources/beta/beta.py:361
Method
organization
(self)
src/anthropic/resources/beta/beta.py:426
Method
organization
(self)
src/anthropic/resources/beta/beta.py:491
Method
organization
(self)
src/anthropic/resources/beta/beta.py:556
Method
output_format
(self)
src/anthropic/lib/threads/_thread_state.py:238
Method
params
The arguments of a `client.beta.messages.thread()` call for the whole conversation, in a new dict.
src/anthropic/lib/threads/_beta_threads.py:98
← previous
next →
4,201–4,300 of 12,274, ranked by callers