microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Prompts/ChatPrompt/ChatPrompt.Plugins.cs
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.AI.Prompts; |
| 5 | |
| 6 | public partial class ChatPrompt<TOptions> |
| 7 | { |
| 8 | public ChatPrompt<TOptions> Plugin(IPlugin plugin) |
| 9 | { |
| 10 | Plugins.Add(plugin); |
| 11 | return this; |
| 12 | } |
| 13 | |
| 14 | public ChatPrompt<TOptions> Plugin(IChatPlugin plugin) |
| 15 | { |
| 16 | Plugins.Add(plugin); |
| 17 | return this; |
| 18 | } |
| 19 | } |