log_event
Record agent actions, decisions, messages, and tool calls in ZizkaDB to build a causal, hash-chained event history for auditing and context retrieval.
Instructions
Log an event to ZizkaDB.
Use this every time your agent takes an action: a tool call, a decision,
a user message, or an agent response. Logging builds the causal graph
that powers why(), search_memory(), and get_context().
Args:
agent: Unique identifier for your agent (e.g. "support-bot"): letters, numbers,
dots, dashes and underscores, starting with a letter or number
event: What happened (e.g. "tool_call", "user_message", "decision")
data: Any dict of relevant data (tool name, query, result, etc.)
session_id: Groups related events into a session (optional)
parent_id: event_id of the event that caused this one -- enables causal lineage (optional)
Returns:
event_id, timestamp, sequence_no, checksum
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent": "<agent>",
"event": "<event>",
"data": "<data>"
},
"name": "log_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| agent | Yes | ||
| event | Yes | ||
| parent_id | No | ||
| session_id | No |