Skip to content

NotificationSettings

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  449522633["config.NotificationSettings"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 449522633
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

[notifications]: getting your attention when the agent needs it or is done.

Source code in src/acptui/config.py
class NotificationSettings(BaseModel):
    """``[notifications]``: getting your attention when the agent needs it or is done."""

    model_config = ConfigDict(extra="forbid")

    when: Literal["never", "unfocused", "always"] = "unfocused"
    """Notify outside the app: never, when the terminal is not focused (or the session is in
    another tab), or always."""

    method: Literal["auto", "terminal", "desktop"] = "auto"
    """``terminal`` escape sequences (work over SSH), the ``desktop`` notifier (notify-send,
    osascript), or ``auto``: the desktop when it is local and has a notifier."""

    sounds: bool = True
    """Play a sound with the notification."""

    turn_end: bool = True
    """Notify when a turn ends (not only when the agent asks something)."""

    title: bool = True
    """Show the session in the terminal title, marked while the agent waits for you."""

method class-attribute instance-attribute

method: Literal['auto', 'terminal', 'desktop'] = 'auto'

terminal escape sequences (work over SSH), the desktop notifier (notify-send, osascript), or auto: the desktop when it is local and has a notifier.

sounds class-attribute instance-attribute

sounds: bool = True

Play a sound with the notification.

title class-attribute instance-attribute

title: bool = True

Show the session in the terminal title, marked while the agent waits for you.

turn_end class-attribute instance-attribute

turn_end: bool = True

Notify when a turn ends (not only when the agent asks something).

when class-attribute instance-attribute

when: Literal['never', 'unfocused', 'always'] = 'unfocused'

Notify outside the app: never, when the terminal is not focused (or the session is in another tab), or always.

:fa-brands-github: Show source on GitHub