From a56c6571d235ccaeb83b366fde24d021add6c5e3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 8 Dec 2025 14:17:50 -0800 Subject: [PATCH] fix: update fetch_webpage docstring to reflect actual implementation (#6503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docstring incorrectly stated that fetch_webpage uses Jina AI reader. Updated to accurately describe the actual implementation which uses: 1. Exa API (if EXA_API_KEY is available) 2. Trafilatura (fallback) 3. Readability + html2text (final fallback) 🐾 Generated with [Letta Code](https://letta.com) Co-authored-by: Letta --- letta/functions/function_sets/builtin.py | 2 +- letta/services/tool_executor/builtin_tool_executor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/letta/functions/function_sets/builtin.py b/letta/functions/function_sets/builtin.py index e067988d..9702c85d 100644 --- a/letta/functions/function_sets/builtin.py +++ b/letta/functions/function_sets/builtin.py @@ -67,7 +67,7 @@ async def web_search( async def fetch_webpage(url: str) -> str: """ - Fetch a webpage and convert it to markdown/text format using Jina AI reader. + Fetch a webpage and convert it to markdown/text format using Exa API (if available) or trafilatura/readability. Args: url: The URL of the webpage to fetch and convert diff --git a/letta/services/tool_executor/builtin_tool_executor.py b/letta/services/tool_executor/builtin_tool_executor.py index 97029316..b2ae6bb8 100644 --- a/letta/services/tool_executor/builtin_tool_executor.py +++ b/letta/services/tool_executor/builtin_tool_executor.py @@ -311,7 +311,7 @@ class LettaBuiltinToolExecutor(ToolExecutor): async def fetch_webpage(self, agent_state: "AgentState", url: str) -> str: """ - Fetch a webpage and convert it to markdown/text format using trafilatura with readability fallback. + Fetch a webpage and convert it to markdown/text format using Exa API (if available) or trafilatura/readability. Args: url: The URL of the webpage to fetch and convert