LearnAI
Module 4 · Advanced Agents (Pro) · Lesson 1/5
← Back to catalog
Task

Agent's memory in dialogue

Write a rule for how the bot remembers and uses key facts about the client. Return JSON {"remember": [lines], "use_when": "..."}.

Unlock access to submit solutions for instant AI review.Start for free
Context and agent memory
💡 A bit of theory

The agent keeps asking the same thing over and over again and is annoying. Make a rule: highlight key facts (name, limitations, preferences) and use them further in the dialogue.

How it's graded · passing score 70

  • 1Valid JSON without text around it30%
  • 2There are remember and use_when40%
  • 3Remembers the necessary facts and knows when to use them30%
Your promptClaude ⌄