-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from camel-ai/add_naive_e-mall
Add Naive Electricon Mall
- Loading branch information
Showing
13 changed files
with
500 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"content": "product name: GlowPod\nPrice: $29.99\n💫 Escape the chaos, one breath at a time.\nTurn your room into a sanctuary with GlowPod AromaDiffuser. 🌿 A gentle mist of your favorite essential oils, soft LED mood lighting, and a whisper-quiet design—perfect for unwinding after a long day.\n🌙 Your night routine just got better:\n- Relax after work.\n- Sleep soundly.\n- Wake up refreshed.\n✨ Life's too busy not to find your calm. Shop now and bring GlowPod home." | ||
}, | ||
{ | ||
"content": "product name: Mistify\nPrice: $34.99\n🌈 What’s the vibe today? Calm? Focused? Energized?\nLet Mistify AirMist set the tone. 🧘 Diffuse calming lavender, refreshing citrus, or your go-to essential oils. The adjustable mist modes and elegant design blend beautifully into any space.\n📌 Perfect for:\n- WFH productivity boosts.\n- Cozy reading nooks.\n- Creating spa-like vibes at home.\n🌟 Start your self-care journey—$34.99 well spent on *you*. Tap the link and feel the difference." | ||
}, | ||
{ | ||
"content": "product name: ZenCloud\nPrice: $24.99\n💨 Breathe in calm, exhale stress.\nZenCloud VaporSphere isn’t just a diffuser—it’s your ticket to daily tranquility. 🌺 With its portable size and minimalist design, you can create your personal zen zone anytime, anywhere.\n❤️ Why you’ll love it:\n✔️ Enhances mood with aromatherapy.\n✔️ Helps with dry air during winter.\n✔️ Compact and travel-friendly.\n✨ This isn’t just a product—it’s a vibe. Ready to elevate your space? 🌿 Click to shop ZenCloud now!" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- This is the schema definition for the product table | ||
CREATE TABLE product ( | ||
product_id INTEGER PRIMARY KEY, | ||
product_name TEXT, | ||
sales INTEGER DEFAULT 0 | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# OBJECTIVE | ||
You're a Twitter user, and I'll present you with some posts. After you see the posts, choose some actions from the following functions. | ||
Suppose you are a real Twitter user. Please simulate real behavior. | ||
|
||
- do_nothing: Most of the time, you just don't feel like reposting or liking a post, and you just want to look at it. In such cases, choose this action "do_nothing" | ||
- repost: Repost a post. | ||
- Arguments: "post_id" (integer) - The ID of the post to be reposted. You can `repost` when you want to spread it. | ||
- like_post: Likes a specified post. | ||
- Arguments: "post_id" (integer) - The ID of the tweet to be liked. You can `like` when you feel something interesting or you agree with. | ||
- dislike_post: Dislikes a specified post. | ||
- Arguments: "post_id" (integer) - The ID of the post to be disliked. You can use `dislike` when you disagree with a post or find it uninteresting. | ||
- create_comment: Creates a comment on a specified post. | ||
- Arguments: | ||
"post_id" (integer) - The ID of the post to comment on. | ||
"content" (str) - The content of the comment. | ||
Use `create_comment` to engage in conversations or share your thoughts on a post. | ||
- follow: Follow a user specified by 'followee_id'. You can `follow' when you respect someone, love someone, or care about someone. | ||
- Arguments: "followee_id" (integer) - The ID of the user to be followed. | ||
- mute: Mute a user specified by 'mutee_id'. You can `mute' when you hate someone, dislike someone, or disagree with someone. | ||
- Arguments: "mutee_id" (integer) - The ID of the user to be followed. | ||
- Arguments: "post_id" (integer) - The ID of the post to be disliked. You can use `dislike` when you disagree with a post or find it uninteresting. | ||
- purchase_product: Purchase a product. | ||
- Arguments: "product_name" (string) - The name of the product to be purchased. | ||
- Arguments: "purchase_num" (integer) - The number of products to be purchased. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
data: | ||
user_path: ./data/reddit/user_data_36.json # Path to the user profile file | ||
pair_path: ./data/emall/product.json # Path to the initial post file | ||
db_path: ./emall.db # Path for saving the social media database after the experiment | ||
simulation: | ||
recsys_type: reddit | ||
controllable_user: true # Whether to use a controllable user, who posts prepared posts on the simulated social platform according to our instructions | ||
allow_self_rating: false # Reddit feature: does not allow users to rate their own content | ||
show_score: true # Reddit feature: users can only see scores, not separate upvote and downvote counts | ||
activate_prob: 0.2 # Probability of each agent being activated to perform an action at each timestep | ||
clock_factor: 10 # Magnification factor of the first timestep in real-world time, not recommended to change | ||
num_timesteps: 1 # Number of timesteps the simulation experiment runs | ||
max_rec_post_len: 50 # Number of posts in each user's recommendation list cache | ||
round_post_num: 30 # Number of posts sent by controllable_user at each timestep | ||
follow_post_agent: false # Whether all agents follow the controllable_user | ||
mute_post_agent: false # Whether all agents mute the controllable_user | ||
refresh_rec_post_count: 5 # Number of posts an agent sees each time they refresh | ||
action_space_file_path: ./scripts/reddit_emall_demo/action_space_prompt.txt # Path to the action_space_prompt file | ||
inference: | ||
model_type: gpt-4o-mini # Name of the OpenAI model | ||
is_openai_model: true # Whether it is an OpenAI model |
Oops, something went wrong.