From fbc688b8f9bd958e9e18de5a405c01754b084df1 Mon Sep 17 00:00:00 2001 From: William Jeynes Date: Wed, 25 Mar 2026 22:37:14 +0000 Subject: [PATCH] add date to returned data --- agent/prompts/trigger.txt | 4 +++- agent/state.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/prompts/trigger.txt b/agent/prompts/trigger.txt index 7c29b1e..d934e42 100644 --- a/agent/prompts/trigger.txt +++ b/agent/prompts/trigger.txt @@ -14,7 +14,9 @@ Include a concise but specific search query that can be looked up on a search en Include a url to a source for your trigger event (not a web search, a specific url from a reputuable source). Do not use OAI cite, include url as text in response. -Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url". +Include the date that the event happened ("March 2022" for exmaple) + +Use a JSON format with each entry containing "Event,ReasoningWhyRelevant,SearchQuery,Url,Date". Multiple tool invocations should be requested at once, if applicable. Use your abilities to look between the lines and produce some insightful analysis, thinking both short and long term. diff --git a/agent/state.ts b/agent/state.ts index 896e263..b696559 100644 --- a/agent/state.ts +++ b/agent/state.ts @@ -9,6 +9,7 @@ export const ProposedTriggerEvent = z.object({ ReasoningWhyRelevant: z.string(), SearchQuery: z.string(), Url: z.url(), + Date: z.string(), context: z.string().optional(), score: z.number().optional() })