use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct AgentModelInvocationModel {
    pub id: Uuid,
    pub session: Uuid,
    pub conversation: Option<Uuid>,
    pub message: Option<Uuid>,
    pub model_version: Uuid,
    pub request_id: Option<String>,
    pub status: String,
    pub prompt: Option<String>,
    pub response: Option<String>,
    pub error: Option<String>,
    pub started_at: DateTime<Utc>,
    pub finished_at: Option<DateTime<Utc>>,
    pub latency_ms: Option<i64>,
}
