Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions skills/email/himalaya/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ himalaya message delete 42
Add flag:

```bash
himalaya flag add 42 --flag seen
himalaya flag add 42 seen
```

Remove flag:

```bash
himalaya flag remove 42 --flag seen
himalaya flag remove 42 seen
```

## Multiple Accounts
Expand Down
11 changes: 8 additions & 3 deletions tools/web_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ def web_search_tool(query: str, limit: int = 5) -> str:
"success": False,
"error": (
"No web search provider configured. "
"Run `hermes tools` to set one up."
"Run `hermes tools` to set one up, or install the free "
"ddgs backend: pip install ddgs (no API key required)."
),
}
else:
Expand Down Expand Up @@ -845,7 +846,7 @@ async def web_extract_tool(
"error": (
"No web extract provider configured. "
"Set web.extract_backend to firecrawl, "
"tavily, exa, or parallel."
"tavily, exa, or parallel. Run `hermes tools` to configure."
),
},
ensure_ascii=False,
Expand Down Expand Up @@ -925,7 +926,11 @@ async def web_extract_tool(
trimmed_response = {"results": trimmed_results}

if trimmed_response.get("results") == []:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch runs only when the provider returned no results. cache/web is written only after nonempty content is truncated, so there cannot be cached extracted content to inspect here; please replace this with an empty-result-appropriate recovery step.

result_json = tool_error("Content was inaccessible or not found")
result_json = tool_error(
"No content could be extracted from the provided URLs. "
"Try: 1) Check cache/web/ for cached content. "
"2) Use browser_navigate for direct page access."
)
else:
result_json = json.dumps(trimmed_response, indent=2, ensure_ascii=False)

Expand Down
Loading