25 lines
771 B
Rust
25 lines
771 B
Rust
use crate::models::json_types::{AgentVersionConfig, TypedJson};
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct AgentVersion {
|
|
pub id: Uuid,
|
|
pub agent_id: Uuid,
|
|
pub version: String,
|
|
pub name: Option<String>,
|
|
pub description: Option<String>,
|
|
pub model_id: Option<Uuid>,
|
|
pub system_prompt: String,
|
|
pub instructions: Option<String>,
|
|
pub tools: Vec<String>,
|
|
pub config: Option<TypedJson<AgentVersionConfig>>,
|
|
pub changelog: Option<String>,
|
|
pub stable: bool,
|
|
pub published_by: Uuid,
|
|
pub published_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|