pub struct HistoryClearContextRequest {
pub prompt: String,
}Expand description
Parameters for clearing the conversation and seeding the window that replaces it.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§prompt: StringFirst user message of the fresh context window. Required: a cleared window holding only system and developer messages is not a conversation a model can answer, so every clear seeds the window it creates. Delivered by the enclosing turn driver once the agentic loop exits, which is why the call must be made from inside a tool handler.
Trait Implementations§
Source§impl Clone for HistoryClearContextRequest
impl Clone for HistoryClearContextRequest
Source§fn clone(&self) -> HistoryClearContextRequest
fn clone(&self) -> HistoryClearContextRequest
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 moreSource§impl Debug for HistoryClearContextRequest
impl Debug for HistoryClearContextRequest
Source§impl Default for HistoryClearContextRequest
impl Default for HistoryClearContextRequest
Source§fn default() -> HistoryClearContextRequest
fn default() -> HistoryClearContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryClearContextRequest
impl<'de> Deserialize<'de> for HistoryClearContextRequest
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
Auto Trait Implementations§
impl Freeze for HistoryClearContextRequest
impl RefUnwindSafe for HistoryClearContextRequest
impl Send for HistoryClearContextRequest
impl Sync for HistoryClearContextRequest
impl Unpin for HistoryClearContextRequest
impl UnsafeUnpin for HistoryClearContextRequest
impl UnwindSafe for HistoryClearContextRequest
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