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

listen to conversation agent additions in chat #805

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

Conversation

AbdurrehmanSubhani
Copy link
Contributor

No description provided.

Copy link

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

});

const agentSpecs = agents
.filter(mapAgent => mapAgent.playerId !== agent.id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want the current agent in this list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current agent is being added via the currentAgentSpec + formatAgent inside the Prompt component, agentSpecs mapped out for "Other Characters" hence need to exclude the current agent

@@ -111,9 +111,11 @@ export class ConversationObject extends EventTarget {
}
addAgent(agentId: string, player: Player) {
this.agentsMap.set(agentId, player);
this.dispatchEvent(new Event('addAgent'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend rename to 'agentschange'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

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