Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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 struct LatencySensitivityLearner { /* private fields */ }

Learner that derives default latency sensitivity hints from run history.

Implementations

impl LatencySensitivityLearner

impl LatencySensitivityLearner

Referenced types: LatencySensitivityLearner

new

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

Referenced types: Into, String, SensitivityConfig

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.

Trait Implementations

impl Learner for LatencySensitivityLearner

impl Learner for LatencySensitivityLearner

Referenced types: Learner, LatencySensitivityLearner

process_run

fn process_run<'a>(
&'a self,
run: &'a RunRecord,
backend: &'a dyn StorageBackendDyn,
hot_cache: &'a Arc<RwLock<HotCache>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>

Referenced types: process_run, RunRecord, StorageBackendDyn, Arc, RwLock, HotCache, Pin, Box, Future, Result, (), Send