mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
Restore /tmp/prompt.txt debug dump; cargo fmt
Signed-off-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -371,6 +371,15 @@ impl AppsManagerClient {
|
||||
let messages = vec![Message::user().with_text(&user_prompt)];
|
||||
let tools = vec![Self::create_app_content_tool()];
|
||||
|
||||
// Dump the full prompt for debugging
|
||||
let _ = std::fs::write(
|
||||
"/tmp/prompt.txt",
|
||||
format!(
|
||||
"=== SYSTEM ===\n{}\n\n=== USER ===\n{}",
|
||||
system_prompt, user_prompt
|
||||
),
|
||||
);
|
||||
|
||||
let model_config = provider.get_model_config();
|
||||
|
||||
let (response, usage) = provider
|
||||
|
||||
@@ -323,5 +323,3 @@ pub async fn fetch_mcp_apps(
|
||||
|
||||
Ok(apps)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@ static TEMPLATE_REGISTRY: &[(&str, &str)] = &[
|
||||
"recipe.md",
|
||||
"Prompt for generating recipe files from conversations",
|
||||
),
|
||||
(
|
||||
"apps.md",
|
||||
"Prompt for generating or updating Goose apps",
|
||||
),
|
||||
("apps.md", "Prompt for generating or updating Goose apps"),
|
||||
(
|
||||
"permission_judge.md",
|
||||
"Prompt for analyzing tool operations for read-only detection",
|
||||
|
||||
Reference in New Issue
Block a user