Skip to content

ExtNotification

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Extension notification from client or agent.

Allows sending arbitrary notifications that are not part of the ACP spec. Extension notifications provide a way to send one-way messages for custom functionality while maintaining protocol compatibility.

The method name should be prefixed with an underscore (e.g., _myExtension/notify).

See protocol docs: Extensibility

Source code in src/aclientp/schema/notifications.py
class ExtNotification(AnnotatedObject):
    """Extension notification from client or agent.

    Allows sending arbitrary notifications that are not part of the ACP spec.
    Extension notifications provide a way to send one-way messages for custom
    functionality while maintaining protocol compatibility.

    The method name should be prefixed with an underscore (e.g., `_myExtension/notify`).

    See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
    """

    method: str
    """The extension method name (should be prefixed with underscore)."""

    params: dict[str, Any] | None = None
    """Optional parameters for the notification."""

method instance-attribute

method: str

The extension method name (should be prefixed with underscore).

params class-attribute instance-attribute

params: dict[str, Any] | None = None

Optional parameters for the notification.

:fa-brands-github: Show source on GitHub