feat: Change defaults on web search tool (#3646)

This commit is contained in:
Matthew Zhou
2025-07-29 22:23:37 -07:00
committed by GitHub
parent 6b082f0447
commit eacaa2b02a
2 changed files with 4 additions and 14 deletions

View File

@@ -104,13 +104,7 @@ class LettaBuiltinToolExecutor(ToolExecutor):
return out
@trace_method
async def web_search(
self,
agent_state: "AgentState",
tasks: List[SearchTask],
limit: int = 3,
return_raw: bool = False,
) -> str:
async def web_search(self, agent_state: "AgentState", tasks: List[SearchTask], limit: int = 1, return_raw: bool = True) -> str:
"""
Search the web with a list of query/question pairs and extract passages that answer the corresponding questions.