File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
camel/toolkits/hybrid_browser_toolkit Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2929from camel .logger import get_logger
3030from camel .toolkits .base import BaseToolkit , RegisteredAgentToolkit
3131from camel .toolkits .function_tool import FunctionTool
32- from camel .utils .commons import dependencies_required
3332from camel .utils .tool_result import ToolResult
3433
3534from .config_loader import ConfigLoader
@@ -554,7 +553,6 @@ async def browser_get_page_snapshot(self) -> str:
554553 logger .error (f"Failed to get page snapshot: { e } " )
555554 return f"Error capturing snapshot: { e } "
556555
557- @dependencies_required ('PIL' )
558556 async def browser_get_som_screenshot (
559557 self ,
560558 read_image : bool = True ,
@@ -570,7 +568,8 @@ async def browser_get_som_screenshot(
570568 Args:
571569 read_image (bool, optional): If `True`, the screenshot image will
572570 be included in the agent's context for direct visual analysis.
573- If `False`, only the file path will be returned.
571+ If `False`, only a text message (including the saved file
572+ path) will be returned.
574573 (default: :obj:`True`)
575574
576575 Returns:
You can’t perform that action at this time.
0 commit comments