pub struct SystemOneNodeConfig {
pub allow_missing: bool,
pub state: Option<Value>,
pub state_selector: Option<Selector>,
pub images: IndexMap<String, Selector>,
pub questions: IndexMap<String, QuestionConfig>,
pub route_by: Option<String>,
pub min_confidence: Option<f64>,
pub min_probability: Option<f64>,
pub long_context: bool,
/* private fields */
}Expand description
Configuration of the system-one node.
Fields§
§allow_missing: boolAllow placeholders that refer to missing variables (they become null).
Off by default: asking questions about missing input yields confident
answers about nothing.
state: Option<Value>The content questions refer to (string, object or array; strings are templates).
state_selector: Option<Selector>Alternatively, take the state from a variable.
images: IndexMap<String, Selector>Image variables (file or array of files), keyed by the name used in state.
questions: IndexMap<String, QuestionConfig>§route_by: Option<String>Name of a choice question to branch on.
min_confidence: Option<f64>§min_probability: Option<f64>§long_context: boolSend the long-context header (262k-token limits; slower).
Trait Implementations§
Source§impl Clone for SystemOneNodeConfig
impl Clone for SystemOneNodeConfig
Source§impl Debug for SystemOneNodeConfig
impl Debug for SystemOneNodeConfig
Source§impl<'de> Deserialize<'de> for SystemOneNodeConfig
impl<'de> Deserialize<'de> for SystemOneNodeConfig
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 SystemOneNodeConfig
impl Freeze for SystemOneNodeConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const ArcInner<[Arc<str>]> is !null: Freeze,
PhantomData<ArcInner<[Arc<str>]>>: Freeze,
PhantomData<Bucket<String, Selector>>: Freeze,
PhantomData<Bucket<String, QuestionConfig>>: Freeze,
impl Move for SystemOneNodeConfig
impl RefUnwindSafe for SystemOneNodeConfig
impl Send for SystemOneNodeConfig
impl Sync for SystemOneNodeConfig
impl Unpin for SystemOneNodeConfig
impl UnsafeUnpin for SystemOneNodeConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const ArcInner<[Arc<str>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<str>]>>: UnsafeUnpin,
PhantomData<Bucket<String, Selector>>: UnsafeUnpin,
PhantomData<Bucket<String, QuestionConfig>>: UnsafeUnpin,
impl UnwindSafe for SystemOneNodeConfig
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