pub enum CacheDirective {
None,
StablePrefix,
}Expand description
Prompt-cache instruction carried on a ModelRequest. Adapters map this
directive to protocol-specific cache mechanisms or treat it as a no-op where
caching is automatic or unsupported.
Exhaustive on purpose: a renderer that marks cache anchors matches every directive, so a new one is a breaking change.
Serializable for logs and tests; the serialized form is not part of the stable set and may change in any release.
Variants§
None
Mark no explicit cache breakpoints (the default).
StablePrefix
Mark the stable-prefix anchors so provider caches cover the tool surface, the system prefix, and the latest stable conversation message.
Trait Implementations§
Source§impl Clone for CacheDirective
impl Clone for CacheDirective
impl Copy for CacheDirective
Source§impl Debug for CacheDirective
impl Debug for CacheDirective
Source§impl Default for CacheDirective
impl Default for CacheDirective
Source§impl<'de> Deserialize<'de> for CacheDirective
impl<'de> Deserialize<'de> for CacheDirective
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 Eq for CacheDirective
Source§impl PartialEq for CacheDirective
impl PartialEq for CacheDirective
Source§impl Serialize for CacheDirective
impl Serialize for CacheDirective
impl StructuralPartialEq for CacheDirective
Auto Trait Implementations§
impl Forget for CacheDirective
impl Freeze for CacheDirective
impl Move for CacheDirective
impl RefUnwindSafe for CacheDirective
impl Send for CacheDirective
impl Sync for CacheDirective
impl Unpin for CacheDirective
impl UnsafeUnpin for CacheDirective
impl UnwindSafe for CacheDirective
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