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

Copy Markdown View Source

An image provided to or from an LLM.

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

Summary

Functions

Total: never raises. Missing/non-string data or mimeType is the only failure mode.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ImageContent{
  _meta: map(),
  annotations: Raxol.AgentClientProtocol.Schema.Annotations.t() | nil,
  data: String.t(),
  mime_type: String.t(),
  uri: String.t() | nil
}

Functions

from_json(map)

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

Total: never raises. Missing/non-string data or mimeType is the only failure mode.

new(data, mime_type)

@spec new(String.t(), String.t()) :: t()

to_json(ic)

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