#[repr(u8)]pub enum ReasoningStepKind {
Thought = 1,
ToolCall = 2,
Observation = 3,
Decision = 4,
PlanStep = 5,
FinalAction = 6,
Error = 7,
Retrieval = 8,
}Expand description
The semantic category of a recorded reasoning step.
These map directly to the observation/thought/action loop used in ReAct-style agents and are compatible with LangChain, LlamaIndex, AutoGen, and OpenAI Agents SDK trace structures.
The numeric value is stable across library versions and appears in the Merkle leaf hash. Adding a new variant requires a new leaf domain version.
Variants§
Thought = 1
An internal model thought or chain-of-thought step.
ToolCall = 2
A tool or function call executed by the agent.
Observation = 3
The output returned from a tool or function call.
Decision = 4
A branching decision point with enumerated alternatives considered.
PlanStep = 5
A high-level plan step decomposed from the goal.
FinalAction = 6
The final action taken as the outcome of reasoning.
Error = 7
An error or exception that influenced reasoning.
Retrieval = 8
Retrieval result incorporated into reasoning context.
Implementations§
Trait Implementations§
Source§impl Clone for ReasoningStepKind
impl Clone for ReasoningStepKind
Source§fn clone(&self) -> ReasoningStepKind
fn clone(&self) -> ReasoningStepKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReasoningStepKind
impl Debug for ReasoningStepKind
Source§impl<'de> Deserialize<'de> for ReasoningStepKind
impl<'de> Deserialize<'de> for ReasoningStepKind
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>,
Source§impl Display for ReasoningStepKind
impl Display for ReasoningStepKind
Source§impl Hash for ReasoningStepKind
impl Hash for ReasoningStepKind
Source§impl PartialEq for ReasoningStepKind
impl PartialEq for ReasoningStepKind
Source§fn eq(&self, other: &ReasoningStepKind) -> bool
fn eq(&self, other: &ReasoningStepKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ReasoningStepKind
impl Serialize for ReasoningStepKind
impl Copy for ReasoningStepKind
impl Eq for ReasoningStepKind
impl StructuralPartialEq for ReasoningStepKind
Auto Trait Implementations§
impl Freeze for ReasoningStepKind
impl RefUnwindSafe for ReasoningStepKind
impl Send for ReasoningStepKind
impl Sync for ReasoningStepKind
impl Unpin for ReasoningStepKind
impl UnsafeUnpin for ReasoningStepKind
impl UnwindSafe for ReasoningStepKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.