Raxol.AgentClientProtocol.Schema.EmbeddedResource (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

The contents of a resource, embedded into a prompt or tool call result.

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

Summary

Functions

Total: never raises. A missing/unparseable resource is the only failure mode (required field).

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.EmbeddedResource{
  _meta: map(),
  annotations: Raxol.AgentClientProtocol.Schema.Annotations.t() | nil,
  resource: Raxol.AgentClientProtocol.Schema.EmbeddedResourceResource.t()
}

Functions

from_json(map)

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

Total: never raises. A missing/unparseable resource is the only failure mode (required field).

new(resource)

to_json(er)

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