Struct SopDecisionSpec
pub struct SopDecisionSpec {
pub model: String,
pub gate: Option<String>,
pub gate_threshold: f64,
pub gate_on_error: GateOnError,
pub modes: Vec<SopExecutionMode>,
pub mode_instructions: Option<String>,
pub min_confidence: f64,
pub part_threshold: f64,
}Expand description
The [decision] table of an SOP.toml.
Fields§
§model: StringAlias of the decision model to ask, from [decision_models.<alias>].
gate: Option<String>Yes/no question asked about each matching event. The run starts only
when the model’s “yes” probability reaches gate_threshold.
gate_threshold: f64Minimum “yes” probability (0 to 1) for the gate to start a run.
gate_on_error: GateOnErrorWhen the model cannot answer: run_strict starts the run under the
fail-closed mode, skip does not start it.
modes: Vec<SopExecutionMode>Execution modes the model may choose between for this run. Empty keeps
the SOP’s authored execution_mode. Only auto, supervised, and
step_by_step are selectable.
mode_instructions: Option<String>Guidance for the mode choice (what makes a run routine vs. risky).
min_confidence: f64A mode choice below this confidence falls back to the strictest mode.
part_threshold: f64Minimum “yes” probability for a step’s decide question to include
that step (a conditional part).
Implementations§
Trait Implementations§
Source§impl Clone for SopDecisionSpec
impl Clone for SopDecisionSpec
Source§fn clone(&self) -> SopDecisionSpec
fn clone(&self) -> SopDecisionSpec
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SopDecisionSpec
impl Debug for SopDecisionSpec
Source§impl<'de> Deserialize<'de> for SopDecisionSpec
impl<'de> Deserialize<'de> for SopDecisionSpec
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>,
Source§impl JsonSchema for SopDecisionSpec
impl JsonSchema for SopDecisionSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SopDecisionSpec
impl PartialEq for SopDecisionSpec
Source§impl Serialize for SopDecisionSpec
impl Serialize for SopDecisionSpec
impl StructuralPartialEq for SopDecisionSpec
Auto Trait Implementations§
impl Freeze for SopDecisionSpec
impl RefUnwindSafe for SopDecisionSpec
impl Send for SopDecisionSpec
impl Sync for SopDecisionSpec
impl Unpin for SopDecisionSpec
impl UnsafeUnpin for SopDecisionSpec
impl UnwindSafe for SopDecisionSpec
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more