internal

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusManager

type StatusManager struct {
	// contains filtered or unexported fields
}

StatusManager统一管理AI状态通知 职责: 状态去重、节流、线程安全

func NewStatusManager

func NewStatusManager(provider base.StatusProvider, logger *slog.Logger) *StatusManager

NewStatusManager 创建StatusManager

func (*StatusManager) Clear

func (m *StatusManager) Clear(ctx context.Context, channelID, threadTS string) error

Clear 清除状态

func (*StatusManager) Current

func (m *StatusManager) Current() base.StatusType

Current 获取当前状态

func (*StatusManager) Notify

func (m *StatusManager) Notify(ctx context.Context, channelID, threadTS string, status base.StatusType, text string) error

Notify 通知状态变化 如果状态未变则跳过,避免重复通知 channelID 和 threadTS 指定状态显示位置

Jump to

Keyboard shortcuts

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