pub struct UserInputRequestEvent {
pub call_id: String,
pub turn_id: String,
pub request_id: String,
pub questions: Vec<UserInputQuestionEvent>,
}Expand description
An event requesting structured user input via a model-tool call.
Sibling of ExecApprovalRequestEvent for the clarification-question
flow. Emitted fire-and-return by Runtime::invoke_tool when the model
invokes request_user_input in a headless context.
Fields§
§call_id: StringIdentifier of the tool call requesting input.
turn_id: StringThe turn during which the request was made.
request_id: StringUnique identifier for this user-input request (clients reply with it).
questions: Vec<UserInputQuestionEvent>1-3 questions to present.
Trait Implementations§
Source§impl Clone for UserInputRequestEvent
impl Clone for UserInputRequestEvent
Source§fn clone(&self) -> UserInputRequestEvent
fn clone(&self) -> UserInputRequestEvent
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 UserInputRequestEvent
impl Debug for UserInputRequestEvent
Source§impl<'de> Deserialize<'de> for UserInputRequestEvent
impl<'de> Deserialize<'de> for UserInputRequestEvent
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
impl Eq for UserInputRequestEvent
Source§impl PartialEq for UserInputRequestEvent
impl PartialEq for UserInputRequestEvent
Source§fn eq(&self, other: &UserInputRequestEvent) -> bool
fn eq(&self, other: &UserInputRequestEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserInputRequestEvent
impl Serialize for UserInputRequestEvent
impl StructuralPartialEq for UserInputRequestEvent
Auto Trait Implementations§
impl Freeze for UserInputRequestEvent
impl RefUnwindSafe for UserInputRequestEvent
impl Send for UserInputRequestEvent
impl Sync for UserInputRequestEvent
impl Unpin for UserInputRequestEvent
impl UnsafeUnpin for UserInputRequestEvent
impl UnwindSafe for UserInputRequestEvent
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