log_event
Record agent actions and approvals in an append-only, hash-chained log, mask secrets, and update outcomes for audit-ready traceability.
Instructions
Record one agent action in the logbook.
Who: agent_id (your agent's stable name) and model (e.g. "mistral-small-4"). What: action (the tool or operation) and arguments (secrets are masked). Why: reason — one plain sentence. Approval: "human" with approved_by, "auto" with approval_rule, or "none". Outcome: "pending" when logging before the action; log again with "success", "error" or "escalated" after it. Returns the stored record including its seq and hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| model | Yes | ||
| action | Yes | ||
| reason | No | ||
| run_id | No | ||
| outcome | No | pending | |
| agent_id | Yes | ||
| approval | No | none | |
| arguments | No | ||
| approved_by | No | ||
| approval_rule | No | ||
| result_summary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||