struct AI::Provider::LanguageModel::File

Overview

A file generated by the model.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(media_type : String, data : String | Bytes, provider_metadata : Shared::ProviderMetadata | Nil = nil) #

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

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

[View source]

Instance Method Detail

def data : String | Bytes #

File data as base64 string or binary.


[View source]
def media_type : String #

IANA media type of the file.


[View source]
def provider_metadata : Shared::ProviderMetadata | Nil #

Provider-specific metadata.


[View source]
def type : String #

[View source]