pub struct RoleAggressiveness {
pub system: Option<f64>,
pub user: Option<f64>,
}Expand description
Per-role prose-compression intensity for the proxy’s frozen request region.
Each value is a 0.0–1.0 aggressiveness level reusing the same mapping as
the ctx_read knob (#708): 0.0 keeps everything, 1.0 is most aggressive.
None (the default) means “do not compress this role’s prose” so the proxy
stays byte-for-byte unchanged until an operator opts in. The assistant
role is never represented here — model turns are always passed through
verbatim (the #710 passthrough guarantee).
Fields§
§system: Option<f64>Aggressiveness for system prompts (Anthropic system / OpenAI system
messages / Gemini systemInstruction). None = leave untouched.
user: Option<f64>Aggressiveness for user prose (free-text user turns, never tool results).
None = leave untouched.
Trait Implementations§
Source§impl Clone for RoleAggressiveness
impl Clone for RoleAggressiveness
Source§fn clone(&self) -> RoleAggressiveness
fn clone(&self) -> RoleAggressiveness
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 RoleAggressiveness
impl Debug for RoleAggressiveness
Source§impl Default for RoleAggressiveness
impl Default for RoleAggressiveness
Source§fn default() -> RoleAggressiveness
fn default() -> RoleAggressiveness
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoleAggressivenesswhere
RoleAggressiveness: Default,
impl<'de> Deserialize<'de> for RoleAggressivenesswhere
RoleAggressiveness: Default,
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
Source§impl PartialEq for RoleAggressiveness
impl PartialEq for RoleAggressiveness
Source§impl Serialize for RoleAggressiveness
impl Serialize for RoleAggressiveness
impl StructuralPartialEq for RoleAggressiveness
Auto Trait Implementations§
impl Freeze for RoleAggressiveness
impl RefUnwindSafe for RoleAggressiveness
impl Send for RoleAggressiveness
impl Sync for RoleAggressiveness
impl Unpin for RoleAggressiveness
impl UnsafeUnpin for RoleAggressiveness
impl UnwindSafe for RoleAggressiveness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more