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

Method copy

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

Source from the content-addressed store, hash-verified

87 )
88
89 def copy(self) -> "AttachmentRef":
90 return AttachmentRef(
91 attachment_id=self.attachment_id,
92 mime_type=self.mime_type,
93 name=self.name,
94 size=self.size,
95 sha256=self.sha256,
96 local_path=self.local_path,
97 remote_file_id=self.remote_file_id,
98 data_uri=self.data_uri,
99 metadata=dict(self.metadata),
100 )
101
102
103@dataclass

Callers

nothing calls this directly

Calls 1

AttachmentRefClass · 0.85

Tested by

no test coverage detected