MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / copy

Method copy

entity/messages.py:159–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 return f"[{self.type.value} block]"
158
159 def copy(self) -> "MessageBlock":
160 return MessageBlock(
161 type=self.type,
162 text=self.text,
163 attachment=self.attachment.copy() if self.attachment else None,
164 data=dict(self.data),
165 )
166
167
168@dataclass

Callers 12

_normalize_blocksMethod · 0.45
list_metadataMethod · 0.45
list_functionsMethod · 0.45
as_message_blockMethod · 0.45
ingest_recordMethod · 0.45
code_save_and_runFunction · 0.45
_build_tool_messageMethod · 0.45
_run_processMethod · 0.45
__init__Method · 0.45
_build_scoped_nodesMethod · 0.45
_copy_contentFunction · 0.45

Calls 1

MessageBlockClass · 0.85

Tested by

no test coverage detected