Skip to content

Commit

Permalink
fix: renamed action names to a more tool calling friendly format
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Sep 3, 2024
1 parent a95e546 commit d269352
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/agent/namespaces/filesystem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ReadFolder {}
#[async_trait]
impl Action for ReadFolder {
fn name(&self) -> &str {
"read-folder"
"read_folder"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -120,7 +120,7 @@ struct ReadFile {}
#[async_trait]
impl Action for ReadFile {
fn name(&self) -> &str {
"read-file"
"read_file"
}

fn description(&self) -> &str {
Expand Down
2 changes: 1 addition & 1 deletion src/agent/namespaces/goal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct UpdateGoal {}
#[async_trait]
impl Action for UpdateGoal {
fn name(&self) -> &str {
"update-goal"
"update_goal"
}

fn description(&self) -> &str {
Expand Down
6 changes: 3 additions & 3 deletions src/agent/namespaces/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct ClearHeaders {}
#[async_trait]
impl Action for ClearHeaders {
fn name(&self) -> &str {
"http-clear-headers"
"http_clear_headers"
}

fn description(&self) -> &str {
Expand All @@ -71,7 +71,7 @@ struct SetHeader {}
#[async_trait]
impl Action for SetHeader {
fn name(&self) -> &str {
"http-set-header"
"http_set_header"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -203,7 +203,7 @@ impl Request {
#[async_trait]
impl Action for Request {
fn name(&self) -> &str {
"http-request"
"http_request"
}

fn description(&self) -> &str {
Expand Down
6 changes: 3 additions & 3 deletions src/agent/namespaces/memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct SaveMemory {}
#[async_trait]
impl Action for SaveMemory {
fn name(&self) -> &str {
"save-memory"
"save_memory"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -56,7 +56,7 @@ struct DeleteMemory {}
#[async_trait]
impl Action for DeleteMemory {
fn name(&self) -> &str {
"delete-memory"
"delete_memory"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -99,7 +99,7 @@ struct RecallMemory {}
#[async_trait]
impl Action for RecallMemory {
fn name(&self) -> &str {
"recall-memory"
"recall_memory"
}

fn description(&self) -> &str {
Expand Down
10 changes: 5 additions & 5 deletions src/agent/namespaces/planning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct AddStep {}
#[async_trait]
impl Action for AddStep {
fn name(&self) -> &str {
"add-plan-step"
"add_plan_step"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -44,7 +44,7 @@ struct DeleteStep {}
#[async_trait]
impl Action for DeleteStep {
fn name(&self) -> &str {
"delete-plan-step"
"delete_plan_step"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -76,7 +76,7 @@ struct SetComplete {}
#[async_trait]
impl Action for SetComplete {
fn name(&self) -> &str {
"set-step-completed"
"set_step_completed"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -114,7 +114,7 @@ struct SetIncomplete {}
#[async_trait]
impl Action for SetIncomplete {
fn name(&self) -> &str {
"set-step-incomplete"
"set_step_incomplete"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -152,7 +152,7 @@ struct Clear {}
#[async_trait]
impl Action for Clear {
fn name(&self) -> &str {
"clear-plan"
"clear_plan"
}

fn description(&self) -> &str {
Expand Down
4 changes: 2 additions & 2 deletions src/agent/namespaces/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct Complete {}
#[async_trait]
impl Action for Complete {
fn name(&self) -> &str {
"task-complete"
"task_complete"
}

fn description(&self) -> &str {
Expand Down Expand Up @@ -40,7 +40,7 @@ struct Impossible {}
#[async_trait]
impl Action for Impossible {
fn name(&self) -> &str {
"task-impossible"
"task_impossible"
}

fn description(&self) -> &str {
Expand Down

0 comments on commit d269352

Please sign in to comment.