Files
agent-framework/dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Models.cs
T
Shyju Krishnankutty 96f30bdf57 .NET: Consolidate durable agent samples into Durable/Agents folder (#3471)
* Durable samples reorganization.

* Add local.settings.json

* Fix broken link in samples root markdown file.

* Add a link for console app samples.

* Fixed samples path in integration test.

* Fix consols app test path.
2026-01-29 23:15:14 +00:00

45 lines
1.1 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
namespace LongRunningTools;
/// <summary>
/// Represents the input for the content generation workflow.
/// </summary>
public sealed class ContentGenerationInput
{
[JsonPropertyName("topic")]
public string Topic { get; set; } = string.Empty;
[JsonPropertyName("max_review_attempts")]
public int MaxReviewAttempts { get; set; } = 3;
[JsonPropertyName("approval_timeout_hours")]
public float ApprovalTimeoutHours { get; set; } = 72;
}
/// <summary>
/// Represents the content generated by the writer agent.
/// </summary>
public sealed class GeneratedContent
{
[JsonPropertyName("title")]
public string Title { get; set; } = string.Empty;
[JsonPropertyName("content")]
public string Content { get; set; } = string.Empty;
}
/// <summary>
/// Represents the human approval response.
/// </summary>
public sealed class HumanApprovalResponse
{
[JsonPropertyName("approved")]
public bool Approved { get; set; }
[JsonPropertyName("feedback")]
public string Feedback { get; set; } = string.Empty;
}