pub struct ExtractionContext {
pub active_goals: Vec<(NodeId, String)>,
pub active_tasks: Vec<(NodeId, String)>,
pub recent_entities: Vec<(NodeId, String)>,
pub known_relationships: HashMap<String, String>,
pub current_hour: u8,
pub current_day: u8,
}Expand description
Context provided to the extractor for disambiguation.
Fields§
§active_goals: Vec<(NodeId, String)>Active goal descriptions (for “I finished it” → which goal?).
active_tasks: Vec<(NodeId, String)>Active task descriptions.
recent_entities: Vec<(NodeId, String)>Recently mentioned entity names.
known_relationships: HashMap<String, String>Known relationship names (e.g., “sister” → “Alice”).
current_hour: u8Current hour (0-23) for time-related extraction.
current_day: u8Current day of week (0=Mon, 6=Sun).
Trait Implementations§
Source§impl Clone for ExtractionContext
impl Clone for ExtractionContext
Source§fn clone(&self) -> ExtractionContext
fn clone(&self) -> ExtractionContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtractionContext
impl Debug for ExtractionContext
Source§impl Default for ExtractionContext
impl Default for ExtractionContext
Source§fn default() -> ExtractionContext
fn default() -> ExtractionContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtractionContext
impl<'de> Deserialize<'de> for ExtractionContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExtractionContext
impl RefUnwindSafe for ExtractionContext
impl Send for ExtractionContext
impl Sync for ExtractionContext
impl Unpin for ExtractionContext
impl UnsafeUnpin for ExtractionContext
impl UnwindSafe for ExtractionContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more