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

Function _vertex_message

tests/lib/test_vertex.py:111–124  ·  view source on GitHub ↗
(content: List[Dict[str, Any]], stop_reason: str)

Source from the content-addressed store, hash-verified

109
110
111def _vertex_message(content: List[Dict[str, Any]], stop_reason: str) -> httpx2.Response:
112 return httpx2.Response(
113 200,
114 json={
115 "id": "msg_01",
116 "type": "message",
117 "role": "assistant",
118 "model": "claude",
119 "content": content,
120 "stop_reason": stop_reason,
121 "stop_sequence": None,
122 "usage": {"input_tokens": 10, "output_tokens": 5},
123 },
124 )
125
126
127def _tool_runner_responses() -> List[httpx2.Response]:

Calls

no outgoing calls

Tested by

no test coverage detected