Closed edubruell closed 3 days ago
Implement several new function to get specific user messages or assitant replies from an LLMMessage object:
last_user_message()
last_reply()
get_reply()
get_user_message()
remove_message(index)
New functions and a remove_message method to LLMMessage were added in dev-version 0.1.3
Implement several new function to get specific user messages or assitant replies from an LLMMessage object:
last_user_message()
: Similar tolast_reply()
, this method retrieves the most recent message from the user.get_reply()
: Retrieve an assistant reply by a specific index in the message history.get_user_message()
Retrieve an user message by a specific index in the message history.remove_message(index)
Introduce functions to remove messages from the history in LLMMessage.