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

Function chat_message

tests/test_open_telemetry.py:295–296  ·  view source on GitHub ↗
(role: str, *parts: dict[str, Any])

Source from the content-addressed store, hash-verified

293
294
295def chat_message(role: str, *parts: dict[str, Any]) -> dict[str, Any]:
296 return {"role": role, "parts": list(parts)}
297
298
299SIZE_BOUND_CASES = [

Calls

no outgoing calls

Tested by

no test coverage detected