record_observation
Capture error observations or user corrections by logging event type, error message, context, and correction, enabling root-cause analysis and retrieval for future tasks.
Instructions
记录一次错误观察或用户纠正事件。在工具执行失败、测试未通过、或用户纠正你的操作时调用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 逗号分隔的标签 | |
| context | No | 错误发生时的上下文 | |
| obs_type | Yes | 事件类型: tool_error/test_failure/user_correction/build_failure/runtime_error/manual_entry/conversation_signal | |
| tool_name | No | 出错的工具/命令名称 | |
| correction | No | 用户的纠正内容或正确做法 | |
| error_message | Yes | 错误信息或原始问题描述 |