pub struct DistillRequest {
pub config_path: PathBuf,
pub cwd: PathBuf,
pub transcript_path: Option<PathBuf>,
pub project_id: Option<String>,
pub actor: String,
pub source_ref_self_tag: String,
pub source_ref_extraction: String,
}Expand description
Distill pipeline inputs. Caller is responsible for resolving cwd / transcript_path before calling.
Fields§
§config_path: PathBuf§cwd: PathBuf§transcript_path: Option<PathBuf>Optional. When None, the heuristic step is skipped (queue
is still drained).
project_id: Option<String>Project ID resolved from config for the current cwd. When set,
distilled memories are bound to this project so they surface in
project-scoped retrieval. When None, memories are written with
scope=User so they still appear as cross-project candidates.
actor: StringIdentifies which surface invoked the pipeline. Recorded in
the lifecycle metadata actor field for audit.
source_ref_self_tag: StringRecorded in lifecycle metadata source_ref. e.g.
"hook:stop:self-tag" (hook) vs. "mcp:memory_distill_pending"
(MCP tool).
source_ref_extraction: StringImplementations§
Source§impl DistillRequest
impl DistillRequest
pub fn new( config_path: PathBuf, cwd: PathBuf, transcript_path: Option<PathBuf>, ) -> Self
pub fn with_project_id(self, project_id: Option<String>) -> Self
pub fn with_actor(self, actor: impl Into<String>) -> Self
pub fn with_source_refs( self, self_tag: impl Into<String>, extraction: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for DistillRequest
impl Clone for DistillRequest
Source§fn clone(&self) -> DistillRequest
fn clone(&self) -> DistillRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DistillRequest
impl RefUnwindSafe for DistillRequest
impl Send for DistillRequest
impl Sync for DistillRequest
impl Unpin for DistillRequest
impl UnsafeUnpin for DistillRequest
impl UnwindSafe for DistillRequest
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