pub struct KgQueryArgs {
pub source_id: Option<String>,
pub by_source_uri: Option<String>,
pub max_depth: Option<u32>,
pub namespace: Option<String>,
pub valid_at: Option<String>,
pub allowed_agents: Option<String>,
pub limit: Option<u32>,
pub include_invalidated: bool,
pub json: bool,
}Expand description
CLI args for ai-memory kg-query. Mirrors the MCP memory_kg_query
input_schema shape.
Fields§
§source_id: Option<String>Source memory id (full UUID or unique prefix).
by_source_uri: Option<String>#889 — list every memory rooted at the given source_uri instead of traversing from a specific source memory.
max_depth: Option<u32>Max hops, 1..=5. Defaults to 1 server-side.
namespace: Option<String>Restrict to a specific namespace.
valid_at: Option<String>RFC3339 timestamp — keep only links valid at this instant.
allowed_agents: Option<String>Comma-separated allowlist of observed_by agent ids.
limit: Option<u32>Hard cap across all depths (1..=1000).
include_invalidated: boolWhen set, traverse historically-invalidated edges as well.
json: boolEmit the raw JSON envelope (the same shape MCP / HTTP return) instead of a human-readable table.
Trait Implementations§
Source§impl Args for KgQueryArgs
impl Args for KgQueryArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for KgQueryArgs
impl Clone for KgQueryArgs
Source§fn clone(&self) -> KgQueryArgs
fn clone(&self) -> KgQueryArgs
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 moreSource§impl Debug for KgQueryArgs
impl Debug for KgQueryArgs
Source§impl FromArgMatches for KgQueryArgs
impl FromArgMatches for KgQueryArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for KgQueryArgs
impl RefUnwindSafe for KgQueryArgs
impl Send for KgQueryArgs
impl Sync for KgQueryArgs
impl Unpin for KgQueryArgs
impl UnsafeUnpin for KgQueryArgs
impl UnwindSafe for KgQueryArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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