microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Samples/Samples.McpClient/DocsPrompt.cs
17lines · modecode
| 1 | using Microsoft.Teams.AI; |
| 2 | using Microsoft.Teams.AI.Annotations; |
| 3 | using Microsoft.Teams.Plugins.External.McpClient; |
| 4 | |
| 5 | namespace Samples.McpClient; |
| 6 | |
| 7 | [Prompt] |
| 8 | [Prompt.Description("helpful assistant")] |
| 9 | [Prompt.Instructions( |
| 10 | "You are a helpful assistant that can help answer questions using Microsoft docs.", |
| 11 | "You MUST use tool calls to do all your work." |
| 12 | )] |
| 13 | public class DocsPrompt(McpClientPlugin mcpClientPlugin) |
| 14 | { |
| 15 | [ChatPlugin] |
| 16 | public readonly IChatPlugin Plugin = mcpClientPlugin; |
| 17 | } |