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

Function text_part

tests/test_open_telemetry.py:291–292  ·  view source on GitHub ↗
(content: str)

Source from the content-addressed store, hash-verified

289
290
291def text_part(content: str) -> dict[str, Any]:
292 return {"type": "text", "content": content}
293
294
295def chat_message(role: str, *parts: dict[str, Any]) -> dict[str, Any]:

Calls

no outgoing calls

Tested by

no test coverage detected