Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baxen committed Feb 11, 2025
1 parent afa11cd commit 6243851
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crates/goose-cli/src/commands/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ pub async fn build_session(
let prompt = Box::new(RustylinePrompt::new());

// Add CLI-specific system prompt extension
agent.extend_system_prompt(crate::cli_prompt::get_cli_prompt()).await;
agent
.extend_system_prompt(crate::cli_prompt::get_cli_prompt())
.await;

display_session_info(resume, &provider_name, &model, &session_file);
Session::new(agent, prompt, session_file)
Expand Down
4 changes: 2 additions & 2 deletions crates/goose/src/agents/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ impl Capabilities {
context.insert("current_date_time", Value::String(current_date_time));

let base_prompt = load_prompt_file("system.md", &context).expect("Prompt should render");

if self.system_prompt_extensions.is_empty() {
base_prompt
} else {
format!(
"{}\n\n# Additional Instructions:\n\n{}",
"{}\n\n# Additional Instructions:\n\n{}",
base_prompt,
self.system_prompt_extensions.join("\n\n")
)
Expand Down

0 comments on commit 6243851

Please sign in to comment.