pub struct UpdatePlanTool { /* private fields */ }Expand description
A simple plan / task tracker. The model calls it to record or update a
checklist of steps (the analog of Codex update_plan / Claude’s plan mode).
The plan is held in the tool so it persists across calls within a session.
Implementations§
Trait Implementations§
Source§impl Default for UpdatePlanTool
impl Default for UpdatePlanTool
Source§fn default() -> UpdatePlanTool
fn default() -> UpdatePlanTool
Returns the “default value” for a type. Read more
Source§impl Tool for UpdatePlanTool
impl Tool for UpdatePlanTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
UpdatePlanTool: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
UpdatePlanTool: 'async_trait,
Run the tool. Returns text to feed back to the model.
Auto Trait Implementations§
impl !Freeze for UpdatePlanTool
impl RefUnwindSafe for UpdatePlanTool
impl Send for UpdatePlanTool
impl Sync for UpdatePlanTool
impl Unpin for UpdatePlanTool
impl UnsafeUnpin for UpdatePlanTool
impl UnwindSafe for UpdatePlanTool
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