mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-27 05:30:39 +00:00
* feat(skills): add guarded evolution host APIs * docs(agents): avoid growing saturated guidance chains * fix(skills): address mutation host review findings * fix(skills): order name fence before projection lock * fix(skills): preserve composite toggle lock order * fix(skills): address catalog and pagination review feedback * docs: keep subagent guidance within merged instruction budget --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
13 lines
459 B
Python
13 lines
459 B
Python
"""Dependency-free errors shared by optional host capabilities."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class HostCapabilityError(RuntimeError):
|
|
"""A stable machine-readable failure, optionally carrying retry guidance."""
|
|
|
|
def __init__(self, code: str, message: str = "", *, retry_after: float | None = None) -> None:
|
|
self.code = code
|
|
self.retry_after = retry_after
|
|
super().__init__(f"{code}: {message}" if message else code)
|