tessl install tessl/pypi-aws-lambda-powertools@3.19.0Comprehensive developer toolkit implementing serverless best practices for AWS Lambda functions in Python
Agent Success
Agent success rate when using this tile
89%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.22x
Baseline
Agent success rate without this tile
73%
A Lambda function that processes user requests and generates structured logs with automatic context enrichment.
@generates
def lambda_handler(event: dict, context) -> dict:
"""
Process user requests with automatic Lambda context logging.
Args:
event: Dictionary containing 'userId' (str) and 'action' (str)
context: Lambda context object
Returns:
Dictionary with 'statusCode' (200), and 'body' containing 'userId' and 'action'
Raises:
ValueError: If userId is missing from event
"""
passProvides structured logging with automatic Lambda context injection.
@satisfied-by