microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Samples/Samples.Mcp/Prompts/MainPrompt.cs
21lines · modecode
| 1 | using Microsoft.Teams.AI.Annotations; |
| 2 | |
| 3 | namespace Samples.Mcp.Prompts; |
| 4 | |
| 5 | [Prompt("main")] |
| 6 | public class MainPrompt |
| 7 | { |
| 8 | private readonly IServiceProvider _services; |
| 9 | |
| 10 | public MainPrompt(IServiceProvider provider) |
| 11 | { |
| 12 | _services = provider; |
| 13 | } |
| 14 | |
| 15 | [Function("echo")] |
| 16 | [Function.Description("echos back whatever you said")] |
| 17 | public string Echo([Param] string text) |
| 18 | { |
| 19 | return text; |
| 20 | } |
| 21 | } |