pub struct RunIdentity {
pub thread_id: String,
pub parent_thread_id: Option<String>,
pub run_id: String,
pub parent_run_id: Option<String>,
pub agent_id: String,
pub origin: RunOrigin,
pub parent_tool_call_id: Option<String>,
}Expand description
Strongly typed identity for the active run.
Fields§
§thread_id: String§parent_thread_id: Option<String>§run_id: String§parent_run_id: Option<String>§agent_id: String§origin: RunOrigin§parent_tool_call_id: Option<String>Implementations§
Source§impl RunIdentity
impl RunIdentity
pub fn for_thread(thread_id: impl Into<String>) -> Self
pub fn new( thread_id: String, parent_thread_id: Option<String>, run_id: String, parent_run_id: Option<String>, agent_id: String, origin: RunOrigin, ) -> Self
pub fn with_parent_tool_call_id( self, parent_tool_call_id: impl Into<String>, ) -> Self
pub fn thread_id_opt(&self) -> Option<&str>
pub fn parent_thread_id_opt(&self) -> Option<&str>
pub fn run_id_opt(&self) -> Option<&str>
pub fn parent_run_id_opt(&self) -> Option<&str>
pub fn agent_id_opt(&self) -> Option<&str>
pub fn parent_tool_call_id_opt(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for RunIdentity
impl Clone for RunIdentity
Source§fn clone(&self) -> RunIdentity
fn clone(&self) -> RunIdentity
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 RunIdentity
impl Debug for RunIdentity
Source§impl Default for RunIdentity
impl Default for RunIdentity
Source§fn default() -> RunIdentity
fn default() -> RunIdentity
Returns the “default value” for a type. Read more
Source§impl PartialEq for RunIdentity
impl PartialEq for RunIdentity
impl Eq for RunIdentity
impl StructuralPartialEq for RunIdentity
Auto Trait Implementations§
impl Freeze for RunIdentity
impl RefUnwindSafe for RunIdentity
impl Send for RunIdentity
impl Sync for RunIdentity
impl Unpin for RunIdentity
impl UnwindSafe for RunIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.