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

Agent Discord Message Referenced Reply #769

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

Conversation

AbdurrehmanSubhani
Copy link
Contributor

This PR depends on for ensuring message id for discord messages are added to context:
https://github.com/UpstreetAI/upstreet/pull/1445

Implementation:

  • Add SceneObject to the Conversation to provide Agent with the conversation environment context (Discord Channel + Discord DM)
  • Extract Message ID and add the id to the local message
  • Add a Discord Component Action, "discordMessageReferenceReply" to be used when the Agent thinks it should reply back to the user with a specific message reference.
  • "discordMessageReferenceReply" is described to be strictly used within the Discord Channel/DM Scene environment to ensure the action would not be opted for in environments where either no Scene is provided or the Scene is not a Discord Environment
  • The action formats the "say" message specifically to the discord's message.reply structure, .send() function can take formatted inputs as current used in for "reply"/"embed" message etc.
    format:
for replies:
{
  content: "message",
  reply: {
    messageReference
  } 
}

for embeds:
{
  content: "message",
  embeds: [{...}],
}

Tested Implementation with Syborg in the "bot-playground -> syborg" channel

image

Copy link

vercel bot commented Dec 12, 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 12, 2024 10:39am
upstreet.ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 10:39am

@AbdurrehmanSubhani AbdurrehmanSubhani marked this pull request as draft December 18, 2024 07:35
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