pub struct PersistentMemoryConfig {
pub enabled: bool,
pub auto_write: bool,
pub directory_override: Option<String>,
pub startup_line_limit: usize,
pub startup_byte_limit: usize,
pub startup_token_budget: usize,
pub memories: MemoriesConfig,
}Fields§
§enabled: boolToggle main-session persistent memory for this repository. Natural-language saves resolve “it”, “this”, and “that” only against the immediately preceding assistant answer and require confirmation; identity names and aliases are stored as preferences.
auto_write: boolWrite durable memory after completed turns and session finalization
directory_override: Option<String>Optional user-local directory override for persistent memory storage
startup_line_limit: usizeStartup line budget scanned from memory_summary.md before VT Code renders a compact startup summary
startup_byte_limit: usizeStartup byte budget scanned from memory_summary.md before VT Code renders a compact startup summary
startup_token_budget: usizeStartup token budget for the injected memory excerpt. 0 disables the
token cap and keeps only the line/byte budgets.
memories: MemoriesConfigCodex-compatible memories sub-configuration
Trait Implementations§
Source§impl Clone for PersistentMemoryConfig
impl Clone for PersistentMemoryConfig
Source§impl Debug for PersistentMemoryConfig
impl Debug for PersistentMemoryConfig
Source§impl Default for PersistentMemoryConfig
impl Default for PersistentMemoryConfig
Source§impl<'de> Deserialize<'de> for PersistentMemoryConfig
impl<'de> Deserialize<'de> for PersistentMemoryConfig
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
Source§impl JsonSchema for PersistentMemoryConfig
impl JsonSchema for PersistentMemoryConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for PersistentMemoryConfig
impl Freeze for PersistentMemoryConfig
impl Move for PersistentMemoryConfig
impl RefUnwindSafe for PersistentMemoryConfig
impl Send for PersistentMemoryConfigwhere
RawVecInner: Send,
impl Sync for PersistentMemoryConfigwhere
RawVecInner: Sync,
impl Unpin for PersistentMemoryConfig
impl UnsafeUnpin for PersistentMemoryConfig
impl UnwindSafe for PersistentMemoryConfigwhere
RawVecInner: UnwindSafe,
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