pub struct Read {
pub path: String,
pub offset: Option<usize>,
pub limit: Option<usize>,
}Fields§
§path: StringAbsolute or relative file path to read.
offset: Option<usize>Line number to start reading from (1-based). Defaults to 1.
limit: Option<usize>Maximum number of lines to read. Defaults to 2000.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Read
impl<'de> Deserialize<'de> for Read
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Read
impl JsonSchema for Read
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl ToolDescription for Read
impl ToolDescription for Read
Source§const DESCRIPTION: &'static str = "Read a file with line numbers. Supports offset/limit for pagination."
const DESCRIPTION: &'static str = "Read a file with line numbers. Supports offset/limit for pagination."
The description of the tool.
Auto Trait Implementations§
impl Freeze for Read
impl RefUnwindSafe for Read
impl Send for Read
impl Sync for Read
impl Unpin for Read
impl UnsafeUnpin for Read
impl UnwindSafe for Read
Blanket Implementations§
Source§impl<T> AsTool for Twhere
T: JsonSchema + ToolDescription,
impl<T> AsTool for Twhere
T: JsonSchema + ToolDescription,
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