message
abstract suspend fun message(threadId: ThreadId, request: MessageRequest, requestOptions: RequestOptions? = null): Message
Create a message.
Parameters
threadId
the identifier of the thread
request
message creation request
requestOptions
request options.
abstract suspend fun message(threadId: ThreadId, messageId: MessageId, requestOptions: RequestOptions? = null): Message
Retrieve a message.
Parameters
threadId
the identifier of the thread
messageId
the identifier of the message
requestOptions
request options.
abstract suspend fun message(threadId: ThreadId, messageId: MessageId, metadata: Map<String, String>? = null, requestOptions: RequestOptions? = null): Message
Modify a message.
Parameters
threadId
the identifier of the thread
messageId
the identifier of the message
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 maximum of 512 characters long.
requestOptions
request options.