Repository navigation
Agentic Workflow Patterns 1 · Who controls the control flow, you or the model? #6
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.
Uh oh!
There was an error while loading. Please reload this page.
Exercise 1: Foundations
Est. time: 15 min | Difficulty: warm-up | Patterns: v1 augmented, v2 chaining, v3 routing
Practice: MCQ, choose-an-option, fill-the-blank, match-the-primitive, complete-a-flowchart, spot-the-error, fix-code, predict-the-output.
Anchor booking for every task: PNR
JX48Q2, surnameRao, Gold tier,BLR-DELsegment cancelled by the airline.Scenario
Tuesday, low tide. Priya, the ops lead, hands you the easy queue while the senior team preps for the weekend storm. Three tickets. Your job is not to build big. It is to pick the smallest thing that works.
The ladder, cheapest first: v1 augmented agent, v2 chaining, v3 routing.
The tickets:
Part A: Pick the pattern (MCQ)
Circle one per ticket.
Part B: Choose the design, and say why
For T1, two designs land on your desk:
Agentwith theget_pnrtool.Swarm(lookup agent, backup agent, reviewer agent) with handoffs.Pick one. In one line, say what the loser costs you that it does not buy back: ________
Part C: Fill the blank
The only question under every pattern choice in this module is: who controls the ________ , you or the model?
Part D: Match the primitive
Draw a line (or write the letter) from each need to the Strands tool that serves it.
SwarmGraphBuilderAgent+@toolPart E: Complete the flowchart
Fill the two blank leaves with the right pattern name.
flowchart TD Start([New ticket]) --> Q1{Same steps, same order every time?} Q1 -->|Yes| L1[... fill L1] Q1 -->|No, depends on category| L2[... fill L2] Q1 -->|No, single lookup| A[Augmented agent]Part F: Spot the error, then fix it
Meera wires the model and gets
on-demand throughput isn't supportedon the first call.model_id: ________Part G: Fill the blank (code)
Complete the augmented agent for T1.
Part H: Predict the output
The T3 router runs a cheap classifier that returns exactly one of:
status,change,refund,baggage,complaint.labelwill be: ________Skeptic's corner
Priya asks: "Why not just point one big agent with every tool at all three tickets and skip the pattern talk?"
Give her two lines. One cost reason, one quality reason.
All reactions