Struct Prediction Trie Builder
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.
Builds a PredictionTrieNode tree from RunRecords via incremental accumulator merge.
Usage
Implementations
impl PredictionTrieBuilder
Referenced types: PredictionTrieBuilder
new
Referenced types: Option, SensitivityConfig
Creates a new builder with optional sensitivity scoring.
with_accumulators
Referenced types: AccumulatorState, Option, SensitivityConfig
Creates a builder seeded with pre-existing accumulators.
Used by the learner pipeline to resume incremental learning from a stored AccumulatorState.
add_run
Referenced types: RunRecord
Processes a single RunRecord and updates accumulators.
Extracts LLM call contexts, optionally computes sensitivity scores, and updates accumulators at every node along each call’s path.
build
Referenced types: PredictionTrieNode
Constructs the prediction trie from accumulated data.
Iterates all accumulated nodes, navigates/creates the trie path, and populates predictions from the accumulators.
accumulators
Referenced types: AccumulatorState
Returns a reference to the underlying accumulator state.