Skip to content

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

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

2 participants