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

Function _format_task

src/command_system/tasks_command.py:33–36  ·  view source on GitHub ↗
(t: Any)

Source from the content-addressed store, hash-verified

31
32
33def _format_task(t: Any) -> str:
34 status = _coerce(getattr(t, "status", "")) or "?"
35 label = getattr(t, "description", "") or _coerce(getattr(t, "type", "")) or "(task)"
36 return f"[{status}] {label} (id: {getattr(t, 'id', '')})"
37
38
39@dataclass(frozen=True)

Callers 1

runMethod · 0.85

Calls 1

_coerceFunction · 0.85

Tested by

no test coverage detected