BotSharp/src/Infrastructure/BotSharp.Abstraction/Agents/Models/MCPTool.cs

38 lines
605 B
C#
Raw Normal View History

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()
{
2025-02-25 22:56:46 +00:00
return ServerId;
}
}
public class MCPFunction
{
public string Name { get; set; }
2025-02-25 22:56:46 +00:00
public MCPFunction(string name)
{
2025-02-25 22:56:46 +00:00
this.Name = name;
}
}