Skip to content

Feat(Group chat channels) #120

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

Yuujee
Copy link
Collaborator

@Yuujee Yuujee commented May 24, 2025

No description provided.

@Yuujee Yuujee linked an issue May 24, 2025 that may be closed by this pull request
Copy link
Member

@yiyiyi0817 yiyiyi0817 left a comment

Choose a reason for hiding this comment

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

Thanks @Yuujee, very high quality code and very import feature to OASIS! Leave some comments on the details.

In addition, it might be better if you can add pytest test for these action, for example, add a test similar to https://github.com/camel-ai/oasis/blob/main/test/infra/database/test_user_create_post.py. And add the these new ActionType in the https://github.com/camel-ai/oasis/blob/main/test/agent/test_action_docstring.py and https://github.com/camel-ai/oasis/blob/main/test/agent/test_twitter_user_agent_all_actions.py.

For document, maybe it will be good to add these action's description in https://github.com/camel-ai/oasis/blob/main/docs/key_modules/actions.mdx. And if you are not familiar with mintlify deploy, I can also help with it later.


async def main():
# NOTE: You need to deploy the vllm server first
vllm_model_1 = ModelFactory.create(
Copy link
Member

Choose a reason for hiding this comment

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

Maybe deepseek_model_1 is more accurate.

url="https://api.deepseek.com/v1",
api_key="ak",
)
vllm_model_2 = ModelFactory.create(
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

Comment on lines +64 to +72
env = oasis.make(
platform=oasis.DefaultPlatformType.TWITTER,
database_path=db_path,
agent_profile_path=(
"data/twitter_dataset/anonymous_topic_200_1h/False_Business_0.csv"
),
agent_models=models,
available_actions=available_actions,
)
Copy link
Member

Choose a reason for hiding this comment

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

The way to make the env and actions may need to be modified after the update, you can refer to https://github.com/camel-ai/oasis/blob/main/examples/twitter_simulation_openai.py

Comment on lines +652 to +661
"""
Creates a new group on the platform.

Args:
group_name (str): The name of the group to be created.

Returns:
dict: Platform response indicating success or failure,
e.g.{"success": True, "group_id": 1}
"""
Copy link
Member

Choose a reason for hiding this comment

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

For each docstring, it would be better to follow the Guideline for Writing Docstrings part in https://github.com/camel-ai/camel/blob/master/CONTRIBUTING.md

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.

[Feature Request] Supports Group Chat Channels for Agents
3 participants