Skip to content

Commit

Permalink
fix: namespaces are non default
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Feb 5, 2025
1 parent c205381 commit 42bbb03
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/agent/namespaces/goal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Action for UpdateGoal {
}

pub fn get_namespace() -> Namespace {
Namespace::new_default(
Namespace::new_non_default(
"Goal".to_string(),
include_str!("ns.prompt").to_string(),
vec![Box::<UpdateGoal>::default()],
Expand Down
2 changes: 1 addition & 1 deletion src/agent/namespaces/memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Action for RecallMemory {
}
*/
pub fn get_namespace() -> Namespace {
Namespace::new_default(
Namespace::new_non_default(
"Memory".to_string(),
include_str!("ns.prompt").to_string(),
vec![Box::<SaveMemory>::default(), Box::<DeleteMemory>::default()],
Expand Down
2 changes: 1 addition & 1 deletion src/agent/namespaces/planning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl Action for Clear {
}

pub fn get_namespace() -> Namespace {
Namespace::new_default(
Namespace::new_non_default(
"Planning".to_string(),
include_str!("ns.prompt").to_string(),
vec![
Expand Down
2 changes: 1 addition & 1 deletion src/agent/namespaces/time/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Action for Wait {
}

pub fn get_namespace() -> Namespace {
Namespace::new_default(
Namespace::new_non_default(
"Time".to_string(),
"".to_string(),
vec![Box::<Wait>::default()],
Expand Down
3 changes: 0 additions & 3 deletions src/cli/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use crate::{cli, APP_NAME, APP_VERSION};
use super::Args;

pub async fn setup_arguments() -> Result<Args> {
// TODO: save/restore session
let mut args = cli::Args::parse();

// set generator url if env variable is set
Expand Down Expand Up @@ -44,8 +43,6 @@ pub async fn setup_arguments() -> Result<Args> {
args.tasklet = Some(env_tasklet);
}

// TODO: handle max tokens

if args.generate_doc {
// generate action namespaces documentation and exit
println!("{}", agent::serialization::Strategy::available_actions());
Expand Down

0 comments on commit 42bbb03

Please sign in to comment.