Format prompt guidance assertions

This commit is contained in:
Henry Park
2026-03-27 16:43:58 -07:00
parent 2508628a36
commit 37e1a41073
2 changed files with 11 additions and 6 deletions
+9 -3
View File
@@ -2474,8 +2474,12 @@ That's my plan."#;
let section = reasoning.build_extensions_section_for_tools(&tool_defs);
assert!(section.contains("connect messaging platforms so users can talk to you there"));
assert!(section.contains("Channels are not separate send-message tools"));
assert!(section.contains("use normal assistant output to reply in the current conversation"));
assert!(section.contains("`message` tool only for proactive, background, or cross-channel outbound sends"));
assert!(
section.contains("use normal assistant output to reply in the current conversation")
);
assert!(section.contains(
"`message` tool only for proactive, background, or cross-channel outbound sends"
));
}
#[test]
@@ -2500,7 +2504,9 @@ That's my plan."#;
let section = reasoning.build_conversation_section();
assert!(section.contains("Use normal assistant output to reply here"));
assert!(section.contains("only use the `message` tool for proactive, background, or cross-channel outbound sends"));
assert!(section.contains(
"only use the `message` tool for proactive, background, or cross-channel outbound sends"
));
assert!(!section.contains("omit 'target' to send here"));
}
+2 -3
View File
@@ -257,9 +257,8 @@ mod tests {
Actual system prompt:\n{system_prompt}"
);
assert!(
system_prompt.contains(
"use normal assistant output to reply in the current conversation"
),
system_prompt
.contains("use normal assistant output to reply in the current conversation"),
"System prompt should route ordinary replies through normal assistant output.\n\
Actual system prompt:\n{system_prompt}"
);