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/Templates/StringTemplate.cs

17lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4
5namespace Microsoft.Teams.AI.Templates;
6
7/// <summary>
8/// a template that renders a raw string
9/// </summary>
10[Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
11public class StringTemplate(string? source = null) : ITemplate
12{
13 public Task<string> Render(object? data = null, CancellationToken cancellationToken = default)
14 {
15 return Task.FromResult(source ?? string.Empty);
16 }
17}