testing

generation
user_5449717 avataruser_5449717
Public10/29/2024 1:51 PM2 snippets
prompt_template.py
generated.py

prompt_template

10/29/2024 1:56 PM
prompt_template.py
system_message = """You are an expert Python developer specializing in creating action handler classes. You understand clean code principles and best practices for handling business logic and data validation."""

action_template = """Create a Python action handler class that follows these requirements:

1. Class Structure:
- Create a class named {class_name}
- Include appropriate service instance (e.g., CoreService, ElectricityService)
- Use the @action_handler.register_action decorator with the actions: {actions}

2. Main Handler Method:

generated

10/29/2024 1:53 PM
generated.py
Generated Action Class:
```python
from datetime import datetime
from typing import Dict, Any
import re
from action_handler import register_action

class SkipDaysAction:
    def __init__(self, core_service: Any, electricity_service: Any):
        """