pub struct QueryHistoryTool;Expand description
Tool for querying earlier conversation history.
Trait Implementations§
Source§impl Tool for QueryHistoryTool
impl Tool for QueryHistoryTool
Source§fn display_name(&self) -> Option<&str>
fn display_name(&self) -> Option<&str>
Returns a human-readable display name for UI rendering. Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a description of what the tool does. Read more
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
Returns the JSON schema for the tool’s parameters. Read more
Source§fn hints(&self) -> ToolHints
fn hints(&self) -> ToolHints
Returns semantic hints describing the tool’s behavioral properties. Read more
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
_arguments: Value,
) -> Pin<Box<dyn Future<Output = ToolExecutionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
_arguments: Value,
) -> Pin<Box<dyn Future<Output = ToolExecutionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool with the given arguments. Read more
Source§fn requires_context(&self) -> bool
fn requires_context(&self) -> bool
Returns true if this tool requires context for execution. Read more
Source§fn execute_with_context<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
context: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolExecutionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_with_context<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
context: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolExecutionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the tool with context. Read more
Source§fn policy(&self) -> ToolPolicy
fn policy(&self) -> ToolPolicy
Returns the tool policy (auto or requires_approval). Read more
Source§fn as_background_executable(&self) -> Option<&dyn BackgroundExecutableTool>
fn as_background_executable(&self) -> Option<&dyn BackgroundExecutableTool>
Returns native background execution support when this tool opts into
detached execution via
hints().supports_background.Source§fn to_definition(&self) -> ToolDefinition
fn to_definition(&self) -> ToolDefinition
Convert this tool to a ToolDefinition for the agent config. Read more
Auto Trait Implementations§
impl Freeze for QueryHistoryTool
impl RefUnwindSafe for QueryHistoryTool
impl Send for QueryHistoryTool
impl Sync for QueryHistoryTool
impl Unpin for QueryHistoryTool
impl UnsafeUnpin for QueryHistoryTool
impl UnwindSafe for QueryHistoryTool
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request