mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 14:47:21 +00:00
Added tests which guard the JSON of visual briefings and model answers before source generation
This commit is contained in:
22 files changed
+1102
-12
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using AIStudio.Agents;
|
||||
using AIStudio.Agents.AssistantAudit;
|
||||
using AIStudio.Assistants.Builder;
|
||||
using AIStudio.Assistants.ERI;
|
||||
using AIStudio.Assistants.PromptOptimizer;
|
||||
using AIStudio.Assistants.SWOTAnalysis;
|
||||
using AIStudio.Tools.PowerPoint;
|
||||
|
||||
namespace AIStudio.Tests.Serialization;
|
||||
|
||||
public static partial class JsonTestRoots
|
||||
{
|
||||
/// <summary>
|
||||
/// The JSON which models write for the agents and assistants of AI Studio, apart from the Visual Briefing
|
||||
/// assistant.
|
||||
/// </summary>
|
||||
public static IEnumerable<TestCaseData> ModelAnswers()
|
||||
{
|
||||
TestHost.PrepareStaticState();
|
||||
|
||||
// The agents, which select data sources, check retrieved passages, and audit assistant plugins:
|
||||
yield return Case(new(typeof(List<SelectedDataSource>), AgentBase.JSON_SERIALIZER_OPTIONS));
|
||||
yield return Case(new(typeof(RetrievalContextValidationResult), AgentBase.JSON_SERIALIZER_OPTIONS));
|
||||
yield return Case(new(typeof(AssistantAuditResult), AgentBase.JSON_SERIALIZER_OPTIONS));
|
||||
|
||||
// The Assistant Builder, for assistant plugins and for direct chat launchers:
|
||||
yield return Case(new(typeof(LuaResponse), LuaResponse.JSON_OPTIONS));
|
||||
yield return Case(new(typeof(LauncherTextsResponse), LauncherTextsResponse.JSON_OPTIONS));
|
||||
|
||||
yield return Case(new(typeof(PromptOptimizationResult), AssistantPromptOptimizer.JSON_OPTIONS));
|
||||
yield return Case(new(typeof(SwotCategoryAnalysisResult), SwotModelAnswer.JSON_OPTIONS));
|
||||
yield return Case(new(typeof(SwotModerationResult), SwotModelAnswer.JSON_OPTIONS));
|
||||
yield return Case(new(typeof(ERIServerFileList), ERIServerFileList.JSON_OPTIONS));
|
||||
yield return Case(new(typeof(SlideDeckSpec.DeckDto), SlideDeckSpec.JSON_OPTIONS));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user