Skip to content

RecentSession

🛈 DocStrings

A session acptui had open.

Source code in src/acptui/recent.py
@dataclass(frozen=True)
class RecentSession:
    """A session acptui had open."""

    agent_id: str
    """The registry id of the agent (or the program, for an ad-hoc command)."""
    agent_name: str
    command: tuple[str, ...]
    """The command line (for agents that are not in the registry); empty for URLs."""
    url: str | None
    session_id: str
    cwd: str
    title: str = ""
    time: float = 0.0

agent_id instance-attribute

agent_id: str

The registry id of the agent (or the program, for an ad-hoc command).

command instance-attribute

command: tuple[str, ...]

The command line (for agents that are not in the registry); empty for URLs.

:fa-brands-github: Show source on GitHub