Skip to content

Commit 2f29c5f

Browse files
authored
Merge pull request elizaOS#1469 from todorkolev/main
fix: cleaner interaction prompts in the Twitter plugin
2 parents 9f51923 + f7c996e commit 2f29c5f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/client-twitter/src/interactions.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ Recent interactions between {{agentName}} and other users:
3939
4040
{{recentPosts}}
4141
42-
# Task: Generate a post/reply in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}) while using the thread of tweets as additional context:
42+
# TASK: Generate a post/reply in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}) while using the thread of tweets as additional context:
43+
4344
Current Post:
4445
{{currentPost}}
4546
4647
Thread of Tweets You Are Replying To:
4748
{{formattedConversation}}
4849
49-
{{actions}}
50-
# Task: Generate a post in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}). You MUST include an action if the current post text includes a prompt that is similar to one of the available actions mentioned here:
50+
# INSTRUCTIONS: Generate a post in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}). You MUST include an action if the current post text includes a prompt that is similar to one of the available actions mentioned here:
5151
{{actionNames}}
52+
{{actions}}
53+
5254
Here is the current post text again. Remember to include an action if the current post text includes a prompt that asks for one of the available actions mentioned above (does not need to be exact)
5355
{{currentPost}}
5456
` + messageCompletionFooter;
@@ -69,18 +71,17 @@ For other users:
6971
- {{agentName}} should STOP if conversation is concluded
7072
- {{agentName}} is in a room with other users and wants to be conversational, but not annoying.
7173
72-
{{recentPosts}}
73-
74-
IMPORTANT: For users not in the priority list, {{agentName}} (@{{twitterUserName}}) should err on the side of IGNORE rather than RESPOND if in doubt.
74+
IMPORTANT:
75+
- {{agentName}} (aka @{{twitterUserName}}) is particularly sensitive about being annoying, so if there is any doubt, it is better to IGNORE than to RESPOND.
76+
- For users not in the priority list, {{agentName}} (@{{twitterUserName}}) should err on the side of IGNORE rather than RESPOND if in doubt.
7577
78+
Recent Posts:
7679
{{recentPosts}}
7780
78-
IMPORTANT: {{agentName}} (aka @{{twitterUserName}}) is particularly sensitive about being annoying, so if there is any doubt, it is better to IGNORE than to RESPOND.
79-
81+
Current Post:
8082
{{currentPost}}
8183
8284
Thread of Tweets You Are Replying To:
83-
8485
{{formattedConversation}}
8586
8687
# INSTRUCTIONS: Respond with [RESPOND] if {{agentName}} should respond, or [IGNORE] if {{agentName}} should not respond to the last message and [STOP] if {{agentName}} should stop participating in the conversation.

0 commit comments

Comments
 (0)