Make the system prompt smaller (#6991)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -549,15 +549,10 @@ async fn configure_session_prompts(
|
||||
tracing::warn!("Failed to save extension state: {}", e);
|
||||
}
|
||||
|
||||
session
|
||||
.agent
|
||||
.extend_system_prompt(super::prompt::get_cli_prompt())
|
||||
.await;
|
||||
|
||||
if let Some(ref additional_prompt) = session_config.additional_system_prompt {
|
||||
session
|
||||
.agent
|
||||
.extend_system_prompt(additional_prompt.clone())
|
||||
.extend_system_prompt("additional".to_string(), additional_prompt.clone())
|
||||
.await;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ mod elicitation;
|
||||
mod export;
|
||||
mod input;
|
||||
mod output;
|
||||
mod prompt;
|
||||
mod task_execution_display;
|
||||
mod thinking;
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
/// Returns a system prompt extension that explains CLI-specific functionality
|
||||
pub fn get_cli_prompt() -> String {
|
||||
let newline_key = super::input::get_newline_key().to_ascii_uppercase();
|
||||
format!(
|
||||
"You are being accessed through a command-line interface. The following slash commands are available
|
||||
- you can let the user know about them if they need help:
|
||||
|
||||
- /exit or /quit - Exit the session
|
||||
- /t - Toggle between Light/Dark/Ansi themes
|
||||
- /? or /help - Display help message
|
||||
|
||||
Additional keyboard shortcuts:
|
||||
- Ctrl+C - Interrupt the current interaction (resets to before the interrupted request)
|
||||
- Ctrl+{newline_key} - Add a newline
|
||||
- Up/Down arrows - Navigate command history"
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user