db620d33df
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
45 lines
1.1 KiB
C#
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 feedback response.
|
|
/// </summary>
|
|
public sealed class HumanFeedbackResponse
|
|
{
|
|
[JsonPropertyName("approved")]
|
|
public bool Approved { get; set; }
|
|
|
|
[JsonPropertyName("feedback")]
|
|
public string Feedback { get; set; } = string.Empty;
|
|
}
|