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

Function _message_response

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

Source from the content-addressed store, hash-verified

1954
1955
1956def _message_response() -> httpx.Response:
1957 return httpx.Response(
1958 200,
1959 json={
1960 "id": "msg_01",
1961 "type": "message",
1962 "role": "assistant",
1963 "model": "claude-opus-4-5",
1964 "content": [{"type": "text", "text": "hi"}],
1965 "stop_reason": "end_turn",
1966 "stop_sequence": None,
1967 "usage": {"input_tokens": 1, "output_tokens": 1},
1968 },
1969 )
1970
1971
1972def _mock_messages_endpoint(respx_mock: MockRouter) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected