pub struct SessionAutoModeResolvedData {
pub candidate_models: Option<Vec<String>>,
pub category_scores: Option<HashMap<String, f64>>,
pub chosen_model: String,
pub confidence: Option<f64>,
pub predicted_label: Option<String>,
pub reasoning_bucket: Option<AutoModeResolvedReasoningBucket>,
}Expand description
Session event “session.auto_mode_resolved”. Auto Intent resolution: the concrete model the session settled on for the first prompt of an auto-mode session, and why. Lets SDK clients render the chosen model and the full reason it was picked. The core selection fields (chosenModel/reasoningBucket/categoryScores) are stable; the routing-analytics fields (predictedLabel/confidence/candidateModels) mirror the upstream intent service and may evolve, hence the event’s experimental stability.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§candidate_models: Option<Vec<String>>Ordered candidate model list the router returned, when not a fallback
category_scores: Option<HashMap<String, f64>>Per-category classifier scores (0-1) behind the bucket: the granular HYDRA capability scores (reasoning, code_gen, debugging, tool_use), or the binary needs_reasoning/no_reasoning scores when HYDRA didn’t run. Lets clients show a breakdown rather than just the bucket.
chosen_model: StringThe concrete model the session will use after any intent refinement
confidence: Option<f64>Classifier confidence for the predicted label, when available
predicted_label: Option<String>The predicted classifier label (e.g. needs_reasoning), when available
reasoning_bucket: Option<AutoModeResolvedReasoningBucket>Coarse request-difficulty bucket, for explaining why a model was chosen (“picked X because this looks like high-reasoning work”)
Trait Implementations§
Source§impl Clone for SessionAutoModeResolvedData
impl Clone for SessionAutoModeResolvedData
Source§fn clone(&self) -> SessionAutoModeResolvedData
fn clone(&self) -> SessionAutoModeResolvedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more