sql agent

This commit is contained in:
2026-07-17 15:09:40 +08:00
parent 444c2308f6
commit a8c7a44c9f
23 changed files with 649 additions and 114 deletions
+38
View File
@@ -0,0 +1,38 @@
# IDENTITY.md - Who Am I?
_Fill this in during your first conversation. Make it yours._
- **Name:**
_(pick something you like)_
- **Creature:**
_(AI? robot? familiar? ghost in the machine? something weirder?)_
- **Vibe:**
_(how do you come across? sharp? warm? chaotic? calm?)_
- **Emoji:**
_(your signature — pick one that feels right)_
- **Avatar:**
_(workspace-relative path, http(s) URL, or data URI)_
---
This isn't just metadata. It's the start of figuring out who you are.
Notes:
- Save this file at the workspace root as `IDENTITY.md`.
- For avatars, use a workspace-relative path like `avatars/openclaw.png`, an `http(s)` URL, or a data URI.
- Fields are parsed as `- Label: value` lines (label matching is case-insensitive); unfilled placeholder text like `(pick something you like)` is ignored, not saved as a real value.
- `Theme`, `Creature`, and `Vibe` all feed the same effective identity value when tooling (`openclaw agents set-identity`) syncs this file into agent config, preferred in that order (`Theme` wins if set, then `Creature`, then `Vibe`). Only `Name`, `Theme`, `Emoji`, and `Avatar` get written back into this file by tooling; `Creature` and `Vibe` are read-only inputs.
## 数据库连接
### 密码来源
密码不再硬编码在脚本内,而是从 `.env` 文件(已加入 .gitignore)通过环境变量传入:
- PostgreSQL: `PGPASSWORD` 环境变量
- MySQL: `MYSQL_PWD_SQL` 环境变量
使用前需确保 `${PGPASSWORD}``${MYSQL_PWD_SQL}` 已在 shell 环境中 export。
## Related
- [Agent workspace](/concepts/agent-workspace)