yao/main.go
Max 7da06a4ae1 feat(search): refactor builtinSearch to utilize websearch tool and enhance context handling
- Updated the builtinSearch function to delegate search operations to the websearch tool, improving modularity and maintainability.
- Enhanced context handling by passing the agent context to builtinSearch, allowing for user and team identification during searches.
- Added a new DecryptValue function in cloud.go to streamline value decryption, delegating to the existing config.DecryptValue method.
- Updated .gitignore to include tools/README.md for better project organization.
2026-05-02 19:58:03 +08:00

32 lines
752 B
Go

package main
import (
_ "github.com/yaoapp/gou/diff"
_ "github.com/yaoapp/gou/encoding"
_ "github.com/yaoapp/gou/text"
_ "github.com/yaoapp/yao/aigc"
_ "github.com/yaoapp/yao/crypto"
_ "github.com/yaoapp/yao/excel"
_ "github.com/yaoapp/yao/helper"
_ "github.com/yaoapp/yao/job/jsapi"
_ "github.com/yaoapp/yao/openai"
_ "github.com/yaoapp/yao/rss"
_ "github.com/yaoapp/yao/seed"
_ "github.com/yaoapp/yao/sitemap"
_ "github.com/yaoapp/yao/tools"
_ "github.com/yaoapp/yao/trace/jsapi"
_ "github.com/yaoapp/yao/wework"
"github.com/yaoapp/yao/cmd"
"github.com/yaoapp/yao/utils"
//
// _ "net/http/pprof"
)
func main() {
// go func() {
// log.Println(http.ListenAndServe("localhost:6060", nil))
// }()
utils.Init()
cmd.Execute()
}