# `Raxol.AgentClientProtocol.Rpc.Notification`
[🔗](https://github.com/DROOdotFOO/raxol-agent/blob/raxol_agent_client_protocol-v0.1.0/packages/raxol_agent_client_protocol/lib/raxol/agent_client_protocol/rpc.ex#L187)

JSON-RPC 2.0 Notification object: `method` + optional `params`, no `id`,
no response expected.

Ported from the MIT `f1729/agent_client_protocol` (c) 2025 f1729; see NOTICE.md.

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Rpc.Notification{
  _meta: map(),
  method: String.t(),
  params: any() | nil
}
```

# `from_json`

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

Decode a Notification object. Total: a missing/wrong-typed `method`
returns `{:error, :invalid_request}` rather than raising.

# `new`

```elixir
@spec new(String.t(), any() | nil) :: t()
```

# `to_json`

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

---

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