pub enum NodeObservationData {
Llm {
input_messages: Vec<LangfuseMessage>,
outputs: Vec<NodeOutput>,
model: String,
usage: Option<TokenUsage>,
},
Tool {
tool_calls: Vec<ToolCallInfo>,
tool_results: Vec<ToolResultInfo>,
},
}Expand description
Node-specific observation data
Variants§
Llm
LLM node execution data
Fields
§
input_messages: Vec<LangfuseMessage>Messages sent to the LLM (input)
§
outputs: Vec<NodeOutput>Structured outputs from the LLM (can be multiple: reasoning + message)
§
usage: Option<TokenUsage>Token usage information
Tool
Tool node execution data
Fields
§
tool_calls: Vec<ToolCallInfo>Tool calls that were executed (input)
§
tool_results: Vec<ToolResultInfo>Results from tool executions (output)
Trait Implementations§
Source§impl Clone for NodeObservationData
impl Clone for NodeObservationData
Source§fn clone(&self) -> NodeObservationData
fn clone(&self) -> NodeObservationData
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 NodeObservationData
impl Debug for NodeObservationData
Source§impl<'de> Deserialize<'de> for NodeObservationData
impl<'de> Deserialize<'de> for NodeObservationData
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
Auto Trait Implementations§
impl Freeze for NodeObservationData
impl RefUnwindSafe for NodeObservationData
impl Send for NodeObservationData
impl Sync for NodeObservationData
impl Unpin for NodeObservationData
impl UnsafeUnpin for NodeObservationData
impl UnwindSafe for NodeObservationData
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