pub struct Session {
pub id: String,
pub app_name: String,
pub user_id: String,
pub state: Value,
pub events: Vec<Value>,
pub last_update_time: f64,
}Expand description
Represents a session in a conversation between agents and users.
Fields§
§id: StringThe unique identifier of the session.
app_name: StringThe name of the app.
user_id: StringThe id of the user.
state: ValueThe state of the session.
events: Vec<Value>The events of the session, e.g. user input, model response, function call/response, etc.
last_update_time: f64The last update time of the session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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