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

Method record

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

Source from the content-addressed store, hash-verified

2197 prepare_options = async_client._prepare_options
2198
2199 async def record(options: FinalRequestOptions) -> FinalRequestOptions:
2200 seen.append(copy.deepcopy(options))
2201 return await prepare_options(options)
2202
2203 monkeypatch.setattr(async_client, "_prepare_options", record)
2204 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