Documentation
¶
Overview ¶
Package alerts provides a global pub/sub bus for agent-generated alerts and persists them to disk for reconnection replay.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Global = newBus()
Functions ¶
Types ¶
type Alert ¶
type Alert struct {
ID string `json:"id"`
AgentID string `json:"agentId"`
Workspace string `json:"workspace"`
Message string `json:"message"`
SessionID string `json:"sessionId"`
Offset int64 `json:"_off,omitempty"`
Timestamp string `json:"timestamp"`
}
Alert is emitted when an agent calls the send_alert tool.
Click to show internal directories.
Click to hide internal directories.