Repository navigation
Agentic Workflow Patterns 2 · The three dials and the bill they produce #7
akash-coded
started this conversation in
Exercises
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Exercise 2: The Three Dials and the Bill
Est. time: 25 min | Difficulty: building | Patterns: v3 routing, v4 parallelization, cost modeling
Practice: MCQ, dials table, cost math, rank-them, debug-the-harness, spot-the-errors, red-team-the-guard, estimate-the-bill, complete-a-flowchart, two-truths-and-a-lie.
Anchor booking: PNR
JX48Q2, surnameRao, Gold tier,BLR-DELcancelled by the airline.Illustrative Haiku prices: input
$1.00, output$5.00per 1M tokens.Scenario
Thursday, the surge. A flash fare sale collides with a weather advisory. Traffic triples. Karan, who owns the cloud bill, is now standing at your desk watching the Bedrock spend tick up in real time.
Two engineers have opinions:
Both are about to be half-wrong. Your job is to settle it with numbers.
Part A: Spot the misconception (MCQ)
Ana says running three independent checks in parallel will save money. What actually happens?
Part B: Fill the dials table
Mark each dial versus a single-agent baseline as lower, higher, or same. Same task throughout.
Part C: Do the cost math
One model call costs:
Two ways to answer the same refund query:
Fill in:
Part D: Rank them by cost
Four designs for one change request, with token profiles. Compute each, then order them cheapest to priciest.
Ranking (cheapest first): ________ < ________ < ________ < ________
Part E: Debug the cost helper
This should total the cost of every call in a ledger. It has two bugs.
Part F: Red-team the parallel code
Ana ships this for the surge.
It works on your laptop and melts under the surge.
Part G: Estimate the bill
At the surge peak, TravelMind handles 10,000 change-like queries a day.
Part H: Complete the cost-decision flowchart
Fill the three blanks with a concrete lever.
flowchart TD Goal([Cut cost]) --> A[... fill A: cheapest model per stage] Goal --> B[... fill B] Goal --> C[... fill C]Part I: Two truths and a lie
One is false. Mark it, rewrite it correctly.
Skeptic's corner
Ravi wants voting on every reply "to be safe."
All reactions