Class CreateMessageRequest.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.CreateMessageRequest.Builder
- Enclosing class:
- CreateMessageRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachments
(List<Attachment> attachments) build()
content
(List<ContentPart> content)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
role
- Parameters:
role
- The role of the entity that is creating the message.
-
role
- Parameters:
role
- The role of the entity that is creating the message.
-
content
- Parameters:
content
- The content of the message.
-
content
- Parameters:
content
- An array of content parts with a defined type
-
attachments
- Parameters:
attachments
- A list of files attached to the message, and the tools they should be added to.
-
metadata
- Parameters:
metadata
- Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
-
build
-