Skip to main content

SocialAgent class

A Social Agent in OASIS is an LLM-based social media user, inherited from CAMEL’s ChatAgent. It can perform actions on social media (e.g., posting), use external tools (such as Google Search), and has features like user information and a memory module. When initializing a SocialAgent, you can configure the following core parameters: For more details on the model and the tools parameter, see Models Module and Toolkits Module.

UserInfo class

A dataclass containing the agent’s user registration info. Fields like user_name, name, and description must not be empty. The profile field is a dictionary whose keys must match those specified in user_info_template.
  • Example of a user_info_template and corresponding UserInfo.profile class:

Default User Info Template

Twitter Style Template

Reddit Style Template