pub struct InputRequestEvent {
pub request_id: String,
pub prompt: String,
pub metadata: Value,
}Expand description
Emitted by a step to request human input. Triggers auto-pause.
Fields§
§request_id: StringUnique ID for this request (for matching response).
prompt: StringThe question/prompt to show the human.
metadata: ValueOptional structured metadata (choices, type hints, etc.).
Trait Implementations§
Source§impl Clone for InputRequestEvent
impl Clone for InputRequestEvent
Source§fn clone(&self) -> InputRequestEvent
fn clone(&self) -> InputRequestEvent
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 InputRequestEvent
impl Debug for InputRequestEvent
Source§impl<'de> Deserialize<'de> for InputRequestEvent
impl<'de> Deserialize<'de> for InputRequestEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputRequestEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputRequestEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Event for InputRequestEvent
impl Event for InputRequestEvent
Source§fn event_type() -> &'static str
fn event_type() -> &'static str
Stable string identifier for this event type. Read more
Source§fn event_type_id(&self) -> &'static str
fn event_type_id(&self) -> &'static str
Instance method version of
Event::event_type for dynamic dispatch.Source§fn clone_boxed(&self) -> Box<dyn AnyEvent>
fn clone_boxed(&self) -> Box<dyn AnyEvent>
Clone into a boxed trait object.
Source§impl Serialize for InputRequestEvent
impl Serialize for InputRequestEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InputRequestEvent
impl RefUnwindSafe for InputRequestEvent
impl Send for InputRequestEvent
impl Sync for InputRequestEvent
impl Unpin for InputRequestEvent
impl UnsafeUnpin for InputRequestEvent
impl UnwindSafe for InputRequestEvent
Blanket Implementations§
Source§impl<T> AnyEvent for T
impl<T> AnyEvent for T
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