GetMessageContextQueryParams

data class GetMessageContextQueryParams(val convoId: String? = null, val messageId: String, val before: Long? = 5, val after: Long? = 5, val maxInterleavedSystemMessages: Long? = 10)

Parameters

convoId

Conversation that the message is from. NOTE: this field will eventually be required.

before

Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages before the target, up to maxInterleavedSystemMessages system messages immediately preceding the target are returned instead.

after

Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages after the target, up to maxInterleavedSystemMessages system messages immediately following the target are returned instead.

maxInterleavedSystemMessages

Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.

Constructors

Link copied to clipboard
constructor(convoId: String? = null, messageId: String, before: Long? = 5, after: Long? = 5, maxInterleavedSystemMessages: Long? = 10)

Properties

Link copied to clipboard
val after: Long?

Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages after the target, up to maxInterleavedSystemMessages system messages immediately following the target are returned instead.

Link copied to clipboard
val before: Long?

Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages before the target, up to maxInterleavedSystemMessages system messages immediately preceding the target are returned instead.

Link copied to clipboard

Conversation that the message is from. NOTE: this field will eventually be required.

Link copied to clipboard

Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.

Link copied to clipboard

Functions

Link copied to clipboard