pub struct Session {Show 16 fields
pub created_by: Option<String>,
pub session_id: String,
pub tenant_id: String,
pub agent_id: String,
pub status: SessionStatus,
pub conversation_history: Option<Vec<ConversationEntry>>,
pub metadata: Option<Map<String, Value>>,
pub runs: Option<Vec<String>>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub expires_at: Option<String>,
pub team_id: Option<String>,
pub branches: Option<Vec<Map<String, Value>>>,
pub active_branch: Option<String>,
pub queue_mode: Option<SessionQueueMode>,
pub model_override: Option<SessionModelOverride>,
}Expand description
Session model.
Fields§
§created_by: Option<String>§session_id: String§tenant_id: String§agent_id: String§status: SessionStatus§conversation_history: Option<Vec<ConversationEntry>>§metadata: Option<Map<String, Value>>§runs: Option<Vec<String>>§created_at: Option<String>§updated_at: Option<String>§expires_at: Option<String>§team_id: Option<String>Team ID if session belongs to a team
branches: Option<Vec<Map<String, Value>>>Session branches for conversation forking
active_branch: Option<String>Currently active branch ID
queue_mode: Option<SessionQueueMode>How to handle concurrent runs in this session
model_override: Option<SessionModelOverride>Per-conversation model override (in-chat model switcher). When set, runs in this session resolve their LLM from this config instead of the agent’s default. Absent → agent default.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin 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