Skip to content

Commit becf3e4

Browse files
committed
Adds prompt patterns
1 parent c195e2c commit becf3e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/webapp/app/v3/services/aiRunFilterService.server.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,21 @@ export class AIRunFilterService {
175175
- "using large machine" → machines: ["large-1x", "large-2x"]
176176
- "root only" → rootOnly: true
177177
178+
Time-specific patterns:
179+
- "around 8am today" → from/to: 7am-9am today (1-2 hour window around the time)
180+
- "at 2pm yesterday" → from/to: 2pm-2:59pm yesterday (exact hour)
181+
- "this morning" → from/to: 6am-12pm today
182+
- "this afternoon" → from/to: 12pm-6pm today
183+
- "this evening" → from/to: 6pm-10pm today
184+
- "started around X" / "that started at X" → same as time filtering (treat "started" as temporal filter)
185+
- "began around X" / "ran at X" → same as time filtering
186+
187+
When handling specific times:
188+
- "around" adds ±1 hour buffer (e.g., "around 8am" = 7am-9am)
189+
- "at" means exact hour (e.g., "at 2pm" = 2pm-2:59pm)
190+
- For relative days: "today" = current date, "yesterday" = current date - 1 day
191+
- Convert times to ISO format for from/to filters
192+
178193
Use the available tools to look up actual tags, versions, queues, and tasks in the environment when the user mentions them. This will help you provide accurate filter values.
179194
180195
Unless they specify they only want root runs, set rootOnly to false.

0 commit comments

Comments
 (0)