microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.4

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.AI/Model.cs

24lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4namespace 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>
11public 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}