Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Thread(val id: ThreadId, val objectType: String? = null, val createdAt: Int, val toolResources: ToolResources? = null, val metadata: Map<String, String>)

Represents a thread that contains messages.

Link copied to clipboard
@Serializable
value class ThreadId(val id: String)

Thread identifier.

Link copied to clipboard
@Serializable
data class ThreadMessage(val role: Role, val content: String, val fileIds: List<FileId>? = null, val metadata: Map<String, String>? = null)

A message in a thread.

Link copied to clipboard
Link copied to clipboard

A list of messages in a thread.

Link copied to clipboard
@Serializable
data class ThreadRequest(val messages: List<ThreadMessage>? = null, val toolResources: ToolResources? = null, val metadata: Map<String, String>? = null)

Represents a thread that contains messages.

Link copied to clipboard

A thread request builder.

Functions

Link copied to clipboard

Creates a ThreadMessage instance using the provided builder block.

Link copied to clipboard

Creates a ThreadRequest instance using the provided builder block.