pub struct BrowserTabTool { /* private fields */ }Expand description
Interactive headless browser tab tool backed by BrowserSessionManager.
Implementations§
Source§impl BrowserTabTool
impl BrowserTabTool
Sourcepub fn new(manager: Arc<BrowserSessionManager>) -> Self
pub fn new(manager: Arc<BrowserSessionManager>) -> Self
Creates a browser_tab 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 BrowserTabTool
impl Clone for BrowserTabTool
Source§impl Debug for BrowserTabTool
impl Debug for BrowserTabTool
Source§impl ToolExecutor for BrowserTabTool
impl ToolExecutor for BrowserTabTool
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 BrowserTabTool
impl !UnwindSafe for BrowserTabTool
impl Forget for BrowserTabTool
impl Freeze for BrowserTabToolwhere
*const ArcInner<BrowserSessionManager> is !null: Freeze,
PhantomData<ArcInner<BrowserSessionManager>>: Freeze,
impl Move for BrowserTabTool
impl Send for BrowserTabTool
impl Sync for BrowserTabTool
impl Unpin for BrowserTabTool
impl UnsafeUnpin for BrowserTabToolwhere
*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