Documentation
¶
Index ¶
Constants ¶
View Source
const ( RelReplace = "m.replace" RelReference = "m.reference" RelThread = "m.thread" )
Relation types.
View Source
const (
BeeperAIKey = "com.beeper.ai"
)
Content field keys.
Variables ¶
View Source
var ( StreamEventMessageType = event.Type{Type: "com.beeper.ai.stream_event", Class: event.EphemeralEventType} CompactionStatusEventType = event.Type{Type: "com.beeper.ai.compaction_status", Class: event.MessageEventType} AIRoomInfoEventType = event.Type{Type: "com.beeper.ai.info", Class: event.StateEventType} RoomCapabilitiesEventType = event.Type{Type: "com.beeper.ai.room_capabilities", Class: event.StateEventType} RoomSettingsEventType = event.Type{Type: "com.beeper.ai.room_settings", Class: event.StateEventType} ModelCapabilitiesEventType = event.Type{Type: "com.beeper.ai.model_capabilities", Class: event.StateEventType} AgentsEventType = event.Type{Type: "com.beeper.ai.agents", Class: event.StateEventType} )
Event types shared across bridge/bot/modules.
Keep these values stable: clients may rely on them for rendering and behavior.
View Source
var CommandDescriptionEventType = event.StateMSC4391BotCommand
CommandDescriptionEventType is the state event type for MSC4391 command descriptions. Already accepted in gomuks/mautrix-go ecosystem.
Functions ¶
func BuildStreamEventEnvelope ¶
func BuildStreamEventEnvelope(turnID string, seq int, part map[string]any, opts StreamEventOpts) (map[string]any, error)
BuildStreamEventEnvelope builds the stable envelope for com.beeper.ai.stream_event payloads.
func BuildStreamEventTxnID ¶
Types ¶
type ResultStatus ¶
type ResultStatus string
ResultStatus represents the status of a tool result.
const ( ResultStatusSuccess ResultStatus = "success" ResultStatusError ResultStatus = "error" ResultStatusPartial ResultStatus = "partial" ResultStatusDenied ResultStatus = "denied" )
type StreamEventOpts ¶
type ToolStatus ¶
type ToolStatus string
ToolStatus represents the state of a tool call.
const ( ToolStatusPending ToolStatus = "pending" ToolStatusRunning ToolStatus = "running" ToolStatusCompleted ToolStatus = "completed" ToolStatusFailed ToolStatus = "failed" ToolStatusTimeout ToolStatus = "timeout" ToolStatusCancelled ToolStatus = "cancelled" ToolStatusApprovalRequired ToolStatus = "approval_required" )
Click to show internal directories.
Click to hide internal directories.