DummyResponseSheet.cs 935 B

123456789101112131415161718192021222324252627282930313233
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. namespace LLM.Editor.Data
  4. {
  5. /// <summary>
  6. /// Represents the root object of the DummyResponses.json file.
  7. /// </summary>
  8. [System.Serializable]
  9. public class DummyResponseSheet
  10. {
  11. public List<DummyTestCase> testCases = new();
  12. }
  13. /// <summary>
  14. /// Represents a single, multistep test case for the DummyApiClient.
  15. /// </summary>
  16. [System.Serializable]
  17. public class DummyTestCase
  18. {
  19. /// <summary>
  20. /// A phrase to look for in the user's prompt to trigger this test case.
  21. /// </summary>
  22. public string triggerPhrase;
  23. /// <summary>
  24. /// A list of JSON responses to be executed in sequence for this test case.
  25. /// Each string in the list represents one turn of conversation.
  26. /// </summary>
  27. [TextArea(5, 20)]
  28. public List<string> responses = new();
  29. }
  30. }