Skip to content

RequestPermissionRequest

Base classes

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

⋔ Inheritance diagram

graph TD
  95970871023248["permissions.RequestPermissionRequest"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970871023248
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Parameters of session/request_permission.

Source code in src/aclientp/schema/v2/permissions.py
class RequestPermissionRequest(AnnotatedObject):
    """Parameters of ``session/request_permission``."""

    session_id: SessionId
    """The session asking."""

    title: str
    """Title of the permission prompt (not the title of a tool call)."""

    description: str | MISSING | None = MISSING
    """Why permission is needed."""

    subject: RequestPermissionSubject | MISSING | None = MISSING
    """Structured context about the operation."""

    options: Sequence[PermissionOption] = Field(min_length=1)
    """The options the user can choose from; at least one."""

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Why permission is needed.

options class-attribute instance-attribute

options: Sequence[PermissionOption] = Field(min_length=1)

The options the user can choose from; at least one.

session_id instance-attribute

session_id: SessionId

The session asking.

subject class-attribute instance-attribute

subject: RequestPermissionSubject | MISSING | None = MISSING

Structured context about the operation.

title instance-attribute

title: str

Title of the permission prompt (not the title of a tool call).

:fa-brands-github: Show source on GitHub