pub struct Agent {
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub system_prompt: Option<String>,
pub tools: Option<Vec<String>>,
pub icon: Option<String>,
pub color: Option<String>,
pub is_default: Option<bool>,
pub is_preconfigured: Option<bool>,
pub created_at: Option<DateTime<FixedOffset>>,
pub updated_at: Option<DateTime<FixedOffset>>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Agent : Stored agent configuration (system prompt + tool selection). User-defined agents and preconfigured agents share this shape.
Fields§
§id: String§name: Option<String>§description: Option<String>§system_prompt: Option<String>§tools: Option<Vec<String>>§icon: Option<String>§color: Option<String>§is_default: Option<bool>§is_preconfigured: Option<bool>§created_at: Option<DateTime<FixedOffset>>§updated_at: Option<DateTime<FixedOffset>>§metadata: Option<HashMap<String, Value>>Implementations§
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
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin 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