microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix/msal-cache

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.AI/Models/AudioModel.cs

27lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.AI.Messages;
5
6namespace Microsoft.Teams.AI.Models;
7
8/// <summary>
9/// a model that can reason over audio
10/// </summary>
11[Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
12public interface IAudioModel<TOptions> : IModel<TOptions>
13{
14 /// <summary>
15 /// send a message to the model
16 /// </summary>
17 /// <param name="message">the message to send</param>
18 /// <returns>the models response</returns>
19 public Task<ModelMessage<Stream>> Send(UserMessage<string> message, TOptions? options = default, CancellationToken cancellationToken = default);
20
21 /// <summary>
22 /// send a message to the model
23 /// </summary>
24 /// <param name="message">the message to send</param>
25 /// <returns>the models response</returns>
26 public Task<ModelMessage<string>> Send(UserMessage<Stream> message, TOptions? options = default, CancellationToken cancellationToken = default);
27}