Companion

object Companion

Functions

Link copied to clipboard
fun Assistant(content: String? = null, name: String? = null, toolCalls: List<ToolCall>? = null): ChatMessage

Create an assistant chat message.

Link copied to clipboard
fun System(content: String? = null, name: String? = null): ChatMessage

Create a system chat message.

Link copied to clipboard
fun Tool(content: String? = null, toolCallId: ToolId): ChatMessage

Create a tool chat message.

Link copied to clipboard
fun User(content: String, name: String? = null): ChatMessage
fun User(content: List<ContentPart>, name: String? = null): ChatMessage

Create a system chat message.