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

Function respond

tests/lib/test_platform_resources.py:56–59  ·  view source on GitHub ↗
(request: httpx2.Request)

Source from the content-addressed store, hash-verified

54
55def platform_client(platform: str, sync: bool, requests: list[httpx2.Request] | None = None) -> Any:
56 def respond(request: httpx2.Request) -> httpx2.Response:
57 if requests is not None:
58 requests.append(request)
59 return httpx2.Response(200, json=MESSAGE)
60
61 transport = httpx2.MockTransport(respond)
62 if platform == "bedrock":

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected