MCPcopy Create free account
hub / github.com/astercloud/aster / BaseEvent

Struct BaseEvent

pkg/run/event.go:58–64  ·  view source on GitHub ↗

BaseEvent 基础事件

Source from the content-addressed store, hash-verified

56
57// BaseEvent 基础事件
58type 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 接口
67func (e *BaseEvent) EventType() EventType {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected