MessageData(
self,
type: MessageType,
content: str,
id: str| Name | Type |
|---|---|
| type | MessageType |
| content | str |
| id | str |
| timestamp | float |
| tool_name | str | None |
| tool_args | dict[str, Any] | None |
| tool_status | ToolStatus | None |
| tool_output | str | None |
| tool_expanded | bool |
| tool_reject_reason | str | None |
| diff_file_path | str | None |
| skill_name | str | None |
| skill_description | str | None |
| skill_source | str | None |
| skill_args | str | None |
| skill_body | str | None |
| skill_expanded | bool |
| is_streaming | bool |
| is_markdown | bool |
| height_hint | int | None |
In-memory message data for virtualization.
This dataclass holds all information needed to recreate a message widget. It is designed to be lightweight so that thousands of messages can be stored without meaningful memory overhead.