chore: import upstream snapshot with attribution
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:21:23 +08:00
commit b957a53def
5423 changed files with 863745 additions and 0 deletions
@@ -0,0 +1,17 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0005 // Using directive is unnecessary
using Microsoft.SemanticKernel.ChatCompletion;
#pragma warning restore IDE0005 // Using directive is unnecessary
namespace StepwisePlannerMigration.Services;
/// <summary>
/// Interface to get a previously generated plan from file for demonstration purposes.
/// </summary>
public interface IPlanProvider
{
ChatHistory GetPlan(string fileName);
}
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft. All rights reserved.
using System.IO;
using System.Text.Json;
#pragma warning disable IDE0005 // Using directive is unnecessary
using Microsoft.SemanticKernel.ChatCompletion;
#pragma warning restore IDE0005 // Using directive is unnecessary
namespace StepwisePlannerMigration.Services;
/// <summary>
/// Class to get a previously generated plan from file for demonstration purposes.
/// </summary>
public class PlanProvider : IPlanProvider
{
public ChatHistory GetPlan(string fileName)
{
var plan = File.ReadAllText($"Resources/{fileName}");
return JsonSerializer.Deserialize<ChatHistory>(plan)!;
}
}