Repository navigation
fix(agent): tell the model today's date - #10764
Merged
Merged
Conversation
- Agent block appends "Current date: YYYY-MM-DD." (UTC) to the first system message, or adds one; never written to memory; fallbacks reuse it - Exa search query/date param descriptions steer models to the published-date filters instead of baking a (stale) year into the query
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Collaborator
Author
|
Greptile was unavailable during this review, so merging on green CI on HEAD, a clean cubic review of HEAD (8011f70), and zero unresolved threads. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
startPublishedDateto 2023-01-01)buildMessagesnow appendsCurrent date: YYYY-MM-DD.(UTC, date only) to the first system message, or adds a system message when there is none; shares oneappendToSystemMessagehelper with the skills stepstripAutoPreamble) reuse the built messagesquerydescription says plain words, no year unless the user asked for a specific time, use the published-date filters instead;startPublishedDate/endPublishedDatedrop the stale "2024-01-01" example for a YYYY-MM-DD notetool-metadata.tsand the Exa docs pageMeasured on gpt-4o (10 topics x 5 runs), share of open-topic queries containing a stale year: baseline 40%, date line 0%, new Exa descriptions only 22%, both 0%. Explicit user years ("...in 2024") kept 10/10 in every arm.
Type of Change
Testing
executor/handlers/agent/+tools/exa/vitest: 187 passed; existing exact-message expectations updated with the clock pinned via fakeDatebun run lint,check:tool-metadata,check:docs,check:integration-catalog,check:docs-manifestChecklist
test-auditauthoring gate)