pub struct SelfQueryArgs {
pub query: String,
pub filter: Option<MetadataFilter>,
}Expand description
Structured parameters parsed by the LLM: the cleaned query + an optional metadata filter.
filter is deserialized directly as MetadataFilter (filter.rs is lenient about
the JSON shape to tolerate LLM output variance); the default is no filter.
Fields§
§query: StringThe pure semantic query with the filtering constraints stripped out.
filter: Option<MetadataFilter>Metadata filter (optional).
Trait Implementations§
Source§impl Clone for SelfQueryArgs
impl Clone for SelfQueryArgs
Source§fn clone(&self) -> SelfQueryArgs
fn clone(&self) -> SelfQueryArgs
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 SelfQueryArgs
impl Debug for SelfQueryArgs
Source§impl<'de> Deserialize<'de> for SelfQueryArgs
impl<'de> Deserialize<'de> for SelfQueryArgs
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 PartialEq for SelfQueryArgs
impl PartialEq for SelfQueryArgs
impl StructuralPartialEq for SelfQueryArgs
Auto Trait Implementations§
impl Freeze for SelfQueryArgs
impl RefUnwindSafe for SelfQueryArgs
impl Send for SelfQueryArgs
impl Sync for SelfQueryArgs
impl Unpin for SelfQueryArgs
impl UnsafeUnpin for SelfQueryArgs
impl UnwindSafe for SelfQueryArgs
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