One tool-use event recorded for the recent-activities preview. Mirrors ``LocalAgentTask.tsx:23-32``. ``activity_description`` is pre-computed at recording time (TS uses ``Tool.getActivityDescription``; Python plumbs the same idea via ``ActivityDescriptionResolver``) so the UI doesn'
| 49 | |
| 50 | @dataclass |
| 51 | class ToolActivity: |
| 52 | """One tool-use event recorded for the recent-activities preview. |
| 53 | |
| 54 | Mirrors ``LocalAgentTask.tsx:23-32``. ``activity_description`` is |
| 55 | pre-computed at recording time (TS uses ``Tool.getActivityDescription``; |
| 56 | Python plumbs the same idea via ``ActivityDescriptionResolver``) so |
| 57 | the UI doesn't have to introspect the input dict on every render. |
| 58 | """ |
| 59 | |
| 60 | tool_name: str |
| 61 | input: dict[str, Any] = field(default_factory=dict) |
| 62 | activity_description: str | None = None |
| 63 | is_search: bool | None = None |
| 64 | is_read: bool | None = None |
| 65 | |
| 66 | |
| 67 | @dataclass |
no outgoing calls