pub struct ScheduleWakeup { /* private fields */ }Expand description
Tool that lets the agent schedule its own next invocation.
Implementations§
Source§impl ScheduleWakeup
impl ScheduleWakeup
pub fn new(slot: WakeupSlot) -> Self
Trait Implementations§
Source§impl Tool for ScheduleWakeup
impl Tool for ScheduleWakeup
fn spec(&self) -> ToolSpec
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Whether this tool only reads data without side effects.
Default: false (conservative). Override to true for read-only tools.
Auto Trait Implementations§
impl Freeze for ScheduleWakeup
impl RefUnwindSafe for ScheduleWakeup
impl Send for ScheduleWakeup
impl Sync for ScheduleWakeup
impl Unpin for ScheduleWakeup
impl UnsafeUnpin for ScheduleWakeup
impl UnwindSafe for ScheduleWakeup
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