MCPcopy Create free account

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

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

↓ 1 callersMethod_take_notices
The refused-navigation line and the dialog lines as text blocks, now that a result can include them.
src/anthropic/lib/tools/_toolsets/_pipeline.py:222
↓ 1 callersFunction_text_cases
`text_cases.json`, the table both SDKs' tests read for the text folds: `{c*N}` stands for N copies of the character c, and where the SDKs differ o
tests/lib/tools/toolsets/test_pipeline.py:852
↓ 1 callersFunction_text_deltas
`text` split into one delta per word, which concatenate back to `text`.
tests/lib/threads/helpers.py:760
↓ 1 callersMethod_thread_for_turn
The `thread` field of a turn that sends `params`, the thread's fields with `overrides`. The server takes the create-only fields from the threa
src/anthropic/lib/threads/_thread_state.py:426
↓ 1 callersFunction_to_generated
Map a Parsed* wrapper to the generated block class it stands in for.
tests/lib/streaming/test_parsed_content_blocks.py:33
↓ 1 callersFunction_to_session_content
Bridge Messages-API tool-result content to the narrower Sessions-API content union. The two APIs share text/image/document/search_result block sh
src/anthropic/lib/tools/_beta_session_runner.py:217
↓ 1 callersFunction_tool_removal
(name: str)
tests/lib/tools/toolsets/test_runner.py:105
↓ 1 callersMethod_tools_for
(self, env: AgentToolContext)
src/anthropic/lib/environments/_worker.py:296
↓ 1 callersMethod_toolset_run
One member call, under the lock: the family's pipeline from the raw `tool_use.input` to the content.
src/anthropic/lib/tools/_toolsets/_base.py:318
↓ 1 callersMethod_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_base.py:403
↓ 1 callersFunction_transform_file
(file: FileTypes)
src/anthropic/_files.py:63
↓ 1 callersFunction_unchanged_since_hashed
(cached: _Hashed, st: os.stat_result)
src/anthropic/lib/tools/_file_store.py:410
↓ 1 callersFunction_union_members
Return the runtime classes in an `Annotated[Union[...], ...]` type alias.
tests/lib/streaming/test_parsed_content_blocks.py:22
↓ 1 callersFunction_unsupported_features
The `unsupported` values of a `thread_unsupported_request` rejection, none if it lists none, or `None` for any other error.
src/anthropic/lib/threads/_thread_state.py:599
↓ 1 callersMethod_validate_headers
Validate the headers a request is about to be sent with. `omitted` holds the (lowercase) names a header layer explicitly removed with `Omit`.
src/anthropic/_base_client.py:884
↓ 1 callersMethod_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/aws/_client.py:147
↓ 1 callersFunction_validate_non_model_type
(*, type_: type[_T], value: object)
src/anthropic/_models.py:1006
↓ 1 callersMethod_wait_to_retry
(self, attempt: int)
src/anthropic/lib/tools/_beta_session_runner.py:1052
↓ 1 callersFunction_walk_deadline
Stop a walk that uses `_GREP_CPU_SECONDS`, if this thread can take a signal that the host leaves unused.
src/anthropic/lib/tools/agent_toolset.py:1191
↓ 1 callersFunction_walk_grep
(rx: re.Pattern[str], search: Path)
src/anthropic/lib/tools/agent_toolset.py:1216
↓ 1 callersFunction_with_threads_beta
`headers` with the threads beta appended to a caller-set `anthropic-beta` header, which would otherwise replace the one `create()` builds from `be
src/anthropic/lib/threads/_thread_state.py:577
↓ 1 callersFunction_without_compaction_incompatible_params
A compaction request returns only the compaction block, never a reply, so the API rejects the params that only shape a reply. The runner's later r
src/anthropic/lib/tools/_beta_runner.py:147
↓ 1 callersFunction_without_format
(output_config: BetaOutputConfigParam)
src/anthropic/lib/tools/_beta_runner.py:143
↓ 1 callersFunction_wrapper_dir
Screen every member name (raising on path traversal, extracted or not), then return the wrapper directory shared by the members that will be e
src/anthropic/lib/tools/_skills.py:86
↓ 1 callersFunction_zip_info_is_dir
(info: zipfile.ZipInfo)
src/anthropic/lib/tools/_skills.py:111
↓ 1 callersFunction_zip_info_is_special
True for a Unix-host entry recorded as a symlink, device, FIFO or socket. Type bits from other hosts are not a mode, so those entries stay plain f
src/anthropic/lib/tools/_skills.py:104
↓ 1 callersFunctionaccepts_force_refresh
False for a legacy provider that takes no `force_refresh` argument; it is called without one.
src/anthropic/lib/credentials/_cache.py:42
↓ 1 callersFunctionaccumulator
The stable or the beta `accumulate_event` for a stream whose `message_start` is `event`.
src/anthropic/lib/_tracing/_streaming.py:130
↓ 1 callersMethodaclose
(self)
src/anthropic/lib/middleware/_fallbacks.py:1716
↓ 1 callersMethodaclose
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:205
↓ 1 callersMethodaclose
(self)
tests/utils.py:209
↓ 1 callersFunctionadded_tool
(marker: dict[str, Any])
tests/lib/threads/helpers.py:215
↓ 1 callersMethodadvance
(self, seconds: float)
tests/lib/environments/_schedules.py:299
↓ 1 callersMethodadvance
(self, seconds: float)
tests/lib/tools/_fake_sessions_api.py:1016
↓ 1 callersMethodaiter_bytes
(self)
tests/test_open_telemetry.py:643
↓ 1 callersMethodallowed_or_denied_calls
Oldest first.
src/anthropic/lib/tools/_beta_session_runner.py:758
↓ 1 callersMethodapply_later_steps
(self)
tests/lib/environments/_schedules.py:53
↓ 1 callersFunctionassert_empty_iter
(decoder: JSONLDecoder[Any] | AsyncJSONLDecoder[Any])
tests/decoders/test_jsonl.py:180
↓ 1 callersFunctionassert_incomplete_partial_input_response
(events: list[ParsedBetaMessageStreamEvent], message: BetaMessage)
tests/lib/streaming/test_beta_messages.py:270
↓ 1 callersFunctionassert_is_file_content
(obj: object, *, key: str | None = None)
src/anthropic/_files.py:33
↓ 1 callersFunctionassert_matches_model
(model: type[BaseModelT], value: BaseModelT, *, path: list[str])
tests/utils.py:41
↓ 1 callersFunctionassert_overloads_in_sync
Ensure that every @overload of overloaded_func contains all params from source_func.
src/anthropic/_utils/_reflection.py:62
↓ 1 callersFunctionasync_client
()
examples/vertex.py:29
↓ 1 callersFunctionasync_close_credentials
Async `close_credentials`: awaits the provider's `aclose()` if it has one, else calls `close()`.
src/anthropic/lib/credentials/_close.py:40
↓ 1 callersFunctionasync_raw_response
(request: AsyncRequest)
tests/utils.py:358
↓ 1 callersFunctionasync_read_base64
(file: Base64FileInput)
src/anthropic/_utils/_prepare.py:188
↓ 1 callersFunctionasync_read_file_content
(file: FileContent)
src/anthropic/_files.py:137
↓ 1 callersFunctionasync_serialize_data
`serialize_data`, reading `pathlib.Path` inputs without blocking the event loop.
src/anthropic/_utils/_prepare.py:80
↓ 1 callersFunctionasync_stop
Async version of `stop`, which a cancellation does not interrupt.
src/anthropic/lib/environments/_poller.py:309
↓ 1 callersFunctionavailable_tool_names
Fold mid-conversation `tool_removal` / `tool_addition` blocks over the locally runnable `tool_names`. These blocks arrive in `role: "system"`
src/anthropic/lib/tools/_tool_dispatch.py:178
↓ 1 callersMethodbash
(self)
src/anthropic/lib/tools/agent_toolset.py:317
↓ 1 callersMethodbefore_step
(self, session: FakeSession)
tests/lib/tools/_fake_sessions_api.py:901
↓ 1 callersMethodbehind_unanswered_call
(self, session: FakeSession, state: CallState)
tests/lib/tools/test_session_runner_properties.py:264
↓ 1 callersFunctionblock_part
(block: object)
src/anthropic/lib/_tracing/_content.py:298
↓ 1 callersFunctionbounded_tab
(tab: BetaBrowserStateTabEntryParam)
src/anthropic/lib/tools/_toolsets/_render.py:164
↓ 1 callersFunctionbuild_registry
()
src/anthropic/lib/tools/_toolsets/_registry.py:77
↓ 1 callersFunctionbuild_registry
()
src/anthropic/lib/tools/_toolsets/_computer_registry.py:53
↓ 1 callersMethodbuild_request
(options: FinalRequestOptions)
tests/test_client.py:350
↓ 1 callersFunctionbuild_wire_configs
The caller's `configs`, deep-copied, with `enabled: false` added for every member that is not served. Enabling such a member is a configuration er
src/anthropic/lib/tools/_toolsets/_base.py:473
↓ 1 callersFunctioncached_json_schema
`adapter.json_schema()`, cached. Callers share the dict, so `transform_schema()` copies from it.
src/anthropic/lib/_parse/_transform.py:99
↓ 1 callersFunctioncached_model_json_schema
`model.model_json_schema()`, cached and shared like `cached_json_schema()`.
src/anthropic/lib/_parse/_transform.py:125
↓ 1 callersFunctioncached_transformed_json_schema
`transform_schema(cached_json_schema(adapter))`, cached. Only `transformed_json_schema()` may hold the dict.
src/anthropic/lib/_parse/_transform.py:105
↓ 1 callersMethodcall
Execute member `name` with the raw `tool_use.input` and return the tool-result content. Raise `anthropic.lib.tools.ToolError` for a model-visi
src/anthropic/lib/tools/_toolsets/_runnable.py:112
↓ 1 callersMethodcall
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_runnable.py:157
↓ 1 callersMethodcall
(self, input: object)
tests/lib/tools/test_open_telemetry.py:870
↓ 1 callersMethodcall_tool
(self, name: str, arguments: dict[str, Any] | None = None)
tests/lib/tools/test_mcp_tool.py:62
↓ 1 callersMethodcallback
(old_params: Any)
tests/lib/threads/test_async_beta_threads.py:1562
↓ 1 callersFunctioncancel_consumer
()
tests/lib/tools/_fake_sessions_api.py:942
↓ 1 callersFunctioncarry_helper_tag
Return `params` carrying `source`'s helper tag, so the tag survives serializing a tagged object.
src/anthropic/lib/_stainless_helpers.py:108
↓ 1 callersFunctioncheck_flavour
Raise when one of toolset class `cls`'s methods `names` is written for the other flavour: `async def` on the synchronous toolset, where nothing wo
src/anthropic/lib/tools/_toolsets/_base.py:453
↓ 1 callersMethodcheck_idle_stop
(self, session: FakeSession)
tests/lib/tools/test_session_runner_properties.py:485
↓ 1 callersFunctioncheck_metadata
(archive: str, metadata: bytes, expected: tuple[list[str], str])
scripts/utils/check-dist.py:104
↓ 1 callersMethodcheck_posts
(self, session: FakeSession, id: str)
tests/lib/tools/test_session_runner_properties.py:452
↓ 1 callersMethodcheck_reconnects
(self, session: FakeSession)
tests/lib/tools/test_session_runner_properties.py:469
↓ 1 callersFunctioncheck_sdist
(path: Path, package: str, committed: dict[str, Committed])
scripts/utils/check-dist.py:236
↓ 1 callersFunctioncheck_wheel
(path: Path, package: str, pyproject: dict[str, Any], committed: dict[str, Committed])
scripts/utils/check-dist.py:211
↓ 1 callersFunctionchecked_error
`error` with each text block run through `check` and then bounded, or the same object when nothing changed. The bound comes after the check, so th
src/anthropic/lib/tools/_toolsets/_base.py:551
↓ 1 callersMethodclear_all_memory
Override the base implementation to provide file system clearing.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:620
↓ 1 callersFunctionclear_locals
(string: str, *, stacklevel: int)
tests/lib/utils.py:61
↓ 1 callersMethodclient
(self)
tests/lib/test_bedrock_mantle.py:684
↓ 1 callersMethodclose
Close the underlying HTTPX client. The client will *not* be usable after this.
src/anthropic/_base_client.py:2038
↓ 1 callersMethodclose
Close the response and release the connection. Automatically called if the response body is read to completion.
src/anthropic/_streaming.py:274
↓ 1 callersMethodclose
Stop the runner early and end its span. Use it when you won't resume the runner with `until_done()`. Iterating a closed runner yields nothing
src/anthropic/lib/tools/_beta_runner.py:648
↓ 1 callersMethodclose
(self)
src/anthropic/lib/tools/agent_toolset.py:330
↓ 1 callersMethodclose
(self)
src/anthropic/lib/tools/agent_toolset.py:826
↓ 1 callersMethodclose
Release any resource the toolset holds (a browser, a socket, a subprocess) when you are done with it. The tool runner never closes a toolset,
src/anthropic/lib/tools/_toolsets/_runnable.py:117
↓ 1 callersMethodclose
Release any resource the toolset holds when you are done with it. The tool runner never closes a toolset. The default only marks the toolset c
src/anthropic/lib/tools/_toolsets/_runnable.py:161
↓ 1 callersMethodclose
Close the response and release the connection. Automatically called if the response body is read to completion.
src/anthropic/lib/streaming/_beta_messages.py:271
↓ 1 callersMethodclose
Close the response and release the connection. Automatically called if the response body is read to completion.
src/anthropic/lib/streaming/_messages.py:259
↓ 1 callersMethodclose
Close the response body stream. This is called automatically if you consume the entire stream.
src/anthropic/_decoders/jsonl.py:43
↓ 1 callersMethodclose
(self)
tests/lib/tools/toolsets/_stubs.py:86
↓ 1 callersMethodclose_all
(self)
src/anthropic/lib/tools/_beta_session_runner.py:968
↓ 1 callersFunctionclose_credentials
Release any resources owned by a credential provider, if it exposes `close()`.
src/anthropic/lib/credentials/_close.py:33
↓ 1 callersMethodclose_open_blocks
content_block_stop events for any blocks still open.
src/anthropic/lib/middleware/_fallbacks.py:1320
↓ 1 callersMethodclose_soon_if
(self, condition: Callable[[str | None], bool], tasks: TaskGroup)
src/anthropic/lib/tools/_beta_session_runner.py:964
↓ 1 callersFunctionclose_what_earlier_tests_left_suspended
Closes the generators that earlier tests of this process walked away from, such as a tool runner's. Python closes one when it frees it, which can
tests/test_open_telemetry.py:8200
↓ 1 callersFunctioncloser
()
tests/lib/tools/toolsets/test_pipeline.py:1243
↓ 1 callersFunctioncoerce_float
(val: str)
src/anthropic/_utils/_utils.py:355
↓ 1 callersFunctioncoerce_integer
(val: str)
src/anthropic/_utils/_utils.py:351
↓ 1 callersMethodcollect_from
(self, chunk: bytes)
src/anthropic/lib/tools/_files.py:55
← previousnext →1,601–1,700 of 14,068, ranked by callers