Add ToolAnnotations support (#124)
* Add ToolAnnotations support * Address feedback
This commit is contained in:
parent
2c1672cc1a
commit
62e92fa154
2 changed files with 645 additions and 394 deletions
|
|
@ -10,7 +10,7 @@ namespace TestServerWithHosting.Tools;
|
|||
[McpServerToolType]
|
||||
public static class SampleLlmTool
|
||||
{
|
||||
[McpServerTool("sampleLLM"), Description("Samples from an LLM using MCP's sampling feature")]
|
||||
[McpServerTool(Name = "sampleLLM"), Description("Samples from an LLM using MCP's sampling feature")]
|
||||
public static async Task<string> SampleLLM(
|
||||
IMcpServer thisServer,
|
||||
[Description("The prompt to send to the LLM")] string prompt,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace TestServerWithHosting.Tools;
|
|||
[McpServerToolType]
|
||||
public static class SampleLlmTool
|
||||
{
|
||||
[McpServerTool("sampleLLM"), Description("Samples from an LLM using MCP's sampling feature")]
|
||||
[McpServerTool(Name = "sampleLLM"), Description("Samples from an LLM using MCP's sampling feature")]
|
||||
public static async Task<string> SampleLLM(
|
||||
IMcpServer thisServer,
|
||||
[Description("The prompt to send to the LLM")] string prompt,
|
||||
|
|
|
|||
Loading…
Reference in a new issue