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

Function request_threads

tests/lib/threads/helpers.py:939–941  ·  view source on GitHub ↗

The `thread` param of each request, or `None` for a request sent without one.

(respx_mock: MockRouter)

Source from the content-addressed store, hash-verified

937
938
939def request_threads(respx_mock: MockRouter) -> list[dict[str, Any] | None]:
940 """The `thread` param of each request, or `None` for a request sent without one."""
941 return [body.get("thread") for body in request_bodies(respx_mock)]
942
943
944def request_betas(respx_mock: MockRouter) -> list[list[str]]:

Calls 2

request_bodiesFunction · 0.70
getMethod · 0.45