docs: 重构为双语文档结构,添加人设图机制

- 拆分为 docs/(CN) 和 docs_en/(EN) 两个文件夹
- 主 README 索引对应语言文档
- 新增 persona.md (人设图机制详细说明)
- 文件重命名为英文名
This commit is contained in:
root
2026-04-14 13:20:24 +08:00
parent 44c332bfe1
commit dd685485b5
23 changed files with 676 additions and 109 deletions

View File

@ -55,6 +55,22 @@ class BackendClient:
)
return self._server.send(packet).body
def get_tool_limits(self) -> Dict:
packet = Packet(
id=self._next_id(),
type=PacketType.GET_TOOL_LIMITS,
body={}
)
return self._server.send(packet).body
def update_tool_limits(self, **kwargs) -> Dict:
packet = Packet(
id=self._next_id(),
type=PacketType.SET_TOOL_LIMITS,
body=kwargs
)
return self._server.send(packet).body
def save_history(self, messages: list) -> None:
packet = Packet(
id=self._next_id(),