Struct Prediction Trie Node
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct PredictionTrieNode {
pub name: String,
pub children: HashMap<String, PredictionTrieNode>,
pub predictions_by_call_index: HashMap<u32, LlmCallPrediction>,
pub predictions_any_index: Option<LlmCallPrediction>,
}
A node in the prediction trie representing a function in the call hierarchy.
Fields
name: String
Function name at this level in the hierarchy.
children: HashMap<String, PredictionTrieNode>
Child nodes keyed by function name.
predictions_by_call_index: HashMap<u32, LlmCallPrediction>
Predictions keyed by call index (1-indexed).
predictions_any_index: Option<LlmCallPrediction>
Fallback predictions aggregated across all call indices.
Implementations
impl PredictionTrieNode
impl PredictionTrieNode
new
pub fn new(name: impl Into<String>) -> Self
Creates a new leaf node with the given name and no children or predictions.
Trait Implementations
impl Clone for PredictionTrieNode
impl Clone for PredictionTrieNode
clone
fn clone(&self) -> PredictionTrieNode
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for PredictionTrieNode
impl Debug for PredictionTrieNode
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for PredictionTrieNode
impl<'de> Deserialize<'de> for PredictionTrieNode
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Serialize for PredictionTrieNode
impl Serialize for PredictionTrieNode
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,