struct ReadGet {
pool: SqlitePool,
}Fields§
§pool: SqlitePoolTrait Implementations§
Source§impl Tool for ReadGet
impl Tool for ReadGet
Source§fn capabilities(&self) -> Option<Vec<Capability>>
fn capabilities(&self) -> Option<Vec<Capability>>
Runtime capability requirements. Unknown metadata is denied by the local
agent runtime; existing MCP tools retain their existing behavior.
Source§fn binding_metadata(&self) -> Option<Value>
fn binding_metadata(&self) -> Option<Value>
Sanitized immutable identity for declaratively bound tools. History and
recovery use this without loading implementations or resolving secrets.
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a one-line description for agent discovery. Read more
Source§fn is_builtin(&self) -> bool
fn is_builtin(&self) -> bool
Whether this tool is a built-in (true for search/get/sources). Read more
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
Returns the OpenAI function-calling JSON Schema for parameters. Read more
Source§fn validate_arguments(&self, arguments: &Value) -> Result<()>
fn validate_arguments(&self, arguments: &Value) -> Result<()>
Validate model-visible arguments before authorization and tool start.
Bound adapters override this with their resolved public contract.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the tool with validated parameters. Read more
Source§fn runtime_dispatch(&self) -> ToolRuntimeDispatch
fn runtime_dispatch(&self) -> ToolRuntimeDispatch
Select runtime-owned execution context without coupling the dispatcher
to a public tool name. Most tools execute directly.
Source§fn preparation(&self) -> Option<ToolPreparation>
fn preparation(&self) -> Option<ToolPreparation>
Optional host-owned preparation that must complete through the durable
approval lifecycle before this tool can be advertised to a model.
fn prepare<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ReadGet
impl !UnwindSafe for ReadGet
impl Freeze for ReadGet
impl Send for ReadGet
impl Sync for ReadGet
impl Unpin for ReadGet
impl UnsafeUnpin for ReadGet
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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