MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / model_dump_for_context

Method model_dump_for_context

astrbot/core/agent/message.py:73–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 return self
72
73 def model_dump_for_context(self) -> dict[str, Any]:
74 data = self.model_dump()
75 if self._no_save:
76 data["_no_save"] = True
77 return data
78
79
80class TextPart(ContentPart):

Callers 2

assemble_contextMethod · 0.80
_content_to_textFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected