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(`<h1 id="l2b-context-aware-agent" tabindex="-1">L2b: Context-Aware Agent <a class="header-anchor" href="#l2b-context-aware-agent" aria-label="Permalink to &quot;L2b: Context-Aware Agent&quot;">​</a></h1><p><strong>Module</strong>: M2 Architecture<br><strong>Files</strong>: starter.py, solution.py</p><h2 id="objective" tabindex="-1">Objective <a class="header-anchor" href="#objective" aria-label="Permalink to &quot;Objective&quot;">​</a></h2><p>Implement sliding window + summarization for long agent sessions.</p><h2 id="concepts" tabindex="-1">Concepts <a class="header-anchor" href="#concepts" aria-label="Permalink to &quot;Concepts&quot;">​</a></h2><p>Refer to the corresponding module for full concept explanations.</p><h2 id="starter" tabindex="-1">Starter <a class="header-anchor" href="#starter" aria-label="Permalink to &quot;Starter&quot;">​</a></h2><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> course/labs/l2-context/</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Open starter file and fill in the TODOs</span></span></code></pre></div><h2 id="checkpoints" tabindex="-1">Checkpoints <a class="header-anchor" href="#checkpoints" aria-label="Permalink to &quot;Checkpoints&quot;">​</a></h2><ol><li>Build a ContextManager class</li><li>Implement max_recent_turns sliding window</li><li>Summarize old messages when window exceeds limit</li><li>Build context from summary + recent messages</li></ol><h2 id="solution" tabindex="-1">Solution <a class="header-anchor" href="#solution" aria-label="Permalink to &quot;Solution&quot;">​</a></h2><p>Compare against the solution file after attempting the starter.</p>`,12)])])}const m=t(i,[["render",o]]);export{u as __pageData,m as default};
