refactor: unify storage config keys and refresh local dev setup
This commit is contained in:
@@ -148,11 +148,22 @@ class SupabaseSettings(BaseModel):
|
||||
|
||||
class StorageSettings(BaseModel):
|
||||
provider: Literal["supabase"] = "supabase"
|
||||
bucket: str = Field(default="agent-chat-attachments", min_length=3, max_length=63)
|
||||
signed_url_ttl_seconds: int = Field(default=600, ge=60, le=3600)
|
||||
max_file_size_mb: int = Field(default=20, ge=1, le=200)
|
||||
retention_days: int = Field(default=30, ge=1, le=3650)
|
||||
|
||||
class AttachmentSettings(BaseModel):
|
||||
bucket: str = Field(
|
||||
default="agent-chat-attachments", min_length=3, max_length=63
|
||||
)
|
||||
max_size_mb: int = Field(default=20, ge=1, le=200)
|
||||
|
||||
class AvatarSettings(BaseModel):
|
||||
bucket: str = Field(default="avatars", min_length=3, max_length=63)
|
||||
max_size_mb: int = Field(default=2, ge=1, le=10)
|
||||
|
||||
attachment: AttachmentSettings = Field(default_factory=AttachmentSettings)
|
||||
avatar: AvatarSettings = Field(default_factory=AvatarSettings)
|
||||
|
||||
|
||||
class AgentRuntimeSettings(BaseModel):
|
||||
redis_stream_prefix: str = "agent:events"
|
||||
|
||||
@@ -18,7 +18,9 @@ agents:
|
||||
temperature: 0.7
|
||||
max_tokens: null
|
||||
timeout_seconds: 30
|
||||
context_messages: null
|
||||
context_messages:
|
||||
mode: number
|
||||
count: 20
|
||||
enabled_tools:
|
||||
- calendar.read
|
||||
- calendar.write
|
||||
|
||||
@@ -107,6 +107,10 @@ async def bootstrap() -> bool:
|
||||
|
||||
|
||||
async def run_automation_scheduler_forever() -> None:
|
||||
if config.runtime.environment == "dev":
|
||||
logger.info("Automation scheduler skipped in dev environment")
|
||||
return
|
||||
|
||||
if not config.automation_scheduler.enabled:
|
||||
logger.info("Automation scheduler disabled by config")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user