pub struct Agent {Show 13 fields
pub id: Uuid,
pub name: String,
pub description: Option<String>,
pub model: String,
pub system_prompt: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<i32>,
pub tools: Vec<String>,
pub created_by: String,
pub is_public: bool,
pub usage_count: i64,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Agent model
Fields§
§id: Uuid§name: String§description: Option<String>§model: String§system_prompt: Option<String>§temperature: Option<f32>§max_tokens: Option<i32>§tools: Vec<String>§created_by: String§is_public: bool§usage_count: i64§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more