InputFile

data class InputFile(val type: String = "input_file", val fileId: String? = null, val filename: String? = null, val fileData: String? = null) : InputContent(source)

Represents a file input to the model.

Author

Konstantin Pavlov

Constructors

Link copied to clipboard
constructor(type: String = "input_file", fileId: String? = null, filename: String? = null, fileData: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "file_data")
val fileData: String?

The content of the file to be sent to the model.

Link copied to clipboard
@SerialName(value = "file_id")
val fileId: String?

The ID of the file to be sent to the model.

Link copied to clipboard
@SerialName(value = "filename")
val filename: String?

The name of the file to be sent to the model.

Link copied to clipboard
@SerialName(value = "type")
open override val type: String

The type of the input item. Always "input_file".