Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: update fetch_webpage docstring to reflect actual implementation (#6503)

Camerona56c6571d235
diff --git a/letta/functions/function_sets/builtin.py b/letta/functions/function_sets/builtin.py
index e067988d1..9702c85d3 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 970293167..b2ae6bb82 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