Add Template name to InstructResult
This commit is contained in:
parent
f4b669d229
commit
7553fce47a
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue