pub struct LangfuseMessage {
pub role: String,
pub content: String,
pub name: Option<String>,
pub tool_call_id: Option<String>,
pub tool_calls: Option<Vec<ToolCallInfo>>,
}Expand description
Message format compatible with Langfuse
Fields§
§role: StringMessage role: “system”, “user”, “assistant”, “tool”
content: StringMessage content
name: Option<String>Optional message name
tool_call_id: Option<String>Optional tool call ID (for tool messages)
tool_calls: Option<Vec<ToolCallInfo>>Optional tool calls (for assistant messages)
Trait Implementations§
Source§impl Clone for LangfuseMessage
impl Clone for LangfuseMessage
Source§fn clone(&self) -> LangfuseMessage
fn clone(&self) -> LangfuseMessage
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 LangfuseMessage
impl Debug for LangfuseMessage
Source§impl<'de> Deserialize<'de> for LangfuseMessage
impl<'de> Deserialize<'de> for LangfuseMessage
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 LangfuseMessage
impl RefUnwindSafe for LangfuseMessage
impl Send for LangfuseMessage
impl Sync for LangfuseMessage
impl Unpin for LangfuseMessage
impl UnsafeUnpin for LangfuseMessage
impl UnwindSafe for LangfuseMessage
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