// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Text.Json.Serialization; using Microsoft.Teams.Common; using Microsoft.Teams.Common.Json; namespace Microsoft.Teams.AI; /// /// some message sent to or from the LLM /// via a Model /// [JsonConverter(typeof(TrueTypeJsonConverter))] [Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")] public interface IMessage { /// /// the role of the message, ie /// who sent the message /// public Role Role { get; } } [JsonConverter(typeof(JsonConverter))] [Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")] public class Role(string value) : StringEnum(value) { public static readonly Role User = new("user"); public bool IsUser => User.Equals(Value); public static readonly Role Model = new("model"); public bool IsModel => Model.Equals(Value); public static readonly Role Developer = new("developer"); public bool IsDeveloper => Developer.Equals(Value); public static readonly Role Function = new("function"); public bool IsFunction => Function.Equals(Value); }