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

Method describe

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

Source from the content-addressed store, hash-verified

222 return bool(self.output_blocks)
223
224 def describe(self) -> str:
225 if self.output_text:
226 return self.output_text
227 if self.output_blocks:
228 descriptions = [block.describe() for block in self.output_blocks]
229 return "\n".join(filter(None, descriptions))
230 return ""
231
232
233MessageContent = Union[str, List[MessageBlock], List[Dict[str, Any]]]

Callers

nothing calls this directly

Calls 1

describeMethod · 0.45

Tested by

no test coverage detected