pub struct ThinkingStep {
pub id: String,
pub order: u32,
pub step: String,
pub detail: String,
pub summary: String,
pub level: String,
pub source_event: String,
pub parent_id: Option<String>,
}Fields§
§id: String§order: u32§step: String§detail: String§summary: StringConcrete, human-readable description of this step (issue #488).
This is the “meta-language description” layer: a single English sentence that surfaces the actual content of the step (the prompt, the computed result, the looked-up entity, the chosen route, the composed answer) rather than a generic category label. UI surfaces translate it into the target user language; non-UI surfaces (CLI, API, Telegram) show it as-is.
level: String§source_event: String§parent_id: Option<String>Implementations§
Source§impl ThinkingStep
impl ThinkingStep
pub fn new( order: u32, step: impl Into<String>, detail: impl Into<String>, level: impl Into<String>, source_event: impl Into<String>, ) -> Self
Sourcepub fn with_parent(self, parent_id: impl Into<String>) -> Self
pub fn with_parent(self, parent_id: impl Into<String>) -> Self
Attach a parent step id so callers can express recursively composite (fractal) thinking, where finer-granularity sub-steps roll up into a single high-level step (issue #488).
Trait Implementations§
Source§impl Clone for ThinkingStep
impl Clone for ThinkingStep
Source§fn clone(&self) -> ThinkingStep
fn clone(&self) -> ThinkingStep
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 ThinkingStep
impl Debug for ThinkingStep
Source§impl<'de> Deserialize<'de> for ThinkingStep
impl<'de> Deserialize<'de> for ThinkingStep
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 ThinkingStep
Source§impl PartialEq for ThinkingStep
impl PartialEq for ThinkingStep
Source§impl Serialize for ThinkingStep
impl Serialize for ThinkingStep
impl StructuralPartialEq for ThinkingStep
Auto Trait Implementations§
impl Freeze for ThinkingStep
impl RefUnwindSafe for ThinkingStep
impl Send for ThinkingStep
impl Sync for ThinkingStep
impl Unpin for ThinkingStep
impl UnsafeUnpin for ThinkingStep
impl UnwindSafe for ThinkingStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.