pub struct GetUserChoiceTool;Expand description
Tool that presents a list of options to the user and waits for selection.
This is a long-running tool — the model calls it to present choices, and execution pauses until the user makes a selection.
Implementations§
Trait Implementations§
Source§impl Clone for GetUserChoiceTool
impl Clone for GetUserChoiceTool
Source§fn clone(&self) -> GetUserChoiceTool
fn clone(&self) -> GetUserChoiceTool
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 GetUserChoiceTool
impl Debug for GetUserChoiceTool
Source§impl Default for GetUserChoiceTool
impl Default for GetUserChoiceTool
Source§fn default() -> GetUserChoiceTool
fn default() -> GetUserChoiceTool
Returns the “default value” for a type. Read more
Source§impl ToolFunction for GetUserChoiceTool
impl ToolFunction for GetUserChoiceTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description of what this tool does.
Source§fn parameters(&self) -> Option<Value>
fn parameters(&self) -> Option<Value>
JSON Schema for the tool’s input parameters, or
None if parameterless.Auto Trait Implementations§
impl Freeze for GetUserChoiceTool
impl RefUnwindSafe for GetUserChoiceTool
impl Send for GetUserChoiceTool
impl Sync for GetUserChoiceTool
impl Unpin for GetUserChoiceTool
impl UnwindSafe for GetUserChoiceTool
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