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

Class ContentBlock

tutorials/16_prompt_building_and_compaction.py:405–413  ·  view source on GitHub ↗

内容块

Source from the content-addressed store, hash-verified

403
404@dataclass
405class ContentBlock:
406 """内容块"""
407 block_type: str # "text", "tool_use", "tool_result"
408 text: str = ""
409 tool_name: str = ""
410 tool_id: str = ""
411 input_str: str = ""
412 output: str = ""
413 is_error: bool = False
414
415
416@dataclass

Callers 4

user_textMethod · 0.70
assistant_textMethod · 0.70
compact_sessionFunction · 0.70
demo_auto_compactionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected