Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JonUleis
Copy link
Contributor

@JonUleis JonUleis commented Jan 25, 2026

Adds support for Brave Search API's freshness parameter to filter results by discovery time.

New Parameter

Value Description
pd Past 24 hours
pw Past week
pm Past month
py Past year
YYYY-MM-DDtoYYYY-MM-DD Custom date range

Example Usage

web_search(query="TMBG interview", freshness="pw")  // results from past week

Use Case

Useful for cron jobs, monitoring tasks, and news searches that need recent results rather than all-time best matches.

Notes

  • Only applies to Brave provider (Perplexity ignores this parameter)
  • Follows existing patterns for optional parameters (country, search_lang, ui_lang)
  • Includes cache key update to handle freshness variations

Adds support for Brave Search API's freshness parameter to filter results
by discovery time:
- 'pd' - Past 24 hours
- 'pw' - Past week
- 'pm' - Past month
- 'py' - Past year
- 'YYYY-MM-DDtoYYYY-MM-DD' - Custom date range

Useful for cron jobs and monitoring tasks that need recent results.

Note: Perplexity provider ignores this parameter (Brave only).

---
🤖 AI-assisted: This PR was created with Claude (Opus). Lightly tested via
build script. The change follows existing patterns for optional parameters
(country, search_lang, ui_lang).
@JonUleis JonUleis force-pushed the feat/web-search-freshness branch from 41a0b3e to a58a975 Compare January 25, 2026 03:49
@steipete steipete self-assigned this Jan 25, 2026
@steipete steipete merged commit 8682524 into openclaw:main Jan 25, 2026
39 of 44 checks passed
@steipete
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 8682524
  • Merge commit: 8682524

Thanks @JonUleis!

jaydenfyi pushed a commit to jaydenfyi/clawdbot that referenced this pull request Jan 25, 2026
mcinteerj pushed a commit to mcinteerj/moltbot that referenced this pull request Jan 25, 2026
rodrigouroz pushed a commit to rodrigouroz/moltbot that referenced this pull request Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants