MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / resend_warnings

Function resend_warnings

tests/lib/test_refusal_fallback.py:126–128  ·  view source on GitHub ↗
(caplog: pytest.LogCaptureFixture)

Source from the content-addressed store, hash-verified

124
125
126def resend_warnings(caplog: pytest.LogCaptureFixture) -> list[str]:
127 messages = [record.getMessage() for record in caplog.records if record.name == LOGGER_NAME]
128 return [message for message in messages if "retrying without `speed`" in message]
129
130
131class TestRefusalFallback:

Calls

no outgoing calls

Tested by

no test coverage detected