pub fn build_system_prompt(
instructions: Option<&str>,
context_parts: &[&str],
) -> StringExpand description
Assembles the harness contract, an optional domain block and per-request context, separated by blank lines.
instructions is the consumer’s domain block (identity, scope, task policy); an empty one is
skipped. context_parts are appended last, for example a timestamp or request-scoped hints.
use strands_harness::{HARNESS_CONTRACT, build_system_prompt};
let prompt = build_system_prompt(Some("You are a SQL assistant."), &[]);
assert!(prompt.starts_with(HARNESS_CONTRACT));
assert!(prompt.ends_with("\n\nYou are a SQL assistant."));
assert_eq!(build_system_prompt(None, &[]), HARNESS_CONTRACT);