MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Methodtest_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:527
Methodtest_path_validation_reject_paths_not_starting_with_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:512
Methodtest_path_validation_reject_paths_not_starting_with_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1051
Methodtest_path_validation_reject_paths_trying_to_escape_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:520
Methodtest_path_validation_reject_paths_trying_to_escape_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1059
Functiontest_pathlib_in_file_tuple
()
tests/test_files.py:47
Functiontest_pathlib_includes_file_name
()
tests/test_files.py:14
Functiontest_pathlike_str_outside_file_slots_is_a_string
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:673
Functiontest_paths_that_escape_the_store_are_refused
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_memory_sync.py:150
Functiontest_pause_turn_respects_max_iterations_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:784
Functiontest_pause_turn_resumes_runner_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:754
Functiontest_pause_turn_resumes_runner_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:724
Methodtest_pdf_resource
(self)
tests/lib/tools/test_mcp_tool.py:221
Functiontest_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_async
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2755
Functiontest_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_sync
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2732
Functiontest_pending_compaction_is_skipped_when_max_iterations_ends_the_run_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3013
Functiontest_pep604_discriminated_union_in_optional_invalid_data
()
tests/test_models.py:894
Functiontest_pep604_union_field_invalid_data
()
tests/test_models.py:870
Methodtest_per_request_mode_still_forces_after_invalidate
invalidate() still makes the next call pass `force_refresh=True` when nothing is cached.
tests/lib/test_credentials.py:1963
Methodtest_per_request_mode_still_forces_after_invalidate
(self)
tests/lib/test_credentials.py:3635
Methodtest_pins_the_conversation_to_the_accepted_fallback_via_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:136
Methodtest_pins_the_conversation_to_the_accepted_fallback_via_state
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:710
Methodtest_pins_the_state_to_the_hop_that_served
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:636
Methodtest_platform_headers_do_not_spawn_subprocesses
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:2669
Methodtest_pointer_at_missing_profile_raises
(self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4313
Methodtest_pointer_at_missing_profile_raises_via_client
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4319
Methodtest_pointer_at_present_profile_loads_normally
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4334
Functiontest_positional_param
()
tests/test_required_args.py:17
Functiontest_post_construction_base_url_assignment_wins
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:616
Functiontest_pre_denied_tool_ignores_stray_allow_verdict
A call the server already evaluated to `deny` must never execute, even if an (anomalous) `allow` confirmation exists for its id.
tests/lib/tools/test_session_runner.py:1039
Functiontest_pre_denied_tool_never_executes
A call the server already evaluated to `deny` needs no confirmation — it must never execute and nothing may be posted for it.
tests/lib/tools/test_session_runner.py:724
Functiontest_prefix_items_and_foreign_resources_leave_no_trace
Only `memory_store` resources are downloaded and only `memory` items carry content — a `file` resource and `memory_prefix` rollups pass throug
tests/lib/tools/memory_sync/test_memory_sync.py:412
Functiontest_prepare_options_lifts_anthropic_beta_header_case_insensitively
()
tests/lib/test_bedrock.py:635
Functiontest_preserves_key_order
(send: Send)
tests/test_prepare.py:401
Methodtest_profile_and_config_mutually_exclusive
(self)
tests/lib/test_credentials.py:2961
Methodtest_profile_and_credentials_mutually_exclusive
(self)
tests/lib/test_credentials.py:2965
Methodtest_profile_base_url_adopted_by_client
Outbound: a zero-arg `Anthropic()` adopts the active profile's `base_url` when the user supplied neither `base_url=` nor `ANTHROPIC_BA
tests/lib/test_credentials.py:2516
Methodtest_profile_env_triggers_tier1
ANTHROPIC_PROFILE set → tier 1 fires.
tests/lib/test_credentials.py:2109
Methodtest_profile_from_active_config
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:975
Methodtest_profile_from_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:970
Methodtest_profile_name_empty_rejected
(self)
tests/lib/test_credentials.py:832
Methodtest_profile_name_leading_dot_rejected
(self)
tests/lib/test_credentials.py:828
Methodtest_profile_name_path_traversal_rejected
(self)
tests/lib/test_credentials.py:824
Methodtest_profile_name_with_dot_prefix_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:3910
Methodtest_profile_param_loads_named_profile
`Anthropic(profile="staging")` loads `configs/staging.json` from the config directory, equivalent to setting `ANTHROPIC_PROFILE`.
tests/lib/test_credentials.py:2946
Methodtest_profile_returns_true
(self)
tests/lib/test_aws_auth.py:74
Methodtest_profile_suppresses_env_api_key
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:121
Methodtest_profile_value_wins_over_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1423
Methodtest_programmatic_tool_call
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:534
Functiontest_project_backfilled_from_adc_on_first_request
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:540
Functiontest_project_backfilled_from_adc_on_first_request_async
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:662
Methodtest_project_backfilled_from_explicit_credentials
(self)
tests/lib/test_google_cloud.py:176
Methodtest_project_falls_back_to_google_cloud_project_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:144
Methodtest_properties
(self)
tests/test_middleware.py:378
Methodtest_provider_annotated_with_an_undefined_name
Reading the signature must not evaluate annotations that only resolve for type checkers.
tests/lib/test_credentials.py:1892
Methodtest_provider_must_return_an_access_token
(self)
tests/lib/test_credentials.py:1546
Methodtest_provider_must_return_an_access_token
(self)
tests/lib/test_credentials.py:3801
Methodtest_proxy_environment_variables
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:1351
Methodtest_proxy_environment_variables
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:2686
Functiontest_pure_actions_render_their_confirmation_from_the_input
()
tests/lib/tools/toolsets/test_pipeline.py:102
Functiontest_pydantic_mismatched_types
(send: Send)
tests/test_prepare.py:445
Methodtest_pydantic_model_serialization
(self)
tests/test_utils/test_json.py:48
Methodtest_pydantic_model_with_alias
(self)
tests/test_utils/test_json.py:82
Methodtest_pydantic_model_with_alias_and_default
(self)
tests/test_utils/test_json.py:92
Methodtest_pydantic_model_with_default_values
(self)
tests/test_utils/test_json.py:59
Methodtest_pydantic_model_with_default_values_overridden
(self)
tests/test_utils/test_json.py:71
Methodtest_pydantic_model_with_nested_models_and_defaults
(self)
tests/test_utils/test_json.py:108
Methodtest_pydantic_model_with_optional_fields
(self)
tests/test_utils/test_json.py:136
Functiontest_pydantic_models_are_dumped
(send: Send)
tests/test_prepare.py:412
Functiontest_query_params
(send: Send)
tests/test_prepare.py:490
Functiontest_query_params_are_never_read
(send: Send, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:587
Methodtest_raises_if_state_index_is_out_of_bounds_for_the_chain
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:159
Methodtest_raises_on_missing_credentials
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:586
Methodtest_raises_when_file_missing
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:237
Methodtest_raises_when_missing
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:210
Methodtest_raises_when_no_path
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:232
Methodtest_raises_without_region_or_base_url
(self)
tests/lib/test_bedrock_mantle.py:61
Functiontest_raw_dictionary
()
tests/test_models.py:123
Methodtest_raw_response
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:134
Methodtest_raw_response
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:1427
Methodtest_raw_response_ack
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:211
Methodtest_raw_response_ack
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:658
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_resources.py:276
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_resources.py:569
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:88
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:250
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:181
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:430
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:210
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:497
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:78
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:221
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:90
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:257
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:78
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:221
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:181
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:430
Methodtest_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:180
Methodtest_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:428
← previousnext →6,801–6,900 of 9,455, ranked by callers