pub struct AgentCacheKey {
pub hash: String,
pub prompt_preview: String,
pub model: Option<String>,
pub phase_id: PhaseId,
}Expand description
Deterministic cache key for an agent invocation. Normalizes whitespace/unicode to ensure cache hits across formatting differences.
Fields§
§hash: String§prompt_preview: StringHuman-readable for debugging
model: Option<String>§phase_id: PhaseIdImplementations§
Trait Implementations§
Source§impl Clone for AgentCacheKey
impl Clone for AgentCacheKey
Source§fn clone(&self) -> AgentCacheKey
fn clone(&self) -> AgentCacheKey
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 AgentCacheKey
impl Debug for AgentCacheKey
Source§impl<'de> Deserialize<'de> for AgentCacheKey
impl<'de> Deserialize<'de> for AgentCacheKey
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 AgentCacheKey
Source§impl Hash for AgentCacheKey
impl Hash for AgentCacheKey
Source§impl PartialEq for AgentCacheKey
impl PartialEq for AgentCacheKey
Source§impl Serialize for AgentCacheKey
impl Serialize for AgentCacheKey
impl StructuralPartialEq for AgentCacheKey
Auto Trait Implementations§
impl Freeze for AgentCacheKey
impl RefUnwindSafe for AgentCacheKey
impl Send for AgentCacheKey
impl Sync for AgentCacheKey
impl Unpin for AgentCacheKey
impl UnsafeUnpin for AgentCacheKey
impl UnwindSafe for AgentCacheKey
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