pub struct UtilityScore {
pub gain: f32,
pub cost: f32,
pub redundancy: f32,
pub uncertainty: f32,
pub total: f32,
}Expand description
Computed utility components for a candidate tool call.
Fields§
§gain: f32Estimated information gain from executing the tool.
cost: f32Normalized token cost: tokens_consumed / token_budget.
redundancy: f32Redundancy penalty: 1.0 if identical (tool_name, params_hash) was seen this turn.
uncertainty: f32Exploration bonus: decreases as turn progresses (1 - tool_calls_this_turn / max_calls).
total: f32Weighted aggregate.
Trait Implementations§
Source§impl Clone for UtilityScore
impl Clone for UtilityScore
Source§fn clone(&self) -> UtilityScore
fn clone(&self) -> UtilityScore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UtilityScore
impl RefUnwindSafe for UtilityScore
impl Send for UtilityScore
impl Sync for UtilityScore
impl Unpin for UtilityScore
impl UnsafeUnpin for UtilityScore
impl UnwindSafe for UtilityScore
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