pub struct SelectiveToolResult {
pub keep_last: usize,
}Expand description
Drop Content::FunctionResult (tool-result) content from all but the last
keep_last messages that carry tool results — they are the bulkiest and
least useful once stale. Text and other content is left intact. Messages
that become empty after stripping are dropped entirely. Mirrors upstream’s
ToolResult strategy.
Fields§
§keep_last: usizeImplementations§
Source§impl SelectiveToolResult
impl SelectiveToolResult
pub fn new(keep_last: usize) -> SelectiveToolResult
Trait Implementations§
Source§impl Clone for SelectiveToolResult
impl Clone for SelectiveToolResult
Source§fn clone(&self) -> SelectiveToolResult
fn clone(&self) -> SelectiveToolResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectiveToolResult
Auto Trait Implementations§
impl Freeze for SelectiveToolResult
impl RefUnwindSafe for SelectiveToolResult
impl Send for SelectiveToolResult
impl Sync for SelectiveToolResult
impl Unpin for SelectiveToolResult
impl UnsafeUnpin for SelectiveToolResult
impl UnwindSafe for SelectiveToolResult
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