123456789101112131415161718192021222324252627282930313233 |
- using UnityEngine;
- using System.Collections.Generic;
- namespace LLM.Editor.Data
- {
- /// <summary>
- /// Represents the root object of the DummyResponses.json file.
- /// </summary>
- [System.Serializable]
- public class DummyResponseSheet
- {
- public List<DummyTestCase> testCases = new();
- }
- /// <summary>
- /// Represents a single, multistep test case for the DummyApiClient.
- /// </summary>
- [System.Serializable]
- public class DummyTestCase
- {
- /// <summary>
- /// A phrase to look for in the user's prompt to trigger this test case.
- /// </summary>
- public string triggerPhrase;
- /// <summary>
- /// A list of JSON responses to be executed in sequence for this test case.
- /// Each string in the list represents one turn of conversation.
- /// </summary>
- [TextArea(5, 20)]
- public List<string> responses = new();
- }
- }
|