Package com.openai.models.beta.chatkit
Class ChatKitUploadFileParams.Body
-
- All Implemented Interfaces:
public final class ChatKitUploadFileParams.BodyParameters for uploading an attachment to the active ChatKit session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatKitUploadFileParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStreamfile()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.BuildertoBuilder()final ChatKitUploadFileParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatKitUploadFileParams.Body.Builderbuilder()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()
-
-
-
-