MCPcopy Create free account

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

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

Methodtest_oversized_assertion_not_retained
(self)
tests/lib/test_credentials.py:4949
Methodtest_oversized_assertion_rejected
(self)
tests/lib/test_credentials.py:1401
Methodtest_oversized_response_body_rejected
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1437
Methodtest_overwrite_retry_count_header
( self, client: Anthropic, failures_before_success: int, respx_mock: MockRoute
tests/test_client.py:1482
Methodtest_overwrite_retry_count_header
( self, async_client: AsyncAnthropic, failures_before_success: int, respx_mock
tests/test_client.py:2950
Functiontest_page_and_model_text_is_folded_the_same_in_both_sdks
(fn: str, raw: str, shown: str)
tests/lib/tools/toolsets/test_pipeline.py:870
Methodtest_params_includes_the_output_format
(self)
tests/lib/threads/test_beta_threads.py:1316
Methodtest_params_is_the_whole_conversation_as_thread_arguments
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1265
Methodtest_params_returns_the_runnable_tools_as_given
(self)
tests/lib/threads/test_thread_tool_runner.py:164
Methodtest_parse_caller_beta_header_overrides
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:147
Methodtest_parse_caller_beta_header_overrides
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:249
Methodtest_parse_continues_the_thread_and_parses_each_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1495
Methodtest_parse_continues_the_thread_and_parses_each_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:730
Methodtest_parse_converts_pydantic_to_output_config
Verify .parse() converts Pydantic models to output_config.format.
tests/api_resources/beta/test_output_format_conversion.py:18
Methodtest_parse_does_not_add_beta_header
Verify .parse() sends no beta header when the caller passes no betas.
tests/api_resources/beta/test_output_format_conversion.py:219
Methodtest_parse_does_not_warn_for_type
`.parse(output_format=Model)` is silent.
tests/api_resources/beta/test_output_format_conversion.py:77
Methodtest_parse_forwards_speed
Test sync messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:92
Methodtest_parse_forwards_speed
Test async messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:164
Methodtest_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:624
Methodtest_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:819
Methodtest_parse_helper_has_the_clients
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4591
Methodtest_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1028
Methodtest_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1551
Methodtest_parse_merges_caller_extra_headers
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:125
Methodtest_parse_merges_caller_extra_headers
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:228
Functiontest_parse_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:1056
Methodtest_parse_of_a_reply_that_does_not_fit_the_output_format_keeps_the_turn
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1551
Methodtest_parse_of_a_reply_that_does_not_fit_the_output_format_keeps_the_turn
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:774
Methodtest_parse_rejects_both_output_format_and_config
Verify .parse() raises error when both output_format and output_config.format are provided.
tests/api_resources/beta/test_output_format_conversion.py:199
Methodtest_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, clie
tests/test_client.py:1342
Methodtest_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, asyn
tests/test_client.py:2810
Methodtest_parse_sends_caller_betas_unchanged
Verify .parse() sends exactly the betas the caller passes.
tests/api_resources/beta/test_output_format_conversion.py:251
Methodtest_parse_sends_explicit_structured_outputs_beta_once
Verify .parse() sends the structured-outputs beta once when the caller passes it.
tests/api_resources/beta/test_output_format_conversion.py:284
Methodtest_parse_sends_single_header_line
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:97
Methodtest_parse_sends_single_header_line
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:198
Methodtest_parse_uses_output_config
(self, async_snapshot_client: AsyncAnthropic)
tests/lib/_parse/test_beta_messages.py:55
Methodtest_parse_with_nested_pydantic_model
Test sync messages.parse() with nested Pydantic models.
tests/lib/_parse/test_messages.py:71
Methodtest_parse_with_nested_pydantic_model
Test async messages.parse() with nested Pydantic models.
tests/lib/_parse/test_messages.py:143
Methodtest_parse_with_pydantic_model
Test sync messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:44
Methodtest_parse_with_pydantic_model
Test async messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:116
Methodtest_parse_without_output_format_returns_no_parsed_output
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1516
Functiontest_parsed_output_is_readable_but_not_dumped
(block_type: Any)
tests/lib/streaming/test_parsed_content_blocks.py:104
Methodtest_parsed_reply_has_the_request_and_workspace_ids_of_its_response
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1530
Methodtest_parsed_reply_has_the_request_and_workspace_ids_of_its_response
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:753
Functiontest_parsed_union_matches_generated_union
The hand-written Parsed*ContentBlock unions must track the generated unions. If a block type only exists in the generated union, streaming snapsh
tests/lib/streaming/test_parsed_content_blocks.py:48
Functiontest_partial_creds_access_key_only
()
tests/lib/test_aws.py:100
Functiontest_partial_creds_async_access_key_only
()
tests/lib/test_aws.py:110
Functiontest_partial_creds_secret_key_only
()
tests/lib/test_aws.py:105
Methodtest_partial_json_with_invalid_json
Test that invalid JSON raises an error.
tests/lib/streaming/test_partial_json.py:108
Methodtest_partial_of_a_callable_object_is_awaited
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3599
Methodtest_partial_output_is_content
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5724
Methodtest_parts_and_the_cut_of_the_last_text_part_are_measured_in_bytes
( self, limit: int, input_parts: list[dict[str, Any]], output_characters: int,
tests/test_open_telemetry.py:6893
Methodtest_pass_through_preserves_sse_fields_beyond_event_and_data
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:561
Methodtest_passed_credential_ignores_the_environment
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, caplog: pytest.
tests/lib/test_credentials.py:4324
Methodtest_path_params_ack
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:253
Methodtest_path_params_ack
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:732
Methodtest_path_params_activate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_storage.py:328
Methodtest_path_params_activate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_storage.py:646
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_resources.py:324
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_resources.py:637
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:122
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:296
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:222
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:487
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:254
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:561
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:111
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:264
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/telemetry_destinations/test_workspaces.py:122
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/telemetry_destinations/test_workspaces.py:302
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:126
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:305
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:104
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:247
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:209
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:458
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:208
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:456
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/rbac_groups/test_members.py:104
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/rbac_groups/test_members.py:247
Methodtest_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/service_accounts/test_workspaces.py:107
Methodtest_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/service_accounts/test_workspaces.py:254
Methodtest_path_params_approve
(self, client: Anthropic)
tests/api_resources/beta/organization/spend_limits/test_increase_requests.py:156
Methodtest_path_params_approve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/spend_limits/test_increase_requests.py:357
Methodtest_path_params_approve
(self, client: Anthropic)
tests/api_resources/organization/spend_limits/test_increase_requests.py:142
Methodtest_path_params_approve
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/spend_limits/test_increase_requests.py:325
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_sessions.py:386
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_sessions.py:761
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_dreams.py:232
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_dreams.py:507
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_vaults.py:310
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_vaults.py:610
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_tunnels.py:202
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_tunnels.py:497
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_agents.py:371
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_agents.py:732
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_deployments.py:384
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_deployments.py:910
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_environments.py:350
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_environments.py:690
← previousnext →8,501–8,600 of 12,795, ranked by callers