MCPcopy Create free account

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

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

↓ 1 callersFunctiongit
(repo: Path, *args: str)
tests/test_detect_breaking_changes.py:48
↓ 1 callersFunctiongit_hash
(data: bytes)
scripts/utils/check-dist.py:47
↓ 1 callersFunctionglobal_tracer_provider_loads
Whether OpenTelemetry can give its global tracer provider, which a client without a `tracer_provider` uses. Asked once: OpenTelemetry loads the p
src/anthropic/_tracing.py:262
↓ 1 callersMethodhandle
(self, request: APIRequest, call_next: CallNext)
src/anthropic/lib/middleware/_fallbacks.py:199
↓ 1 callersMethodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:235
↓ 1 callersMethodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:239
↓ 1 callersFunctionhas_async_close
True if the provider's `close()` is `async def`, which only `AsyncAnthropic` can await.
src/anthropic/lib/credentials/_close.py:27
↓ 1 callersFunctionhas_upper_bound
(requirement: Requirement)
scripts/utils/check-dependency-caps.py:25
↓ 1 callersFunctionheader_value
The header `value` as an attribute of `type`: its parts between commas for a list. `None` for an empty one.
src/anthropic/_tracing.py:852
↓ 1 callersMethodheartbeat
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating se
src/anthropic/resources/beta/environments/work.py:362
↓ 1 callersFunctionhuman_join
(seq: Sequence[str], *, delim: str = ", ", final: str = "or")
src/anthropic/_utils/_utils.py:207
↓ 1 callersFunctionimage_block
One image block around the base64 `data` a screenshot or zoom member returned.
src/anthropic/lib/tools/_toolsets/_render.py:95
↓ 1 callersMethodinject
(self, carrier: Any, context: Context | None = None, setter: Any = None)
tests/test_open_telemetry.py:7921
↓ 1 callersFunctioninput_field
(input: BaseModel, path: str)
src/anthropic/lib/tools/_toolsets/_render.py:63
↓ 1 callersFunctioninput_problem
One pydantic error as `loc: message` (the value is not echoed).
src/anthropic/lib/tools/_toolsets/_base.py:525
↓ 1 callersMethodinsert
Insert text at a specific line number in a memory file.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:264
↓ 1 callersFunctionis_basemodel
Returns whether or not the given type is either a `BaseModel` or a union of `BaseModel`
src/anthropic/_models.py:610
↓ 1 callersFunctionis_ipv4_hostname
(hostname: str)
src/anthropic/_utils/_httpx.py:16
↓ 1 callersFunctionis_ipv6_hostname
(hostname: str)
src/anthropic/_utils/_httpx.py:24
↓ 1 callersFunctionis_iterable
(obj: object)
src/anthropic/_utils/_utils.py:202
↓ 1 callersFunctionis_list_type
(typ: type)
src/anthropic/_utils/_typing.py:25
↓ 1 callersMethodis_path_visible
Whether a `download_completed` path may reach the model. Only `True` shows it; any other answer forwards the event without it.
src/anthropic/lib/tools/_toolsets/_hooks.py:70
↓ 1 callersFunctionis_primitive
(value: object)
src/anthropic/lib/_parse/_transform.py:231
↓ 1 callersFunctionis_sequence
(obj: object)
src/anthropic/_utils/_utils.py:178
↓ 1 callersFunctionis_sequence_type
(typ: type)
src/anthropic/_utils/_typing.py:29
↓ 1 callersFunctionis_stream_class_type
TypeGuard for determining whether or not the given type is a subclass of `Stream` / `AsyncStream`
src/anthropic/_streaming.py:458
↓ 1 callersFunctionis_typevar
(typ: type)
src/anthropic/_utils/_typing.py:48
↓ 1 callersFunctionitems
()
tests/test_prepare.py:572
↓ 1 callersMethoditer_bytes
(self)
tests/test_open_telemetry.py:640
↓ 1 callersMethoditer_pages
(self: SyncPageT)
src/anthropic/_base_client.py:312
↓ 1 callersMethoditer_pages
(self: AsyncPageT)
src/anthropic/_base_client.py:395
↓ 1 callersFunctionjs_call
A call to the browser's `javascript_exec`.
tests/lib/tools/test_runner_eager_toolsets.py:424
↓ 1 callersFunctionjson_body
(response: httpx2.Response)
src/anthropic/_tracing.py:692
↓ 1 callersFunctionjson_safe
Translates a mapping / sequence recursively in the same fashion as `pydantic` v2's `model_dump(mode="json")`.
src/anthropic/_utils/_utils.py:452
↓ 1 callersFunctionlayout
The identity and contents of `value` and of everything inside it.
tests/test_prepare.py:680
↓ 1 callersMethodlist
(self, memory_store_id: str, **kwargs: Any)
tests/lib/tools/memory_sync/test_memory_sync.py:667
↓ 1 callersFunctionlists_in
The list types among the members of a union.
tests/test_open_telemetry.py:8279
↓ 1 callersFunctionload_auth
(*, project_id: str | None)
src/anthropic/lib/vertex/_auth.py:17
↓ 1 callersFunctionload_default_credentials
Load Application Default Credentials with the `cloud-platform` scope and mint an initial access token. Returns the credentials object and the
src/anthropic/lib/_extras/_google_auth.py:46
↓ 1 callersFunctionload_fixture
Load a fixture file from the fixtures directory.
tests/lib/streaming/helpers.py:10
↓ 1 callersFunctionload_pyproject
()
scripts/utils/check-dist.py:43
↓ 1 callersFunctionlogged_options
()
tests/test_prepare.py:506
↓ 1 callersFunctionlru_cache
A version of functools.lru_cache that retains the type signature for the wrapped function arguments.
src/anthropic/_utils/_utils.py:442
↓ 1 callersFunctionmain
()
scripts/detect-breaking-changes.py:88
↓ 1 callersFunctionmain
()
scripts/utils/check-dependency-caps.py:29
↓ 1 callersFunctionmain
(argv: Sequence[str] | None = None)
scripts/utils/ruffen-docs.py:50
↓ 1 callersFunctionmain
()
scripts/utils/check-dist.py:245
↓ 1 callersFunctionmain
()
examples/web_search_stream.py:6
↓ 1 callersFunctionmain
()
examples/managed-agents-streaming-deltas-manual.py:23
↓ 1 callersFunctionmain
()
examples/agents_comprehensive.py:17
↓ 1 callersFunctionmain
()
examples/agents.py:8
↓ 1 callersFunctionmain
()
examples/managed-agents-worker-dispatch.py:48
↓ 1 callersFunctionmain
()
examples/tools_runner.py:44
↓ 1 callersFunctionmain
()
examples/message_threads.py:18
↓ 1 callersFunctionmain
()
examples/managed-agents-self-hosted-sandbox-worker.py:54
↓ 1 callersFunctionmain
()
examples/tools_runner_deferred_streaming.py:26
↓ 1 callersFunctionmain
()
examples/tools_runner_search_tool.py:64
↓ 1 callersFunctionmain
()
examples/messages_stream.py:10
↓ 1 callersFunctionmain
()
examples/tools_stream.py:8
↓ 1 callersFunctionmain
()
examples/fallbacks.py:6
↓ 1 callersFunctionmain
()
examples/mcp_tool_runner.py:22
↓ 1 callersFunctionmain
Primary scenario: drive a session yourself and watch each tool call. No work queue and no lease are involved — we create the session, send a
examples/managed-agents-observe-tool-calls.py:52
↓ 1 callersFunctionmain
()
examples/agents_with_files.py:9
↓ 1 callersFunctionmake_request
()
tests/test_exceptions.py:25
↓ 1 callersFunctionmake_status_error
(err_msg: str, *, body: object, response: httpx2.Response)
src/anthropic/_error_classes.py:247
↓ 1 callersFunctionmake_stream_iterator
( content: Iterator[bytes], *, sync: bool, client: Anthropic, async_client: AsyncAnthropic
tests/test_streaming.py:394
↓ 1 callersFunctionmake_tool_searcher
Returns a tool that Claude can use to search through all available tools
examples/tools_runner_search_tool.py:47
↓ 1 callersFunctionmalformed_call_detail
(input: Dict[str, object])
src/anthropic/lib/tools/_beta_runner.py:1767
↓ 1 callersFunctionmax_overlap
(browser: FakeBrowser)
tests/lib/tools/toolsets/test_pipeline.py:1015
↓ 1 callersMethodmember_enabled
Whether `configs` leave `name` enabled, failing closed when the answer is unclear. Only a real boolean `enabled` turns a member on or off. An
src/anthropic/lib/tools/_toolsets/_base.py:134
↓ 1 callersFunctionmerge_pending_changes
State changes held back from earlier calls (a failed call's, or a popup's `tab_opened` after `new_tab`), followed by this report's own, coalesced
src/anthropic/lib/tools/_toolsets/_pipeline.py:230
↓ 1 callersFunctionmessage_text
(event: BetaManagedAgentsAgentMessageEvent)
examples/managed-agents-streaming-deltas-manual.py:19
↓ 1 callersFunctionmodel_json
(model: pydantic.BaseModel, *, indent: int | None = None)
src/anthropic/_compat.py:123
↓ 1 callersFunctionnames_network_or_device
Whether, on Windows, `candidate` is a UNC / device-namespace path or has a component naming a DOS device. Elsewhere these are ordinary names (`aux
src/anthropic/lib/tools/_toolsets/_security.py:42
↓ 1 callersFunctionnavigate
()
tests/lib/tools/toolsets/test_browser_runner.py:353
↓ 1 callersFunctionnested
(depth: int)
tests/test_prepare.py:730
↓ 1 callersFunctionnew_tab_changes
The changes for this block and the changes to hold, as `(keep, held)`. On a `new_tab` result (`opened` is the tab it opened) the block carries exa
src/anthropic/lib/tools/_toolsets/_pipeline.py:262
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:171
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:195
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:220
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:245
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:275
↓ 1 callersMethodnext_page_info
(self)
src/anthropic/pagination.py:305
↓ 1 callersMethodnote_event
Arm the clock on an idle that ends the turn, disarm it on any other event that is not neutral. `user.tool_confirmation` events are neutral: t
src/anthropic/lib/tools/_beta_session_runner.py:186
↓ 1 callersFunctionon_call
(i: int)
tests/lib/tools/memory_sync/test_e2e_memory.py:138
↓ 1 callersFunctionoverridden
Those of `names` that `cls` overrides, by method identity against the family's abstract classes (their own member and `execute` bodies are `defaul
src/anthropic/lib/tools/_toolsets/_base.py:439
↓ 1 callersFunctionpages
()
tests/test_prepare.py:783
↓ 1 callersFunctionparse_date
(value: date | StrBytesIntFloat)
src/anthropic/_compat.py:24
↓ 1 callersFunctionparse_datetime
(value: Union[datetime, StrBytesIntFloat])
src/anthropic/_compat.py:27
↓ 1 callersMethodparsed_snapshot
(self)
src/anthropic/lib/streaming/_types.py:31
↓ 1 callersFunctionpartial_tool_use_stream_response
A streamed reply with a finished text block followed by a `tool_use` block whose input is cut off before `content_block_stop`, as a client that st
tests/lib/threads/helpers.py:457
↓ 1 callersMethodpatch
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1689
↓ 1 callersFunctionpath_visible
The file policy's verdict on one download path, hidden without a policy. Only `True` shows it. A `ToolsetUsageError` propagates. Any other excepti
src/anthropic/lib/tools/_toolsets/_render.py:207
↓ 1 callersFunctionpickle_round_trip
(error: AnthropicError)
tests/test_exceptions.py:33
↓ 1 callersFunctionplatform_headers
(version: str, *, platform: Platform | None)
src/anthropic/_base_client.py:2671
↓ 1 callersMethodplatform_headers
(self)
src/anthropic/_base_client.py:853
↓ 1 callersFunctionpredicate
()
tests/lib/tools/toolsets/test_pipeline.py:269
↓ 1 callersFunctionprofile_to_ini
Convert an AWS config profile to an INI format string.
tests/lib/test_bedrock.py:91
↓ 1 callersFunctionpublic_members
(obj: griffe.Object | griffe.Alias)
scripts/detect-breaking-changes.py:48
↓ 1 callersFunctionpublic_members
(value: object)
tests/lib/test_platform_resources.py:86
← previousnext →1,601–1,700 of 12,274, ranked by callers