pub struct AskUserQuestionsTool { /* private fields */ }Expand description
Tool that asks the user structured questions.
Implementations§
Source§impl AskUserQuestionsTool
impl AskUserQuestionsTool
Sourcepub fn new(registry: Arc<UserInteractionRegistry>) -> Self
pub fn new(registry: Arc<UserInteractionRegistry>) -> Self
Create a new AskUserQuestionsTool instance.
§Arguments
registry- The user interaction registry to use for tracking pending questions.
Trait Implementations§
Source§impl Executable for AskUserQuestionsTool
impl Executable for AskUserQuestionsTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get the tool description.
Source§fn input_schema(&self) -> &str
fn input_schema(&self) -> &str
Get the input schema as JSON string.
Source§fn execute(
&self,
context: ToolContext,
input: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send>>
fn execute( &self, context: ToolContext, input: HashMap<String, Value>, ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send>>
Execute the tool with given input.
Source§fn display_config(&self) -> DisplayConfig
fn display_config(&self) -> DisplayConfig
Get display configuration for UI rendering.
Source§fn compact_summary(
&self,
input: &HashMap<String, Value>,
_result: &str,
) -> String
fn compact_summary( &self, input: &HashMap<String, Value>, _result: &str, ) -> String
Generate compact summary for context compaction.
Source§fn to_definition(&self) -> ToolDefinition
fn to_definition(&self) -> ToolDefinition
Convert to LLM tool definition.
Source§fn to_llm_tool(&self) -> LLMTool
fn to_llm_tool(&self) -> LLMTool
Convert to LLMTool for provider APIs.
Auto Trait Implementations§
impl Freeze for AskUserQuestionsTool
impl !RefUnwindSafe for AskUserQuestionsTool
impl Send for AskUserQuestionsTool
impl Sync for AskUserQuestionsTool
impl Unpin for AskUserQuestionsTool
impl !UnwindSafe for AskUserQuestionsTool
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more