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

Method record

tests/test_client.py:2253–2255  ·  view source on GitHub ↗
(options: FinalRequestOptions)

Source from the content-addressed store, hash-verified

2251 prepare_options = async_client._prepare_options
2252
2253 async def record(options: FinalRequestOptions) -> FinalRequestOptions:
2254 seen.append(copy.deepcopy(options))
2255 return await prepare_options(options)
2256
2257 monkeypatch.setattr(async_client, "_prepare_options", record)
2258 respx_mock.post("/foo").mock(return_value=httpx2.Response(200, json={}))

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected