ParsedMessage Class — anthropic-sdk-python Architecture
Architecture documentation for the ParsedMessage class in parsed_message.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD d9e0f86b_dcba_cde8_a99b_9758c6362015["ParsedMessage"] 01beb2f6_442c_779e_7c57_22078b50dcf4["Message"] d9e0f86b_dcba_cde8_a99b_9758c6362015 -->|extends| 01beb2f6_442c_779e_7c57_22078b50dcf4 3c1d116b_af29_e9f2_495b_ceebd1febd18["parsed_message.py"] d9e0f86b_dcba_cde8_a99b_9758c6362015 -->|defined in| 3c1d116b_af29_e9f2_495b_ceebd1febd18 a495d54b_3789_97df_abec_3c8a4916542c["parsed_output()"] d9e0f86b_dcba_cde8_a99b_9758c6362015 -->|method| a495d54b_3789_97df_abec_3c8a4916542c
Relationship Graph
Source Code
src/anthropic/types/parsed_message.py lines 45–56
class ParsedMessage(Message, Generic[ResponseFormatT]):
if TYPE_CHECKING:
content: List[ParsedContentBlock[ResponseFormatT]] # type: ignore[assignment]
else:
content: List[ParsedContentBlock]
@property
def parsed_output(self) -> Optional[ResponseFormatT]:
for content in self.content:
if content.type == "text" and content.parsed_output:
return content.parsed_output
return None
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the ParsedMessage class?
ParsedMessage is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/parsed_message.py.
Where is ParsedMessage defined?
ParsedMessage is defined in src/anthropic/types/parsed_message.py at line 45.
What does ParsedMessage extend?
ParsedMessage extends Message.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free