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 SystemOneNodeConfig
impl Move for SystemOneNodeConfig
impl RefUnwindSafe for SystemOneNodeConfig
impl Send for SystemOneNodeConfig
impl Sync for SystemOneNodeConfig
impl Unpin for SystemOneNodeConfig
impl UnsafeUnpin for SystemOneNodeConfig
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