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

Class AssistantMessage

tutorials/11_error_recovery_and_retry.py:358–362  ·  view source on GitHub ↗

AI 的回复

Source from the content-addressed store, hash-verified

356
357@dataclass
358class AssistantMessage:
359 """AI 的回复"""
360 text_blocks: list[str]
361 tool_calls: list[dict]
362 finished: bool = True # 流是否正常结束
363
364
365def build_assistant_message(events: list[dict]) -> AssistantMessage:

Callers 1

build_assistant_messageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected