Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,431 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,431
◇
Types & classes
4,007
↳
Endpoints
47
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/test_compliance_settings.py:64
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_compliance_settings.py:126
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/test_users.py:78
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_users.py:238
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/test_service_accounts.py:127
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_service_accounts.py:330
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_issuers.py:144
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_issuers.py:364
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_rules.py:178
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_rules.py:433
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:93
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:342
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:93
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:341
Method
test_streaming_response_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:52
Method
test_streaming_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:185
Method
test_streaming_response_upload
(self, client: Anthropic)
tests/api_resources/test_files.py:245
Method
test_streaming_response_upload
(self, async_client: AsyncAnthropic)
tests/api_resources/test_files.py:481
Method
test_streaming_response_upload
(self, client: Anthropic)
tests/api_resources/beta/test_files.py:273
Method
test_streaming_response_upload
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_files.py:538
Method
test_streaming_response_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:282
Method
test_streaming_response_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:567
Method
test_streaming_response_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:257
Method
test_streaming_response_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:516
Method
test_streaming_response_validate_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:202
Method
test_streaming_response_validate_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:445
Method
test_streaming_response_validate_repository
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:246
Method
test_streaming_response_validate_repository
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:489
Method
test_streaming_runner
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1473
Method
test_streaming_runner_does_not_add_the_structured_outputs_beta
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:156
Method
test_streaming_runner_keeps_messages_appended_after_a_mid_loop_rewrite
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:550
Method
test_streaming_runner_set_messages_params_adds_ahead_of_the_in_flight_reply
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:141
Method
test_streaming_runner_set_messages_params_replaces_the_history_mid_loop
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1241
Method
test_streaming_runner_whose_stream_fails_leaves_the_thread_free
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:470
Method
test_streaming_runner_whose_stream_fails_leaves_the_thread_free
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:1280
Function
test_streams_without_a_stream_class
(client_class: ClientClass)
tests/lib/test_client_copy.py:458
Function
test_strict_validation_unknown_fields
()
tests/test_models.py:175
Function
test_string_not_allowed
()
tests/test_files.py:101
Function
test_string_schema_with_format_and_default
()
tests/lib/_parse/test_transform.py:205
Function
test_string_schema_without_format
()
tests/lib/_parse/test_transform.py:226
Function
test_strip_top
()
tests/lib/tools/test_skills.py:155
Method
test_strips_connection_header
Connection header must not be signed (may be stripped by proxies).
tests/lib/test_aws_auth.py:505
Function
test_strips_inherited_authorization_from_parent_default_headers
If the parent client was configured with a custom `default_headers={"Authorization": ...}` (or `X-Api-Key`), those would otherwise win over th
tests/lib/test_scoped_client.py:88
Function
test_strips_omit_and_not_given
(send: Send)
tests/test_prepare.py:215
Function
test_symlink_escape_after_dangling_symlink_is_rejected
( tmp_path: Path, make_tool: Any, tool_input: dict[str, str] )
tests/lib/tools/test_agent_toolset.py:1039
Method
test_symlink_validation_reject_creating_files_through_symlink_pointing_outside
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:672
Method
test_symlink_validation_reject_creating_files_through_symlink_pointing_outside
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1346
Method
test_symlink_validation_reject_parent_directory_that_is_symlink_pointing_outside
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:688
Method
test_symlink_validation_reject_parent_directory_that_is_symlink_pointing_outside
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1363
Method
test_symlink_validation_reject_symlink_pointing_outside_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:630
Method
test_symlink_validation_reject_symlink_pointing_outside_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1303
Method
test_sync_callable_object_handles_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:559
Method
test_sync_callable_returning_a_coroutine_is_rejected
The coroutine is closed, so nothing warns that it was never awaited.
tests/lib/test_credentials.py:1617
Method
test_sync_callable_returning_a_coroutine_is_rejected
`lambda: fetch()` is a sync provider that hands back a coroutine. It fails before any request is sent.
tests/lib/test_credentials.py:3621
Method
test_sync_client_accepts_a_provider_that_only_has_aclose
As on the sync client before async providers existed: `aclose()` is not its hook, so it is left alone.
tests/lib/test_credentials.py:4004
Method
test_sync_client_accepts_sync_callable_object
(self)
tests/test_middleware.py:553
Method
test_sync_client_calls_close_and_ignores_aclose
(self, in_a_partial: bool)
tests/lib/test_credentials.py:3990
Method
test_sync_client_rejects_an_async_close
(self, in_a_partial: bool)
tests/lib/test_credentials.py:3980
Method
test_sync_client_rejects_async_callable_object
(self)
tests/test_middleware.py:524
Method
test_sync_client_rejects_async_handle_override
(self)
tests/test_middleware.py:582
Method
test_sync_client_rejects_non_callable
(self)
tests/test_middleware.py:574
Method
test_sync_context_manager_tool
(self)
tests/lib/tools/test_functions.py:459
Function
test_sync_intervals_below_the_floor_are_rejected
(tmp_path: Path)
tests/lib/tools/memory_sync/test_memory_sync.py:718
Function
test_sync_matrix
( tmp_path: Path, clock: Clock, name: str, local: Any, remote: Any, disk: Any, sto
tests/lib/tools/memory_sync/test_memory_sync.py:486
Method
test_sync_provider_runs_off_the_event_loop_thread
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3610
Method
test_sync_providers_are_not_detected_as_async
(self, shape: Callable[..., Any])
tests/lib/test_credentials.py:3595
Function
test_sync_token_provider_on_async_client_runs_off_event_loop
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:452
Function
test_sync_tool_runner_rejects_an_async_toolset
(client: Anthropic)
tests/lib/tools/toolsets/test_runner.py:746
Function
test_sync_tool_runs_off_the_event_loop
A sync tool runs on a worker thread: the event loop keeps running while its body blocks.
tests/lib/tools/test_session_runner.py:1910
Method
test_system_instructions_are_removed_first
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6613
Method
test_system_instructions_go_before_the_input_and_the_output
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6636
Method
test_system_instructions_lose_parts_from_their_start
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6658
Method
test_system_or_a_tool_edited_in_place_is_refused_and_a_thread_from_the_params_takes_the_edit
( self, respx_mock: MockRouter, field: str, edit: InPlaceEdit )
tests/lib/threads/test_beta_threads.py:2066
Method
test_system_or_a_tool_edited_in_place_is_refused_and_a_thread_from_the_params_takes_the_edit
( self, respx_mock: MockRouter, field: str, edit: InPlaceEdit )
tests/lib/threads/test_async_beta_threads.py:924
Function
test_tab_members_render_the_browser_state_block_alone
()
tests/lib/tools/toolsets/test_pipeline.py:184
Method
test_tags_the_original_and_fallback_requests
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:698
Function
test_tar_path_screen_applies_to_skipped_members
A member that would be skipped for its type is still subject to the path-traversal screen, so the archive is refused as a whole.
tests/lib/tools/test_skills.py:398
Function
test_tar_pax_global_header_is_not_extracted
`git archive` tarballs start with a PAX global header; it is metadata, not a member, and must neither appear on disk nor stop wrapper stripping.
tests/lib/tools/test_skills.py:358
Function
test_tar_preserves_executable_bit
(tmp_path: Path)
tests/lib/tools/test_skills.py:238
Function
test_tar_special_members_are_skipped
(tmp_path: Path)
tests/lib/tools/test_skills.py:282
Function
test_tar_top_level_special_does_not_defeat_wrapper_stripping
(tmp_path: Path)
tests/lib/tools/test_skills.py:347
Function
test_terminated_event_ends_iteration
()
tests/lib/tools/test_session_runner.py:1316
Function
test_termination_on_live_stream_after_failed_history_read_cancels_idle_countdown
After a failed history read, the countdown may come from an idle that the session has left. A termination on the live stream cancels it, running o
tests/lib/tools/test_session_runner.py:1608
Function
test_text_completions_path_is_not_rewritten
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:926
Function
test_text_completions_path_is_not_rewritten_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:938
Method
test_text_content
(self)
tests/lib/tools/test_mcp_tool.py:77
Method
test_text_content_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:82
Function
test_text_io_is_utf8_under_ascii_locale
Text I/O is explicitly UTF-8: an ASCII-locale host (LANG=C) must not mislabel valid UTF-8 as binary. Runs in a subprocess because the locale d
tests/lib/tools/test_agent_toolset.py:592
Function
test_text_members_render_verbatim_and_empty_text_gets_a_placeholder
()
tests/lib/tools/toolsets/test_pipeline.py:173
Function
test_text_mode_files_elsewhere_are_rejected
( send: Send, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch )
tests/test_prepare.py:616
Method
test_text_resource
(self)
tests/lib/tools/test_mcp_tool.py:215
Method
test_text_resource
(self)
tests/lib/tools/test_mcp_tool.py:264
Function
test_the_abstract_classes_declare_every_member_and_the_constructor_options
()
tests/lib/tools/toolsets/test_surface.py:103
Function
test_the_abstract_classes_declare_every_member_and_the_constructor_options
()
tests/lib/tools/toolsets/test_computer_surface.py:68
Method
test_the_applications_code_between_items_keeps_its_own_context
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1361
Method
test_the_applications_conversation_id_goes_before_a_session_threads
( self, call: ThreadCall, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4395
Function
test_the_async_class_cuts_a_refusal_raised_before_the_call
()
tests/lib/tools/toolsets/test_computer_pipeline.py:386
Function
test_the_async_class_enforces_upload_roots_too
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:461
Function
test_the_async_class_names_its_confirm_refusals_the_same_way
()
tests/lib/tools/toolsets/test_refusals.py:211
Function
test_the_async_class_names_its_refusals_the_same_way
()
tests/lib/tools/toolsets/test_refusals.py:192
← previous
next →
11,001–11,100 of 12,431, ranked by callers