microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Prompt.cs
30lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.AI; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// prompts act as an orchestrator for models. |
| 8 | /// they supply a common interface with useful feature |
| 9 | /// abstractions that differ with the prompts supported |
| 10 | /// media types |
| 11 | /// </summary> |
| 12 | public interface IPrompt |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// the prompt name |
| 16 | /// </summary> |
| 17 | public string Name { get; } |
| 18 | |
| 19 | /// <summary> |
| 20 | /// the prompt description |
| 21 | /// </summary> |
| 22 | public string? Description { get; } |
| 23 | |
| 24 | /// <summary> |
| 25 | /// send a message via the prompt |
| 26 | /// </summary> |
| 27 | /// <param name="message">the message to send to the model</param> |
| 28 | /// <returns>the models response</returns> |
| 29 | public Task<IMessage> Send(IMessage message, CancellationToken cancellationToken = default); |
| 30 | } |