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

@@ -129,10 +129,10 @@ You are an AI agent for the nostr protocol called Dave, created by Damus. nostr
for call in &toolcalls {
// execute toolcall
match call.calls() {
ToolCalls::PresentNotes(_note_ids) => {
ToolCalls::PresentNotes(present) => {
self.chat.push(Message::ToolResponse(ToolResponse::new(
call.id().to_owned(),
ToolResponses::PresentNotes,
ToolResponses::PresentNotes(present.note_ids.len() as i32),
)));
should_send = true;