deer-flow/backend/packages/harness/deerflow/config/task_continuity_config.py
Wenchao An 1b76ab9060
feat: add opt-in task notes and compacted history recall (#5382)
* feat: add opt-in task notes and compacted history recall

* fix: validate task continuity state and preserve user answers

Honor explicit opt-out, preserve clarification replies and capture failure statuses, validate notebook writes, and clear branch archive references. Update the config version and audit optional LLM credentials, with regression and integration evidence.

* fix: align Helm config version with task continuity schema

* fix: preserve mixed task history and declare continuity policies

* fix: recover malformed history and evict archives atomically
2026-09-12 21:01:46 +08:00

11 lines
365 B
Python

"""Opt-in, thread-local working notes and compacted source recall."""
from pydantic import BaseModel, Field
class TaskContinuityConfig(BaseModel):
enabled: bool = False
max_batches: int = Field(default=32, ge=1, le=64)
max_records_per_batch: int = Field(default=256, ge=1, le=1024)
max_record_chars: int = Field(default=16000, ge=1000, le=64000)