pub struct Store {
pub kind: StoreKind,
pub prefix: Option<String>,
pub mcp: Option<StoreMcp>,
pub http: Option<StoreHttp>,
pub file: Option<StoreFile>,
pub checkpoint: Checkpoint,
pub durability: Durability,
pub retention: Retention,
pub on_error: StoreOnError,
pub audit: bool,
pub timeout: Option<Dur>,
pub max_value_bytes: Option<u64>,
}Fields§
§kind: StoreKind§prefix: Option<String>§mcp: Option<StoreMcp>§http: Option<StoreHttp>§file: Option<StoreFile>§checkpoint: Checkpoint§durability: Durability§retention: Retention§on_error: StoreOnError§audit: bool§timeout: Option<Dur>§max_value_bytes: Option<u64>Refuse a durable write whose serialized state exceeds this many bytes.
None (the default) is unbounded, which keeps today’s behaviour for an
operator who has not thought about it.
Set it when the store’s READ limit is lower than its write limit — an MCP store reached through a broker typically caps a tool RESULT well below its request body. Without the cap, agentd can write a checkpoint it cannot read back, and the failure lands on the next boot restore rather than on the write that caused it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Store
impl<'de> Deserialize<'de> for Store
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
impl StructuralPartialEq for Store
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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