dave: give present notes a proper tool response

so the ai know we actually did something
This commit is contained in:
William Casarin
2025-04-22 16:20:26 -07:00
parent 56f5151739
commit 5c0874ab85
2 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ pub struct QueryResponse {
pub enum ToolResponses {
Error(String),
Query(QueryResponse),
PresentNotes,
PresentNotes(i32),
}
#[derive(Debug, Clone)]
@@ -499,7 +499,7 @@ struct SimpleNote {
/// it can interepret it and take further action
fn format_tool_response_for_ai(txn: &Transaction, ndb: &Ndb, resp: &ToolResponses) -> String {
match resp {
ToolResponses::PresentNotes => "".to_string(),
ToolResponses::PresentNotes(n) => format!("{n} notes presented to the user"),
ToolResponses::Error(s) => format!("error: {}", &s),
ToolResponses::Query(search_r) => {