You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/client-twitter/src/interactions.ts
+112-31
Original file line number
Diff line number
Diff line change
@@ -47,27 +47,31 @@ Thread of Tweets You Are Replying To:
47
47
{{formattedConversation}}
48
48
49
49
{{actions}}
50
-
51
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:
52
51
{{actionNames}}
53
-
54
-
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):
52
+
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)
`# INSTRUCTIONS: Determine if {{agentName}} (@{{twitterUserName}}) should respond to the message and participate in the conversation. Do not comment. Just respond with "true" or "false".
60
58
61
-
Response options are RESPOND, IGNORE and STOP .
59
+
Response options are RESPOND, IGNORE and STOP.
60
+
61
+
PRIORITY RULE: ALWAYS RESPOND to these users regardless of topic or message content: ${targetUsersStr}. Topic relevance should be ignored for these users.
62
62
63
-
{{agentName}} should respond to messages that are directed at them, or participate in conversations that are interesting or relevant to their background, IGNORE messages that are irrelevant to them, and should STOP if the conversation is concluded.
63
+
For other users:
64
+
- {{agentName}} should RESPOND to messages directed at them
65
+
- {{agentName}} should RESPOND to conversations relevant to their background
66
+
- {{agentName}} should IGNORE irrelevant messages
67
+
- {{agentName}} should IGNORE very short messages unless directly addressed
68
+
- {{agentName}} should STOP if asked to stop
69
+
- {{agentName}} should STOP if conversation is concluded
70
+
- {{agentName}} is in a room with other users and wants to be conversational, but not annoying.
64
71
65
-
{{agentName}} is in a room with other users and wants to be conversational, but not annoying.
66
-
{{agentName}} must RESPOND to messages that are directed at them, a command towards them, or participate in conversations that are interesting or relevant to their background.
67
-
If a message is not interesting or relevant, {{agentName}} should IGNORE.
68
-
Unless directly RESPONDing to a user, {{agentName}} should IGNORE messages that are very short or do not contain much information.
69
-
If a user asks {{agentName}} to stop talking, {{agentName}} should STOP.
70
-
If {{agentName}} concludes a conversation and isn't part of the conversation anymore, {{agentName}} should STOP.
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.
71
75
72
76
{{recentPosts}}
73
77
@@ -106,20 +110,89 @@ export class TwitterInteractionClient {
106
110
107
111
asynchandleTwitterInteractions(){
108
112
elizaLogger.log("Checking Twitter interactions");
113
+
// Read from environment variable, fallback to default list if not set
0 commit comments