struct

AI::Provider::LanguageModel::FinishReason

Inherits JSON::Serializable < Struct < Value < Object

Reason why a language model finished generating a response.

Constructors

new(unified : UnifiedFinishReason, raw : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

raw

Raw finish reason from the provider.

Source
unified

Unified finish reason for consistent handling across providers.

Source