BaseEvent 基础事件
| 56 | |
| 57 | // BaseEvent 基础事件 |
| 58 | type BaseEvent struct { |
| 59 | Type EventType `json:"type"` |
| 60 | ID string `json:"run_id"` |
| 61 | Time time.Time `json:"timestamp"` |
| 62 | SessionID string `json:"session_id,omitempty"` |
| 63 | Data map[string]any `json:"data,omitempty"` |
| 64 | } |
| 65 | |
| 66 | // EventType 实现 Event 接口 |
| 67 | func (e *BaseEvent) EventType() EventType { |
nothing calls this directly
no outgoing calls
no test coverage detected