Metis — Save Session Event
save_session_eventPersist any tool call, file write, or classification decision as an atomic event to session_events with write-through guarantee.
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 |
|---|---|---|---|
| content | Yes | ||
| event_type | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |