1from swarmos import Investigation
2
3# A question that breaks one-shot LLM workflows
4inv = Investigation.create(
5 objective=(
6 "Does Flash Attention 3 hold its claimed 1.5x–2x speedup "
7 "in production workloads beyond A100/H100 benchmarks?"
8 ),
9 domain="ml_infrastructure",
10 depth="comprehensive",
11)
12
13# planner → scouts → extractors → skeptic → synthesizer
14for event in inv.stream():
15 if event.type == "claim":
16 print(f"[{event.confidence:.2f}] {event.text}")
17 elif event.type == "contradiction":
18 print(f"⚠ conflict: {event.summary}")
19 elif event.type == "answer_updated":
20 print(f"\n→ Answer v{event.version} (conf: {event.confidence:.2f})")
21 print(f" {event.text}")