pub struct Budgets {
pub prompt: Duration,
pub pre_tool: Duration,
pub post_tool: Duration,
pub stop: Duration,
pub end: Duration,
}Expand description
How long an adapter waits for borg’s answer at each event before it fails open (borg is killed and
the harness carries on as if it said nothing), for a harness whose hooks are an adapter’s. borg’s
answer carries them to an adapter that asks (with_budgets), so this table is their one
definition: the adapter’s own copy is only its fallback until such an answer came (a test here keeps
the two equal).
Fields§
§prompt: DurationThe engineer’s prompt: how long it waits for borg’s context.
pre_tool: DurationBefore every tool call (only steering reads there: a stat when nobody steers).
post_tool: DurationAfter a tool call: how long its result waits for borg’s context.
stop: DurationThe stop, the one hook that may call a model: also its Caps::stop_budget.
end: DurationThe session’s end.
Implementations§
Trait Implementations§
impl Copy for Budgets
impl Eq for Budgets
impl StructuralPartialEq for Budgets
Auto Trait Implementations§
impl Freeze for Budgets
impl RefUnwindSafe for Budgets
impl Send for Budgets
impl Sync for Budgets
impl Unpin for Budgets
impl UnsafeUnpin for Budgets
impl UnwindSafe for Budgets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.