pub struct UserInputRequestedData {
pub allow_freeform: Option<bool>,
pub choices: Vec<String>,
pub question: String,
pub request_id: RequestId,
pub tool_call_id: Option<String>,
}Expand description
User input request notification with question and optional predefined choices
Fields§
§allow_freeform: Option<bool>Whether the user can provide a free-form text response in addition to predefined choices
choices: Vec<String>Predefined choices for the user to select from, if applicable
question: StringThe question or prompt to present to the user
request_id: RequestIdUnique identifier for this input request; used to respond via session.respondToUserInput()
tool_call_id: Option<String>The LLM-assigned tool call ID that triggered this request; used by remote UIs to correlate responses
Trait Implementations§
Source§impl Clone for UserInputRequestedData
impl Clone for UserInputRequestedData
Source§fn clone(&self) -> UserInputRequestedData
fn clone(&self) -> UserInputRequestedData
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 UserInputRequestedData
impl Debug for UserInputRequestedData
Source§impl<'de> Deserialize<'de> for UserInputRequestedData
impl<'de> Deserialize<'de> for UserInputRequestedData
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
Auto Trait Implementations§
impl Freeze for UserInputRequestedData
impl RefUnwindSafe for UserInputRequestedData
impl Send for UserInputRequestedData
impl Sync for UserInputRequestedData
impl Unpin for UserInputRequestedData
impl UnsafeUnpin for UserInputRequestedData
impl UnwindSafe for UserInputRequestedData
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