# `Raxol.AgentClientProtocol.Schema.LifecycleExtras.CancelRequestNotification`
[🔗](https://github.com/DROOdotFOO/raxol-agent/blob/raxol_agent_client_protocol-v0.1.0/packages/raxol_agent_client_protocol/lib/raxol/agent_client_protocol/schema/lifecycle_extras.ex#L298)

The protocol-level `$/cancel_request` notification: `{requestId, _meta}`,
where `requestId` is a JSON-RPC request id (`null | integer | string`,
see `Raxol.AgentClientProtocol.Rpc.RequestId`). Oracle-derived
(schema.json `CancelRequestNotification`); not a port of any upstream
f1729 module (f1729 has no `$/cancel_request` support).

This struct exists for `MethodTable.rows/0`
completeness and for whichever layer (`Connection`) pre-filters this wire
method before `Router.decode/4` — `Router` itself never generates a
decode clause for this `layer: :protocol` row.

# `t`

```elixir
@type t() ::
  %Raxol.AgentClientProtocol.Schema.LifecycleExtras.CancelRequestNotification{
    _meta: map(),
    request_id: Raxol.AgentClientProtocol.Rpc.RequestId.t()
  }
```

# `from_json`

```elixir
@spec from_json(term()) :: {:ok, t()} | {:error, term()}
```

# `new`

```elixir
@spec new(Raxol.AgentClientProtocol.Rpc.RequestId.t()) :: t()
```

# `to_json`

```elixir
@spec to_json(t()) :: map()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
