pub struct ThreadSummary {Show 15 fields
pub id: String,
pub title: String,
pub agent_id: String,
pub agent_name: String,
pub updated_at: DateTime<Utc>,
pub message_count: u32,
pub last_message: Option<String>,
pub user_id: Option<String>,
pub external_id: Option<String>,
pub channel_id: Option<String>,
pub channel_name: Option<String>,
pub tags: Option<Vec<String>>,
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
}Fields§
§id: String§title: String§agent_id: String§agent_name: String§updated_at: DateTime<Utc>§message_count: u32§last_message: Option<String>§user_id: Option<String>§external_id: Option<String>§channel_id: Option<String>Channel ID if this thread originated from a messaging channel
channel_name: Option<String>Friendly channel name (e.g., “Telegram” or custom channel name)
Tags extracted from thread attributes
input_tokens: u64Input tokens used across all runs in this thread
output_tokens: u64Output tokens used across all runs in this thread
total_tokens: u64Total tokens used across all runs in this thread
Trait Implementations§
Source§impl Clone for ThreadSummary
impl Clone for ThreadSummary
Source§fn clone(&self) -> ThreadSummary
fn clone(&self) -> ThreadSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ThreadSummary
impl ComposeSchema for ThreadSummary
Source§impl Debug for ThreadSummary
impl Debug for ThreadSummary
Source§impl<'de> Deserialize<'de> for ThreadSummary
impl<'de> Deserialize<'de> for ThreadSummary
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
Source§impl JsonSchema for ThreadSummary
impl JsonSchema for ThreadSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ThreadSummary
impl Serialize for ThreadSummary
Auto Trait Implementations§
impl Freeze for ThreadSummary
impl RefUnwindSafe for ThreadSummary
impl Send for ThreadSummary
impl Sync for ThreadSummary
impl Unpin for ThreadSummary
impl UnsafeUnpin for ThreadSummary
impl UnwindSafe for ThreadSummary
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