Add Template name to InstructResult

This commit is contained in:
Haiping Chen 2025-09-26 14:39:36 -05:00
parent f4b669d229
commit 7553fce47a
2 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,9 @@ public class InstructResult : ITrackableMessage
{
[JsonPropertyName("message_id")]
public string MessageId { get; set; }
public string Text { get; set; }
public string Text { get; set; } = string.Empty;
public object? Data { get; set; }
[JsonPropertyName("template")]
public string? Template{ get; set; }
public Dictionary<string, string>? States { get; set; } = new();
}

View file

@ -61,7 +61,8 @@ public partial class InstructService
var response = new InstructResult
{
MessageId = message.MessageId
MessageId = message.MessageId,
Template = templateName,
};
if (completer is ITextCompletion textCompleter)