ACPex.Schema.Session.CancelNotification (ACPex v0.1.0)

View Source

Notification to cancel prompt processing.

Sent by the client to request cancellation of an ongoing prompt. The agent should stop processing and send a PromptResponse with stop_reason "cancelled".

Required Fields

  • session_id - The session identifier (string)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Session.CancelNotification{
  session_id: "session-123"
}

JSON Representation

{
  "sessionId": "session-123"
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Session.CancelNotification{
  meta: map() | nil,
  session_id: String.t()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • session_id - Must be present