pub struct BudgetContextPolicy { /* private fields */ }Implementations§
Source§impl BudgetContextPolicy
impl BudgetContextPolicy
pub fn new(config: ContextConfig) -> Result<Self, ContextError>
Trait Implementations§
Source§impl ContextPolicy for BudgetContextPolicy
impl ContextPolicy for BudgetContextPolicy
fn select( &self, history: &[Message], system_prompt: &str, tools: &[ToolSpec], ) -> Result<ContextSelection, ContextError>
Auto Trait Implementations§
impl Freeze for BudgetContextPolicy
impl RefUnwindSafe for BudgetContextPolicy
impl Send for BudgetContextPolicy
impl Sync for BudgetContextPolicy
impl Unpin for BudgetContextPolicy
impl UnsafeUnpin for BudgetContextPolicy
impl UnwindSafe for BudgetContextPolicy
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