pub struct BrowserNetworkTool { /* private fields */ }Expand description
Network inspection tool backed by BrowserSessionManager.
Implementations§
Source§impl BrowserNetworkTool
impl BrowserNetworkTool
Sourcepub fn new(manager: Arc<BrowserSessionManager>) -> Self
pub fn new(manager: Arc<BrowserSessionManager>) -> Self
Creates a browser_network tool backed by the shared session manager.
Sourcepub fn into_registered_tool(self) -> Result<RegisteredTool, ToolBuildError>
pub fn into_registered_tool(self) -> Result<RegisteredTool, ToolBuildError>
Converts this tool into a registered runtime tool.
Trait Implementations§
Source§impl Clone for BrowserNetworkTool
impl Clone for BrowserNetworkTool
Source§impl Debug for BrowserNetworkTool
impl Debug for BrowserNetworkTool
Source§impl ToolExecutor for BrowserNetworkTool
impl ToolExecutor for BrowserNetworkTool
Source§fn execute<'a>(
&'a self,
call: PendingToolCall,
context: ToolExecutionContext,
) -> ToolExecutorFuture<'a>
fn execute<'a>( &'a self, call: PendingToolCall, context: ToolExecutionContext, ) -> ToolExecutorFuture<'a>
Executes one pending model-requested tool call. Read more
Source§fn propose<'a>(
&'a self,
_call: PendingToolCall,
_context: ToolExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<ToolActionPreflight, ToolExecutionError>> + Send + 'a>>
fn propose<'a>( &'a self, _call: PendingToolCall, _context: ToolExecutionContext, ) -> Pin<Box<dyn Future<Output = Result<ToolActionPreflight, ToolExecutionError>> + Send + 'a>>
Builds read-only deterministic evidence for a proposed action. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserNetworkTool
impl !UnwindSafe for BrowserNetworkTool
impl Forget for BrowserNetworkTool
impl Freeze for BrowserNetworkToolwhere
*const ArcInner<BrowserSessionManager> is !null: Freeze,
PhantomData<ArcInner<BrowserSessionManager>>: Freeze,
impl Move for BrowserNetworkTool
impl Send for BrowserNetworkTool
impl Sync for BrowserNetworkTool
impl Unpin for BrowserNetworkTool
impl UnsafeUnpin for BrowserNetworkToolwhere
*const ArcInner<BrowserSessionManager> is !null: UnsafeUnpin,
PhantomData<ArcInner<BrowserSessionManager>>: UnsafeUnpin,
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