Repository navigation
Capstone Take-Home · Strands, A2A, A2UI, AgentCore, LiteLLM and RAG in one build #25
akash-coded
started this conversation in
Hands-on Labs
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.
Take-Home · Consolidated Capstone
Language: Python · Topics: Strands, A2A, A2UI, AgentCore, LiteLLM, RAG · Level: Capstone
Scenario
You are shipping TravelMind's production support agent. It must:
Passenger Rao (Gold tier, PNR JX48Q2, BLR-DEL cancelled) is the test case. This sheet pulls together everything from the week. Work top to bottom; each part builds on the last.
flowchart TB UI[Passenger UI] -->|A2UI| SUP[Support Agent, Strands] SUP -->|model calls| LITE[LiteLLM: fallback + cost] LITE --> BR[Bedrock: Claude Haiku 4.5] SUP --> TOOL[retrieve_context tool] TOOL --> STORE[(Vector store / Bedrock KB)] SUP -->|A2A handoff| SPEC[Specialist Agent] HOST[AgentCore Runtime] --- SUP HOST --- MEM[AgentCore Memory] HOST --- OBS[Observability]Part A · Layer map (MCQ)
Q1. In this system, LiteLLM sits:
Q2. Which component decides WHAT the agent does (plan, call tools, loop)?
Q3. AgentCore's role in this system is:
Part B · Concept roles across the week (match)
Q4. Match each tool from the week to its job. No distractor here; all six match.
Part C · Multi-select
Q5. Which of these are the MODEL-ACCESS layer, not orchestration or hosting? (choose all)
litellm.completion(...)LiteLLMModel(model_id="bedrock/us...")@tooldecoratorlitellm.Router(...)BedrockAgentCoreApp()Part D · Spot two bugs, fix both (free fix)
Q6. This model setup fails on Bedrock for two independent reasons. Name both and write the corrected setup.
Part E · Debug the streaming tool call (free fix)
Q7. The support agent's LangChain path fails only when streaming tool calls on Bedrock. Identify the bug and the one-line fix.
Part F · Assemble the RAG agent (medium)
Q8. Complete the three blanks so the Strands support agent runs on Bedrock through LiteLLM and retrieves policy passages on demand.
Part G · Predict behaviour
Q9. For the question in Q8, the agent should call
retrieve_context. Describe what the tool returns (shape and content, not exact policy text) and what the final answer must contain per the system prompt.Q10. The same agent is asked "What time is it right now?" Predict whether it calls
retrieve_context, and why.Part H · Rectify the wrong suggestion
Q11. A teammate proposes: "Skip RAG. Paste all policy documents into one giant system prompt and let the model answer." Give three concrete reasons RAG wins here, tied to freshness, cost, and verifiability.
Part I · Cost under load (scenario + math)
Q12. During the Diwali rush, spend spikes. Which levers from the week reduce cost without dropping the service? (choose all that apply)
completion_costto find the burnerQ13. Assume illustrative rates: $0.001 per 1k input tokens, $0.005 per 1k output tokens. Fill the total.
Part J · Pick the correct architecture
Q14. Which layering is correct?
Diagram P:
flowchart TB LITE[LiteLLM] --> STR[Strands agent] --> BR[Bedrock]Diagram Q:
flowchart TB STR[Strands agent] --> LITE[LiteLLM] --> BR[Bedrock]Part K · Wrap for AgentCore (write)
Q15. Complete the entrypoint so the assembled agent from Part F deploys on AgentCore Runtime. Fill the two blanks.
Then, blank 2: in one line, name the two CLI commands that deploy this file.
Part L · Order the deploy
Q16. Order the steps to put the agent in production on AgentCore:
agentcore launchagentcore configure --entrypoint rag_agent.pyboto3.client("bedrock-agentcore").invoke_agent_runtime(...), session id 16+ charsBedrockAgentCoreAppwith@app.entrypointPart M · Design (open, no full code)
Q17. TravelMind wants Self-RAG so simple questions skip retrieval and answers are grounded. Sketch the graph as a node list with the branch conditions (names only, no full implementation). Reference the pattern you built, do not invent new APIs.
Part N · Skeptic capstone
Q18. Leadership asks: "Why not fine-tune one large model to do all of this and drop LiteLLM, RAG, and AgentCore?" Write a five-line rebuttal that separates behaviour from knowledge, and names what each layer buys that fine-tuning cannot.
All reactions