Gemini.Types.Response.GenerateContentResponse (GeminiEx v0.2.0)
View SourceResponse from content generation.
Summary
Functions
Extract text content from the response.
Get the finish reason from the first candidate.
Get token usage information from the response.
Types
@type t() :: %Gemini.Types.Response.GenerateContentResponse{ candidates: [Gemini.Types.Response.Candidate.t()], prompt_feedback: Gemini.Types.Response.PromptFeedback.t() | nil, usage_metadata: Gemini.Types.Response.UsageMetadata.t() | nil }
Functions
Extract text content from the response.
Get the finish reason from the first candidate.
Get token usage information from the response.