InputMessageResource

data class InputMessageResource(val role: InputMessageResource.Role, val content: List<InputContent>, val id: String? = null, val type: InputMessageResource.Type? = null, val status: InputMessageResource.Status? = null)(source)

Represents a message input resource in the OpenAI API.

Author

Konstantin Pavlov

Constructors

Link copied to clipboard
constructor(role: InputMessageResource.Role, content: List<InputContent>, id: String? = null, type: InputMessageResource.Type? = null, status: InputMessageResource.Status? = null)

Types

Link copied to clipboard

The role of the message input. One of user, system, or developer.

Link copied to clipboard

The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Link copied to clipboard

The type of the message input. Always set to message.

Properties

Link copied to clipboard
@SerialName(value = "content")
val content: List<InputContent>

A list of one or many input items to the model, containing different content types.

Link copied to clipboard
@SerialName(value = "id")
val id: String?

The unique ID of the message input.

Link copied to clipboard

The role of the message input. One of user, system, or developer.

Link copied to clipboard

The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Link copied to clipboard

The type of the message input. Always set to message.