actions

package
v0.0.0-...-d98f6c4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScope

func AddScope(name string, prompt string)

AddScope 添加工具命名空间

func AddTool

func AddTool(tool *toolobj.Tools)

AddTool 添加工具

func DisableScope

func DisableScope(session *structs.Chats, scope string) error

DisableScope 禁用命名空间

func EnableScope

func EnableScope(session *structs.Chats, scope string) error

EnableScope 启用命名空间

func HookTool

func HookTool(name string, hook *toolobj.Hook)

HookTool 为工具添加钩子

func Load

func Load(session *structs.Chats)

Load 从数据库加载命名空间启用状态

func SetScopeEnabled

func SetScopeEnabled(db *gorm.DB, chatID uint32, name string, enabled bool) error

SetScopeEnabled 设置或更新命名空间启用状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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