pub struct TaskProfileV1 {
pub primary_intent: String,
pub task_class: String,
pub complexity: TaskComplexity,
pub scope: TaskScope,
pub context_need_milli: u16,
pub reasoning_need_milli: u16,
pub risk_signal: RiskClass,
pub confidence_milli: u16,
pub capability_id: Option<String>,
pub capability_version: Option<String>,
pub keywords: Vec<String>,
pub language_hints: Vec<String>,
}Expand description
Classified task profile used by routing and context planning.
Fields§
§primary_intent: String§task_class: String§complexity: TaskComplexity§scope: TaskScope§context_need_milli: u16§reasoning_need_milli: u16§risk_signal: RiskClass§confidence_milli: u16§capability_id: Option<String>Capability that produced this profile, when the producer is known.
capability_version: Option<String>Version of the capability that produced this profile.
keywords: Vec<String>§language_hints: Vec<String>Implementations§
Source§impl TaskProfileV1
impl TaskProfileV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate profile fields and milliunit bounds.
Trait Implementations§
Source§impl Clone for TaskProfileV1
impl Clone for TaskProfileV1
Source§impl Debug for TaskProfileV1
impl Debug for TaskProfileV1
Source§impl Default for TaskProfileV1
impl Default for TaskProfileV1
Source§impl<'de> Deserialize<'de> for TaskProfileV1
impl<'de> Deserialize<'de> for TaskProfileV1
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
impl Eq for TaskProfileV1
Source§impl PartialEq for TaskProfileV1
impl PartialEq for TaskProfileV1
Source§impl Serialize for TaskProfileV1
impl Serialize for TaskProfileV1
impl StructuralPartialEq for TaskProfileV1
Auto Trait Implementations§
impl Forget for TaskProfileV1
impl Freeze for TaskProfileV1
impl Move for TaskProfileV1
impl RefUnwindSafe for TaskProfileV1
impl Send for TaskProfileV1
impl Sync for TaskProfileV1
impl Unpin for TaskProfileV1
impl UnsafeUnpin for TaskProfileV1
impl UnwindSafe for TaskProfileV1
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