struct

Crig::Providers::Gemini::GenerateContentResponse

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(response_id : String, candidates : Array(ContentCandidate), prompt_feedback : PromptFeedback | Nil = nil, usage_metadata : UsageMetadata | Nil = nil, model_version : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

tool_protocol_error?(finish_reason : FinishReason | Nil, finish_message : String | Nil) : Crig::Completion::CompletionError | Nil
Source

Instance methods

candidates
Source
model_version
Source
prompt_feedback
Source
response_id
Source
to_completion_response
Source
usage_metadata
Source