mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
17b4dfab14
* Propagate orchestration ID (if any). * Add integration test for orchestration ID in entity state. * Update schema. * Fixup formatting issues. * Fix more formatting issues.
28 lines
837 B
C#
28 lines
837 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.Agents.AI.DurableTask.State;
|
|
|
|
/// <summary>
|
|
/// Represents the state of a durable agent, including its conversation history.
|
|
/// </summary>
|
|
[JsonConverter(typeof(DurableAgentStateJsonConverter))]
|
|
internal sealed class DurableAgentState
|
|
{
|
|
/// <summary>
|
|
/// Gets the data of the durable agent.
|
|
/// </summary>
|
|
[JsonPropertyName("data")]
|
|
public DurableAgentStateData Data { get; init; } = new();
|
|
|
|
/// <summary>
|
|
/// Gets the schema version of the durable agent state.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The version is specified in semver (i.e. "major.minor.patch") format.
|
|
/// </remarks>
|
|
[JsonPropertyName("schemaVersion")]
|
|
public string SchemaVersion { get; init; } = "1.1.0";
|
|
}
|