diff --git a/pers/langchain/tools/web_reader.py b/pers/langchain/tools/web_reader.py index 2ebdc87..8db5e1e 100644 --- a/pers/langchain/tools/web_reader.py +++ b/pers/langchain/tools/web_reader.py @@ -121,9 +121,8 @@ class ReaderToolInput(BaseModel): @tool(args_schema=ReaderToolInput) def read_webpage(url: str, reasoning: str, include_body: bool = True, cursor: int = 0): - """Fetch a webpage's text content. - This tool trunucates the text content if it is longer than the context limit. You will see a line like `PAGE WAS TRUNCATED. TO CONTINUE READING, USE CURSOR=n.` when this happens, where `CURSOR=n` is the starting position for the next page. To continue reading, call this tool with the `cursor` argument with where you want to begin. - This function may not correctly parse complicated webpages, so use render_webpage if targeting specific HTML elements or expecting a complicated page. Best for when you need to simply read the page.""" + """Fetch a webpage's text content. Best for when you need to simply read the page. + This tool trunucates the text content if it is longer than the context limit. You will see a line like `PAGE WAS TRUNCATED. TO CONTINUE READING, USE CURSOR=n.` when this happens, where `CURSOR=n` is the starting position for the next page. To continue reading, call this tool with the `cursor` argument with where you want to begin.""" if PRINT_USAGE: _print_func_call('read_webpage', {'url': url, 'reasoning': reasoning})