from pydantic import Field, SecretStr
from maur.settings import SettingsModel


prompt_template = (
    "A user reported an issue on Slack. Investigate and fix it.\n\n"
    "Channel: {channel}\n\n"
    "Message:\n{text}"
)


class SlackSettings(SettingsModel):
    slack_signing_secret: SecretStr
    repo_branch: str = Field(default="main")
    prompt_template: str = Field(default=prompt_template)
    channel_filter: str | None = None
    """Only handle messages from this channel ID."""
