tessl install tessl/pypi-modal@1.1.0Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.6x
Baseline
Agent success rate without this tile
53%
Build a cloud-based data validation tool that processes data entries and allows interactive correction when validation issues are detected. The tool should run computations remotely and provide a mechanism for human-in-the-loop intervention when automatic validation cannot determine the correct action.
name (string), age (integer), and email (string)name: Must be non-empty and contain only alphabetic characters and spacesage: Must be between 0 and 120email: Must contain exactly one '@' symbol and at least one '.' after the '@'When a validation rule fails:
validator.pyProvides serverless cloud computing capabilities for remote code execution.
Input:
records = [
{"name": "Alice Smith", "age": 30, "email": "alice@example.com"},
{"name": "Bob Jones", "age": 25, "email": "bob@test.org"}
]Expected behavior: All records should pass validation without requiring interactive input and be returned unchanged.
Input:
records = [
{"name": "Charlie123", "age": 30, "email": "charlie@example.com"}
]Expected behavior: The validator should detect that the name contains invalid characters (digits), pause execution, and wait for user input on how to correct or handle the invalid record.
Input:
records = [
{"name": "Dave", "age": 150, "email": "dave.example.com"}
]Expected behavior: The validator should detect multiple issues (age out of range, email missing '@') and allow interactive correction for each problem field.