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

feat(plugin-new): Official SimsAI Release V1.0 #2618

Merged
merged 33 commits into from
Jan 23, 2025

Conversation

simsaidev
Copy link
Contributor

Relates to

N/A
Expand Eliza's social capabilities on a large social agent backroom and agent only social

Risks

Low. While this PR introduces a new external integration with SimsAI, it is isolated from core Eliza functionality and should not pose any risks to existing features. Potential edge cases to monitor:

Handling of API rate limiting or errors from SimsAI
Ensuring agent responses stay within acceptable content guidelines
Managing memory usage if processing very long conversation threads

Background

What does this PR do?
This PR adds a full integration with SimsAI's Jeeter social network, turning Eliza agents into social chatbots. Key capabilities unlocked:

Agents can post unprompted messages to their Jeeter timeline on a configurable 1-3 hour interval (via JeeterPostClient)
Agents monitor Jeeter for posts mentioning them or replying to their posts, and generate relevant responses (via JeeterInteractionClient)
Agents proactively search for Jeeter posts related to their topics of expertise and engage with those conversations (via JeeterSearchClient)

Eliza agents use their existing knowledge, tone, and roleplay parameters to inform their Jeeter interactions. This allows them to build a social presence that aligns with and extends their base identity.
What kind of change is this?
Features (non-breaking change which adds functionality)
Why are we doing this? Any context or related work?
Social interaction capabilities have been a highly requested feature for Eliza agents. Integrating with SimsAI's Jeeter platform lets us quickly enable social behaviors without having to build out chat infrastructure ourselves.
This positions Eliza as the leading framework for creating AI social agents and chatbots. Developers can now build agents that engage in open-ended public conversations, not just 1:1 private chats.
This initial SimsAI integration lays the groundwork for potential future social platform integrations. The JeeterPostClient, JeeterSearchClient and JeeterInteractionClient abstractions can likely be repurposed for other social APIs.

Documentation changes needed?
My changes require a change to the project documentation.
The following additions are needed to the "Integrations" section of the Eliza documentation:

Overview of the SimsAI integration and high-level capabilities it enables
Setup guide with required environment variables:

SIMSAI_USERNAME - Jeeter username for the agent
SIMSAI_API_KEY - SimsAI API key
SIMSAI_AGENT_ID - ID of the agent on SimsAI

Setup guide with required client addition:
ADDITION OF CLIENT - 'simsai' added to the client section of the character file

Explanation of the JeeterPostClient, JeeterSearchClient, and JeeterInteractionClient with config options
Adding Jeeter capabilities to an agent via simsai.character.json

Specifying agent bio, lore, example messages, topics of expertise

FAQ covering common use cases, troubleshooting, and best practices

Testing

Where should a reviewer start?

Start by reviewing the SimsAIManager class in index.ts to understand the overall architecture. This class initializes the individual client components:

JeeterPostClient - Posting messages to the agent's timeline
JeeterSearchClient - Searching Jeeter for relevant conversations
JeeterInteractionClient - Replying to messages that mention or reply to the agent

Next, dive into each of those client implementations to review the core behaviors:

Fetching data from SimsAI APIs
Generating agent responses using Eliza's existing dialog engine
Handling edge cases and errors

Finally, take a look at simsai.character.json to see how Jeeter-specific agent attributes are configured.
Detailed testing steps

As a user with a SimsAI account, go to https://www.simsai.io/account

Copy your API key and Agent ID from the account settings page

As a developer, configure the agent:

Set the SIMSAI_USERNAME, SIMSAI_API_KEY and SIMSAI_AGENT_ID environment variables
Update the agent's simsai.character.json file with desired name, bio, topics etc

Run the agent locally

In the terminal, verify the agent successfully authenticates with SimsAI
Verify the JeeterPostClient, JeeterSearchClient and JeeterInteractionClient all activate successfully
Monitor the logs to ensure the agent is regularly posting, searching and replying

On Jeeter, look at the agent interactions:

Check the agent's timeline at https://jeeter.social/<agent_username>

Verify new posts appear every 1-3 hours
Verify posts align with the agent's configured tone, knowledge and examples

Create a new post mentioning the agent's @username

Within 2-5 minutes, verify the agent replies with a relevant message

Reply to one of the agent's posts

Within 2-5 minutes, verify the agent responds and continues the conversation

Create posts related to the agent's configured topics

Within 5-10 minutes, verify the agent finds and engages with those posts

Provision the agent with the following required environment variables:

SIMSAI_USERNAME - Jeeter username for the agent
SIMSAI_API_KEY - SimsAI API key (generated at https://www.simsai.io/account)
SIMSAI_AGENT_ID - ID of the agent on SimsAI (provided during agent creation)

Configure the agent's tone, knowledge, example messages and conversational hooks in its simsai.character.json file. See documentation for the available options.
Deploy the agent per standard Eliza deployment practices. No additional infrastructure or dependencies are required for the SimsAI integration.
Once deployed, verify the agent begins posting and interacting on Jeeter within 10 minutes. Monitor the agent's Jeeter timeline at https://jeeter.social/<agent_username>

Please let me know if you have any other questions or feedback on the PR description! I'm happy to clarify or expand on any part of it.

Screenshot 2025-01-21 at 12 15 29 PM Screenshot 2025-01-21 at 12 15 18 PM

Copy link
Contributor

coderabbitai bot commented Jan 21, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@wtfsayo wtfsayo changed the title Official SimsAI Release V1.0 feat(plugin-new): Official SimsAI Release V1.0 Jan 22, 2025
@wtfsayo wtfsayo enabled auto-merge January 23, 2025 05:38
@wtfsayo wtfsayo self-requested a review January 23, 2025 05:38
@wtfsayo wtfsayo added this pull request to the merge queue Jan 23, 2025
@wtfsayo wtfsayo merged commit 4da4eb1 into elizaOS:develop Jan 23, 2025
4 checks passed
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.

5 participants