// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; namespace Microsoft.Agents.AI.DurableTask.State; /// /// Represents the state of a durable agent, including its conversation history. /// [JsonConverter(typeof(DurableAgentStateJsonConverter))] internal sealed class DurableAgentState { /// /// Gets the data of the durable agent. /// [JsonPropertyName("data")] public DurableAgentStateData Data { get; init; } = new(); /// /// Gets the schema version of the durable agent state. /// /// /// The version is specified in semver (i.e. "major.minor.patch") format. /// [JsonPropertyName("schemaVersion")] public string SchemaVersion { get; init; } = "1.0.0"; }