MCPcopy Create free account

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

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

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:1288
Methodtest_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, asyn
tests/test_client.py:2739
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:559
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_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:371
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_deployments.py:884
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
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_memory_stores.py:315
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_memory_stores.py:619
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_threads.py:184
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_threads.py:368
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/vaults/test_credentials.py:406
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/vaults/test_credentials.py:869
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_workspaces.py:257
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_workspaces.py:505
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_service_accounts.py:254
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_service_accounts.py:499
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:271
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:533
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_rules.py:308
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_rules.py:607
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/tunnels/test_certificates.py:240
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/tunnels/test_certificates.py:480
Methodtest_path_params_archive
(self, client: Anthropic)
tests/api_resources/organization/test_workspaces.py:235
Methodtest_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_workspaces.py:461
← previousnext →8,201–8,300 of 12,274, ranked by callers