pub struct URLFetchInput {
pub operation: String,
pub url: String,
pub include_headers: Option<bool>,
pub max_length: Option<usize>,
}Expand description
URLFetch tool input
Fields§
§operation: StringOperation type: “fetch”, “extract_text”, “extract_links”, “extract_images”, “metadata”
url: StringThe URL
include_headers: Option<bool>Whether to include header info (for the fetch operation)
max_length: Option<usize>Maximum content length (bytes)
Trait Implementations§
Source§impl Debug for URLFetchInput
impl Debug for URLFetchInput
Source§impl<'de> Deserialize<'de> for URLFetchInput
impl<'de> Deserialize<'de> for URLFetchInput
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 URLFetchInput
impl JsonSchema for URLFetchInput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for URLFetchInput
impl RefUnwindSafe for URLFetchInput
impl Send for URLFetchInput
impl Sync for URLFetchInput
impl Unpin for URLFetchInput
impl UnsafeUnpin for URLFetchInput
impl UnwindSafe for URLFetchInput
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