MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / as_message_block

Method as_message_block

utils/attachments.py:50–56  ·  view source on GitHub ↗

Convert to a MessageBlock referencing this attachment.

(self)

Source from the content-addressed store, hash-verified

48 )
49
50 def as_message_block(self) -> MessageBlock:
51 """Convert to a MessageBlock referencing this attachment."""
52 return MessageBlock(
53 type=self.kind,
54 attachment=self.ref.copy(),
55 data=dict(self.extra),
56 )
57
58
59class AttachmentStore:

Callers 8

to_message_blockMethod · 0.80
build_from_file_pathsMethod · 0.80
report_export_pdfFunction · 0.80
load_fileFunction · 0.80
_build_tool_messageMethod · 0.80

Calls 2

MessageBlockClass · 0.90
copyMethod · 0.45

Tested by

no test coverage detected