pub fn injection_context(messages: Vec<Message>) -> InjectionContextExpand description
An InjectionContext for messages on a mock agent (id mock-agent, empty app state), to
test an injection render callback or predicate on its own.
use strands::Message;
use strands::injection::InjectionTrigger;
use strands::testing::injection_context;
let trigger = InjectionTrigger::predicate(|context| Ok(context.messages.len() > 1));
let context = injection_context(vec![Message::user("hi")]);
assert_eq!(context.agent.id(), "mock-agent");