pub struct UserPrompt {
pub id: String,
pub title: String,
pub description: Option<String>,
pub prompt_type: PromptType,
}Expand description
A structured prompt sent by the agent via the ask_user tool.
Fields§
§id: StringUnique prompt ID (matches tool call ID).
title: StringThe question or instruction text.
description: Option<String>Optional longer description.
prompt_type: PromptTypeThe type of input requested.
Trait Implementations§
Source§impl Clone for UserPrompt
impl Clone for UserPrompt
Source§fn clone(&self) -> UserPrompt
fn clone(&self) -> UserPrompt
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 UserPrompt
impl Debug for UserPrompt
Source§impl<'de> Deserialize<'de> for UserPrompt
impl<'de> Deserialize<'de> for UserPrompt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPrompt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPrompt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserPrompt
impl PartialEq for UserPrompt
Source§impl Serialize for UserPrompt
impl Serialize for UserPrompt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UserPrompt
Auto Trait Implementations§
impl Freeze for UserPrompt
impl RefUnwindSafe for UserPrompt
impl Send for UserPrompt
impl Sync for UserPrompt
impl Unpin for UserPrompt
impl UnsafeUnpin for UserPrompt
impl UnwindSafe for UserPrompt
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