#[non_exhaustive]pub struct UserInputRequestParams {
pub session_id: String,
pub user_input_id: String,
pub turn_id: String,
pub item_id: String,
pub tool_call_id: String,
pub tool_name: String,
pub view_cursor: String,
pub source_range: Option<SourceRange>,
pub questions: Vec<UserInputQuestion>,
pub auto_resolution_ms: Option<u64>,
}Expand description
Full params shared by userInput/request and userInput/requested.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session that owns the prompt.
user_input_id: StringThe prompt’s stable id. Pass it to userInput/answer,
userInput/cancel, userInput/clarify and userInput/interrupt, and
use it to match the later userInput/settled.
turn_id: StringThe turn whose tool call is waiting on this prompt.
item_id: StringThe toolCall view item of the tool call waiting on this prompt.
tool_call_id: StringThe provider’s id for the tool call that opened the prompt.
tool_name: StringThe name of the tool that opened the prompt.
view_cursor: StringThe cursor of the userInput/requested event for this prompt. A client
that missed the request can read the same payload at this cursor with
view/page.
source_range: Option<SourceRange>The stored records this prompt was folded from, when sent: an opaque token clients must not interpret.
questions: Vec<UserInputQuestion>The questions to ask, one to three, in order.
auto_resolution_ms: Option<u64>The auto-resolution time per question, in milliseconds: a prompt nobody
engages with settles as timedOut after this value times the number of
questions.