BotSharp/src/Infrastructure/BotSharp.Abstraction/Agents/Models/MCPTool.cs
2025-02-26 06:56:46 +08:00

38 lines
605 B
C#

namespace BotSharp.Abstraction.Agents.Models;
public class MCPTool
{
public string ServerId { get; set; }
public bool Disabled { get; set; }
public IEnumerable<MCPFunction> Functions { get; set; } = [];
public MCPTool()
{
}
public MCPTool(
IEnumerable<MCPFunction>? functions = null)
{
Functions = functions ?? [];
}
public override string ToString()
{
return ServerId;
}
}
public class MCPFunction
{
public string Name { get; set; }
public MCPFunction(string name)
{
this.Name = name;
}
}