#[non_exhaustive]pub struct GazeReadFile { /* private fields */ }Available on crate feature
mcp only.Expand description
MCP tool that OCRs an image/PDF file and tokenizes text before model use.
Implementations§
Source§impl GazeReadFile
impl GazeReadFile
Sourcepub fn with_max_file_size(max_file_size: u64) -> Self
pub fn with_max_file_size(max_file_size: u64) -> Self
Construct a gaze_read_file tool with a caller-supplied input cap.
Trait Implementations§
Source§impl Debug for GazeReadFile
impl Debug for GazeReadFile
Source§impl Default for GazeReadFile
impl Default for GazeReadFile
Source§impl Tool for GazeReadFile
impl Tool for GazeReadFile
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 GazeReadFile
impl RefUnwindSafe for GazeReadFile
impl Send for GazeReadFile
impl Sync for GazeReadFile
impl Unpin for GazeReadFile
impl UnsafeUnpin for GazeReadFile
impl UnwindSafe for GazeReadFile
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