Skip to content

SessionSetup

🛈 DocStrings

What acptui sends on session/new, session/resume and session/fork.

Fields the agent has no capability for are left out (MCP servers are filtered by the transports it supports).

Source code in src/acptui/protocol/connection.py
@dataclass(frozen=True)
class SessionSetup:
    """What acptui sends on ``session/new``, ``session/resume`` and ``session/fork``.

    Fields the agent has no capability for are left out (MCP servers are filtered by
    the transports it supports).
    """

    additional_directories: tuple[str, ...] = ()
    mcp_servers: tuple[McpServer, ...] = ()
    system_prompt: str | None = None
    system_prompt_mode: str = "append"
    config_options: tuple[InitialSessionConfigOption, ...] = ()

:fa-brands-github: Show source on GitHub