1. ""Speaker"" must be one of the most suitable names in ""Available Speaker names"". You cannot create it yourself, nor can you merge two names, it must be 100% exactly equal.
2. You have to output clean JSON result, no other words are allowed.");
var chatHistoryWithName = this.ProcessConversationsForRolePlay(context.ChatHistory);
var messages = new IMessage[] { rolePlayMessage }.Concat(chatHistoryWithName);
@@ -80,23 +90,101 @@ From {agentNames.First()}:
options: new GenerateReplyOptions
{
Temperature = 0,
MaxToken = 128,
StopSequence = [":"],
MaxToken = 1024,
StopSequence = ["//finish"],
Functions = null,
},
cancellationToken: cancellationToken);
var name = response.GetContent() ?? throw new ArgumentException("No name is returned.");
var responseMessageStr = response.GetContent() ?? throw new ArgumentException("No name is returned.");
Output Name must be one of the name in the following ""Available Speaker Names"" without any change.
Note:
1. ""Speaker"" must be one of the most suitable names in ""Available Speaker Names"". You cannot create it yourself, nor can you merge two names, it must be 100% exactly equal.
2. You have to output clean JSON result,no other words are allowed.