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/Prompt.cs

30lines · modecode

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