matrixevents

package
v0.0.0-...-f0e47c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 3 Imported by: 0

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

func BuildStreamEventTxnID(turnID string, seq int) string

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 StreamEventOpts struct {
	TargetEventID string
	AgentID       string
}

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"
)

type ToolType

type ToolType string

ToolType identifies the category of tool.

const (
	ToolTypeBuiltin  ToolType = "builtin"
	ToolTypeProvider ToolType = "provider"
	ToolTypeFunction ToolType = "function"
	ToolTypeMCP      ToolType = "mcp"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL