#[non_exhaustive]pub struct GroundingConfig {
pub facts: Vec<Selector>,
pub customer: Vec<Selector>,
pub fallback: Option<String>,
pub confirm: Confirm,
pub check: Check,
pub numbers: Option<NumbersConfig>,
pub attribution: Option<AttributionConfig>,
pub on_fail: OnFail,
}Expand description
The grounding block of an llm node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.facts: Vec<Selector>Values the answer may state facts from.
customer: Vec<Selector>Values the customer wrote: their numbers may be repeated, nothing else counts.
fallback: Option<String>Template sent instead when nothing the facts hold is left (on_fail: fallback).
confirm: Confirm§check: Check§numbers: Option<NumbersConfig>How numbers are compared (check: numbers).
attribution: Option<AttributionConfig>Every figure must stand next to an entity that holds it (check: numbers).
on_fail: OnFailTrait Implementations§
Source§impl Clone for GroundingConfig
impl Clone for GroundingConfig
Source§impl Debug for GroundingConfig
impl Debug for GroundingConfig
Source§impl<'de> Deserialize<'de> for GroundingConfig
impl<'de> Deserialize<'de> for GroundingConfig
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
Auto Trait Implementations§
impl Forget for GroundingConfig
impl Freeze for GroundingConfigwhere
*const u8 is !null: Freeze,
PhantomData<Selector>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EntitySource>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<[Arc<str>]> is !null: Freeze,
PhantomData<ArcInner<[Arc<str>]>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for GroundingConfig
impl RefUnwindSafe for GroundingConfig
impl Send for GroundingConfig
impl Sync for GroundingConfig
impl Unpin for GroundingConfig
impl UnsafeUnpin for GroundingConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Selector>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EntitySource>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<[Arc<str>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<str>]>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for GroundingConfig
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