0
0
Agentic AIml~10 mins

Episodic memory for past interactions in Agentic AI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize an empty episodic memory list.

Agentic AI
episodic_memory = [1]
Drag options to blanks, or click blank then click option'
Aset()
B{}
C[]
DNone
Attempts:
3 left
💡 Hint
Common Mistakes
Using a dictionary {} instead of a list.
Using None which is not a container.
2fill in blank
medium

Complete the code to add a new interaction record to episodic memory.

Agentic AI
episodic_memory.[1]({'user': user_input, 'response': agent_reply})
Drag options to blanks, or click blank then click option'
Aappend
Bextend
Cinsert
Dupdate
Attempts:
3 left
💡 Hint
Common Mistakes
Using extend which expects an iterable.
Using update which is for dictionaries.
3fill in blank
hard

Fix the error in retrieving the last interaction from episodic memory.

Agentic AI
last_interaction = episodic_memory[1]
Drag options to blanks, or click blank then click option'
A[1]
B[0]
C[-2]
D[-1]
Attempts:
3 left
💡 Hint
Common Mistakes
Using [0] which gets the first item.
Using [1] which gets the second item.
4fill in blank
hard

Fill both blanks to filter episodic memory for interactions where user said 'hello'.

Agentic AI
hello_interactions = [entry for entry in episodic_memory if entry[1] 'user' [2] 'hello']
Drag options to blanks, or click blank then click option'
A['user']
B==
C!=
D.get('user')
Attempts:
3 left
💡 Hint
Common Mistakes
Using .get('user') which is valid but not the intended answer here.
Using != which checks inequality.
5fill in blank
hard

Fill all three blanks to create a summary dictionary of user inputs and agent responses.

Agentic AI
summary = [1]: [2] for [3] in episodic_memory
Drag options to blanks, or click blank then click option'
A{entry['user']
Bentry['response']
Centry
Dentry['user']
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect dictionary syntax.
Using wrong keys or variable names.