Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions crates/genie-core/src/tools/quick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2256,6 +2256,8 @@ fn asks_action_history(text: &str) -> bool {
&[
"what did you do",
"what have you done",
"what did you change",
"what have you changed",
"what changed",
"recent actions",
"recent home actions",
Expand Down Expand Up @@ -6762,6 +6764,21 @@ mod tests {
assert_eq!(call.name, "action_history");
}

#[test]
fn routes_change_verb_action_history_questions() {
// the transitive change-verb pair ("what did/have you change(d)") is the
// counterpart of the do-verb pair already in the set — the assistant
// reporting what it altered — but fell through to the LLM.
for utterance in [
"what did you change",
"What have you changed?",
"Jared: What did you change?",
] {
let call = route(utterance).unwrap_or_else(|| panic!("no route for {utterance:?}"));
assert_eq!(call.name, "action_history", "{utterance:?}");
}
}

#[test]
fn routes_time_question_to_get_time() {
let call = route("what time is it?").unwrap();
Expand Down
Loading