pub struct MicroCompactor {
pub max_tool_result_size: usize,
}Fields§
§max_tool_result_size: usizeImplementations§
Source§impl MicroCompactor
impl MicroCompactor
pub fn new(max_tool_result_size: usize) -> Self
pub fn compact_message(&self, message: &Message) -> Message
pub fn compact_conversation(&self, conversation: &Conversation) -> Conversation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MicroCompactor
impl RefUnwindSafe for MicroCompactor
impl Send for MicroCompactor
impl Sync for MicroCompactor
impl Unpin for MicroCompactor
impl UnsafeUnpin for MicroCompactor
impl UnwindSafe for MicroCompactor
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