MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / ToolActivity

Class ToolActivity

src/tasks/progress.py:51–64  ·  view source on GitHub ↗

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'

Source from the content-addressed store, hash-verified

49
50@dataclass
51class 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

Calls

no outgoing calls

Tested by 1