// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Microsoft.Teams.AI.Messages;
[Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
public class DeveloperMessage : IMessage
{
[JsonPropertyName("role")]
[JsonPropertyOrder(0)]
public Role Role => Role.Developer;
[JsonPropertyName("content")]
[JsonPropertyOrder(1)]
public string Content { get; set; }
[JsonConstructor]
public DeveloperMessage(string content)
{
Content = content;
}
public override string ToString()
{
return JsonSerializer.Serialize(this, new JsonSerializerOptions()
{
WriteIndented = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
});
}
}microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Messages/DeveloperMessage.cs
34lines · modepreview