pub enum HumanInput {
Message {
text: String,
},
Approve {
draft_id: Uuid,
artifact_uri: Option<String>,
},
Reject {
draft_id: Uuid,
artifact_uri: Option<String>,
reason: String,
},
Abort,
}Expand description
Input from a human to the session.
Variants§
Message
Free-form guidance message injected into agent context.
Approve
Inline review: approve a draft artifact.
Reject
Inline review: reject a draft artifact with reason.
Abort
Abort the session.
Trait Implementations§
Source§impl Clone for HumanInput
impl Clone for HumanInput
Source§fn clone(&self) -> HumanInput
fn clone(&self) -> HumanInput
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 HumanInput
impl Debug for HumanInput
Source§impl<'de> Deserialize<'de> for HumanInput
impl<'de> Deserialize<'de> for HumanInput
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 Display for HumanInput
impl Display for HumanInput
Auto Trait Implementations§
impl Freeze for HumanInput
impl RefUnwindSafe for HumanInput
impl Send for HumanInput
impl Sync for HumanInput
impl Unpin for HumanInput
impl UnsafeUnpin for HumanInput
impl UnwindSafe for HumanInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.