pub struct LinkUnderstandingConfig {
pub enabled: bool,
pub max_links_per_turn: usize,
pub max_bytes: usize,
pub timeout_ms: u64,
pub cache_ttl_secs: u64,
pub deny_hosts: Vec<String>,
}Expand description
YAML schema. Lives under agents.<id>.link_understanding.
Fields§
§enabled: boolMaster switch. false (default) = the runtime never fetches
anything; the agent sees URLs as plain text.
max_links_per_turn: usizeMaximum URLs honoured per turn. Extras are silently dropped (the agent still sees them in the original text).
max_bytes: usizeHard cap on the response body. The fetcher streams until this
many bytes and then aborts the request — protects against a
hostile server feeding gigabytes of /dev/random.
timeout_ms: u64Per-request HTTP timeout in milliseconds. Includes connection
- body read.
cache_ttl_secs: u64In-memory cache TTL in seconds. 0 = no caching (every link
hits the network, debugging only).
deny_hosts: Vec<String>Host-suffix denylist. The fetcher refuses URLs whose host ends in any of these (case-insensitive). Defaults block the most common privacy footguns: localhost, link-local, RFC1918.
Trait Implementations§
Source§impl Clone for LinkUnderstandingConfig
impl Clone for LinkUnderstandingConfig
Source§fn clone(&self) -> LinkUnderstandingConfig
fn clone(&self) -> LinkUnderstandingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkUnderstandingConfig
impl Debug for LinkUnderstandingConfig
Source§impl Default for LinkUnderstandingConfig
impl Default for LinkUnderstandingConfig
Source§impl<'de> Deserialize<'de> for LinkUnderstandingConfig
impl<'de> Deserialize<'de> for LinkUnderstandingConfig
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>,
Auto Trait Implementations§
impl Freeze for LinkUnderstandingConfig
impl RefUnwindSafe for LinkUnderstandingConfig
impl Send for LinkUnderstandingConfig
impl Sync for LinkUnderstandingConfig
impl Unpin for LinkUnderstandingConfig
impl UnsafeUnpin for LinkUnderstandingConfig
impl UnwindSafe for LinkUnderstandingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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