pub struct WebFetchOutput {
pub final_url: String,
pub title: Option<String>,
pub content_type: String,
pub word_count: usize,
pub truncated: bool,
pub retrieved_at: DateTime<Utc>,
pub content: String,
pub summary: Option<String>,
}Expand description
Output from the web_fetch tool.
Fields§
§final_url: StringThe final URL after redirects
title: Option<String>Page title (extracted from HTML if available)
content_type: StringContent-Type header value
word_count: usizeApproximate word count of the content
truncated: boolWhether the content was truncated due to size limits
retrieved_at: DateTime<Utc>When the page was retrieved
content: StringThe converted content (markdown for HTML, raw for text, pretty-printed for JSON)
summary: Option<String>Optional Haiku summary (only present when summarize=true)
Trait Implementations§
Source§impl Clone for WebFetchOutput
impl Clone for WebFetchOutput
Source§fn clone(&self) -> WebFetchOutput
fn clone(&self) -> WebFetchOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebFetchOutput
impl Debug for WebFetchOutput
Source§impl JsonSchema for WebFetchOutput
impl JsonSchema for WebFetchOutput
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 Serialize for WebFetchOutput
impl Serialize for WebFetchOutput
Source§impl TextFormat for WebFetchOutput
impl TextFormat for WebFetchOutput
Auto Trait Implementations§
impl Freeze for WebFetchOutput
impl RefUnwindSafe for WebFetchOutput
impl Send for WebFetchOutput
impl Sync for WebFetchOutput
impl Unpin for WebFetchOutput
impl UnsafeUnpin for WebFetchOutput
impl UnwindSafe for WebFetchOutput
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