pub struct UrlGroundingVerifier { /* private fields */ }Expand description
Verifier that blocks fetch and web_scrape calls when the requested URL
was not explicitly provided by the user in the conversation.
The agent populates user_provided_urls whenever a user message is received,
by extracting all http/https URLs from the raw input. This set persists across
turns within a session and is cleared on /clear.
§Bypass rules
- Tools not in the
guarded_toolslist (and not ending in_fetch) pass through. - If the URL in the tool call is a prefix-match or exact match of any URL in
user_provided_urls, the call is allowed. - If
user_provided_urlsis empty (no URLs seen in this session at all), the call is blocked — the LLM must not fetch arbitrary URLs when the user never provided one.
Implementations§
Trait Implementations§
Source§impl Clone for UrlGroundingVerifier
impl Clone for UrlGroundingVerifier
Source§fn clone(&self) -> UrlGroundingVerifier
fn clone(&self) -> UrlGroundingVerifier
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 UrlGroundingVerifier
impl Debug for UrlGroundingVerifier
Auto Trait Implementations§
impl Freeze for UrlGroundingVerifier
impl !RefUnwindSafe for UrlGroundingVerifier
impl Send for UrlGroundingVerifier
impl Sync for UrlGroundingVerifier
impl Unpin for UrlGroundingVerifier
impl UnsafeUnpin for UrlGroundingVerifier
impl !UnwindSafe for UrlGroundingVerifier
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