pub struct ExtractMemoryContext {
pub messages: Vec<Message>,
pub system_prompt: String,
pub user_context: HashMap<String, String>,
pub system_context: HashMap<String, String>,
pub tool_use_context: Option<Arc<ToolUseContext>>,
pub agent_id: Option<String>,
}Expand description
Context from a REPL hook — mirrors REPLHookContext from TypeScript.
Fields§
§messages: Vec<Message>§system_prompt: String§user_context: HashMap<String, String>§system_context: HashMap<String, String>§tool_use_context: Option<Arc<ToolUseContext>>§agent_id: Option<String>Trait Implementations§
Source§impl Clone for ExtractMemoryContext
impl Clone for ExtractMemoryContext
Source§fn clone(&self) -> ExtractMemoryContext
fn clone(&self) -> ExtractMemoryContext
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 moreAuto Trait Implementations§
impl Freeze for ExtractMemoryContext
impl !RefUnwindSafe for ExtractMemoryContext
impl Send for ExtractMemoryContext
impl Sync for ExtractMemoryContext
impl Unpin for ExtractMemoryContext
impl UnsafeUnpin for ExtractMemoryContext
impl !UnwindSafe for ExtractMemoryContext
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