Gemini.Types.Response.GenerateContentResponse (GeminiEx v0.8.2)
View SourceResponse from content generation.
Summary
Functions
Extract text content from the response.
Get the finish reason from the first candidate.
Parse a generate content response from the API payload.
Get token usage information from the response.
Types
@type t() :: %Gemini.Types.Response.GenerateContentResponse{ candidates: [Gemini.Types.Response.Candidate.t()], create_time: DateTime.t() | nil, model_version: String.t() | nil, prompt_feedback: Gemini.Types.Response.PromptFeedback.t() | nil, response_id: String.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.
Parse a generate content response from the API payload.
Get token usage information from the response.