Documentation
¶
Index ¶
- func BuildInAIToolHash() (string, error)
- func ConvertTools(tools []*schema.AIYakTool) []*aitool.Tool
- func GetAllYakScriptAiTools() []*aitool.Tool
- func GetAllYakScriptAiToolsByDB(db *gorm.DB) []*aitool.Tool
- func GetEmbedFS() fi.FileSystem
- func GetYakScriptAiTools(names ...string) []*aitool.Tool
- func InitEmbedFS()
- func LoadYakScriptToAiTools(name string, content string) *schema.AIYakTool
- func OverrideYakScriptAiTools()
- func RegisterYakScriptAiToolsCovertHandle(handle func(aitools []*schema.AIYakTool) []*aitool.Tool)
- type FileSystemWithHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildInAIToolHash ¶
func ConvertTools ¶
ConvertTools 将 AIYakTool 转换为 aitool.Tool (公开接口)
func GetAllYakScriptAiTools ¶
func GetEmbedFS ¶
func GetEmbedFS() fi.FileSystem
func GetYakScriptAiTools ¶
func InitEmbedFS ¶
func InitEmbedFS()
func LoadYakScriptToAiTools ¶
func OverrideYakScriptAiTools ¶
func OverrideYakScriptAiTools()
Types ¶
type FileSystemWithHash ¶
type FileSystemWithHash interface {
fi.FileSystem
GetHash() (string, error)
}
FileSystemWithHash 是一个带有 GetHash 方法的文件系统接口
Click to show internal directories.
Click to hide internal directories.