Enum Response Cache KeyStrategy
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub enum ResponseCacheKeyStrategy {
ExactRequest,
Logical,
Unknown(String),
}
Strategy for deriving an LLM response-cache key.
The Unknown variant preserves an unsupported JSON/TOML value long enough for configuration validation to report it with a field-specific diagnostic.
Variants
ExactRequest
ExactRequest
Key on the normalized request exactly.
Logical
Logical
Normalize tool schemas structurally while preserving their interface.
Unknown(String)
Unknown(String)
A wire value not supported by this Relay build.
Implementations
impl ResponseCacheKeyStrategy
impl ResponseCacheKeyStrategy
as_str
pub fn as_str(&self) -> &str
Stable JSON/TOML representation of this strategy.
Trait Implementations
impl Clone for ResponseCacheKeyStrategy
impl Clone for ResponseCacheKeyStrategy
clone
fn clone(&self) -> ResponseCacheKeyStrategy
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ResponseCacheKeyStrategy
impl Debug for ResponseCacheKeyStrategy
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ResponseCacheKeyStrategy
impl Default for ResponseCacheKeyStrategy
default
fn default() -> ResponseCacheKeyStrategy
impl<'de> Deserialize<'de> for ResponseCacheKeyStrategy
impl<'de> Deserialize<'de> for ResponseCacheKeyStrategy
deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl From<&str> for ResponseCacheKeyStrategy
impl From<&str> for ResponseCacheKeyStrategy
from
fn from(value: &str) -> Self
impl From<String> for ResponseCacheKeyStrategy
impl From<String> for ResponseCacheKeyStrategy
from
fn from(value: String) -> Self
impl PartialEq for ResponseCacheKeyStrategy
impl PartialEq for ResponseCacheKeyStrategy
eq
fn eq(&self, other: &ResponseCacheKeyStrategy) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ResponseCacheKeyStrategy
impl Serialize for ResponseCacheKeyStrategy
serialize
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where
S: Serializer,
impl Eq for ResponseCacheKeyStrategy
impl Eq for ResponseCacheKeyStrategy
impl StructuralPartialEq for ResponseCacheKeyStrategy
impl StructuralPartialEq for ResponseCacheKeyStrategy