MCPcopy Create free account

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

Functions5,068 in github.com/anthropics/anthropic-sdk-python

↓ 1 callersFunctiontakes_pydantic
(model: pydantic.BaseModel)
tests/test_models.py:637
↓ 1 callersFunctionto_aiter
(iter: Iterator[bytes])
tests/decoders/test_jsonl.py:63
↓ 1 callersMethodto_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 callersMethodto_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:73
↓ 1 callersMethodto_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:88
↓ 1 callersFunctionto_thread
( func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs )
src/anthropic/_utils/_sync.py:16
↓ 1 callersFunctiontransform
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 callersMethoduntil_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:472
↓ 1 callersMethoduntil_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:125
↓ 1 callersMethoduntil_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:278
↓ 1 callersMethoduntil_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:274
↓ 1 callersFunctionvalidate_async_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:107
↓ 1 callersFunctionvalidate_sync_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:85
↓ 1 callersMethodview
View the contents of a memory path.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:247
↓ 1 callersFunctionwalk
(e: Optional[BaseException])
tests/lib/test_credentials.py:3521
↓ 1 callersFunctionwarn_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 callersFunctionwarn_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 callersFunctionwrite
Write a file, creating parent directories as needed.
src/anthropic/lib/tools/agent_toolset.py:679
Method__aenter__
(self)
src/anthropic/_response.py:684
Method__aenter__
(self: _T)
src/anthropic/_base_client.py:1792
Method__aenter__
(self)
src/anthropic/_streaming.py:341
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:688
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1795
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:344
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:326
Method__aiter__
(self)
src/anthropic/_base_client.py:352
Method__aiter__
(self)
src/anthropic/_streaming.py:238
Method__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:467
Method__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:467
Method__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1630
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/_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:464
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:310
Method__bool__
(self)
src/anthropic/_types.py:151
Method__bool__
(self)
src/anthropic/_types.py:181
Method__bool__
(self)
src/anthropic/_base_client.py:2409
Method__call__
(self)
src/anthropic/lib/tools/_beta_functions.py:180
Method__call__
(self, *_args: Any, **_kwds: Any)
src/anthropic/lib/tools/_beta_functions.py:229
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:298
Method__call__
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:309
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__contains__
(self, value: object, /)
src/anthropic/_types.py:268
Method__del__
(self)
src/anthropic/_base_client.py:967
Method__del__
(self)
src/anthropic/_base_client.py:1709
Method__dir__
(self)
src/anthropic/_utils/_proxy.py:40
Method__enter__
(self)
src/anthropic/_response.py:660
Method__enter__
(self: _T)
src/anthropic/_base_client.py:1052
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:664
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1055
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:175
Method__exit__
( self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException],
src/anthropic/lib/credentials/_workload.py:241
Method__exit__
(self, *exc_info: object)
src/anthropic/lib/middleware/_fallbacks.py:86
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:80
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:179
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:175
Method__get__
(self, instance: None, owner: type[Any] | None = None)
src/anthropic/_compat.py:217
Method__get_pydantic_core_schema__
( cls, source_type: Any, handler: GetCoreSchemaHandler, )
src/anthropic/_models.py:443
Method__getattr__
(self, attr: str)
src/anthropic/types/beta/beta_managed_agents_custom_tool_input_schema.py:30
Method__getattr__
(self, attr: str)
src/anthropic/_utils/_proxy.py:19
Method__getattr__
(self, attr: str)
tests/test_models.py:952
Method__getitem__
(self, index: SupportsIndex, /)
src/anthropic/_types.py:265
Method__init__
(self)
src/anthropic/_response.py:610
Method__init__
(self)
src/anthropic/_response.py:637
Method__init__
(self, request_func: Callable[[], _APIResponseT])
src/anthropic/_response.py:656
← previousnext →901–1,000 of 5,068, ranked by callers