0
0
Agentic AIml~20 mins

Working memory for current task state in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Working Memory Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Role of Working Memory in Task State Management

Which statement best describes the role of working memory in managing the current task state in an AI agent?

AIt temporarily holds relevant information needed to complete the current task.
BIt stores all past experiences permanently for future reference.
CIt deletes all previous task information to avoid confusion.
DIt predicts future tasks without using current information.
Attempts:
2 left
💡 Hint

Think about what information an AI needs right now to perform a task.

Predict Output
intermediate
2:00remaining
Output of Working Memory Update Code

What is the output of this Python code simulating a working memory update for task state?

Agentic AI
working_memory = {'step': 1, 'info': 'start'}

# Update working memory for next step
working_memory['step'] += 1
working_memory['info'] = 'processing'

print(working_memory)
A{'step': 1, 'info': 'start'}
B{'step': 1, 'info': 'processing'}
C{'step': 2, 'info': 'processing'}
D{'step': 2, 'info': 'start'}
Attempts:
2 left
💡 Hint

Check how the dictionary values change after the update.

Model Choice
advanced
2:00remaining
Best Model for Maintaining Working Memory in AI Agents

Which model architecture is best suited for maintaining and updating working memory of the current task state in sequential decision-making?

AAutoencoder
BFeedforward Neural Network
CConvolutional Neural Network (CNN)
DRecurrent Neural Network (RNN)
Attempts:
2 left
💡 Hint

Consider models that handle sequences and remember past inputs.

Hyperparameter
advanced
2:00remaining
Hyperparameter Affecting Working Memory Capacity

Which hyperparameter most directly affects the capacity of an RNN to maintain working memory over longer sequences?

ADropout rate
BNumber of hidden units
CBatch size
DLearning rate
Attempts:
2 left
💡 Hint

Think about what controls the size of the memory in the network.

🔧 Debug
expert
3:00remaining
Debugging Working Memory Loss in Agent Code

Given this code snippet for updating an agent's working memory, what error causes the working memory to reset unexpectedly?

class Agent:
    def __init__(self):
        self.working_memory = {}

    def update_memory(self, key, value):
        working_memory = {}
        working_memory[key] = value

agent = Agent()
agent.update_memory('task', 'start')
print(agent.working_memory)
AThe update_memory method creates a new local dictionary instead of updating the instance variable.
BThe print statement is outside the class and cannot access working_memory.
CThe working_memory dictionary is never initialized in the Agent class.
DThe key and value parameters are not passed correctly to update_memory.
Attempts:
2 left
💡 Hint

Check variable scope inside the method.