pub struct UrlContextTool;Expand description
Built-in server-side URL context tool.
This tool does not perform any local execution. Instead, it modifies
the outgoing LlmRequest to include the URL context tool
configuration for Gemini 2.x+ models.
Implementations§
Source§impl UrlContextTool
impl UrlContextTool
Sourcepub fn process_llm_request(&self, request: &mut LlmRequest, model: &str)
pub fn process_llm_request(&self, request: &mut LlmRequest, model: &str)
Add URL context configuration to the given request.
Only supported for Gemini 2.x+ models. Non-Gemini models are a no-op.
Trait Implementations§
Source§impl Clone for UrlContextTool
impl Clone for UrlContextTool
Source§fn clone(&self) -> UrlContextTool
fn clone(&self) -> UrlContextTool
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 UrlContextTool
impl Debug for UrlContextTool
Source§impl Default for UrlContextTool
impl Default for UrlContextTool
Source§fn default() -> UrlContextTool
fn default() -> UrlContextTool
Returns the “default value” for a type. Read more
impl Copy for UrlContextTool
Auto Trait Implementations§
impl Freeze for UrlContextTool
impl RefUnwindSafe for UrlContextTool
impl Send for UrlContextTool
impl Sync for UrlContextTool
impl Unpin for UrlContextTool
impl UnwindSafe for UrlContextTool
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