Skip to content

Commit

Permalink
[feat]: Add memory system (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvadratni authored Nov 26, 2024
1 parent 2875302 commit 5ba98c4
Show file tree
Hide file tree
Showing 6 changed files with 495 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/goose-cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl<'a> Session<'a> {
self.agent.add_system(system);
self.prompt
.render(raw_message("Connected developer system."));

let goosehints_system = Box::new(GooseHintsSystem::new());
self.agent.add_system(goosehints_system);
self.prompt
Expand Down
3 changes: 1 addition & 2 deletions crates/goose-server/src/routes/reply.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::state::AppState;
use axum::{
extract::State,
http::{self, HeaderMap, StatusCode},
Expand Down Expand Up @@ -25,8 +26,6 @@ use std::{
use tokio::sync::mpsc;
use tokio_stream::wrappers::ReceiverStream;

use crate::state::AppState;

// Types matching the incoming JSON structure
#[derive(Debug, Deserialize)]
struct ChatRequest {
Expand Down
1 change: 1 addition & 0 deletions crates/goose/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repository.workspace = true
description.workspace = true

[dependencies]
dirs = "5.0.1"
anyhow = "1.0"
thiserror = "1.0"
futures = "0.3"
Expand Down
1 change: 1 addition & 0 deletions crates/goose/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod agent;
pub mod developer;
pub mod errors;
pub mod memory;
pub mod models;
pub mod prompt_template;
pub mod providers;
Expand Down
Loading

0 comments on commit 5ba98c4

Please sign in to comment.