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

Function empty_message

tests/lib/tools/test_runner_eager_tools.py:896–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

894
895
896def empty_message() -> dict[str, Any]:
897 return {
898 "id": "msg_1",
899 "type": "message",
900 "role": "assistant",
901 "model": "claude-haiku-4-5",
902 "content": [],
903 "stop_reason": None,
904 "stop_sequence": None,
905 "usage": {"input_tokens": 10, "output_tokens": 0},
906 }
907
908
909def to_events(canned: Reply) -> list[dict[str, Any]]:

Callers 2

to_eventsFunction · 0.85
to_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected