pub enum KernelAction {
CallProvider {
context: RenderedContext,
tools: Vec<ToolSchema>,
},
ExecuteTool {
calls: Vec<ToolCall>,
},
EvaluateMilestone {
phase_id: String,
criteria: Vec<String>,
verifier: Option<MilestoneVerifier>,
required_evidence: Vec<String>,
},
Done {
result: LoopResult,
},
}Variants§
CallProvider
ExecuteTool
EvaluateMilestone
Fields
§
verifier: Option<MilestoneVerifier>Done
Fields
§
result: LoopResultTrait Implementations§
Source§impl Clone for KernelAction
impl Clone for KernelAction
Source§fn clone(&self) -> KernelAction
fn clone(&self) -> KernelAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KernelAction
impl Debug for KernelAction
Source§impl<'de> Deserialize<'de> for KernelAction
impl<'de> Deserialize<'de> for KernelAction
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
Source§impl From<LoopAction> for KernelAction
impl From<LoopAction> for KernelAction
Source§fn from(action: LoopAction) -> Self
fn from(action: LoopAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KernelAction
impl RefUnwindSafe for KernelAction
impl Send for KernelAction
impl Sync for KernelAction
impl Unpin for KernelAction
impl UnsafeUnpin for KernelAction
impl UnwindSafe for KernelAction
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