edubruell / tidyllm

An tidy interface to large language model APIs for R
https://edubruell.github.io/tidyllm/
Other
9 stars 1 forks source link

Implement new functions to get replies and user messages. #12

Closed edubruell closed 3 days ago

edubruell commented 4 days ago

Implement several new function to get specific user messages or assitant replies from an LLMMessage object:

  1. last_user_message(): Similar to last_reply(), this method retrieves the most recent message from the user.
  2. get_reply(): Retrieve an assistant reply by a specific index in the message history.
  3. get_user_message()Retrieve an user message by a specific index in the message history.
  4. remove_message(index) Introduce functions to remove messages from the history in LLMMessage.
edubruell commented 3 days ago

New functions and a remove_message method to LLMMessage were added in dev-version 0.1.3