session_save_experience
Record structured behavioral events—corrections, successes, failures, learning, or validation results—for pattern detection and analysis of agent performance.
Instructions
Record a typed experience event. Unlike session_save_ledger (flat logs), this captures structured behavioral data for pattern detection.
Event Types:
correction: Agent was corrected by user
success: Task completed successfully
failure: Task failed
learning: New knowledge acquired
validation_result: Verification sandbox passed or failed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Optional. Agent role for Hivemind scoping. Omit to let the server auto-resolve from dashboard settings. | |
| action | Yes | What action was tried. | |
| context | Yes | What the agent was doing when the event occurred. | |
| outcome | Yes | What happened as a result. | |
| project | Yes | Project identifier. | |
| correction | No | What should have been done instead (for correction type). | |
| event_type | Yes | Type of behavioral event. | |
| confidence_score | No | Agent's confidence in the outcome (1-100). |