pub struct ThreadHistoryTurn {
pub turn_id: TurnId,
pub created_at: OffsetDateTime,
pub completed_at: Option<OffsetDateTime>,
pub status: ThreadHistoryTurnStatus,
pub error: Option<String>,
pub usage: Option<TokenUsage>,
pub finish_reason: Option<String>,
pub items: Vec<ThreadItem>,
}Fields§
§turn_id: TurnId§created_at: OffsetDateTime§completed_at: Option<OffsetDateTime>§status: ThreadHistoryTurnStatus§error: Option<String>§usage: Option<TokenUsage>§finish_reason: Option<String>§items: Vec<ThreadItem>Trait Implementations§
Source§impl Clone for ThreadHistoryTurn
impl Clone for ThreadHistoryTurn
Source§impl Debug for ThreadHistoryTurn
impl Debug for ThreadHistoryTurn
Source§impl<'de> Deserialize<'de> for ThreadHistoryTurn
impl<'de> Deserialize<'de> for ThreadHistoryTurn
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 ThreadHistoryTurn
impl RefUnwindSafe for ThreadHistoryTurn
impl Send for ThreadHistoryTurn
impl Sync for ThreadHistoryTurn
impl Unpin for ThreadHistoryTurn
impl UnsafeUnpin for ThreadHistoryTurn
impl UnwindSafe for ThreadHistoryTurn
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