(self)
| 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 | |
| 233 | MessageContent = Union[str, List[MessageBlock], List[Dict[str, Any]]] |