From 3c5d82d4c6248188f21fb1e07ab0a31cf5b2d6e5 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 7 Mar 2024 18:54:13 -0700 Subject: [PATCH] simplfy web_reader tool description --- pers/langchain/tools/web_reader.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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})