struct AI::Provider::LanguageModel::FinishReason

Overview

Reason why a language model finished generating a response.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(unified : UnifiedFinishReason, raw : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def raw : String | Nil #

Raw finish reason from the provider.


[View source]
def unified : UnifiedFinishReason #

Unified finish reason for consistent handling across providers.


[View source]