pub struct BootArgs {
pub namespace: Option<String>,
pub limit: usize,
pub budget_tokens: usize,
pub format: String,
pub no_header: bool,
pub quiet: bool,
pub cwd: Option<PathBuf>,
}Expand description
Args for ai-memory boot. Every field has a defaulted value so the
subcommand is safe to invoke with no arguments — that is the contract
every integration recipe relies on.
Fields§
§namespace: Option<String>Override the inferred namespace. Default: derived from the current
working directory via the same auto_namespace helper used by
ai-memory store (git remote name → cwd basename → “global”).
limit: usizeMaximum number of memories to return. Clamped to [1, 50].
budget_tokens: usizeApproximate token budget for the rendered output. Cumulative character count divided by 4 ≈ tokens; boot stops adding rows when the next row would exceed the budget. Set to 0 to disable.
format: StringOutput format: text (default), json, or toon.
no_header: boolSuppress the # ai-memory boot context (...) header line.
Useful when the integration recipe wraps boot output inside
its own framing.
quiet: boolExit 0 with empty stdout if the DB is unavailable or no memories
are found. Without this flag, errors land on stderr and stdout
gets the header only. Hooks should pass --quiet so a failed
boot never wedges the agent’s first turn.
cwd: Option<PathBuf>Override auto_namespace’s working-directory inference. Useful
when the hook fires before the agent has chdir’d into the
project root.
Trait Implementations§
Source§impl Args for BootArgs
impl Args for BootArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for BootArgs
impl FromArgMatches for BootArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for BootArgs
impl RefUnwindSafe for BootArgs
impl Send for BootArgs
impl Sync for BootArgs
impl Unpin for BootArgs
impl UnsafeUnpin for BootArgs
impl UnwindSafe for BootArgs
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more