Gemini.Types.Interactions.ImageContent (GeminiEx v0.9.0)

Copy Markdown View Source

An image content block (type: "image").

Summary

Types

resolution()

@type resolution() :: :low | :medium | :high | :ultra_high | String.t()

t()

@type t() :: %Gemini.Types.Interactions.ImageContent{
  data: String.t() | nil,
  mime_type: String.t() | nil,
  resolution: resolution() | nil,
  type: String.t(),
  uri: String.t() | nil
}

Functions

from_api(content)

@spec from_api(map() | nil) :: t() | nil

to_api(map)

@spec to_api(t() | map() | nil) :: map() | nil