← Về thư mục
openai4s/memory_budget.py
- select · function · L62-L141 — def select( memories: Iterable[Any], *, max_items: int = MAX_MEMORIES, max_chars: int = MAX_MEMORY_CHARS, max_total: int = MAX_TOTAL_CHARS, retention_ms: int = RETENTION_MS, now_ms: int | None = None, ) -> tuple[list[str], list[dict[str, Any]]]
- render · function · L144-L165 — def render(kept: Sequence[str], dropped: Sequence[dict[str, Any]]) -> str