mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
Format prompt guidance assertions
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
@@ -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}"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user