Agnes 2.0-flash是推理模型,推理token占大量预算。 800仍不够→JSON截断(parse error: unexpected end of JSON input)。 1200确保推理+正文都够用。
30 lines
703 B
Markdown
30 lines
703 B
Markdown
# memory-zhiyi — OpenClaw ZhiYi Memory Plugin
|
|
|
|
ZhiYi MemoryWeave plugin for OpenClaw. Replaces `memory-lancedb-pro` with semantic memory + knowledge graph + Obsidian integration.
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
# Install
|
|
cd ~/.openclaw/workspace/plugins/
|
|
git clone <this-repo> memory-zhiyi
|
|
cd memory-zhiyi
|
|
npm install
|
|
npm run build
|
|
|
|
# Configure in ~/.openclaw/config.yaml:
|
|
memory:
|
|
provider: zhiyi
|
|
|
|
zhiyi:
|
|
base_url: http://localhost:7821
|
|
api_key: your-key
|
|
namespace: openclaw-main
|
|
```
|
|
|
|
## Architecture
|
|
|
|
- `src/client.ts` — ZhiYi REST API wrapper
|
|
- `src/index.ts` — OpenClaw plugin entry (register hooks)
|
|
- `src/cli.ts` — LanceDB → ZhiYi migration CLI
|
|
- `src/types.ts` — TypeScript interfaces |