Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Method
test_parse_forwards_speed
Test sync messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:92
Method
test_parse_forwards_speed
Test async messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:164
Method
test_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:624
Method
test_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:819
Method
test_parse_helper_has_the_clients
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4591
Method
test_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1028
Method
test_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1551
Method
test_parse_merges_caller_extra_headers
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:125
Method
test_parse_merges_caller_extra_headers
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:228
Function
test_parse_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:1056
Method
test_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
Method
test_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
Method
test_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
Method
test_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, clie
tests/test_client.py:1288
Method
test_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, asyn
tests/test_client.py:2739
Method
test_parse_sends_caller_betas_unchanged
Verify .parse() sends exactly the betas the caller passes.
tests/api_resources/beta/test_output_format_conversion.py:251
Method
test_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
Method
test_parse_sends_single_header_line
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:97
Method
test_parse_sends_single_header_line
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:198
Method
test_parse_uses_output_config
(self, async_snapshot_client: AsyncAnthropic)
tests/lib/_parse/test_beta_messages.py:55
Method
test_parse_with_nested_pydantic_model
Test sync messages.parse() with nested Pydantic models.
tests/lib/_parse/test_messages.py:71
Method
test_parse_with_nested_pydantic_model
Test async messages.parse() with nested Pydantic models.
tests/lib/_parse/test_messages.py:143
Method
test_parse_with_pydantic_model
Test sync messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:44
Method
test_parse_with_pydantic_model
Test async messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:116
Method
test_parse_without_output_format_returns_no_parsed_output
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1516
Function
test_parsed_output_is_readable_but_not_dumped
(block_type: Any)
tests/lib/streaming/test_parsed_content_blocks.py:104
Method
test_parsed_reply_has_the_request_and_workspace_ids_of_its_response
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1530
Method
test_parsed_reply_has_the_request_and_workspace_ids_of_its_response
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:753
Function
test_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
Function
test_partial_creds_access_key_only
()
tests/lib/test_aws.py:100
Function
test_partial_creds_async_access_key_only
()
tests/lib/test_aws.py:110
Function
test_partial_creds_secret_key_only
()
tests/lib/test_aws.py:105
Method
test_partial_json_with_invalid_json
Test that invalid JSON raises an error.
tests/lib/streaming/test_partial_json.py:108
Method
test_partial_of_a_callable_object_is_awaited
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3599
Method
test_partial_output_is_content
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5724
Method
test_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
Method
test_pass_through_preserves_sse_fields_beyond_event_and_data
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:559
Method
test_passed_credential_ignores_the_environment
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, caplog: pytest.
tests/lib/test_credentials.py:4324
Method
test_path_params_ack
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:253
Method
test_path_params_ack
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:732
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_resources.py:324
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_resources.py:637
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:122
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:296
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:222
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:487
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:254
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:561
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:111
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:264
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/telemetry_destinations/test_workspaces.py:122
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/telemetry_destinations/test_workspaces.py:302
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:126
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:305
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:104
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:247
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:209
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:458
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:208
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:456
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/rbac_groups/test_members.py:104
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/rbac_groups/test_members.py:247
Method
test_path_params_add
(self, client: Anthropic)
tests/api_resources/organization/service_accounts/test_workspaces.py:107
Method
test_path_params_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/service_accounts/test_workspaces.py:254
Method
test_path_params_approve
(self, client: Anthropic)
tests/api_resources/beta/organization/spend_limits/test_increase_requests.py:156
Method
test_path_params_approve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/spend_limits/test_increase_requests.py:357
Method
test_path_params_approve
(self, client: Anthropic)
tests/api_resources/organization/spend_limits/test_increase_requests.py:142
Method
test_path_params_approve
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/spend_limits/test_increase_requests.py:325
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_sessions.py:386
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_sessions.py:761
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_dreams.py:232
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_dreams.py:507
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_vaults.py:310
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_vaults.py:610
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_tunnels.py:202
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_tunnels.py:497
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_agents.py:371
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_agents.py:732
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_deployments.py:371
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_deployments.py:884
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_environments.py:350
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_environments.py:690
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_memory_stores.py:315
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_memory_stores.py:619
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_threads.py:184
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_threads.py:368
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/vaults/test_credentials.py:406
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/vaults/test_credentials.py:869
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_workspaces.py:257
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_workspaces.py:505
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_service_accounts.py:254
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_service_accounts.py:499
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:271
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:533
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_rules.py:308
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_rules.py:607
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/tunnels/test_certificates.py:240
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/tunnels/test_certificates.py:480
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/organization/test_workspaces.py:235
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_workspaces.py:461
← previous
next →
8,201–8,300 of 12,274, ranked by callers