pub struct AskUserTool { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tool for AskUserTool
impl Tool for AskUserTool
Source§fn read_only(&self) -> bool
fn read_only(&self) -> bool
Read-only, which is also what makes it available while planning — the phase where asking matters most.
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Nothing. The user is the principal, not a third party: marking their own answer as untrusted would arm the trifecta interlock every time the model asked a question, which would make the tool unusable next to any private data.
fn name(&self) -> &str
fn description(&self) -> &str
fn input_schema(&self) -> Value
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
input: Value,
ctx: &'life1 ToolCtx,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn carried_state(&self) -> Option<CarriedState>
fn carried_state(&self) -> Option<CarriedState>
State this tool holds that a compaction must not lose. Read more
Source§fn denial_remedy(&self) -> Option<String>
fn denial_remedy(&self) -> Option<String>
How the operator could make a call like the one just refused safe —
one sentence appended to a trifecta denial, or
None when nothing
short of policy would change the answer. Read moreSource§fn fixed_workspace(&self) -> Option<PathBuf>
fn fixed_workspace(&self) -> Option<PathBuf>
Source§fn narrows_surface_to(&self) -> Option<Vec<String>>
fn narrows_surface_to(&self) -> Option<Vec<String>>
Tool names this tool is currently restricting the surface to, if it is
restricting it at all. Read more
Source§fn forget_conversation_state(&self)
fn forget_conversation_state(&self)
Drop state that belonged to the conversation that just ended. Read more
fn spec(&self) -> ToolSpec
Auto Trait Implementations§
impl !RefUnwindSafe for AskUserTool
impl !UnwindSafe for AskUserTool
impl Freeze for AskUserTool
impl Send for AskUserTool
impl Sync for AskUserTool
impl Unpin for AskUserTool
impl UnsafeUnpin for AskUserTool
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