pub struct KernelIntent {
pub task: String,
pub criteria: Vec<String>,
pub max_tokens: usize,
}Expand description
What the kernel should reason about.
This is the intent contract between the platform and any reasoning kernel. It defines the task, success criteria, and resource budgets.
Fields§
§task: StringThe task to perform (e.g., “analyze_metrics”, “generate_plan”)
criteria: Vec<String>Success criteria for the task
max_tokens: usizeMaximum tokens budget for the entire kernel run
Implementations§
Source§impl KernelIntent
impl KernelIntent
Trait Implementations§
Source§impl Clone for KernelIntent
impl Clone for KernelIntent
Source§fn clone(&self) -> KernelIntent
fn clone(&self) -> KernelIntent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelIntent
impl Debug for KernelIntent
Source§impl<'de> Deserialize<'de> for KernelIntent
impl<'de> Deserialize<'de> for KernelIntent
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 KernelIntent
impl RefUnwindSafe for KernelIntent
impl Send for KernelIntent
impl Sync for KernelIntent
impl Unpin for KernelIntent
impl UnwindSafe for KernelIntent
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