pub enum InputPrompt {
Text(String),
Messages(Vec<Value>),
}Expand description
Input prompt for a query — either plain text or structured messages.
§Variants
Text— A simple text prompt string.Messages— A list of structured JSON messages for fine-grained control over the conversation input. Required when usingcan_use_toolcallbacks.
Variants§
Trait Implementations§
Source§impl Clone for InputPrompt
impl Clone for InputPrompt
Source§fn clone(&self) -> InputPrompt
fn clone(&self) -> InputPrompt
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 InputPrompt
impl Debug for InputPrompt
Source§impl PartialEq for InputPrompt
impl PartialEq for InputPrompt
impl StructuralPartialEq for InputPrompt
Auto Trait Implementations§
impl Freeze for InputPrompt
impl RefUnwindSafe for InputPrompt
impl Send for InputPrompt
impl Sync for InputPrompt
impl Unpin for InputPrompt
impl UnsafeUnpin for InputPrompt
impl UnwindSafe for InputPrompt
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