Skip to content

SessionOptionsRequest

Base classes

Name Children Inherits
Request
aclientp.schema.base
Base request model.

⋔ Inheritance diagram

graph TD
  95970859740816["client_requests.SessionOptionsRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970858197488 --> 95970859740816
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Request

UNSTABLE: Request the modes and config options a session would start with.

Only available if the Agent supports the session.options capability.

Source code in src/aclientp/schema/client_requests.py
class SessionOptionsRequest(Request):
    """**UNSTABLE**: Request the modes and config options a session would start with.

    Only available if the Agent supports the ``session.options`` capability.
    """

    cwd: str
    """The working directory to resolve options for. Must be an absolute path."""

    additional_directories: Sequence[str] = Field(default_factory=list)
    """Additional workspace roots to resolve options for. Each path must be absolute."""

    session_id: str | None = None
    """The session to resolve options for."""

additional_directories class-attribute instance-attribute

additional_directories: Sequence[str] = Field(default_factory=list)

Additional workspace roots to resolve options for. Each path must be absolute.

cwd instance-attribute

cwd: str

The working directory to resolve options for. Must be an absolute path.

session_id class-attribute instance-attribute

session_id: str | None = None

The session to resolve options for.

:fa-brands-github: Show source on GitHub