Raxol. AgentClientProtocol. Schema. EmbeddedResourceResource
(Raxol Agent Client Protocol v0.1.0)
Copy Markdown
View Source
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.
Summary
Functions
Total: never raises. A map lacking both "text" and "blob" (so the
variant can't be discriminated) returns {:error, :ambiguous_resource}.