Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
13,873 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
13,873
◇
Types & classes
4,472
↳
Endpoints
93
↓ 1 callers
Function
load_pyproject
()
scripts/utils/check-dist.py:43
↓ 1 callers
Function
logged_options
()
tests/test_prepare.py:506
↓ 1 callers
Function
lru_cache
A version of functools.lru_cache that retains the type signature for the wrapped function arguments.
src/anthropic/_utils/_utils.py:442
↓ 1 callers
Function
main
()
scripts/detect-breaking-changes.py:88
↓ 1 callers
Function
main
()
scripts/utils/check-dependency-caps.py:29
↓ 1 callers
Function
main
(argv: Sequence[str] | None = None)
scripts/utils/ruffen-docs.py:50
↓ 1 callers
Function
main
()
scripts/utils/check-dist.py:245
↓ 1 callers
Function
main
(workdir: str)
tests/lib/environments/_schedules.py:89
↓ 1 callers
Function
main
()
examples/web_search_stream.py:6
↓ 1 callers
Function
main
()
examples/managed-agents-streaming-deltas-manual.py:23
↓ 1 callers
Function
main
()
examples/agents_comprehensive.py:17
↓ 1 callers
Function
main
()
examples/agents.py:8
↓ 1 callers
Function
main
()
examples/managed-agents-worker-dispatch.py:48
↓ 1 callers
Function
main
()
examples/tools_runner.py:44
↓ 1 callers
Function
main
()
examples/message_threads.py:18
↓ 1 callers
Function
main
()
examples/managed-agents-self-hosted-sandbox-worker.py:54
↓ 1 callers
Function
main
()
examples/tools_runner_deferred_streaming.py:26
↓ 1 callers
Function
main
()
examples/tools_runner_search_tool.py:64
↓ 1 callers
Function
main
()
examples/messages_stream.py:10
↓ 1 callers
Function
main
()
examples/tools_stream.py:8
↓ 1 callers
Function
main
()
examples/fallbacks.py:6
↓ 1 callers
Function
main
()
examples/mcp_tool_runner.py:22
↓ 1 callers
Function
main
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 callers
Function
main
()
examples/agents_with_files.py:9
↓ 1 callers
Function
make_request
()
tests/test_exceptions.py:25
↓ 1 callers
Function
make_status_error
(err_msg: str, *, body: object, response: httpx2.Response)
src/anthropic/_error_classes.py:353
↓ 1 callers
Function
make_stream_iterator
( content: Iterator[bytes], *, sync: bool, client: Anthropic, async_client: AsyncAnthropic
tests/test_streaming.py:394
↓ 1 callers
Function
make_tool_searcher
Returns a tool that Claude can use to search through all available tools
examples/tools_runner_search_tool.py:47
↓ 1 callers
Function
malformed_call_detail
(input: Dict[str, object])
src/anthropic/lib/tools/_beta_runner.py:1767
↓ 1 callers
Function
max_overlap
(browser: FakeBrowser)
tests/lib/tools/toolsets/test_pipeline.py:1015
↓ 1 callers
Method
member_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 callers
Function
merge_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 callers
Function
message_text
(event: BetaManagedAgentsAgentMessageEvent)
examples/managed-agents-streaming-deltas-manual.py:19
↓ 1 callers
Method
missing_stop
(self)
tests/lib/environments/test_worker_properties.py:206
↓ 1 callers
Function
model_json
(model: pydantic.BaseModel, *, indent: int | None = None)
src/anthropic/_compat.py:123
↓ 1 callers
Function
names_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 callers
Function
navigate
()
tests/lib/tools/toolsets/test_browser_runner.py:353
↓ 1 callers
Function
nested
(depth: int)
tests/test_prepare.py:730
↓ 1 callers
Method
new_cancel_scope
The end of the countdown cancels it.
src/anthropic/lib/tools/_beta_session_runner.py:960
↓ 1 callers
Function
new_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 callers
Method
next_attempt
(self, session: FakeSession, posts: list[Post])
tests/lib/tools/test_session_runner_properties.py:327
↓ 1 callers
Method
next_heartbeat_due_at
(self, heartbeat: Request)
tests/lib/environments/test_worker_properties.py:134
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:171
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:195
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:220
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:245
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:275
↓ 1 callers
Method
next_page_info
(self)
src/anthropic/pagination.py:305
↓ 1 callers
Function
once_cancelled
(outcome: Callable[[Any], Awaitable[Any]])
tests/lib/tools/_fake_sessions_api.py:857
↓ 1 callers
Function
overridden
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 callers
Function
pages
()
tests/test_prepare.py:783
↓ 1 callers
Function
parse_date
(value: date | StrBytesIntFloat)
src/anthropic/_compat.py:24
↓ 1 callers
Function
parse_datetime
(value: Union[datetime, StrBytesIntFloat])
src/anthropic/_compat.py:27
↓ 1 callers
Method
parsed_snapshot
(self)
src/anthropic/lib/streaming/_types.py:31
↓ 1 callers
Function
partial_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 callers
Function
path_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 callers
Function
pickle_round_trip
(error: AnthropicError)
tests/test_exceptions.py:33
↓ 1 callers
Function
platform_headers
(version: str, *, platform: Platform | None)
src/anthropic/_base_client.py:2687
↓ 1 callers
Method
platform_headers
(self)
src/anthropic/_base_client.py:861
↓ 1 callers
Function
predicate
()
tests/lib/tools/toolsets/test_pipeline.py:269
↓ 1 callers
Function
processes_naming
(pid: str)
tests/lib/tools/test_agent_toolset.py:1153
↓ 1 callers
Function
profile_to_ini
Convert an AWS config profile to an INI format string.
tests/lib/test_bedrock.py:92
↓ 1 callers
Function
public_members
(obj: griffe.Object | griffe.Alias)
scripts/detect-breaking-changes.py:48
↓ 1 callers
Function
public_members
(value: object)
tests/lib/test_platform_resources.py:86
↓ 1 callers
Function
push
(line: str)
src/anthropic/lib/tools/agent_toolset.py:1201
↓ 1 callers
Function
raising
(error: Exception)
tests/lib/tools/_fake_sessions_api.py:850
↓ 1 callers
Method
range_is_empty
(self)
src/anthropic/lib/tools/_files.py:49
↓ 1 callers
Function
read_base64
(file: Base64FileInput)
src/anthropic/_utils/_prepare.py:181
↓ 1 callers
Function
read_events
(sync: bool, stream: Any)
tests/test_open_telemetry.py:7942
↓ 1 callers
Function
read_file_content
(file: FileContent)
src/anthropic/_files.py:92
↓ 1 callers
Function
read_sdist
Readers differ in how they take odd headers, so every byte has to be what plain files give
scripts/utils/check-dist.py:163
↓ 1 callers
Function
read_wheel
Readers go by the directory at the end, by the header before each file or by both, so all of it has to agree
scripts/utils/check-dist.py:125
↓ 1 callers
Function
reconnects
(data: st.DataObject, steps: list[Step])
tests/lib/tools/test_session_runner_properties.py:501
↓ 1 callers
Function
record_api_call
Sets the attributes of the call that are not read off its request or its response as they are. Never raises. Returns the observer that records a
src/anthropic/lib/_tracing/_api_call.py:55
↓ 1 callers
Function
record_messages_create
Records the response of a `messages.create` call, and in content mode the request's messages too. A streamed Message is recorded from its events
src/anthropic/lib/_tracing/_api_call.py:74
↓ 1 callers
Method
record_partial_reply
Record a turn whose stream ended after `message_start` and before `message_stop`. The next turn starts a new thread because the server holds e
src/anthropic/lib/threads/_thread_state.py:343
↓ 1 callers
Method
refresh
(self, _request: object)
tests/lib/test_google_cloud.py:58
↓ 1 callers
Function
refuse
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_refusals.py:139
↓ 1 callers
Function
refused
(**options: Any)
tests/lib/tools/toolsets/test_computer_interface.py:271
↓ 1 callers
Method
rename
Rename or move a memory file or directory.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:274
↓ 1 callers
Function
render_browser_state
The `browser_state` block: the driver's tabs as reported with each URL and title folded to one line and held to the API's length limit, and `chang
src/anthropic/lib/tools/_toolsets/_render.py:225
↓ 1 callers
Function
report_of
The checked `BetaBrowserState` as the `Report` that `finish` renders: its tabs and wire changes as they stand, the SDK's own change kinds set apar
src/anthropic/lib/tools/_toolsets/_pipeline.py:94
↓ 1 callers
Function
reported_names
(repo: Path, *, baseline: dict[str, str], tip: dict[str, str])
tests/test_detect_breaking_changes.py:61
↓ 1 callers
Function
request_attributes
What every request of the call has in common. The call span starts with these, so that a sampler sees them.
src/anthropic/_tracing.py:860
↓ 1 callers
Function
request_header
The value that the last of `layers` to set the header `name` gives it. An `Omit` there leaves the header out.
src/anthropic/_tracing.py:842
↓ 1 callers
Function
request_path
(template: str, /, **values: object)
src/anthropic/lib/vertex/_client.py:427
↓ 1 callers
Function
requests_of
(make_runner: Callable[[Any, Any], Any])
tests/lib/tools/test_runners.py:3636
↓ 1 callers
Function
requirement
`text` as hatchling writes it
scripts/utils/check-dist.py:65
↓ 1 callers
Function
resolve_assignment_alias
(obj: griffe.Object | griffe.Alias)
scripts/detect-breaking-changes.py:13
↓ 1 callers
Function
resolve_import
(obj: griffe.Object | griffe.Alias)
scripts/detect-breaking-changes.py:35
↓ 1 callers
Function
resolve_open_telemetry
`option` with `propagation` and every field of its `traces`. The environment variables are for a client that is given no option, `None`: `env_ope
src/anthropic/_tracing.py:154
↓ 1 callers
Method
resolve_upload_documents
(self, context: BetaURLContext, document_ids: Sequence[str])
src/anthropic/lib/tools/_toolsets/_security.py:231
↓ 1 callers
Method
resolve_upload_documents
(self, context: Any, document_ids: Any)
tests/lib/tools/toolsets/test_enforcement.py:268
↓ 1 callers
Function
resolve_upload_paths
For `file_upload`: run `input.paths` and `input.document_ids` through the file policy before dispatch, so the driver receives what the policy retu
src/anthropic/lib/tools/_toolsets/_pipeline.py:340
↓ 1 callers
Method
resolve_upload_paths
(self, context: BetaURLContext, paths: Sequence[str])
src/anthropic/lib/tools/_toolsets/_security.py:228
↓ 1 callers
Method
resolve_upload_paths
(self, context: Any, paths: Any)
tests/lib/tools/toolsets/test_confirm.py:77
↓ 1 callers
Method
result
(tool_use_id: str, stdout: str)
tests/test_open_telemetry.py:6061
↓ 1 callers
Function
result_block_content
(content: object)
src/anthropic/lib/_tracing/_content.py:354
↓ 1 callers
Function
resumed_with
(*calls: Call)
tests/lib/tools/test_session_runner.py:351
↓ 1 callers
Method
retrieve
This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a re
src/anthropic/resources/beta/messages/batches.py:141
← previous
next →
1,801–1,900 of 13,873, ranked by callers