pub struct ProcessUserInputOptions {Show 16 fields
pub input: ProcessUserInput,
pub pre_expansion_input: Option<String>,
pub mode: PromptInputMode,
pub context: ProcessUserInputContext,
pub pasted_contents: Option<HashMap<u32, PastedContent>>,
pub ide_selection: Option<IdeSelection>,
pub messages: Option<Vec<Message>>,
pub set_user_input_on_processing: Option<Box<dyn Fn(Option<String>) + Send + Sync>>,
pub uuid: Option<String>,
pub is_already_processing: Option<bool>,
pub query_source: Option<QuerySource>,
pub can_use_tool: Option<CanUseToolFnJson>,
pub skip_slash_commands: Option<bool>,
pub bridge_origin: Option<bool>,
pub is_meta: Option<bool>,
pub skip_attachments: Option<bool>,
}Expand description
Input for process_user_input function
Fields§
§input: ProcessUserInputInput string or content blocks
pre_expansion_input: Option<String>Input before expansion (for ultraplan keyword detection)
mode: PromptInputModeInput mode
context: ProcessUserInputContextContext for processing
pasted_contents: Option<HashMap<u32, PastedContent>>Pasted contents from the user
ide_selection: Option<IdeSelection>IDE selection
messages: Option<Vec<Message>>Existing messages
set_user_input_on_processing: Option<Box<dyn Fn(Option<String>) + Send + Sync>>Function to set user input while processing
uuid: Option<String>UUID for the prompt
is_already_processing: Option<bool>Whether input is already being processed
query_source: Option<QuerySource>Query source
can_use_tool: Option<CanUseToolFnJson>Function to check if tool can be used
skip_slash_commands: Option<bool>Skip slash command processing
bridge_origin: Option<bool>Bridge origin (for remote control)
is_meta: Option<bool>Whether this is a meta message (system-generated)
skip_attachments: Option<bool>Skip attachment processing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessUserInputOptions
impl !RefUnwindSafe for ProcessUserInputOptions
impl Send for ProcessUserInputOptions
impl Sync for ProcessUserInputOptions
impl Unpin for ProcessUserInputOptions
impl UnsafeUnpin for ProcessUserInputOptions
impl !UnwindSafe for ProcessUserInputOptions
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