Documentation
¶
Overview ¶
Package audit records tool calls into the SQLite audit table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Timestamp time.Time `json:"timestamp"`
AgentID string `json:"agent_id"`
ToolName string `json:"tool_name"`
Args any `json:"args"` // already redacted
Result any `json:"result,omitempty"` // already redacted, omitempty for failures
Error string `json:"error,omitempty"` // non-empty when the tool failed
DurationMs int64 `json:"duration_ms"`
}
Entry is one row of the audit log.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder appends entries to the SQLite audit table.
func NewRecorder ¶
NewRecorder returns a Recorder bound to the storage layer's audit table.
Click to show internal directories.
Click to hide internal directories.