pub struct InteractivePolicy;Expand description
Interactive policy - always ask the user.
This is the default policy used by the TUI. All permission requests are forwarded to the consumer for user decision.
§Example
ⓘ
use agent_core_runtime::agent::interface::InteractivePolicy;
let policy = InteractivePolicy;
// All permission requests will prompt the userImplementations§
Trait Implementations§
Source§impl Clone for InteractivePolicy
impl Clone for InteractivePolicy
Source§fn clone(&self) -> InteractivePolicy
fn clone(&self) -> InteractivePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractivePolicy
impl Debug for InteractivePolicy
Source§impl Default for InteractivePolicy
impl Default for InteractivePolicy
Source§fn default() -> InteractivePolicy
fn default() -> InteractivePolicy
Returns the “default value” for a type. Read more
Source§impl PermissionPolicy for InteractivePolicy
impl PermissionPolicy for InteractivePolicy
Source§fn decide(&self, _request: &PermissionRequest) -> PolicyDecision
fn decide(&self, _request: &PermissionRequest) -> PolicyDecision
Decide how to handle a permission request. Read more
Source§fn supports_interaction(&self) -> bool
fn supports_interaction(&self) -> bool
Whether this policy supports interactive user questions. Read more
impl Copy for InteractivePolicy
Auto Trait Implementations§
impl Freeze for InteractivePolicy
impl RefUnwindSafe for InteractivePolicy
impl Send for InteractivePolicy
impl Sync for InteractivePolicy
impl Unpin for InteractivePolicy
impl UnwindSafe for InteractivePolicy
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