refactor: split config.py into the beaver_agent package (vault, prompts, skills, policy, hands, agents, frontends, texts, memory, jobs)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"""Ночью после ротации: глубокие чаты, тихие два дня, закрываются, не больше трёх."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from beaver_agent.vault import LAUNCH
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from beaver_gateway.jobs.scheduler import JobRun
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def close_idle(run: JobRun) -> None:
|
||||
for result in await run.close_idle(kind="deep", days=2, limit=3, since=LAUNCH):
|
||||
_log.info(
|
||||
"closed deep chat %s: digest=%s error=%s",
|
||||
result.conversation.external_id,
|
||||
result.digest.path if result.digest else None,
|
||||
result.error,
|
||||
)
|
||||
Reference in New Issue
Block a user