pub struct AgentSpec {
pub id: AgentId,
pub model: String,
pub max_iterations: u32,
pub token_budget: u32,
pub time_budget_ms: u64,
pub money_budget_usd: f64,
}Expand description
Static, serializable description of an agent. Used by the
registry and Python config; Agent::from_spec materializes the
runtime form.
Fields§
§id: AgentId§model: String§max_iterations: u32§token_budget: u32§time_budget_ms: u64§money_budget_usd: f64Implementations§
Source§impl AgentSpec
impl AgentSpec
pub fn default_budgets( &self, ) -> (TokenBudget, TimeBudget, MoneyBudget, IterationBudget)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentSpec
impl<'de> Deserialize<'de> for AgentSpec
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 AgentSpec
impl RefUnwindSafe for AgentSpec
impl Send for AgentSpec
impl Sync for AgentSpec
impl Unpin for AgentSpec
impl UnsafeUnpin for AgentSpec
impl UnwindSafe for AgentSpec
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