pub enum InputDisposition {
Handled,
Queued,
Started,
Unknown(String),
}Expand description
What pi did with a submitted prompt/steer/follow_up input
(RpcResponse::disposition, pi ≥ 0.99.0). It describes the submitted
input only — not independent work an extension started, and not a
guarantee of completion or that a queued message stays queued.
Variants§
Handled
An extension command or input handler consumed the input. No run
started for it, so don’t wait for agent_settled.
Queued
Pi queued the input during a run (including after an input handler transformed it).
Started
Pi accepted the prompt to start a run. prompt only.
Unknown(String)
A disposition not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for InputDisposition
impl Clone for InputDisposition
Source§impl Debug for InputDisposition
impl Debug for InputDisposition
Source§impl<'de> Deserialize<'de> for InputDisposition
impl<'de> Deserialize<'de> for InputDisposition
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InputDisposition
impl Display for InputDisposition
impl Eq for InputDisposition
Source§impl From<&str> for InputDisposition
impl From<&str> for InputDisposition
Source§impl Hash for InputDisposition
impl Hash for InputDisposition
Source§impl PartialEq for InputDisposition
impl PartialEq for InputDisposition
Source§impl Serialize for InputDisposition
impl Serialize for InputDisposition
impl StructuralPartialEq for InputDisposition
Auto Trait Implementations§
impl Freeze for InputDisposition
impl RefUnwindSafe for InputDisposition
impl Send for InputDisposition
impl Sync for InputDisposition
impl Unpin for InputDisposition
impl UnsafeUnpin for InputDisposition
impl UnwindSafe for InputDisposition
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