Home / Class/ MessageParam Class — anthropic-sdk-python Architecture

MessageParam Class — anthropic-sdk-python Architecture

Architecture documentation for the MessageParam class in message_param.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  5b37714c_c7af_1519_a0b1_0167fccc0751["MessageParam"]
  ee233da2_be45_4f72_f2d1_e5c3132da735["message_param.py"]
  5b37714c_c7af_1519_a0b1_0167fccc0751 -->|defined in| ee233da2_be45_4f72_f2d1_e5c3132da735

Relationship Graph

Source Code

src/anthropic/types/message_param.py lines 23–45

class MessageParam(TypedDict, total=False):
    content: Required[
        Union[
            str,
            Iterable[
                Union[
                    TextBlockParam,
                    ImageBlockParam,
                    DocumentBlockParam,
                    SearchResultBlockParam,
                    ThinkingBlockParam,
                    RedactedThinkingBlockParam,
                    ToolUseBlockParam,
                    ToolResultBlockParam,
                    ServerToolUseBlockParam,
                    WebSearchToolResultBlockParam,
                    ContentBlock,
                ]
            ],
        ]
    ]

    role: Required[Literal["user", "assistant"]]

Frequently Asked Questions

What is the MessageParam class?
MessageParam is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/message_param.py.
Where is MessageParam defined?
MessageParam is defined in src/anthropic/types/message_param.py at line 23.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free