pub fn update_current_context(data: &mut ConversationInfo, memories: &HashMap<String, Memory>) {
    for (_key, mem) in memories.iter() {
        let lit = json_to_literal(&mem.value, Interval::default(), &data.context.flow).unwrap();

        data.context.current.insert(mem.key.to_owned(), lit);
    }
}
/**
 * Update current context memories in place.
 * This method is used to avoid saving memories in DB every time a `remember` is used
 * Instead, the memory is saved in bulk at the end of each step or interaction, but we still
 * must allow the user to use the `remembered` data immediately.
 */
Update current context memories in place.
This method is used to avoid saving memories in DB every time a `remember` is used
Instead, the memory is saved in bulk at the end of each step or interaction, but we still
must allow the user to use the `remembered` data immediately.
Update current context memories in place . This method is used to avoid saving memories in DB every time a ` remember ` is used Instead the memory is saved in bulk at the end of each step or interaction but we still must allow the user to use the ` remembered ` data immediately .
pub fn update_current_context(data: &mut ConversationInfo, memories: &HashMap<String, Memory>) {
    for (_key, mem) in memories.iter() {
        let lit = json_to_literal(&mem.value, Interval::default(), &data.context.flow).unwrap();
        data.context.current.insert(mem.key.to_owned(), lit);
    }
}
pub fn update_current_context ( data : & mut ConversationInfo , memories : & HashMap < String , Memory > ) { for ( _key , mem ) in memories . iter ( ) { let lit = json_to_literal ( & mem . value , Interval :: default ( ) , & data . context . flow ) . unwrap ( ) ; data . context . current . insert ( mem . key . to_owned ( ) , lit ) ; } }
Update current context memories in place.
Update current context memories in place .
data
&mut ConversationInfo
memories
&HashMap<String, Memory>
data
&mut ConversationInfo
memories
&HashMap<String, Memory>