Companion

object Companion

Functions

Link copied to clipboard

Supplies a function result for the corresponding call identifier.

Link copied to clipboard
fun message(role: Role, text: String): ConversationItem

Creates a message containing plain text.

fun message(role: Role, content: JsonElement): ConversationItem

Creates a message containing text or an array of multimodal content parts.