mod latency#

module latency#

Learner that builds latency sensitivity hints from run history. Latency-sensitivity learner implementation.

Functions

fn compute_default_hints(trie_root: &PredictionTrieNode, sensitivity_scale: u32) -> Option<AgentHints>#

Compute default agent hints from the root trie prediction.

Parameters

  • trie_root: Root node of the learned prediction trie.

  • sensitivity_scale: Scheduling scale used to derive the priority hint.

Returns

Some(AgentHints) when the trie contains an any-index prediction at the root and None otherwise.

Structs and Unions

struct LatencySensitivityLearner#

Learner that derives default latency sensitivity hints from run history.

Implementations

impl LatencySensitivityLearner#

Functions

fn new(agent_id: impl Into<String>, config: SensitivityConfig) -> Self#

Create a new latency-sensitivity learner.

Parameters

  • agent_id: Agent identifier whose trie state should be updated.

  • config: Sensitivity-derivation configuration for the trie builder.

Returns

A configured LatencySensitivityLearner.

Traits implemented

impl Learner for LatencySensitivityLearner#