Grounded recommendation with live metrics vs. a hedge that can't fetch or compute anything.
Produce an institutional-quality investment analysis report for **AAPL** (Apple Inc). Include: current price and 52-week range, key valuation ratios (P/E, P/S, EV/EBITDA, current ratio, gross margin), recent growth metrics, competitive position, and a clear **BUY / HOLD / SELL** recommendation with the price target and rationale.
SwarmAI workflow · SEQUENTIAL
Raw GPT-4o — no tools, no memory
Same prompt — institutional-quality AAPL investment analysis. Left: SwarmAI (7 agents, Finnhub + SEC XBRL tools, cited output). Right: raw LLM (one call, no tools, no memory).
Justified by P/E 33.68 and current ratio 0.89
Refuses to invent numbers
[Insert Current Price], [Insert P/E Ratio]Gain: an LLM that would otherwise stonewall becomes an analyst-grade tool with auditable output.
2.3× longer report, grounded in $416B revenue cited to the 10-K
Commits to a specific $235 12-month price target out of thin air
Gain: proof that citation discipline isn't optional — without it, the model fabricates plausible-looking specifics.
Identical numbers, different conclusion. Frontier models read facts differently — the framework's job is making both auditable, not picking the winner.
Switch the model chips above to replay either side.
swarm:
name: StockAnalysisWorkflow
process: SEQUENTIAL
agents:
analyst:
role: "Senior Financial Analyst"
goal: "Analyze {{ticker}} using live financial data and market indicators"
maxTurns: 3
temperature: 0.2
permissionMode: READ_ONLY
compaction:
preserveRecentTurns: 3
thresholdTokens: 4000
tools: [calculator, web-search]
writer:
role: "Investment Report Writer"
goal: "Write an institutional-quality report with BUY/HOLD/SELL"
temperature: 0.3
permissionMode: WORKSPACE_WRITE
tasks:
analyze:
description: "Analyze {{ticker}}: price, ratios, growth, competitive position"
agent: analyst
outputFormat: MARKDOWN
report:
description: "Write the investment report with BUY/HOLD/SELL and price target"
agent: writer
dependsOn: [analyze]
outputFile: "output/stock_analysis_{{ticker}}.md"
outputFormat: MARKDOWN
Reproducible — model version, temperature, seed, framework git SHA, and hashes of prompt + workflow are embedded in every trace. Re-run to diff against this recording.