MCPcopy Create free account

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

Functions12,274 in github.com/anthropics/anthropic-sdk-python

Functionmirror_request_content
(request: httpx2.Request)
tests/test_client.py:58
Functionmisuse
(ctx: BetaURLContext, url: str)
tests/lib/tools/toolsets/test_enforcement.py:120
Functionmock_aws_config
( profiles: t.List[AwsConfigProfile], monkeypatch: t.Any, )
tests/lib/test_bedrock.py:108
Methodmock_handler
(request: httpx2.Request)
tests/test_client.py:1018
Methodmock_handler
(request: httpx2.Request)
tests/test_client.py:2456
Methodmodel_fields_set
(self)
src/anthropic/_models.py:155
Methodmodel_id
(self)
tests/test_models.py:491
Functionmodel_parse_json
(model: type[_ModelT], data: str | bytes)
src/anthropic/_compat.py:129
Methodmodels
(self)
src/anthropic/_client.py:320
Methodmodels
(self)
src/anthropic/_client.py:728
Methodmodels
(self)
src/anthropic/_client.py:981
Methodmodels
(self)
src/anthropic/_client.py:1030
Methodmodels
(self)
src/anthropic/_client.py:1079
Methodmodels
(self)
src/anthropic/_client.py:1128
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:132
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:217
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:305
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:370
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:435
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:500
Methodmodels
Models endpoint is not supported for Anthropic Foundry client.
src/anthropic/lib/foundry.py:196
Methodmodels
Models endpoint is not supported for Anthropic Foundry client.
src/anthropic/lib/foundry.py:408
Methodmonotonic
(self)
tests/lib/environments/test_poller_method.py:349
Functionmost_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
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_computer.py:220
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_computer.py:338
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaBrowserMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_browser.py:372
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaBrowserMouseMoveInput)
src/anthropic/lib/tools/_toolsets/_browser.py:622
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
tests/lib/tools/toolsets/_computer_fakes.py:101
Methodmouse_move
(self, context: BetaToolsetCallContext, input: BetaComputerMouseMoveInput)
tests/lib/tools/toolsets/_computer_fakes.py:156
Methodmultiply
Multiply two numbers.
tests/lib/tools/test_functions.py:375
Functionmy_async_provider
(*, force_refresh: bool = False)
examples/workload_identity.py:172
Functionmy_provider
(*, force_refresh: bool = False)
examples/workload_identity.py:147
Methodname
(self)
src/anthropic/lib/tools/_tool_dispatch.py:125
Methodname
(self)
src/anthropic/lib/tools/_beta_functions.py:81
Methodname
(self)
src/anthropic/lib/tools/_beta_functions.py:99
Functionnavigate
()
tests/lib/tools/toolsets/test_runnable.py:38
Functionnavigate
()
tests/lib/tools/toolsets/test_runner.py:152
Methodnavigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
src/anthropic/lib/tools/_toolsets/_browser.py:336
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
src/anthropic/lib/tools/_toolsets/_browser.py:578
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_pipeline.py:81
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_pipeline.py:93
Methodnavigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
tests/lib/tools/toolsets/_fakes.py:168
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/_fakes.py:238
Methodnavigate
(self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput)
tests/lib/tools/toolsets/test_interface.py:50
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:60
Methodnavigate
( # pyright: ignore[reportIncompatibleMethodOverride] self, context: BetaToolsetCallContext, inpu
tests/lib/tools/toolsets/test_interface.py:244
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:257
Methodnavigate
( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput )
tests/lib/tools/toolsets/test_interface.py:307
Functionnavigate_async
()
tests/lib/tools/toolsets/test_browser_runner.py:356
Methodnever_respond
(_request: httpx2.Request)
tests/lib/threads/test_async_beta_threads.py:417
Functionnew
(server: Server | None = None, open_telemetry: OpenTelemetryClientOption = None)
tests/test_tracing.py:129
Functionnew_error
(error_class: type[AnthropicError], *args: object)
src/anthropic/_exceptions.py:267
Methodnew_tab
(self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput)
src/anthropic/lib/tools/_toolsets/_browser.py:424
Methodnew_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:674
Methodnew_tab
(self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput)
tests/lib/tools/toolsets/_fakes.py:208
Methodnew_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserNewTabInput )
tests/lib/tools/toolsets/_fakes.py:282
Methodnext_page_info
(self)
src/anthropic/pagination.py:45
Methodnext_page_info
(self)
src/anthropic/pagination.py:82
Methodnext_page_info
(self)
src/anthropic/pagination.py:118
Methodnext_page_info
(self)
src/anthropic/pagination.py:147
Functionno_ambient_credentials
No API key, auth token or credentials provider discoverable from the environment.
tests/test_header_case_sensitivity.py:39
Functionno_changes
()
src/anthropic/lib/tools/_toolsets/_results.py:28
Methodno_default_credentials
(**_kwargs: object)
tests/test_client.py:559
Methodno_default_credentials
(**_kwargs: object)
tests/test_client.py:1993
Functionno_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
Methodno_docs
(x: int)
tests/lib/tools/test_functions.py:191
Functionno_internal
(context: Any, url: str)
tests/lib/tools/toolsets/test_confirm.py:236
Functionno_logout
(context: BetaURLContext, url: str)
tests/lib/tools/toolsets/test_refusals.py:93
Methodno_types
(x, y=10)
tests/lib/tools/test_functions.py:199
Functionno_wait
(*_args: object, **_kwargs: object)
tests/test_open_telemetry.py:2916
Methodnoschema_cm
()
tests/lib/tools/test_functions.py:555
Methodnothing
(city: str)
tests/lib/tools/test_open_telemetry.py:408
Functionobserve_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
Methodobserved_read_bytes
(self: pathlib.Path)
tests/lib/streaming/test_messages.py:527
Methodobserved_read_bytes
(self: pathlib.Path)
tests/lib/streaming/test_beta_messages.py:706
Methodobserved_set_attribute
(span: SdkSpan, key: str, value: Any)
tests/test_open_telemetry.py:2745
Methodon_end
(self, span: ReadableSpan)
tests/test_open_telemetry.py:7900
Methodon_start
(self, span: SdkSpan, parent_context: context.Context | None = None)
tests/test_open_telemetry.py:705
Methodon_start
(self, span: SdkSpan, parent_context: context.Context | None = None)
tests/test_open_telemetry.py:7895
Methodone
()
src/anthropic/lib/tools/_file_store.py:207
Methodone_at_a_time
(attributes: dict[AttributeName, Any], limit: int)
tests/test_open_telemetry.py:6537
Methodopen_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
Methodopen_telemetry
(self)
tests/lib/tools/test_session_runner.py:301
Methodopened
(self)
src/anthropic/lib/middleware/_fallbacks.py:856
Methodopened_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
Methodorganization
(self)
src/anthropic/_client.py:344
Methodorganization
(self)
src/anthropic/_client.py:752
Methodorganization
(self)
src/anthropic/_client.py:1005
Methodorganization
(self)
src/anthropic/_client.py:1054
Methodorganization
(self)
src/anthropic/_client.py:1103
Methodorganization
(self)
src/anthropic/_client.py:1152
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:192
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:277
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:361
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:426
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:491
Methodorganization
(self)
src/anthropic/resources/beta/beta.py:556
Methodoutput_format
(self)
src/anthropic/lib/threads/_thread_state.py:238
Methodparams
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
← previousnext →4,201–4,300 of 12,274, ranked by callers