pub struct CallerContext { /* private fields */ }Expand description
Typed caller metadata exposed to tool executions.
Implementations§
Source§impl CallerContext
impl CallerContext
pub fn new( thread_id: Option<String>, run_id: Option<String>, agent_id: Option<String>, messages: Vec<Arc<Message>>, ) -> Self
pub fn thread_id(&self) -> Option<&str>
pub fn run_id(&self) -> Option<&str>
pub fn agent_id(&self) -> Option<&str>
pub fn messages(&self) -> &[Arc<Message>]
Trait Implementations§
Source§impl Clone for CallerContext
impl Clone for CallerContext
Source§fn clone(&self) -> CallerContext
fn clone(&self) -> CallerContext
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 CallerContext
impl Debug for CallerContext
Source§impl Default for CallerContext
impl Default for CallerContext
Source§fn default() -> CallerContext
fn default() -> CallerContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallerContext
impl RefUnwindSafe for CallerContext
impl Send for CallerContext
impl Sync for CallerContext
impl Unpin for CallerContext
impl UnwindSafe for CallerContext
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