pub struct Interaction {
pub object: Option<String>,
pub model: Option<String>,
pub agent: Option<String>,
pub id: String,
pub status: InteractionsStatus,
pub created: Option<String>,
pub updated: Option<String>,
pub role: Option<String>,
pub outputs: Option<Vec<Content>>,
pub usage: Option<InteractionsUsage>,
pub previous_interaction_id: Option<String>,
}Fields§
§object: Option<String>Object type, always “interaction”
model: Option<String>Model used
agent: Option<String>Agent used
id: StringInteraction ID
status: InteractionsStatusInteraction status
created: Option<String>Creation timestamp (ISO 8601)
updated: Option<String>Last update timestamp (ISO 8601)
role: Option<String>Role of the interaction
outputs: Option<Vec<Content>>Output content
usage: Option<InteractionsUsage>Usage information
previous_interaction_id: Option<String>Previous interaction ID for conversation threading
Implementations§
Source§impl Interaction
impl Interaction
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the interaction is complete
Sourcepub fn is_in_progress(&self) -> bool
pub fn is_in_progress(&self) -> bool
Check if the interaction is in progress
Sourcepub fn requires_action(&self) -> bool
pub fn requires_action(&self) -> bool
Check if the interaction requires action (tool execution)
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
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 Debug for Interaction
impl Debug for Interaction
Source§impl Default for Interaction
impl Default for Interaction
Source§fn default() -> Interaction
fn default() -> Interaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Interaction
impl<'de> Deserialize<'de> for Interaction
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 Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
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