ARTICLE AD BOX
I have a simple chat bot built with Semantic Kernel:
var response = _chatCompletionService.GetChatMessageContentAsync( chatHistory, executionSettings: execSettings, kernel: kernel);In some cases I want to validate response from the model and replace a text content there with rephrased version (taken from another _chatCompletionService call, but unrelated to the original conversation).
I do it in this way:
return new ChatMessageContent( role: response.Role, content: rephrasedContent)and then, I save this message into ChatHistory. I wonder whether this is a best option or no, since I loose ModelId, InnerContent and other fields from original LLM response. However leaving these option also sounds like not ideal since it can give inconsistency between the updated content and remaining fields from original response.
Any help would be appreciated.
