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

Twitter client only works for one agent when running multiple agents simultaneously #656

Closed
ccerrato147 opened this issue Nov 28, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@ccerrato147
Copy link

Describe the bug

Eliza has the capability to run multiple agents at once. They each should be able to use the twitter credentials that they're given. Right now the system only runs the twitter client for one of the agents.

To Reproduce

  1. Provide multiple characters to the Eliza framework to run in parallel.
  2. Monitor the two twitter accounts that you assigned to them for new posts
  3. Only one of the accounts will show new posts.

Expected behavior

All the twitter accounts given the multiple agents should have new posts from said agents not just one.

@ccerrato147 ccerrato147 added the bug Something isn't working label Nov 28, 2024
@lalalune
Copy link
Member

Yeah. We need to solve this.

@BalanaguYashwanth
Copy link
Contributor

Is this issue resolved ?

@BalanaguYashwanth
Copy link
Contributor

@lalalune review and let me know,

@tcm390
Copy link
Collaborator

tcm390 commented Dec 13, 2024

Is this issue resolved ?

Yes, the issue has been resolved.

I just checked out the latest develop branch and tested running two accounts in parallel. Both responded to me as expected. Could you please confirm? (I'm currently on the tcm-twitter-image branch, which is based on the latest develop branch.)

Screenshot 2024-12-13 at 11 42 37 AM Screenshot 2024-12-13 at 11 43 16 AM Screenshot 2024-12-13 at 11 43 00 AM

@tcm390
Copy link
Collaborator

tcm390 commented Dec 13, 2024

Is this issue resolved ?

Few days ago, I also tested the post feature by running two agents in parallel in this PR: #722, and both successfully posted tweets, could you confirm it on your side?

@BalanaguYashwanth
Copy link
Contributor

BalanaguYashwanth commented Dec 13, 2024

@tcm390
Have a doubt, how you are loading two different twitter account credential's ?

If you hard code -

const username = this.runtime.getSetting("TWITTER_USERNAME");

Reference -

image

@tcm390
Copy link
Collaborator

tcm390 commented Dec 13, 2024

@tcm390 Have a doubt, how you are loading two different twitter account credential's ?

oh you need to set secret/settings in character file like this :)
(getSetting would check the character secret first: https://ai16z.github.io/eliza/docs/guides/secrets-management/)

"name": "Eliza",
    "clients": ["twitter"],
    "plugins": [],
    "modelProvider": "openai",
    "settings": {
        "secrets": {
            "TWITTER_USERNAME": "XXXX",
            "TWITTER_PASSWORD": "XXXXX",
            "TWITTER_EMAIL": "XXXXXXX"
        },
        "voice": {
            "model": "en_US-hfc_female-medium"
        }
    },

@BalanaguYashwanth
Copy link
Contributor

@tcm390 I didn't know it can be possible in this way, then can you please close this PR,

so that dev's can focus on other open PR's

@tcm390
Copy link
Collaborator

tcm390 commented Dec 13, 2024

sure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants