MCPcopy Create free account

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

Functions14,068 in github.com/anthropics/anthropic-sdk-python

Functiontest_span_is_open_but_not_current_in_the_loop_body
(sync: bool)
tests/lib/environments/test_poller.py:327
Methodtest_span_of_a_cancelled_tool_has_no_status_unless_it_returns
( self, spans: Spans, tools: list[Tool] | None, status: StatusCode )
tests/lib/tools/test_open_telemetry.py:2263
Methodtest_span_of_a_failed_tool_has_the_error_status
(self, spans: Spans, call: Call)
tests/lib/tools/test_open_telemetry.py:2271
Functiontest_span_status_matches_how_the_item_ended
( steps: list[Step], options: dict[str, Any], status: StatusCode, error_type: str | None )
tests/lib/environments/test_worker.py:1055
Functiontest_span_status_matches_how_the_item_ended
( sync: bool, steps: list[Step], options: dict[str, Any], status: StatusCode, error_type: str | None )
tests/lib/environments/test_poller.py:362
Methodtest_span_without_content_attributes_is_never_marked_truncated
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6109
Methodtest_spans_that_a_tool_starts_are_children_of_its_tool_span
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1051
Methodtest_spans_that_an_async_tool_starts_are_children_of_its_tool_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1075
Methodtest_spans_that_start_during_the_call_are_children_of_the_call_span
( self, sync: bool, spans: Spans )
tests/test_open_telemetry.py:2576
Functiontest_special_new_line_character
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:190
Methodtest_speed_is_forwarded
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:527
Methodtest_speed_is_forwarded
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:857
Methodtest_splices_the_fallback_onto_the_refused_stream
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:244
Methodtest_splices_the_fallback_onto_the_refused_stream
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1796
Methodtest_stable_usage_has_no_compaction_tokens
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2054
Functiontest_stamps_helper_telemetry_header
()
tests/lib/test_scoped_client.py:50
Functiontest_starts_a_toolset_call_once_the_model_has_moved_on_from_it
(setup: SetupFactory, family: str)
tests/lib/tools/test_runner_eager_toolsets.py:82
Functiontest_starts_javascript_exec_like_any_other_call
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:184
Functiontest_state_changes_are_told_apart_by_their_type
()
tests/lib/tools/toolsets/test_surface.py:134
Functiontest_state_changes_pass_through_and_download_paths_stay_hidden_without_a_file_policy
()
tests/lib/tools/toolsets/test_pipeline.py:204
Functiontest_state_of_the_item
(steps: list[Step], actions: list[Step], variant: Variant, state: str, delivery: int)
tests/lib/environments/test_fake_work_api.py:102
Functiontest_static_aliases_agree_with_the_derived_tables
()
tests/lib/tools/toolsets/test_computer_registry.py:52
Functiontest_static_aliases_agree_with_the_derived_tables
()
tests/lib/tools/toolsets/test_registry.py:73
Methodtest_static_token_credentials
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2650
Functiontest_status_error_class
( status: int, error: dict[str, object], error_class: type[APIStatusError], parent_class: type
tests/lib/test_bedrock.py:194
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_vertex.py:189
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_vertex.py:708
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_bedrock_mantle.py:289
Methodtest_status_error_type_field
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:1924
Methodtest_status_error_type_field
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:3737
Functiontest_status_of_the_last_request
(steps: list[Step], actions: list[Step], variant: Variant, status: object)
tests/lib/environments/test_fake_work_api.py:70
Functiontest_stays_attached_to_an_idle_session_when_max_idle_is_none
()
tests/lib/tools/test_session_runner.py:1763
Functiontest_stays_attached_while_the_session_may_still_need_it
(steps: list[Step])
tests/lib/tools/test_session_runner.py:1791
Functiontest_steps_after_a_wait_are_applied_once_its_condition_holds
()
tests/lib/tools/test_fake_sessions_api.py:341
Functiontest_steps_are_applied_in_order_of_time_until_the_consumer_is_cancelled
()
tests/lib/tools/test_fake_sessions_api.py:332
Functiontest_stop_has_the_token_of_the_item_and_everything_else_the_environment_key
( sync: bool, steps: list[Step], credential: str )
tests/lib/environments/test_poller.py:243
Functiontest_stop_is_not_repeated_with_the_environment_key_after_another_failure
(sync: bool, fault: Fault)
tests/lib/environments/test_poller.py:264
Methodtest_stop_reason_is_the_one_in_the_response
( self, stop_reason: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2195
Functiontest_stop_reasons_track_generated_api_types
(stop_reason: Any)
tests/lib/tools/test_session_runner.py:2210
Methodtest_stop_sequences
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6706
Methodtest_stop_sequences_alone_over_the_bound_are_removed_whole
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6807
Methodtest_stop_sequences_are_content
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6740
Methodtest_stop_sequences_are_measured_in_bytes
( self, over: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6859
Methodtest_stop_sequences_exactly_at_the_bound_stay
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6784
Methodtest_stop_sequences_over_the_bound_are_removed_before_the_parts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6922
Functiontest_stop_that_gets_a_409_is_not_logged
( sync: bool, fault: Fault, logged: bool, caplog: pytest.LogCaptureFixture )
tests/lib/environments/test_poller.py:227
Functiontest_stop_that_gets_no_response_times_out_after_10_seconds
(sync: bool)
tests/lib/environments/test_poller.py:213
Functiontest_stop_that_never_succeeds_is_tried_at_most_6_times_and_for_at_most_a_minute
(fault: Fault, tries: int)
tests/lib/environments/test_worker.py:526
Functiontest_stop_with_an_expired_token_is_repeated_without_force_with_the_environment_key
( sync: bool, caplog: pytest.LogCaptureFixture )
tests/lib/environments/test_poller.py:251
Functiontest_stopping_runner_stops_retrying_a_post_when_the_retry_window_has_passed
( stop: str, stop_at: float, last_attempt: float, exited: float )
tests/lib/tools/test_session_runner.py:1293
Functiontest_stops_max_idle_after_the_turn_ends_and_the_session_is_read_again
(end: Step, at: float, ended: float)
tests/lib/tools/test_session_runner.py:1746
Functiontest_stops_when_idle_on_a_real_clock
(backend: str)
tests/lib/tools/test_session_runner.py:1757
Functiontest_store_without_a_mount_path_is_downloaded_to_the_workdir
(tmp_path: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:86
Functiontest_stores_sync_in_parallel_and_one_failure_spares_the_rest
Stores sync concurrently, and one store's failure never blocks another. The slow store's listing waits for the fast store's listing to start —
tests/lib/tools/memory_sync/test_memory_sync.py:645
Methodtest_str_replace
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:231
Methodtest_str_replace
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:857
Methodtest_str_replace_error_for_non_existent_file
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:305
Methodtest_str_replace_error_for_non_existent_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:931
Methodtest_str_replace_error_when_string_appears_multiple_times
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:281
Methodtest_str_replace_error_when_string_appears_multiple_times
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:907
Methodtest_str_replace_error_when_string_not_found
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:257
Methodtest_str_replace_error_when_string_not_found
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:883
Methodtest_str_replace_preserves_crlf_line_endings
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:380
Methodtest_str_replace_preserves_crlf_line_endings
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1012
Methodtest_str_variant
(self)
tests/test_utils/test_json.py:20
Methodtest_stream_and_parse_helpers_have_the_route
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:3104
Methodtest_stream_closed_after_message_stop_before_the_end_of_the_body
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1750
Methodtest_stream_closed_before_the_first_read
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1873
Methodtest_stream_closed_before_the_first_read_has_the_requests_content
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1892
Methodtest_stream_closed_early
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1729
Methodtest_stream_closed_from_another_thread_while_it_is_read
( self, traced: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1916
Functiontest_stream_delivers_the_appends_that_its_faults_let_through
( steps: list[Step], received: list[str], session: FakeSession, stream: httpx2.Response )
tests/lib/tools/test_fake_sessions_api.py:294
Methodtest_stream_does_not_warn_for_type
`.stream(output_format=Model)` is silent.
tests/api_resources/beta/test_output_format_conversion.py:108
Methodtest_stream_ended_after_a_message_delta_that_cannot_be_accumulated_has_nothing_of_it
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2172
Methodtest_stream_ended_after_message_delta_has_what_message_delta_gave
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2102
Methodtest_stream_ended_before_message_delta_has_nothing_that_message_delta_gives
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2137
Methodtest_stream_ended_by_the_server_before_message_stop
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1984
Methodtest_stream_error_event
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2337
Methodtest_stream_error_event_without_a_type
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2354
Methodtest_stream_error_takes_the_turn_back
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1609
Functiontest_stream_event_types_are_all_handled_or_passed_over
(events: Any)
tests/test_open_telemetry.py:8564
Methodtest_stream_has_what_its_subclass_sets_after_init
(self, client: Anthropic)
tests/test_streaming.py:262
Methodtest_stream_has_what_its_subclass_sets_after_init
(self, async_client: AsyncAnthropic)
tests/test_streaming.py:338
Methodtest_stream_helper
( self, message: dict[str, Any], content_mode: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7844
Methodtest_stream_helper_closed_early_has_the_partial_output
( self, beta: bool, last_event: str, parts: list[dict[str, Any]], spans: Spans, respx_mock: MockRouter
tests/test_open_telemetry.py:5800
Methodtest_stream_helper_content_comes_from_its_snapshot
( self, beta: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:5640
Methodtest_stream_helper_error_event_has_the_partial_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5737
Methodtest_stream_helper_over_a_stand_in_for_the_stream
(self)
tests/test_open_telemetry.py:2489
Methodtest_stream_helper_read_error_has_the_partial_output
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5773
Methodtest_stream_helper_stream_ended_by_the_server_has_the_partial_output
( self, beta: bool, events: list[dict[str, Any]], parts: list[dict[str, Any]],
tests/test_open_telemetry.py:5679
Methodtest_stream_helper_that_cannot_accumulate_an_event_has_no_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5872
Methodtest_stream_helper_without_a_message_start_has_no_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5838
Methodtest_stream_helpers_have_the_clients
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4577
Functiontest_stream_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_messages.py:936
Functiontest_stream_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:1081
Functiontest_stream_of_a_failed_connection_is_closed_before_the_backoff
()
tests/lib/tools/test_session_runner.py:1425
Methodtest_stream_over_a_body_that_was_read_before_the_call_returned
( self, spans: Spans, events: list[dict[str, Any]], status: StatusCode, error_type: str | None )
tests/test_open_telemetry.py:1346
Methodtest_stream_over_a_body_that_was_read_is_closed_or_read_with_the_helper
(self, spans: Spans)
tests/test_open_telemetry.py:1388
Methodtest_stream_over_a_response_that_a_middleware_made_from_bytes
(self, spans: Spans)
tests/test_open_telemetry.py:1422
Methodtest_stream_over_a_stand_in_for_the_response
(self, spans: Spans, traces: bool)
tests/test_open_telemetry.py:2477
← previousnext →11,501–11,600 of 14,068, ranked by callers