Create a command-line rate limiter tool at /app/ratelimit.py that determines whether an action is allowed…
Create a command-line rate limiter tool at /app/ratelimit.py that determines whether an action is allowed…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The program reads a JSON configuration file and a stream of action requests (one per line, JSON objects) from…
The task
The program reads a JSON configuration file and a stream of action requests (one per line, JSON objects) from stdin, and writes one JSON object per decision to stdout. It must exit cleanly after processing all input.
Part of ai-and/termgrade-environments.