matrixevents

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.llm", 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}
)

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.llm delta 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 {
	RelatesToEventID 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