mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-23 15:34:27 +01:00
feat(cli): add system prompt parameter to run command (#2253)
This commit is contained in:
@@ -375,6 +375,16 @@ enum Command {
|
||||
)]
|
||||
input_text: Option<String>,
|
||||
|
||||
/// Additional system prompt to customize agent behavior
|
||||
#[arg(
|
||||
long = "system",
|
||||
value_name = "TEXT",
|
||||
help = "Additional system prompt to customize agent behavior",
|
||||
long_help = "Provide additional system instructions to customize the agent's behavior",
|
||||
conflicts_with = "recipe"
|
||||
)]
|
||||
system: Option<String>,
|
||||
|
||||
/// Recipe name or full path to the recipe file
|
||||
#[arg(
|
||||
short = None,
|
||||
@@ -666,6 +676,7 @@ pub async fn cli() -> Result<()> {
|
||||
instructions,
|
||||
input_text,
|
||||
recipe,
|
||||
system,
|
||||
interactive,
|
||||
identifier,
|
||||
resume,
|
||||
@@ -690,7 +701,7 @@ pub async fn cli() -> Result<()> {
|
||||
InputConfig {
|
||||
contents: Some(input),
|
||||
extensions_override: None,
|
||||
additional_system_prompt: None,
|
||||
additional_system_prompt: system,
|
||||
},
|
||||
None,
|
||||
)
|
||||
@@ -716,7 +727,7 @@ pub async fn cli() -> Result<()> {
|
||||
InputConfig {
|
||||
contents: Some(text),
|
||||
extensions_override: None,
|
||||
additional_system_prompt: None,
|
||||
additional_system_prompt: system,
|
||||
},
|
||||
None,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user