Skip to content

SessionOptionsRequest

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970871306240["sessions.SessionOptionsRequest"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970871306240
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: Parameters of session/options.

Returns the config options a session would start with, without creating or resuming one.

Source code in src/aclientp/schema/v2/sessions.py
class SessionOptionsRequest(AnnotatedObject):
    """**UNSTABLE**: Parameters of ``session/options``.

    Returns the config options a session would start with, without creating or resuming
    one.
    """

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

    additional_directories: Sequence[AbsolutePath] | MISSING = MISSING
    """Additional workspace roots to resolve options for. Each path must be absolute."""

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

additional_directories class-attribute instance-attribute

additional_directories: Sequence[AbsolutePath] | MISSING = MISSING

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

cwd instance-attribute

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

session_id class-attribute instance-attribute

session_id: SessionId | MISSING | None = MISSING

The session to resolve options for.

:fa-brands-github: Show source on GitHub