pub struct CliPrompter;Expand description
CLI-based prompter that reads from stdin.
Displays tool name and arguments, asks user to approve [y/n].
Implementations§
Source§impl CliPrompter
impl CliPrompter
Trait Implementations§
Source§impl ApprovalPrompter for CliPrompter
impl ApprovalPrompter for CliPrompter
Source§fn prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Prompt the user to approve a tool call. Read more
Auto Trait Implementations§
impl Freeze for CliPrompter
impl RefUnwindSafe for CliPrompter
impl Send for CliPrompter
impl Sync for CliPrompter
impl Unpin for CliPrompter
impl UnsafeUnpin for CliPrompter
impl UnwindSafe for CliPrompter
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