pub enum NeedsInputReason {
InteractiveTool {
tool: Tool,
},
PermissionGate {
tool: Tool,
},
Notification {
kind: NotificationKind,
label: Option<String>,
},
}Expand description
Why a session is awaiting user input.
Variants§
InteractiveTool
Claude PreToolUse for an interactive tool
(AskUserQuestion, EnterPlanMode, ExitPlanMode).
PermissionGate
Pi extension-mediated tool_call permission gate.
Notification
Generic notification-driven prompt
(Claude Notification(permission_prompt|elicitation_dialog),
pi atm_needs_input_open). label carries an optional
vendor-supplied human string (e.g. the dialog title or the
command being gated) so the TUI can show what is being
asked, not just that something is.
Trait Implementations§
Source§impl Clone for NeedsInputReason
impl Clone for NeedsInputReason
Source§fn clone(&self) -> NeedsInputReason
fn clone(&self) -> NeedsInputReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NeedsInputReason
impl Debug for NeedsInputReason
Source§impl<'de> Deserialize<'de> for NeedsInputReason
impl<'de> Deserialize<'de> for NeedsInputReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NeedsInputReason
impl PartialEq for NeedsInputReason
Source§fn eq(&self, other: &NeedsInputReason) -> bool
fn eq(&self, other: &NeedsInputReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NeedsInputReason
impl Serialize for NeedsInputReason
impl Eq for NeedsInputReason
impl StructuralPartialEq for NeedsInputReason
Auto Trait Implementations§
impl Freeze for NeedsInputReason
impl RefUnwindSafe for NeedsInputReason
impl Send for NeedsInputReason
impl Sync for NeedsInputReason
impl Unpin for NeedsInputReason
impl UnsafeUnpin for NeedsInputReason
impl UnwindSafe for NeedsInputReason
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