ParsedBetaTextEvent Class — anthropic-sdk-python Architecture
Architecture documentation for the ParsedBetaTextEvent class in _beta_types.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 3f86bd19_a51f_cc40_9859_e79ee601f0f3["ParsedBetaTextEvent"] 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] 3f86bd19_a51f_cc40_9859_e79ee601f0f3 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1 6ae52b2b_b80e_bd13_d3c7_f2409e8d863a["_beta_types.py"] 3f86bd19_a51f_cc40_9859_e79ee601f0f3 -->|defined in| 6ae52b2b_b80e_bd13_d3c7_f2409e8d863a c06f15b3_ac62_13e1_a235_68ac398041ec["parsed_snapshot()"] 3f86bd19_a51f_cc40_9859_e79ee601f0f3 -->|method| c06f15b3_ac62_13e1_a235_68ac398041ec
Relationship Graph
Source Code
src/anthropic/lib/streaming/_beta_types.py lines 21–31
class ParsedBetaTextEvent(BaseModel):
type: Literal["text"]
text: str
"""The text delta"""
snapshot: str
"""The entire accumulated text"""
def parsed_snapshot(self) -> Dict[str, Any]:
return cast(Dict[str, Any], jiter.from_json(self.snapshot.encode("utf-8"), partial_mode="trailing-strings"))
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the ParsedBetaTextEvent class?
ParsedBetaTextEvent is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/streaming/_beta_types.py.
Where is ParsedBetaTextEvent defined?
ParsedBetaTextEvent is defined in src/anthropic/lib/streaming/_beta_types.py at line 21.
What does ParsedBetaTextEvent extend?
ParsedBetaTextEvent extends BaseModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free