Spaces:
Sleeping
Sleeping
File size: 608 Bytes
9d8a0cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | from __future__ import annotations
from pydantic_settings import BaseSettings
class ConfluenceAgentConfig(BaseSettings):
confluence_base_url: str = ""
confluence_token: str = ""
confluence_email: str = ""
confluence_spaces: str = "" # comma-separated, e.g. "ENG,PROD"
confluence_webhook_secret: str = ""
team_id: str = "default"
model_config = {"env_file": ".env", "extra": "ignore"}
@property
def space_list(self) -> list[str]:
return [s.strip() for s in self.confluence_spaces.split(",") if s.strip()]
confluence_config = ConfluenceAgentConfig()
|