save_session_event
Persist atomic events to session history with write-through guarantee, recording every tool call, file write, and classification decision.
Instructions
Stage 8: Persist one atomic event to session_events (write-through guarantee).
Call this after every tool call, file write, and classification decision.
Event types: 'turn' | 'tool_call' | 'result' | 'file_write' | 'redline' | 'classification'
Args:
session_id: Session ID from session_bootstrap().
event_type: Category of event being recorded.
content: Event content (truncated to 2000 chars).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| event_type | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |