pub struct Thread {Show 15 fields
pub id: String,
pub title: String,
pub agent_id: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub message_count: u32,
pub last_message: Option<String>,
pub metadata: HashMap<String, Value>,
pub attributes: Value,
pub user_id: Option<String>,
pub external_id: Option<String>,
pub channel_id: Option<String>,
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
}Fields§
§id: String§title: String§agent_id: String§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§message_count: u32§last_message: Option<String>§metadata: HashMap<String, Value>§attributes: Value§user_id: Option<String>§external_id: Option<String>§channel_id: Option<String>Channel ID if this thread originated from a messaging channel
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
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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