pub struct GoalDoneTool { /* private fields */ }Expand description
The goal_done tool. Registered during --goal assembly; stateless (the flag lives
on the shared GoalState in ToolContext::goal, this tool only calls
mark_reached).
Implementations§
Source§impl GoalDoneTool
impl GoalDoneTool
Trait Implementations§
Source§impl Default for GoalDoneTool
impl Default for GoalDoneTool
Source§impl Tool for GoalDoneTool
impl Tool for GoalDoneTool
Source§fn schema(&self) -> &ToolSchema
fn schema(&self) -> &ToolSchema
Tool metadata. Returns a reference to avoid allocating on every call.
Source§fn safety_hint(&self, _args: &Value) -> SafetyClass
fn safety_hint(&self, _args: &Value) -> SafetyClass
Provides a safety-level hint to the sandbox policy without actually executing the
tool. Read more
Source§fn describe<'a>(
&'a self,
_args: &'a Value,
_ctx: ToolContext<'a>,
) -> BoxFuture<'a, ToolCallDescription>
fn describe<'a>( &'a self, _args: &'a Value, _ctx: ToolContext<'a>, ) -> BoxFuture<'a, ToolCallDescription>
Generates a “self-description” before execution, for display to the ACP client. Read more
Source§fn execute(&self, args: Value, ctx: ToolContext<'_>) -> ToolStream
fn execute(&self, args: Value, ctx: ToolContext<'_>) -> ToolStream
Initiates a tool call and returns an event stream. Read more
Auto Trait Implementations§
impl Freeze for GoalDoneTool
impl RefUnwindSafe for GoalDoneTool
impl Send for GoalDoneTool
impl Sync for GoalDoneTool
impl Unpin for GoalDoneTool
impl UnsafeUnpin for GoalDoneTool
impl UnwindSafe for GoalDoneTool
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