pub struct LobeOutput {
pub lobe_name: String,
pub content: String,
pub confidence: f64,
pub signals: Vec<CognitiveSignal>,
pub metadata: HashMap<String, Value>,
}Expand description
Output from a lobe’s processing.
Fields§
§lobe_name: StringName of the lobe that produced this output (for synthesizer labeling).
content: StringThe lobe’s output content.
confidence: f64How confident the lobe is in its output (0.0 to 1.0).
signals: Vec<CognitiveSignal>Signals to emit to the outer graph.
metadata: HashMap<String, Value>Lobe-specific metadata.
Implementations§
Source§impl LobeOutput
impl LobeOutput
Sourcepub fn new(content: impl Into<String>, confidence: f64) -> Self
pub fn new(content: impl Into<String>, confidence: f64) -> Self
Create a new lobe output with content and confidence.
Sourcepub fn with_lobe_name(self, name: impl Into<String>) -> Self
pub fn with_lobe_name(self, name: impl Into<String>) -> Self
Set the lobe name on this output.
Sourcepub fn with_signal(self, signal: CognitiveSignal) -> Self
pub fn with_signal(self, signal: CognitiveSignal) -> Self
Add a signal to emit.
Trait Implementations§
Source§impl Clone for LobeOutput
impl Clone for LobeOutput
Source§fn clone(&self) -> LobeOutput
fn clone(&self) -> LobeOutput
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 LobeOutput
impl Debug for LobeOutput
Source§impl<'de> Deserialize<'de> for LobeOutput
impl<'de> Deserialize<'de> for LobeOutput
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 PartialEq for LobeOutput
impl PartialEq for LobeOutput
Source§fn eq(&self, other: &LobeOutput) -> bool
fn eq(&self, other: &LobeOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LobeOutput
impl Serialize for LobeOutput
impl StructuralPartialEq for LobeOutput
Auto Trait Implementations§
impl Freeze for LobeOutput
impl RefUnwindSafe for LobeOutput
impl Send for LobeOutput
impl Sync for LobeOutput
impl Unpin for LobeOutput
impl UnsafeUnpin for LobeOutput
impl UnwindSafe for LobeOutput
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