import{c as t,Q as a,j as s,m as n}from"./chunks/framework.BPKcPtvA.js";const u=JSON.parse('{"title":"L2b: Context-Aware Agent","description":"","frontmatter":{},"headers":[],"relativePath":"labs/l2-context.md","filePath":"labs/l2-context.md","lastUpdated":1780488246000}'),i={name:"labs/l2-context.md"};function o(l,e,r,c,h,d){return a(),s("div",null,[...e[0]||(e[0]=[n(`

L2b: Context-Aware Agent

Module: M2 Architecture
Files: starter.py, solution.py

Objective

Implement sliding window + summarization for long agent sessions.

Concepts

Refer to the corresponding module for full concept explanations.

Starter

bash
cd course/labs/l2-context/
# Open starter file and fill in the TODOs

Checkpoints

  1. Build a ContextManager class
  2. Implement max_recent_turns sliding window
  3. Summarize old messages when window exceeds limit
  4. Build context from summary + recent messages

Solution

Compare against the solution file after attempting the starter.

`,12)])])}const m=t(i,[["render",o]]);export{u as __pageData,m as default};