pub struct CompactOptions<'a> {
pub model: &'a Model,
pub custom_instructions: Option<&'a str>,
pub thinking_level: Option<&'a str>,
pub session_id: Option<&'a str>,
pub now_ms: i64,
}Expand description
Settings of one compaction run (compact’s model, focus, thinking level and routing session).
Fields§
§model: &'a Model§custom_instructions: Option<&'a str>Extra focus appended to the summary prompt.
thinking_level: Option<&'a str>§session_id: Option<&'a str>Routing session id forwarded to the provider (without enabling prompt caching).
now_ms: i64Date.now() for the request’s user message.
Trait Implementations§
Source§impl<'a> Clone for CompactOptions<'a>
impl<'a> Clone for CompactOptions<'a>
impl<'a> Copy for CompactOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompactOptions<'a>
impl<'a> !UnwindSafe for CompactOptions<'a>
impl<'a> Forget for CompactOptions<'a>
impl<'a> Freeze for CompactOptions<'a>
impl<'a> Move for CompactOptions<'a>
impl<'a> Send for CompactOptions<'a>
impl<'a> Sync for CompactOptions<'a>
impl<'a> Unpin for CompactOptions<'a>
impl<'a> UnsafeUnpin for CompactOptions<'a>
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