Documentation
¶
Overview ¶
Package audit 实现 Golem 的运行时审计日志记录功能。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Time time.Time `json:"time"` // 事件发生时间
Type string `json:"type"` // 事件类型(如 policy_allow, tool_execution)
RequestID string `json:"request_id,omitempty"` // 请求追踪 ID
Tool string `json:"tool,omitempty"` // 关联的工具名称
Result string `json:"result,omitempty"` // 执行结果或决策状态
}
Event 表示单条审计记录,以 JSON 行 (JSONL) 格式写入。
Click to show internal directories.
Click to hide internal directories.