fix: 修复agent报错问题

This commit is contained in:
ccnetcore
2025-12-24 22:51:18 +08:00
parent ee4cb20eef
commit 7495dc86a0
4 changed files with 42 additions and 20 deletions

View File

@@ -1,13 +1,14 @@
using System.ComponentModel;
using ModelContextProtocol.Server;
using Volo.Abp.DependencyInjection;
using Yi.Framework.AiHub.Domain.Shared.Attributes;
namespace Yi.Framework.AiHub.Domain.Mcp;
[McpServerToolType]
[YiAgentTool]
public class DeepThinkTool:ISingletonDependency
{
[McpServerTool, Description("进行深度思考"),DisplayName("深度思考")]
[YiAgentTool("深度思考"),DisplayName("DeepThink"),Description("进行深度思考")]
public void DeepThink()
{