Package com.openai.models.beta.chatkit
Class ChatKitUploadFileParams.Body
-
- All Implemented Interfaces:
public final class ChatKitUploadFileParams.Body
Parameters for uploading an attachment to the active ChatKit session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatKitUploadFileParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStream
file()
Binary file contents to store with the ChatKit session. final MultipartField<InputStream>
_file()
Returns the raw multipart value of file. final Map<String, JsonValue>
_additionalProperties()
final ChatKitUploadFileParams.Body.Builder
toBuilder()
final ChatKitUploadFileParams.Body
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitUploadFileParams.Body.Builder
builder()
Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
file
final InputStream file()
Binary file contents to store with the ChatKit session. Supports PDFs and PNG, JPG, JPEG, GIF, or WEBP images.
-
_file
final MultipartField<InputStream> _file()
Returns the raw multipart value of file.
Unlike file, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatKitUploadFileParams.Body.Builder toBuilder()
-
validate
final ChatKitUploadFileParams.Body validate()
-
builder
final static ChatKitUploadFileParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.file()
-
-
-
-