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

Function _message_response

tests/lib/test_credentials.py:2395–2408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2393
2394
2395def _message_response() -> httpx2.Response:
2396 return httpx2.Response(
2397 200,
2398 json={
2399 "id": "msg_01",
2400 "type": "message",
2401 "role": "assistant",
2402 "model": "claude-opus-4-5",
2403 "content": [{"type": "text", "text": "hi"}],
2404 "stop_reason": "end_turn",
2405 "stop_sequence": None,
2406 "usage": {"input_tokens": 1, "output_tokens": 1},
2407 },
2408 )
2409
2410
2411def _mock_messages_endpoint(respx_mock: MockRouter) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected