Skip to content

CancelRequestNotification

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970860011856["notifications.CancelRequestNotification"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970860011856
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Notification to cancel an ongoing request ($/cancel_request).

Either side may send it for a request it issued. The receiver should stop the work and may reply with a -32800 (request cancelled) error or a normal response. Unknown or already answered request IDs are ignored.

Source code in src/aclientp/schema/notifications.py
class CancelRequestNotification(AnnotatedObject):
    """Notification to cancel an ongoing request (``$/cancel_request``).

    Either side may send it for a request it issued. The receiver should stop
    the work and may reply with a ``-32800`` (request cancelled) error or a normal
    response. Unknown or already answered request IDs are ignored.
    """

    request_id: int | str | None
    """The ID of the request to cancel."""

request_id instance-attribute

request_id: int | str | None

The ID of the request to cancel.

:fa-brands-github: Show source on GitHub