MCPcopy Create free account

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

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

Methodtest_bedrock_runner_never_threads
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:801
Methodtest_beta_files_not_available
(self)
tests/lib/test_bedrock_mantle.py:204
Methodtest_beta_header_dedupe_is_token_based
The dedupe check matches whole comma-separated flags, not substrings. A pre-existing flag containing the OAuth beta as a prefix (e.g. a future
tests/lib/test_credentials.py:2577
Methodtest_beta_header_not_duplicated
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2564
Methodtest_beta_messages_available
(self)
tests/lib/test_bedrock_mantle.py:196
Functiontest_beta_messages_helpers_are_bound
()
tests/lib/test_bedrock.py:840
Methodtest_beta_messages_helpers_are_bound
(self)
tests/lib/test_vertex.py:656
Methodtest_beta_messages_helpers_are_bound
(self)
tests/lib/test_vertex.py:1191
Functiontest_beta_messages_methods_are_up_to_date
( platform: str, sync: bool, view: str | None, client: Anthropic, async_client: AsyncAnthropic )
tests/lib/test_platform_resources.py:101
Functiontest_beta_messages_raw_response
(platform: str, method: str, sync: bool)
tests/lib/test_platform_resources.py:120
Methodtest_beta_models_not_available
(self)
tests/lib/test_bedrock_mantle.py:200
Methodtest_beta_skills_not_available
(self)
tests/lib/test_bedrock_mantle.py:208
Functiontest_beta_tool_runner_routes_through_invoke
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:787
Functiontest_beta_tool_runner_routes_through_invoke_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:815
Methodtest_beta_tool_runner_routes_through_raw_predict
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:632
Methodtest_beta_tool_runner_routes_through_raw_predict
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:1167
Functiontest_betas_param_and_extra_headers_case_variant
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:949
Methodtest_between_tools_thinking_degrades_to_disabled_on_the_hop
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:355
Methodtest_between_tools_thinking_degrades_to_disabled_on_the_hop
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:788
Methodtest_between_tools_thinking_degrades_to_disabled_on_the_hop
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:338
Methodtest_binary_content_upload
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:1051
Methodtest_binary_content_upload
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:2506
Methodtest_binary_content_upload_with_asynciterator
(self)
tests/test_client.py:2522
Methodtest_binary_content_upload_with_body_is_rejected
(self, client: Anthropic)
tests/test_client.py:1094
Methodtest_binary_content_upload_with_body_is_rejected
(self, async_client: AsyncAnthropic)
tests/test_client.py:2549
Methodtest_binary_content_upload_with_iterator
(self)
tests/test_client.py:1067
Functiontest_binary_media_types_track_generated_api_types
Pin the read tool's extension map to the codegen'd media-type literals. When a spec change adds or removes a supported image/document media type,
tests/lib/tools/test_agent_toolset.py:470
Methodtest_bind_base_url
`bind_base_url` sets the token-exchange URL; unbound → `DEFAULT_BASE_URL`.
tests/lib/test_credentials.py:1220
Methodtest_bind_base_url_http_rejected
(self)
tests/lib/test_credentials.py:1242
Methodtest_bind_base_url_precedence
`bind_base_url` slots between the config file's own `base_url` field and the hard-coded default: config → bound → default.
tests/lib/test_credentials.py:403
Methodtest_blob_resource
(self)
tests/lib/tools/test_mcp_tool.py:271
Methodtest_block_sent_as_its_json_is_recorded_by_its_type
( self, spans: Spans, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:2267
Functiontest_boolean_schema
()
tests/lib/_parse/test_transform.py:254
Methodtest_both_provided_passes
(self)
tests/lib/test_aws_auth.py:22
Functiontest_browser_state_is_abstract
()
tests/lib/tools/toolsets/test_interface.py:77
Methodtest_builds_request_b_as_a_shape_b_continuation
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:304
Functiontest_bytes_and_files_elsewhere_are_rejected
( send: Send, body: object, monkeypatch: pytest.MonkeyPatch )
tests/test_prepare.py:608
Methodtest_call_empty_content_returns_empty_list
(self)
tests/lib/tools/test_mcp_tool.py:383
Methodtest_call_error
(self)
tests/lib/tools/test_mcp_tool.py:351
Functiontest_call_from_inside_a_member_is_a_contract_error_not_a_deadlock
()
tests/lib/tools/toolsets/test_pipeline.py:1043
Methodtest_call_next_returns_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1006
Methodtest_call_next_returns_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1529
Functiontest_call_of_terminated_thread_in_history_is_not_run
A call that was open when its thread terminated stays in the history without a result. A runner that reads that history must not run it, and the
tests/lib/tools/test_session_runner.py:1369
Functiontest_call_raises_a_tool_errors_blocks_as_they_are_and_tool_result_keeps_only_the_text
()
tests/lib/tools/toolsets/test_computer_pipeline.py:255
Functiontest_call_raises_a_tool_errors_blocks_as_they_are_on_the_async_class
()
tests/lib/tools/toolsets/test_computer_pipeline.py:267
Methodtest_call_span_is_open_but_not_current_while_the_application_reads_a_stream
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2600
Methodtest_call_structured_content_fallback
(self)
tests/lib/tools/test_mcp_tool.py:371
Methodtest_call_success
(self)
tests/lib/tools/test_mcp_tool.py:334
Methodtest_called_again_after_expiry
(self)
tests/lib/test_credentials.py:3648
Methodtest_caller_anthropic_beta_header_gains_the_threads_beta_once
( self, respx_mock: MockRouter, header: str )
tests/lib/threads/test_beta_threads.py:198
Methodtest_caller_anthropic_beta_header_is_left_alone_once_unthreaded
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:210
Methodtest_caller_api_key_header_wins_case_insensitively
(self)
tests/lib/test_azure.py:310
Methodtest_caller_authorization_header_wins_case_insensitively
(self)
tests/lib/test_azure.py:300
Methodtest_caller_tag_is_appended_not_clobbered
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:67
Methodtest_caller_tag_is_appended_not_clobbered
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:164
Functiontest_calls_run_one_at_a_time
()
tests/lib/tools/toolsets/test_pipeline.py:1014
Methodtest_canceling_a_tool_run_leaves_its_span_and_the_tool_runner_span_unset
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1431
Functiontest_cancelled_download_leaves_nothing_in_the_skills_directory
( tmp_path: Path, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_skills.py:533
Methodtest_cancelled_leader_releases_waiters
(self)
tests/lib/test_credentials.py:3900
Methodtest_chain_and_class_agree_on_profile
default_credentials() and CredentialsFile() resolve to the same profile.
tests/lib/test_credentials.py:1086
Functiontest_changes_drained_by_a_failed_call_ride_the_next_block_on_the_async_class
()
tests/lib/tools/toolsets/test_pipeline.py:1282
Functiontest_changes_drained_by_a_failed_call_ride_the_next_block_that_reaches_the_model
()
tests/lib/tools/toolsets/test_pipeline.py:617
Methodtest_changing_system_or_tools_is_refused_and_a_thread_from_the_params_takes_the_change
( self, respx_mock: MockRouter, change: dict[str, Any] )
tests/lib/threads/test_beta_threads.py:2029
Functiontest_chunk_bytes_to_sse_drops_chunk_without_type_or_completion
()
tests/lib/test_bedrock.py:574
Functiontest_chunk_bytes_to_sse_legacy_completion
()
tests/lib/test_bedrock.py:557
Functiontest_chunk_bytes_to_sse_legacy_completion_with_metrics
()
tests/lib/test_bedrock.py:564
Functiontest_chunk_bytes_to_sse_typed_event
()
tests/lib/test_bedrock.py:545
Functiontest_circular_reference
(send: Send)
tests/test_prepare.py:754
Functiontest_clears_inherited_credentials_provider
When the parent client carries a credentials provider (e.g. workload identity), the sub-client must use the explicit bearer token as the unamb
tests/lib/test_scoped_client.py:36
Functiontest_clears_parent_api_key_on_copy
If this ever starts returning a sub-client with `api_key` set, the parent's API credential would silently authenticate every helper request, b
tests/lib/test_scoped_client.py:27
Methodtest_client_context_manager
(self)
tests/test_client.py:1260
Methodtest_client_context_manager
(self)
tests/test_client.py:2726
Methodtest_client_default_header_is_sent_in_body_unless_the_request_names_one
( self, user_profile_id: str | Omit, sent: str, client: AnthropicBedrockMantle, respx_mock: MockRouter
tests/lib/test_bedrock_mantle.py:770
Functiontest_client_identity_headers_are_kept
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:678
Functiontest_client_identity_headers_are_kept_async
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:707
Methodtest_client_max_retries_validation
(self)
tests/test_client.py:1280
Methodtest_client_max_retries_validation
(self)
tests/test_client.py:2746
Methodtest_client_option
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4362
Methodtest_client_response_validation_error
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:1269
Methodtest_client_response_validation_error
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:2735
Methodtest_client_that_sends_a_threads_results_has_the_clients_other_options
( self, environment_key: str | None, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2486
Methodtest_client_timeout_option
(self)
tests/test_client.py:390
Methodtest_client_timeout_option
(self)
tests/test_client.py:1837
Methodtest_client_user_profile_id_is_kept
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:253
Methodtest_client_user_profile_id_is_kept
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:774
Functiontest_client_with_an_option_reads_no_env
( new_client: NewClient, option: OpenTelemetryClientOption, resolved: ResolvedOpenTelemetryOptions )
tests/test_tracing.py:331
Functiontest_client_without_an_option_reads_every_env
(new_client: NewClient)
tests/test_tracing.py:312
Functiontest_client_workspace_id_is_kept
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:992
Methodtest_client_workspace_id_is_kept
(self, client: AnthropicBedrockMantle, respx_mock: MockRouter)
tests/lib/test_bedrock_mantle.py:879
Functiontest_client_workspace_id_is_kept_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1016
Functiontest_close_and_with_mark_the_toolset_closed_sync
()
tests/lib/tools/toolsets/test_runner.py:707
Methodtest_close_awaits_aclose
(self)
tests/lib/test_credentials.py:3930
Methodtest_close_awaits_an_async_close
(self)
tests/lib/test_credentials.py:3943
Functiontest_close_from_inside_a_member_does_not_wait_for_itself
()
tests/lib/tools/toolsets/test_pipeline.py:1213
Methodtest_close_reaches_a_partial_wrapped_provider
(self)
tests/lib/test_credentials.py:3966
Methodtest_close_tolerates_hooks_that_return_nothing_to_await
A `Mock` has every attribute, so on Python < 3.12 it looks like it has `aclose()`.
tests/lib/test_credentials.py:3954
Functiontest_close_waits_for_accepted_calls_to_settle
()
tests/lib/tools/toolsets/test_pipeline.py:1176
Functiontest_close_waits_for_the_call_in_flight
()
tests/lib/tools/toolsets/test_computer_pipeline.py:490
Methodtest_closed_stream_has_no_output
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5978
Methodtest_closing_the_async_runner_ends_the_span_unset
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1136
← previousnext →5,801–5,900 of 12,795, ranked by callers