pub struct ActContext<C = ()> { /* private fields */ }Expand description
Context passed to tool functions. Provides config access and stream writing.
Implementations§
Source§impl<C> ActContext<C>
impl<C> ActContext<C>
Sourcepub async fn send_text(&mut self, text: impl Into<String>) -> ActResult<()>
pub async fn send_text(&mut self, text: impl Into<String>) -> ActResult<()>
Send a text content event.
Auto Trait Implementations§
impl<C> Freeze for ActContext<C>where
C: Freeze,
impl<C> RefUnwindSafe for ActContext<C>where
C: RefUnwindSafe,
impl<C> Send for ActContext<C>where
C: Send,
impl<C> Sync for ActContext<C>where
C: Sync,
impl<C> Unpin for ActContext<C>where
C: Unpin,
impl<C> UnsafeUnpin for ActContext<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ActContext<C>where
C: UnwindSafe,
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