Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat Message Reference Replies Via "Say" #773

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

AbdurrehmanSubhani
Copy link
Contributor

This PR adds in an abstracted approach for integrating reference message replies in Chat environments

Implementation:

  • Add "messageId" field for messages being stored in the Chat conversation
  • Add "replyToMessageId" as an optional string object to the "say" Chat action. To be used when the Agent wants to reply reference back to a previous message
  • Update the saveMessageToDB and loadMessageFromDb functions to use the generated messageId in Db.
  • Create a getMessageById function in the MessageCache class for getting single messages with the specific Id
  • Add "reply" function to the Conversation object
  • Add "replyFun" customisable callback function used inside the Conversation object's reply function (would be unique to each platform)
  • Follow binding pattern for binding conversation replies to the platforms (i.e Discord)

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 8:25am
upstreet.ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 8:25am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant