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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
tool_protocol_error?(finish_reason : FinishReason | Nil, finish_message : String | Nil) : Crig::Completion::CompletionError | Nil
SourceInstance methods
candidates
Sourcemodel_version
Sourceprompt_feedback
Sourceresponse_id
Sourceto_completion_response
Sourceusage_metadata
Source