using Mscc.GenerativeAI; namespace AiAgent.Core.Models { public static class JsonFactCheckSchemaSchemas { public static Schema Value => new() { Type = ParameterType.Object, Description = "Structured output for an automated fact-checking task evaluating an article's factual accuracy.", Properties = new Dictionary { { "Factual Accuracy Confidence Score", new Schema { Type = ParameterType.Integer, Description = "A numerical confidence score between 0 and 100 indicating the overall factual accuracy of the article." } }, { "Number Of Factual Errors", new Schema { Type = ParameterType.Integer, Description = "The total number of factual inaccuracies or errors found in the article." } }, { "List of Factual Errors", new Schema { Type = ParameterType.Array, Description = "A list of specific factual errors identified in the article, each with a concise explanation.", Items = new Schema { Type = ParameterType.String, Description = "A single factual error found in the article with a brief explanation." } } }, { "Summary of thoughts on the article's accuracy", new Schema { Type = ParameterType.String, Description = "A concise summary expressing the overall assessment of the article’s factual accuracy and reliability." } } }, Required = [ "Factual Accuracy Confidence Score", "Number Of Factual Errors", "List of Factual Errors", "Summary of thoughts on the article's accuracy" ] }; } }