create_reflection
Store a distilled lesson from an experience, backed by evidence entities. Deduplicates by evidence hash and scopes to session, project, or global for reusable knowledge.
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 |