pub struct RecallArgs {
pub query: String,
pub k: usize,
pub type: Option<MemoryType>,
pub namespace: Option<String>,
pub no_graph: bool,
pub precise: bool,
pub max_hops: u32,
pub min_weight: f64,
pub min_distance: f32,
pub format: OutputFormat,
pub db: Option<String>,
pub json: bool,
}Fields§
§query: String§k: usize§type: Option<MemoryType>§namespace: Option<String>§no_graph: bool§precise: bool§max_hops: u32§min_weight: f64§min_distance: f32Filtrar resultados por distance máxima. Se todos os matches tiverem distance > min_distance, comando sai com exit 4 (not found) conforme contrato documentado em AGENT_PROTOCOL.md. Default 1.0 (desativado, mantém comportamento v2.0.0 de sempre retornar top-k).
format: OutputFormat§db: Option<String>§json: boolAceita –json como no-op: output já é JSON por default.
Trait Implementations§
Source§impl Args for RecallArgs
impl Args for RecallArgs
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 FromArgMatches for RecallArgs
impl FromArgMatches for RecallArgs
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 RecallArgs
impl RefUnwindSafe for RecallArgs
impl Send for RecallArgs
impl Sync for RecallArgs
impl Unpin for RecallArgs
impl UnsafeUnpin for RecallArgs
impl UnwindSafe for RecallArgs
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> 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