24 lines
545 B
C#
24 lines
545 B
C#
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
|
|
{
|
|
internal class JsonContextSummaryParser : BaseContextSummaryParser
|
|
{
|
|
public override string Parse(AiContextType uicontext, BaseContextSummary context)
|
|
{
|
|
var options = new JsonSerializerOptions { IncludeFields = true };
|
|
|
|
var json = JsonSerializer.Serialize(context, options);
|
|
|
|
return json;
|
|
}
|
|
}
|
|
}
|