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

Function thread_logs

tests/lib/threads/helpers.py:954–956  ·  view source on GitHub ↗

The (level, message) pairs logged under the `anthropic.lib.threads` logger or its children.

(caplog: pytest.LogCaptureFixture)

Source from the content-addressed store, hash-verified

952
953
954def thread_logs(caplog: pytest.LogCaptureFixture) -> list[tuple[int, str]]:
955 """The (level, message) pairs logged under the `anthropic.lib.threads` logger or its children."""
956 return [(level, message) for name, level, message in caplog.record_tuples if name.startswith(THREADS_LOGGER)]

Calls

no outgoing calls