MCPcopy
hub / github.com/OpenBMB/ChatDev / _create_message

Method _create_message

workflow/graph.py:850–851  ·  view source on GitHub ↗
(self, role: MessageRole, content: str, source: str)

Source from the content-addressed store, hash-verified

848 return cloned
849
850 def _create_message(self, role: MessageRole, content: str, source: str) -> Message:
851 return Message(role=role, content=content, metadata={"source": source})
852
853 def _ensure_source_output(self, message: Any, node_id: str) -> Message:
854 if not isinstance(message, Message):

Callers 4

_normalize_task_inputMethod · 0.95
_ensure_source_outputMethod · 0.95

Calls 1

MessageClass · 0.90

Tested by

no test coverage detected