#[non_exhaustive]pub enum StepKind {
LlmCall,
ToolCall,
SummaryCheckpoint,
OpsEvent,
MemoryRecall,
}Expand description
Discriminator for the kind of side effect a Step represents.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LlmCall
LLM completion or chat call.
ToolCall
Tool invocation through ToolInvoker.
SummaryCheckpoint
Summarizer checkpoint — distinct from a top-level LlmCall so
summarizer overhead does not pollute substantive-reasoning cost
and latency attribution.
OpsEvent
Operational-layer event emitted by klieo-ops (supervisor state
changes, gate decisions, governor denials, etc.). The input
field of the corresponding Step carries the raw
serde_json::Value payload from Episode::Ops.
MemoryRecall
A graphRAG recall performed during the run (from
Episode::MemoryRecall). Step::input carries { "query", "k" };
Step::output carries { "returned_fact_ids": [...] }.
Trait Implementations§
impl Copy for StepKind
Source§impl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
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 StepKind
Source§impl JsonSchema for StepKind
impl JsonSchema for StepKind
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for StepKind
Auto Trait Implementations§
impl Freeze for StepKind
impl RefUnwindSafe for StepKind
impl Send for StepKind
impl Sync for StepKind
impl Unpin for StepKind
impl UnsafeUnpin for StepKind
impl UnwindSafe for StepKind
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