pub struct CallCtx {
pub agent_id: Option<AgentId>,
pub tokens: TokenBudget,
pub time: TimeBudget,
pub money: MoneyBudget,
pub iterations: IterationBudget,
pub trace: Vec<String>,
}Expand description
Context passed to Callable::call. Carries the budgets so a
callable can refuse work it can’t afford.
Fields§
§agent_id: Option<AgentId>§tokens: TokenBudget§time: TimeBudget§money: MoneyBudget§iterations: IterationBudget§trace: Vec<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallCtx
impl RefUnwindSafe for CallCtx
impl Send for CallCtx
impl Sync for CallCtx
impl Unpin for CallCtx
impl UnsafeUnpin for CallCtx
impl UnwindSafe for CallCtx
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