Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
14,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
14,068
◇
Types & classes
4,501
↳
Endpoints
96
Method
test_parse_gives_each_call_a_schema_of_its_own
(self, respx_mock: MockRouter, beta: bool)
tests/lib/_parse/test_messages.py:183
Method
test_parse_gives_each_call_a_schema_of_its_own
(self, respx_mock: MockRouter, beta: bool)
tests/lib/_parse/test_messages.py:347
Method
test_parse_helper_has_the_clients
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4592
Method
test_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1171
Method
test_parse_in_middleware_shares_parse_cache
(self, respx_mock: MockRouter)
tests/test_middleware.py:1811
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:1091
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:1552
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:1369
Method
test_parse_retry_after_header
( self, remaining_retries: int, retry_after: str, timeout: float, asyn
tests/test_client.py:3136
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_nested_model_field_description
( self, client: Anthropic, respx_mock: MockRouter, beta: bool )
tests/lib/_parse/test_messages.py:160
Method
test_parse_sends_nested_model_field_description
( self, async_client: AsyncAnthropic, respx_mock: MockRouter, beta: bool )
tests/lib/_parse/test_messages.py:324
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:87
Method
test_parse_with_nested_pydantic_model
Test async messages.parse() with nested Pydantic models.
tests/lib/_parse/test_messages.py:251
Method
test_parse_with_pydantic_model
Test sync messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:60
Method
test_parse_with_pydantic_model
Test async messages.parse() with a Pydantic model output_format.
tests/lib/_parse/test_messages.py:224
Method
test_parse_without_output_format_returns_no_parsed_output
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1517
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:1531
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:4080
Method
test_partial_output_is_content
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5725
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:6895
Method
test_pass_through_preserves_sse_fields_beyond_event_and_data
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:561
Method
test_passed_credential_ignores_the_environment
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, caplog: pytest.
tests/lib/test_credentials.py:4805
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_activate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_storage.py:328
Method
test_path_params_activate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_storage.py:646
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:376
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_agents.py:742
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/test_deployments.py:384
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_deployments.py:910
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/bedrock/test_sessions.py:473
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/bedrock/test_sessions.py:931
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/bedrock/test_agents.py:416
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/bedrock/test_agents.py:820
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/bedrock/test_memory_stores.py:393
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/bedrock/test_memory_stores.py:773
Method
test_path_params_archive
(self, client: Anthropic)
tests/api_resources/beta/bedrock/sessions/test_threads.py:217
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/bedrock/sessions/test_threads.py:433
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:287
Method
test_path_params_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_workspaces.py:565
← previous
next →
9,401–9,500 of 14,068, ranked by callers