pub struct ReadFileMetadata {
pub start_line: u32,
pub lines_returned: u32,
pub total_lines: u32,
pub file_size_bytes: u64,
pub truncated: bool,
pub language: String,
pub duration_ms: Option<u64>,
}Expand description
The metadata embedded in structured_content for read_file.
Fields§
§start_line: u32First line number returned from the file.
lines_returned: u32Number of lines returned.
total_lines: u32Total number of lines in the file.
file_size_bytes: u64Total size of the file in bytes.
truncated: boolWhether the output was truncated.
language: StringDetected language of the file.
duration_ms: Option<u64>Wall-clock time in milliseconds that this tool call took to complete.
Trait Implementations§
Source§impl Debug for ReadFileMetadata
impl Debug for ReadFileMetadata
Source§impl<'de> Deserialize<'de> for ReadFileMetadata
impl<'de> Deserialize<'de> for ReadFileMetadata
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 ReadFileMetadata
impl JsonSchema for ReadFileMetadata
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 moreAuto Trait Implementations§
impl Freeze for ReadFileMetadata
impl RefUnwindSafe for ReadFileMetadata
impl Send for ReadFileMetadata
impl Sync for ReadFileMetadata
impl Unpin for ReadFileMetadata
impl UnsafeUnpin for ReadFileMetadata
impl UnwindSafe for ReadFileMetadata
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