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

Copy Markdown View Source

A conversation turn in the Interactions API.

Summary

Types

content()

@type content() :: String.t() | [Gemini.Types.Interactions.Content.t()] | nil

t()

@type t() :: %Gemini.Types.Interactions.Turn{
  content: content() | nil,
  role: String.t() | nil
}

Functions

from_api(turn)

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

to_api(map)

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