MCPcopy Create free account

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

Functions4,447 in github.com/anthropics/anthropic-sdk-python

↓ 1 callersMethodstart
Track a content_block_start, shifting `event["index"]`.
src/anthropic/lib/middleware/_fallbacks.py:1209
↓ 1 callersMethodstr_replace
Replace text in a memory file.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:257
↓ 1 callersFunctionstream_error
()
examples/text_completions_streaming.py:43
↓ 1 callersMethodstream_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:569
↓ 1 callersMethodstringify
( self, params: Params, *, array_format: ArrayFormat | NotGiven = not_given,
src/anthropic/_qs.py:36
↓ 1 callersMethodsync_auth_flow
(self, request: httpx.Request)
src/anthropic/lib/credentials/_auth.py:105
↓ 1 callersFunctionsync_client
()
examples/vertex.py:6
↓ 1 callersFunctionsync_stream
()
examples/text_completions_streaming.py:15
↓ 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
(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:365
↓ 1 callersMethoduntil_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:121
↓ 1 callersMethoduntil_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:270
↓ 1 callersMethoduntil_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:266
↓ 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
Method__aenter__
(self)
src/anthropic/_response.py:676
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:222
Method__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:321
Method__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:218
Method__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:316
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:680
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:225
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:326
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:221
Method__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:321
Method__aexit__
(self, *exc: object)
tests/lib/tools/test_session_runner.py:137
Method__aiter__
(self)
src/anthropic/_base_client.py:327
Method__aiter__
(self)
src/anthropic/_base_client.py:353
Method__aiter__
(self)
src/anthropic/_streaming.py:238
Method__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:456
Method__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:360
Method__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1559
Method__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:218
Method__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:214
Method__aiter__
(self)
src/anthropic/_decoders/jsonl.py:121
Method__aiter__
(self)
tests/lib/tools/test_session_runner.py:140
Method__anext__
(self)
src/anthropic/lib/tools/_beta_runner.py:453
Method__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:215
Method__anext__
(self)
src/anthropic/lib/streaming/_messages.py:211
Method__anext__
(self)
src/anthropic/_decoders/jsonl.py:118
Method__await__
(self)
src/anthropic/_base_client.py:311
Method__bool__
(self)
src/anthropic/_types.py:151
Method__bool__
(self)
src/anthropic/_types.py:181
Method__bool__
(self)
src/anthropic/_base_client.py:2408
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:40
Method__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:115
Method__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:126
Method__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:450
Method__call__
(self)
src/anthropic/lib/credentials/_providers.py:690
Method__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:220
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:1350
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1359
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1406
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1466
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1483
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1499
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2674
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2849
Method__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2902
Method__contains__
(self, value: object, /)
src/anthropic/_types.py:268
Method__del__
(self)
src/anthropic/_base_client.py:968
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:652
Method__enter__
(self: _T)
src/anthropic/_base_client.py:1053
Method__enter__
(self)
src/anthropic/lib/credentials/_workload.py:209
Method__enter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:71
Method__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:73
Method__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:170
Method__enter__
(self)
src/anthropic/lib/streaming/_messages.py:166
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:656
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1056
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:212
Method__exit__
(self, *exc_info: object)
src/anthropic/lib/middleware/_fallbacks.py:76
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:76
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:175
Method__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:171
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:437
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:602
← previousnext →801–900 of 4,447, ranked by callers