finalize_run
Persists the audit trail by writing the run log to a markdown file and clearing memory. Call at the end of each user query.
Instructions
Write the full run log to runs/<run_id>.md and clear memory.
Call once at the end of each user query to persist the audit trail.
'extra_notes': optional free-text annotation to append to the log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| extra_notes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |