Skip to content

feat(exa): add date filters to search#4451

Merged
waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1/exa-date-filters
May 5, 2026
Merged

feat(exa): add date filters to search#4451
waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1/exa-date-filters

Conversation

@waleedlatif1
Copy link
Copy Markdown
Collaborator

Summary

  • Adds startCrawlDate, endCrawlDate, startPublishedDate, endPublishedDate to the Exa Search tool and block (advanced mode)
  • All four are optional ISO 8601 strings, passed top-level on POST /search per Exa docs
  • Fully backwards compatible — no impact on existing workflows

Closes #4447

Type of Change

  • New feature

Testing

Tested manually. Verified params flow from block subBlocks → tool body → Exa API, and that omitted fields are not sent.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 5, 2026 6:45pm

Request Review

@cursor
Copy link
Copy Markdown

cursor Bot commented May 5, 2026

PR Summary

Low Risk
Low risk: adds optional ISO 8601 date filter inputs and forwards them to Exa without changing default behavior when omitted.

Overview
Adds four optional date filter parameters to exa_search (crawl date and published date start/end) across the Sim block UI (advanced inputs), tool schema, and TypeScript types.

Updates the Exa search request builder to pass these filters through as top-level fields in the POST /search body, and documents the new parameters in apps/docs.

Reviewed by Cursor Bugbot for commit 382a5bd. Configure here.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 5, 2026

Greptile Summary

This PR extends the Exa Search tool with four optional ISO 8601 date filter parameters (startCrawlDate, endCrawlDate, startPublishedDate, endPublishedDate), enabling users and LLM agents to scope search results by crawl or publication date. The change is fully additive — all new params are optional and omitted fields are not forwarded to the Exa API.

  • Adds four date-filter fields to the ExaSearchParams interface, the block's subBlocks/schema, the tool's param definitions, and the execute body-building logic.
  • Updates the docs table with descriptions and ISO 8601 format examples.

Confidence Score: 5/5

Safe to merge — all new fields are optional, existing workflows are unaffected, and no date values are forwarded to the Exa API unless explicitly provided.

The change is purely additive: four optional string parameters plumbed through the type interface, tool definition, block config, and execute body. Falsy guards prevent empty strings from reaching the API, and the Exa API itself handles format validation. No existing code paths are modified.

No files require special attention.

Important Files Changed

Filename Overview
apps/sim/tools/exa/search.ts Adds four date-filter param definitions and corresponding body assignments; falsy guards correctly prevent empty strings from being forwarded to the Exa API.
apps/sim/tools/exa/types.ts Four optional string fields added to ExaSearchParams; types are correct and consistent with the rest of the interface.
apps/sim/blocks/blocks/exa.ts Four short-input subBlocks added in advanced mode; schema entries added correctly.
apps/docs/content/docs/en/tools/exa.mdx Docs table updated with all four new params, descriptions, and an ISO 8601 format example for startCrawlDate.

Reviews (2): Last reviewed commit: "feat(exa): add date filters to search" | Re-trigger Greptile

Comment thread apps/sim/tools/exa/search.ts
@waleedlatif1
Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1
Copy link
Copy Markdown
Collaborator Author

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 382a5bd. Configure here.

@waleedlatif1 waleedlatif1 merged commit 6bc34c5 into staging May 5, 2026
14 checks passed
@waleedlatif1 waleedlatif1 deleted the waleedlatif1/exa-date-filters branch May 5, 2026 18:53
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.

1 participant