evolve dave into a swarm

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-03 22:09:17 -07:00
parent 571bf35109
commit 603de6bbab
4 changed files with 226 additions and 32 deletions

View File

@@ -27,7 +27,7 @@ pub use vec3::Vec3;
mod avatar;
mod config;
mod mesh;
pub(crate) mod mesh;
mod messages;
mod quaternion;
mod tools;
@@ -180,6 +180,15 @@ You are an AI agent for the nostr protocol called Dave, created by Damus. nostr
}
fn ui(&mut self, app_ctx: &mut AppContext, ui: &mut egui::Ui) -> DaveResponse {
/*
let rect = ui.available_rect_before_wrap();
if let Some(av) = self.avatar.as_mut() {
av.render(rect, ui);
ui.ctx().request_repaint();
}
DaveResponse::default()
*/
DaveUi::new(self.model_config.trial, &self.chat, &mut self.input).ui(
app_ctx,
&mut self.jobs,