diff --git a/python/semantic_kernel/utils/chat.py b/python/semantic_kernel/utils/chat.py index ceb17074c151..632626ab27a3 100644 --- a/python/semantic_kernel/utils/chat.py +++ b/python/semantic_kernel/utils/chat.py @@ -8,8 +8,16 @@ from semantic_kernel.contents.chat_message_content import ChatMessageContent -def store_results(chat_history: ChatHistory, results: list["ChatMessageContent"]): - """Stores specific results in the context and chat prompt.""" +def store_results(chat_history: ChatHistory, results: list["ChatMessageContent"]) -> ChatHistory: + """Stores specific results in the context and chat prompt. + + Args: + chat_history(ChatHistory): The current chat history instance. + results(list["ChatMessageContent"]): Messages to be stored in the history. + + Returns: + ChatHistory: Updated chat history containing the new messages. + """ for message in results: chat_history.add_message(message=message) return chat_history