MCPcopy Create free account
hub / github.com/Louisym/MiniCC / TextBlock

Class TextBlock

tutorials/02_session_and_messages.py:62–69  ·  view source on GitHub ↗

文字块 —— AI 说的话。 例子:TextBlock(text="答案是 42")

Source from the content-addressed store, hash-verified

60
61@dataclass(frozen=True)
62class TextBlock:
63 """
64 文字块 —— AI 说的话。
65
66 例子:TextBlock(text="答案是 42")
67 """
68 text: str
69 type: str = "text" # 固定值,用于区分不同类型的块
70
71
72@dataclass(frozen=True)

Callers 4

user_textMethod · 0.70
assistant_textMethod · 0.70
_dict_to_messageMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected