diana_experience_add
Record a DIANA lesson as a draft in the experience handbook for later user approval, capturing symptom, cause, fix, verification, triggers, and evidence; update similar entries instead unless forced.
Instructions
Record a lesson in the experience handbook as a draft (未验证); only the user can approve it later.
Write it in the user's language, concretely: what was observed (error code, message, wrong result), why, what fixed it and how that was confirmed. Refused when a similar entry exists (similar title or shared trigger): update that one instead, or pass force=True if it really is a different lesson.
Args: title: one-sentence summary. type: error-fix, modeling-pitfall, api-usage, convergence, parameter, result-interpretation or workflow. symptom: what was observed (becomes the 现象 section). cause: why it happens (原因). fix: what solved it (解决). verification: how the fix was confirmed (验证). notes: anything else (备注). triggers: error codes, message fragments or command names that should bring this entry up, e.g. ["/DIANA/NL/IS41/0001", "Too small step"]; prefix "re:" for a regular expression. tags: e.g. ["非线性", "界面单元"]. manual: related manual pages, e.g. ["Theory/Theoryse738.html"]. evidence: job ids, files, test names, dates that back it up. related: ids of related entries. diana_version: DIANA version it applies to (default: the installed one). source: "ai" when you drafted it, "user" when the user dictated it. id: file name (lowercase letters, digits, hyphens), default derived from the title. force: create it even though similar entries exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| fix | No | ||
| tags | No | ||
| type | Yes | ||
| cause | No | ||
| force | No | ||
| notes | No | ||
| title | Yes | ||
| manual | No | ||
| source | No | ai | |
| related | No | ||
| symptom | Yes | ||
| evidence | No | ||
| triggers | No | ||
| verification | No | ||
| diana_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||