pub struct ScopedContextBuilder { /* private fields */ }Expand description
Scoped context builder for complex nested operations
Allows building up contexts step by step with automatic cleanup. Each context level gets its own guard for fine-grained control.
Implementations§
Source§impl ScopedContextBuilder
impl ScopedContextBuilder
pub fn new() -> Self
pub fn with_llm_context(self, model: &str, component: &str) -> Self
pub fn with_a2a_context( self, message_type: &str, from_agent: &str, to_agent: &str, component: &str, ) -> Self
pub fn with_request_context( self, request_id: &str, user_id: Option<&str>, session_id: Option<&str>, ) -> Self
Trait Implementations§
Source§impl Default for ScopedContextBuilder
impl Default for ScopedContextBuilder
Auto Trait Implementations§
impl Freeze for ScopedContextBuilder
impl !RefUnwindSafe for ScopedContextBuilder
impl Send for ScopedContextBuilder
impl !Sync for ScopedContextBuilder
impl Unpin for ScopedContextBuilder
impl UnsafeUnpin for ScopedContextBuilder
impl !UnwindSafe for ScopedContextBuilder
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