microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Model.cs
24lines · 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 | /// models act as the communication driver |
| 8 | /// or connection to one or more LLM's, either remotely or |
| 9 | /// locally. |
| 10 | /// </summary> |
| 11 | public interface IModel<TOptions> |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// the model name |
| 15 | /// </summary> |
| 16 | public string Name { get; } |
| 17 | |
| 18 | /// <summary> |
| 19 | /// send a message to the model |
| 20 | /// </summary> |
| 21 | /// <param name="message">the message to send</param> |
| 22 | /// <returns>the models response</returns> |
| 23 | public Task<IMessage> Send(IMessage message, TOptions? options = default, CancellationToken cancellationToken = default); |
| 24 | } |