Manages messages within threads. Messages store the conversation history
between the user and the assistant.
Access via client$threads$messages.
new()MessagesClient$new(parent)
create()MessagesClient$create(
thread_id,
role,
content,
attachments = NULL,
metadata = NULL
)
list()MessagesClient$list(
thread_id,
limit = NULL,
order = NULL,
after = NULL,
before = NULL,
run_id = NULL
)
retrieve()MessagesClient$retrieve(thread_id, message_id)
update()MessagesClient$update(thread_id, message_id, metadata = NULL)
delete()MessagesClient$delete(thread_id, message_id)
clone()The objects of this class are cloneable with this method.
MessagesClient$clone(deep = FALSE)deepWhether to make a deep clone.