Neural Mastery
← Practice
#114. Agent Context Window Trimmerhard

#114. Agent Context Window Trimmer

hardAgent Loop Engineering⏱ 25–30 min
Libraries allowed · Pure Python earns +10 bonus XP
🎯 Mission
Implement #114. Agent Context Window Trimmer to master core AI engineering concepts in Agent Loop Engineering.

Task

Implement `agent_context_window_trimmer` in Python. Test cases verify edge cases and functional requirements.

Function Signature

agent_context_window_trimmer(*args, **kwargs)

Examples

Example 1: Basic Execution
Input: {}
Output: true
Explanation: Verifies core execution for #114. Agent Context Window Trimmer.

Constraints

  • Libraries (NumPy, PyTorch, SciPy) are allowed and accepted normally.
  • Pure Python (no external libraries) earns +10 Bonus XP!
  • Must handle edge cases cleanly.
Python3Saved ✓
def agent_context_window_trimmer(*args, **kwargs):
"""
Agent Loop Engineering - Problem #114: Agent Context Window Trimmer
Implement solution for Agent Context Window Trimmer in the Neural Mastery AI Engineering curriculum.
"""
# Implement core solution logic here
pass

Case 1: Basic Execution
Input: {}
Expected: true