From 37e1a410733590607dab73a8bd01b22c581ff3b5 Mon Sep 17 00:00:00 2001 From: Henry Park Date: Fri, 27 Mar 2026 16:43:58 -0700 Subject: [PATCH] Format prompt guidance assertions --- src/llm/reasoning.rs | 12 +++++++++--- tests/multi_tenant_system_prompt.rs | 5 ++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/llm/reasoning.rs b/src/llm/reasoning.rs index 257025ab..2781e98d 100644 --- a/src/llm/reasoning.rs +++ b/src/llm/reasoning.rs @@ -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")); } diff --git a/tests/multi_tenant_system_prompt.rs b/tests/multi_tenant_system_prompt.rs index 362b4a71..0f6aa697 100644 --- a/tests/multi_tenant_system_prompt.rs +++ b/tests/multi_tenant_system_prompt.rs @@ -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}" );