AiliaLLMChatMessage

data class AiliaLLMChatMessage(val role: String, val content: String)

Represents a chat message for AiliaLLM. Each message has a role (system, user, assistant, or tool) and content. For tool use, a "tool" message holds the tool result as its content, see AiliaLLM.setTools.

Constructors

Link copied to clipboard
constructor(role: String, content: String)

Properties

Link copied to clipboard

The content of the message

Link copied to clipboard

The role of the message sender (system, user, assistant, or tool)

Functions

Link copied to clipboard
open override fun toString(): String