struct
AI::Provider::LanguageModel::FilePart
- AI::Provider::LanguageModel::FilePart
- Struct
- Value
- Object
Overview
File content part (for prompts).
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/prompt.crConstructors
- .new(data : DataContent, media_type : String, filename : String | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #data : DataContent
- #filename : String | Nil
- #media_type : String
- #provider_options : Shared::ProviderOptions | Nil
- #type : String