Skip to content

DebugEntry

🛈 DocStrings

Structured debug entry for ACP message tracking.

Source code in src/aclientp/task/debug.py
@dataclass(kw_only=True)
class DebugEntry:
    """Structured debug entry for ACP message tracking."""

    timestamp: str = field(default_factory=lambda: datetime.now().isoformat())
    direction: Literal["outgoing", "incoming"]
    event: Literal["register", "resolve", "reject", "begin", "complete", "fail"]
    request_id: int | None
    method: str
    params: Any = None
    result: Any = None
    error: str | None = None
    status: Literal["pending", "completed", "failed"] | None = None
    duration_ms: float | None = None

:fa-brands-github: Show source on GitHub