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

Method _inputs_to_text

runtime/node/executor/base.py:110–119  ·  view source on GitHub ↗
(self, inputs: List[Message])

Source from the content-addressed store, hash-verified

108 return self.context.log_manager
109
110 def _inputs_to_text(self, inputs: List[Message]) -> str:
111 if not inputs:
112 return ""
113 parts: list[str] = []
114 for message in inputs:
115 source = message.metadata.get("source", "UNKNOWN")
116 parts.append(
117 f"=== INPUT FROM {source} ({message.role.value}) ===\n\n{message.text_content()}"
118 )
119 return "\n\n".join(parts)
120
121 def _inputs_to_message_json(self, inputs: List[Message]) -> str | None:
122 if not inputs:

Callers 3

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 2

text_contentMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected