mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 10:57:28 +08:00
feat: add MCP tool and web UI management
This commit is contained in:
@@ -23,6 +23,10 @@ type ResourceScopedTool interface {
|
||||
ResourceKeys(args map[string]interface{}) []string
|
||||
}
|
||||
|
||||
type CatalogTool interface {
|
||||
CatalogEntry() map[string]interface{}
|
||||
}
|
||||
|
||||
func ToolToSchema(tool Tool) map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"type": "function",
|
||||
|
||||
Reference in New Issue
Block a user