#[repr(C)]pub struct KernelInput {Show 13 fields
pub request_sequence: u64,
pub requested_model_id: u32,
pub input_tokens: u32,
pub output_tokens: u32,
pub business_value_microunits: i64,
pub budget_limit_microunits: u64,
pub risk_bps: u16,
pub confidence_bps: u16,
pub minimum_quality_bps: u16,
pub max_p95_latency_ms: u32,
pub required_capabilities: u64,
pub allowed_provider_mask: u64,
pub required_region_mask: u64,
}Expand description
A decision request to be evaluated against the policy.
Fields§
§request_sequence: u64Monotonic sequence number for this request.
requested_model_id: u32The model the caller originally requested.
input_tokens: u32Number of input tokens.
output_tokens: u32Number of output tokens.
business_value_microunits: i64Expected business value of this request, in microunits.
budget_limit_microunits: u64Maximum cost allowed, in microunits.
risk_bps: u16Risk level of this request, in basis points (0 = safe, 10,000 = max).
confidence_bps: u16Confidence in the risk estimate, in basis points.
minimum_quality_bps: u16Minimum acceptable quality, in basis points.
max_p95_latency_ms: u32Maximum acceptable p95 latency (0 = no limit).
required_capabilities: u64Required capability bitmask (all bits must match).
allowed_provider_mask: u64Allowed provider bitmask (ALL_PROVIDERS = any).
required_region_mask: u64Required region bitmask (0 = no constraint).
Trait Implementations§
Source§impl Clone for KernelInput
impl Clone for KernelInput
Source§fn clone(&self) -> KernelInput
fn clone(&self) -> KernelInput
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 moreimpl Copy for KernelInput
Source§impl Debug for KernelInput
impl Debug for KernelInput
Source§impl<'de> Deserialize<'de> for KernelInput
impl<'de> Deserialize<'de> for KernelInput
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 KernelInput
Source§impl PartialEq for KernelInput
impl PartialEq for KernelInput
Source§fn eq(&self, other: &KernelInput) -> bool
fn eq(&self, other: &KernelInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KernelInput
impl Serialize for KernelInput
impl StructuralPartialEq for KernelInput
Auto Trait Implementations§
impl Freeze for KernelInput
impl RefUnwindSafe for KernelInput
impl Send for KernelInput
impl Sync for KernelInput
impl Unpin for KernelInput
impl UnsafeUnpin for KernelInput
impl UnwindSafe for KernelInput
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.