create_reflection
Store an agent reflection—a generalized lesson from experience with supporting evidence—deduplicated by evidence hash and scoped to session, project, or global.
Instructions
Persist an agent reflection — a generalized lesson distilled from experience, backed by evidence entities. Deduplicated by evidence hash; scoped to session, project, or global.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Generalization scope of the reflection | |
| agentId | No | Agent that authored the reflection | |
| summary | Yes | The reflection text (non-empty) | |
| evidence | Yes | Entity names backing this reflection (non-empty) | |
| importance | No | Importance score for the reflection entity | |
| keyInsights | No | Top pattern strings (max 5) | |
| experienceType | No | Experience type label (e.g. "success", "failure") | |
| sourceProjectId | No | Project the reflection was distilled from | |
| sourceSessionId | No | Session the reflection was distilled from | |
| generalizationConfidence | Yes | Confidence in [0.0, 1.0] that the lesson generalizes |