Skip to main content

caliban_provider/
cache.rs

1//! Prompt-cache markers in the IR.
2
3use serde::{Deserialize, Serialize};
4
5/// Cache-control marker that can be attached to content blocks.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
7#[serde(tag = "type", rename_all = "snake_case")]
8pub enum CacheControl {
9    /// Mark this block as an ephemeral cache breakpoint.
10    Ephemeral,
11}