dave: return tool errors back to the ai

So that it can correct itself
This commit is contained in:
William Casarin
2025-04-22 16:04:54 -07:00
parent 9692b6b9fe
commit 56f5151739
4 changed files with 90 additions and 9 deletions

View File

@@ -204,6 +204,9 @@ impl<'a> DaveUi<'a> {
for call in toolcalls {
match call.calls() {
ToolCalls::PresentNotes(call) => Self::present_notes_ui(ctx, call, ui),
ToolCalls::Invalid(err) => {
ui.label(format!("invalid tool call: {:?}", err));
}
ToolCalls::Query(search_call) => {
ui.allocate_ui_with_layout(
egui::vec2(ui.available_size().x, 32.0),