package com.optix.android.domain.model

data class AiMessage(
    val id: Long = System.currentTimeMillis(),
    val role: MessageRole,
    val content: String,
    val toolName: String? = null,       // set when role == TOOL_RESULT
    val toolCallId: String? = null,
    val toolArguments: Map<String, Any> = emptyMap(),
    val isStreaming: Boolean = false,
    val timestamp: Long = System.currentTimeMillis(),
)

enum class MessageRole { USER, ASSISTANT, TOOL_CALL, TOOL_RESULT, SYSTEM }
