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

Method __repr__

tutorials/01_agentic_loop_basics.py:47–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self.content = content
46
47 def __repr__(self):
48 # 方便打印查看
49 preview = self.content[:50] + "..." if len(self.content) > 50 else self.content
50 return f"Message(role={self.role!r}, content={preview!r})"
51
52
53# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected