Skip to content

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)

@vercel
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.

2 participants