pub struct AskUser {
pub questions: Vec<Question>,
}Expand description
Ask the user one or more structured questions and wait for their reply.
Fields§
§questions: Vec<Question>The questions to ask the user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskUser
impl<'de> Deserialize<'de> for AskUser
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
Source§impl JsonSchema for AskUser
impl JsonSchema for AskUser
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl ToolDescription for AskUser
impl ToolDescription for AskUser
Source§const DESCRIPTION: &'static str = r#"Ask the user one or more structured questions with predefined options. Each question needs a short UI header, the full question text, and options with labels and descriptions. The user picks from the options or types a free-text "Other" answer. Returns JSON mapping question text to selected label. For multi_select, the answer is a comma-joined string like "Option A, Option B"."#
const DESCRIPTION: &'static str = r#"Ask the user one or more structured questions with predefined options. Each question needs a short UI header, the full question text, and options with labels and descriptions. The user picks from the options or types a free-text "Other" answer. Returns JSON mapping question text to selected label. For multi_select, the answer is a comma-joined string like "Option A, Option B"."#
The description of the tool.
Auto Trait Implementations§
impl Freeze for AskUser
impl RefUnwindSafe for AskUser
impl Send for AskUser
impl Sync for AskUser
impl Unpin for AskUser
impl UnsafeUnpin for AskUser
impl UnwindSafe for AskUser
Blanket Implementations§
Source§impl<T> AsTool for Twhere
T: JsonSchema + ToolDescription,
impl<T> AsTool for Twhere
T: JsonSchema + ToolDescription,
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