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

Method record

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

Source from the content-addressed store, hash-verified

2214 prepare_options = async_client._prepare_options
2215
2216 async def record(options: FinalRequestOptions) -> FinalRequestOptions:
2217 seen.append(copy.deepcopy(options))
2218 return await prepare_options(options)
2219
2220 monkeypatch.setattr(async_client, "_prepare_options", record)
2221 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