Agent Client Protocol - v0.5.1
    Preparing search index...

    Interface CancelNotification

    Cancels ongoing operations for a session.

    This is a notification sent by the client to cancel an ongoing prompt turn.

    Upon receiving this notification, the Agent SHOULD:

    • Stop all language model requests as soon as possible
    • Abort all tool call invocations in progress
    • Send any pending session/update notifications
    • Respond to the original session/prompt request with StopReason::Cancelled

    See protocol docs: Cancellation

    interface CancelNotification {
        _meta?: { [k: string]: unknown };
        sessionId: string;
    }
    Index

    Properties

    Properties

    _meta?: { [k: string]: unknown }

    Extension point for implementations

    sessionId: string

    The ID of the session to cancel operations for.