# `Raxol.AgentClientProtocol.Schema.EmbeddedResourceResource`
[🔗](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/content.ex#L503)

Resource content that can be embedded in a message (untagged union,
discriminated by the presence of a `"text"` or `"blob"` wire key).

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

# `t`

```elixir
@type t() ::
  Raxol.AgentClientProtocol.Schema.TextResourceContents.t()
  | Raxol.AgentClientProtocol.Schema.BlobResourceContents.t()
```

# `from_json`

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

Total: never raises. A map lacking both `"text"` and `"blob"` (so the
variant can't be discriminated) returns `{:error, :ambiguous_resource}`.

# `to_json`

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

---

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