-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,228 additions
and
894 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
pub mod agent; | ||
|
||
#[cfg(test)] | ||
pub mod mock_agent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use anyhow::Result; | ||
use clap::Args; | ||
use goose::agents::AgentFactory; | ||
use std::fmt::Write; | ||
|
||
#[derive(Args)] | ||
pub struct AgentCommand {} | ||
|
||
impl AgentCommand { | ||
pub fn run(&self) -> Result<()> { | ||
let mut output = String::new(); | ||
writeln!(output, "Available agent versions:")?; | ||
|
||
let versions = AgentFactory::available_versions(); | ||
let default_version = AgentFactory::default_version(); | ||
|
||
for version in versions { | ||
if version == default_version { | ||
writeln!(output, "* {} (default)", version)?; | ||
} else { | ||
writeln!(output, " {}", version)?; | ||
} | ||
} | ||
|
||
print!("{}", output); | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub mod agent_version; | ||
pub mod configure; | ||
pub mod session; | ||
pub mod version; | ||
pub mod expected_config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.