pub struct WorkflowRecommendation {
pub rule_mode: WorkflowMode,
pub rule_reason: String,
pub suggested_mode: Option<WorkflowMode>,
pub effective_mode: WorkflowMode,
pub status: RecommendationStatus,
pub confidence: Option<f64>,
pub complexity_score: Option<f64>,
pub risk_flags: Vec<String>,
pub suggested_skills: Vec<String>,
pub candidate_phases: Vec<u8>,
pub model: Option<String>,
}Expand description
Read-only output that keeps the rule, model suggestion, and applied mode separate.
Fields§
§rule_mode: WorkflowModeMode selected by existing deterministic title/label rules.
rule_reason: StringExplanation of the rule result.
suggested_mode: Option<WorkflowMode>Model suggestion, when a valid response exists.
effective_mode: WorkflowModeUser override or deterministic rule; model advice is never applied automatically.
status: RecommendationStatusAdvisory decision status.
confidence: Option<f64>Confidence of the model’s chosen mode, if available.
complexity_score: Option<f64>Model complexity score on a zero-to-two scale.
risk_flags: Vec<String>Flags are advisory and never grant or remove permissions.
suggested_skills: Vec<String>Candidate skills derived from deterministic mode and risk rules.
candidate_phases: Vec<u8>Required phase numbers; all paths retain the four-phase contract.
model: Option<String>Actual model identifier when an answer was supplied.
Trait Implementations§
Source§impl Debug for WorkflowRecommendation
impl Debug for WorkflowRecommendation
Source§impl<'de> Deserialize<'de> for WorkflowRecommendation
impl<'de> Deserialize<'de> for WorkflowRecommendation
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 Freeze for WorkflowRecommendation
impl RefUnwindSafe for WorkflowRecommendation
impl Send for WorkflowRecommendation
impl Sync for WorkflowRecommendation
impl Unpin for WorkflowRecommendation
impl UnsafeUnpin for WorkflowRecommendation
impl UnwindSafe for WorkflowRecommendation
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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