feat: 新增agent接口

This commit is contained in:
chenchun
2025-12-23 17:08:42 +08:00
parent 3c3e134d2b
commit ec4fdc39fe
5 changed files with 83 additions and 316 deletions

View File

@@ -8,8 +8,8 @@ namespace Yi.Framework.AiHub.Domain.Mcp;
public class OnlineSearchTool:ISingletonDependency
{
[McpServerTool, Description("进行在线搜索")]
public void OnlineSearch()
public string OnlineSearch(string keyword)
{
return "xxx";
}
}