#[non_exhaustive]pub struct GazeReadText { /* private fields */ }Available on crate feature
mcp only.Expand description
MCP tool that tokenizes already-extracted text via the document recognizer set.
Implementations§
Source§impl GazeReadText
impl GazeReadText
Trait Implementations§
Source§impl Debug for GazeReadText
impl Debug for GazeReadText
Source§impl Default for GazeReadText
impl Default for GazeReadText
Source§impl Tool for GazeReadText
impl Tool for GazeReadText
Source§fn descriptor(&self) -> &ToolDescriptor
fn descriptor(&self) -> &ToolDescriptor
Static metadata describing this tool. The registry inspects this once
at registration time; the dispatcher reads
tier per call to pick the
auth surface.Source§fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ToolCtx<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ToolCtx<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run the tool body. The context exposes redacted args, the audit
session handle, the call id, and the principal id; everything else
(raw args, signing key, manifest store) is intentionally not reachable.
Auto Trait Implementations§
impl Freeze for GazeReadText
impl RefUnwindSafe for GazeReadText
impl Send for GazeReadText
impl Sync for GazeReadText
impl Unpin for GazeReadText
impl UnsafeUnpin for GazeReadText
impl UnwindSafe for GazeReadText
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