Gemini.Types.Content (GeminiEx v0.0.2)
View SourceContent type for Gemini API requests and responses.
Summary
Functions
Create content with an image from a file path.
Create content with text and image.
Create content with text.
Types
@type parts() :: [Gemini.Types.Part.t()]
Ordered parts that constitute a single message.
@type role() :: String.t()
The role of the content creator.
@type t() :: %Gemini.Types.Content{parts: [Gemini.Types.Part.t()], role: String.t()}
Functions
Create content with an image from a file path.
Create content with text and image.
Create content with text.