pub struct Session {Show 15 fields
pub session_id: String,
pub conversation_id: String,
pub agent_id: String,
pub agent_name: String,
pub user_participant_id: String,
pub agent_participant_id: String,
pub thread_id: String,
pub status: Option<SessionStatus>,
pub token_count: Option<u64>,
pub message_count: Option<u64>,
pub metadata: Option<HashMap<String, Value>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub ended_at: Option<DateTime<Utc>>,
pub last_activity_at: Option<DateTime<Utc>>,
}Expand description
An AI conversation session — ties a conversation to a smooth-operator
workflow thread via thread_id.
Mirrors session.schema.json.
Fields§
§session_id: String§conversation_id: String§agent_id: String§agent_name: String§user_participant_id: String§agent_participant_id: String§thread_id: Stringsmooth-operator workflow thread identifier (the historical
langgraph_thread_id). Resumes agent state across turns.
status: Option<SessionStatus>§token_count: Option<u64>§message_count: Option<u64>§metadata: Option<HashMap<String, Value>>§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§ended_at: Option<DateTime<Utc>>§last_activity_at: Option<DateTime<Utc>>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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request