Notes: Framing — the prompt is only the visible part. In production, what kills agents is the management of the context over time; what kills regulated projects is the lack of provenance.
Notes: 6 axes, all evaluable in multiple choice questions. ⚠ = volatile figure, check the doc — convention for the entire session.
Notes: A unique case which brings together the three themes: context (duration), provenance (regulation), batch (mass). Same common thread logic as session 7 (NeoBank).
Notes: Certification point n°1. Stateless. The cache reduces the cost of a returned prefix, it never replaces sending. Classic trick question: “memory: true” does not exist.
Notes: Tool results = heaviest and most underestimated item. Tool definitions cost too — a 20-tool agent pays before he even speaks.
Notes: Do the calculation on the board. 100k tokens replayed × 50 spins = 5M entry tokens charged. The cache mitigates the cost, not the limit. Demo: web page viewer, let the gauge turn red.
Notes: Interactive moment. Let a participant pilot. The “red gauge” effect emotionally prepares the compression block.
Notes: Show the compress_history sketch from the guide. The poorly managed summary loses exactly what the agent will need — hence the retention guidelines.
Notes: Certification question: “Is a summary at temperature 0 accurate?” No — inference parameters do not create a guarantee of fidelity.
Notes: For an investigation agent, this is prohibitive. For short assistance or linked independent tasks, it's perfect.
Notes: Certif type question: “decisions from 100 rounds ago + precision on the last 5?” → hybrid. Related vocabulary pitfall: max_tokens caps the output, it does not enlarge the window.
Notes: “The context is not an attic, it is a work plan.” Counterintuitive for participants accustomed to “more context = better”. This is measurable in evals.
Notes: Hook = post-tool call interceptor function. Two reflexes: CAP (a tool can return 10,000 lines) and LOG FIRST, FILTER THEN — the audit_log.record line is the hinge with provenance.
Notes: Three benefits: distinction of natures, defense against prompt injection (the content of data_client is declared non-instruction), parsability. Systematization of the XML pattern of session 7 at the architectural level.
Notes: Transition to the scratchpad. The summary pushes the wall; it does not delete it.
Notes: Tools read_scratchpad / update_scratchpad; discipline comes from the prompt system. Selective and intentional memory: the agent writes down what matters, not everything.
Notes: Summary = in context, ephemeral, regenerated. Scratchpad = context-free, persistent, incremental. In serious production: both.
Notes: The scratchpad is written by the model: it inherits its errors. Third time “keep the source” comes up — natural transition to provenance.
Notes: Banking, insurance, health, legal. Remind the public: architects for regulated sectors. This is often THE go/no-go criterion for an AI project.
Notes: Two sources: that of the DATA (sources) and that of the GENERATOR (versioned prompt, model, parameters). The confidence field (established / to be verified / inferred) is a classic requirement of compliance teams.
Notes: Question of certification: asking the model again to confirm its citation does not verify anything — we have the forger verify it himself. Exercise 2: Corrupt a report and verify that the control detects it.
Notes: The triplet args/raw/ctx is the subtle point: the listener verifies what the model actually saw and that the filtering did not alter the meaning. Log everything: prompts, responses, calls, decisions, timestamps, correlation ids.
Notes: Classic contractual error: promising identical regeneration. Formula to remember: “we logged the exact output produced with all its context” — not “we can reproduce it bit by bit”.
Notes: To be projected and commented on. Retention (durations) falls outside the technical scope — reflex: escalate to legal matters, do not improvise.
Notes: SLA = Service Level Agreement. Anti-case: anything that has a human waiting. ComplianceScan: re-score 80,000 files with each new policy.
Notes: Three certification traps in one slide. Break down query by query; retry of errored/expired at your expense; robust custom_id = pipeline backbone (exercise 3).
Notes: On 80,000 requests sharing 3,200 system tokens, the saving is massive. Demo: web page calculator, compare the 4 configurations (sync/batch × with/without cache). Exact accumulation terms: check the daily price list.
Notes: Hands-up quick quiz, immediate corrections. These 7 points cover most of the trap questions in the exam in this area.
Notes: Emphasize convergence: the hook feeds the log, the scratchpad cites its sources, the custom_id links batch and audit. One architecture, three faces.
Notes: Closing. Remember the convention ⚠: all the figures cited are volatile, the professional reflex (and certification) is to check the official documentation of the moment.