enum Gemini::FinishReason

Overview

Defines the reason why the model stopped generating tokens.

API Reference

Defined in:

gemini/types.cr

Enum Members

FinishReasonUnspecified = 0
Stop = 1
MaxTokens = 2
Safety = 3
Recitation = 4
Language = 5
Other = 6
Blocklist = 7
ProhibitedContent = 8
SPII = 9
MalformedFunctionCall = 10

Instance Method Summary

Instance Method Detail

def blocklist? #

def finish_reason_unspecified? #

def language? #

def malformed_function_call? #

def max_tokens? #

def other? #

def prohibited_content? #

def recitation? #

def safety? #

def spii? #

def stop? #