(self, inputs: List[Message])
| 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: |
no test coverage detected