pub struct CreateAgent {
pub name: String,
pub skills: Option<Vec<String>>,
pub model: Option<String>,
pub provider: Option<String>,
pub cost_tier: Option<String>,
pub capabilities: Option<Vec<String>>,
pub seniority: Option<String>,
pub role: Option<String>,
pub owner_id: Option<String>,
}Fields§
§name: String§skills: Option<Vec<String>>§model: Option<String>§provider: Option<String>§cost_tier: Option<String>§capabilities: Option<Vec<String>>§seniority: Option<String>§role: Option<String>§owner_id: Option<String>Implementations§
Source§impl CreateAgent
impl CreateAgent
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Builder for tests — single update point when schema changes.
pub fn with_skills(self, skills: Vec<String>) -> Self
pub fn with_seniority(self, seniority: impl Into<String>) -> Self
pub fn with_role(self, role: impl Into<String>) -> Self
pub fn with_capabilities(self, capabilities: Vec<String>) -> Self
Trait Implementations§
Source§impl Debug for CreateAgent
impl Debug for CreateAgent
Source§impl<'de> Deserialize<'de> for CreateAgent
impl<'de> Deserialize<'de> for CreateAgent
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 CreateAgent
impl RefUnwindSafe for CreateAgent
impl Send for CreateAgent
impl Sync for CreateAgent
impl Unpin for CreateAgent
impl UnsafeUnpin for CreateAgent
impl UnwindSafe for CreateAgent
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