struct AI::Provider::LanguageModel::FilePart

Overview

File content part (for prompts).

Included Modules

Defined in:

ai/provider/language_model/prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : DataContent, media_type : String, filename : String | Nil = nil, provider_options : Shared::ProviderOptions | 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 : DataContent #

[View source]
def filename : String | Nil #

[View source]
def media_type : String #

[View source]
def provider_options : Shared::ProviderOptions | Nil #

[View source]
def type : String #

[View source]