Message R6 class
Message R6 class
Public fields
id
Character. The ID of the message.
created_at
POSIXct. The time the message was created.
thread_id
Character. The ID of the thread this message belongs to.
status
Character. The status of the message.
incomplete_details
List. Details about the message if it is incomplete.
completed_at
POSIXct. The time the message was completed.
incomplete_at
POSIXct. The time the message was marked as incomplete.
role
Character. The role of the sender.
content
List. The content of the message.
assistant_id
Character. If applicable, the ID of the assistant that authored this message.
run_id
Character. The ID of the run associated with the creation of this message. Value is null when messages are created manually using the create message or create thread endpoints.
attachments
List. Attachments to the message.
metadata
List. Metadata associated with the message.
Methods
Method new()
Initialize a Message object.
Usage
Message$new(
message_id = NULL,
thread_id = NULL,
...,
resp = NULL,
.async = FALSE
)