2025-07-28 10:35:34 +02:00
|
|
|
|
using AICore.Context.Summary;
|
|
|
|
|
|
using BS.Shared;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace AICore.Context.SummaryParser
|
|
|
|
|
|
{
|
2025-09-08 15:17:51 +02:00
|
|
|
|
internal class JsonContextSummaryParser : BaseContextSummaryParser
|
2025-07-28 10:35:34 +02:00
|
|
|
|
{
|
|
|
|
|
|
public override string Parse(AiContextType uicontext, BaseContextSummary context)
|
|
|
|
|
|
{
|
2025-09-23 16:07:49 +02:00
|
|
|
|
var options = new JsonSerializerOptions { IncludeFields = true };
|
|
|
|
|
|
|
|
|
|
|
|
var json = JsonSerializer.Serialize(context, options);
|
2025-07-28 10:35:34 +02:00
|
|
|
|
|
|
|
|
|
|
return json;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|