pub enum SessionEvent {
UserMessage {
content: String,
provider: String,
},
Inference {
content: String,
provider: String,
},
ToolUse {
tool_name: String,
input: Value,
tool_use_id: String,
provider: String,
},
ToolResult {
tool_use_id: String,
output: String,
is_error: bool,
provider: String,
},
SessionEnd,
}Expand description
A discrete event that can be recorded in a session log.
Variants§
Trait Implementations§
Source§impl Debug for SessionEvent
impl Debug for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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