pub struct Summarize {
pub prompt: Option<String>,
pub model: Option<String>,
}Fields§
§prompt: Option<String>Override the summarizer’s guidance. The JSON schema it must satisfy
(goals/decisions/open/facts/narrative) is NOT yours to
change — the summary is parsed back into the context, so a prompt that
asks for another shape produces a refusal, not a nicer summary.
model: Option<String>Summarize on this model instead of the instance’s. Compaction is a recurring fixed cost that rarely needs the frontier model.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Summarize
impl<'de> Deserialize<'de> for Summarize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Summarize
Auto Trait Implementations§
impl Freeze for Summarize
impl RefUnwindSafe for Summarize
impl Send for Summarize
impl Sync for Summarize
impl Unpin for Summarize
impl UnsafeUnpin for Summarize
impl UnwindSafe for Summarize
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