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 on_fail: OnFail,
}Expand description
The grounding block of an llm node.
Fields§
§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).
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 GroundingConfig
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,
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