diff options
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs')
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs index 3ba6ad0c5..1c48b93a2 100644 --- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/SchemaRegistry.cs @@ -39,5 +39,16 @@ namespace Tango.Portal.Chat.Web.Services } return File.ReadAllText(path); } + + public string GetPlotySample() + { + var path = Path.Combine(_env.ContentRootPath, "Data", "ploty_sample.txt"); + if (!File.Exists(path)) + { + _log.LogWarning("Ploty sample file not found at {Path}. Returning empty prompt.", path); + return string.Empty; + } + return File.ReadAllText(path); + } } } |
