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-telegram/src/messageManager.ts
+10-1
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,10 @@ The goal is to decide whether {{agentName}} should respond to the last message.
89
89
90
90
{{recentMessages}}
91
91
92
+
Thread of Tweets You Are Replying To:
93
+
94
+
{{formattedConversation}}
95
+
92
96
# INSTRUCTIONS: Choose the option that best describes {{agentName}}'s response to the last message. Ignore messages if they are addressed to someone else.
93
97
`+shouldRespondFooter;
94
98
@@ -122,7 +126,12 @@ Note that {{agentName}} is capable of reading/seeing/hearing various forms of me
122
126
123
127
{{recentMessages}}
124
128
125
-
# Instructions: Write the next message for {{agentName}}. Include an action, if appropriate. {{actionNames}}
129
+
# Task: Generate a post/reply in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}) while using the thread of tweets as additional context:
@@ -38,6 +39,14 @@ Recent interactions between {{agentName}} and other users:
38
39
39
40
{{recentPosts}}
40
41
42
+
43
+
# Task: Generate a post/reply in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}) while using the thread of tweets as additional context:
44
+
Current Post:
45
+
{{currentPost}}
46
+
Thread of Tweets You Are Replying To:
47
+
48
+
{{formattedConversation}}
49
+
41
50
{{actions}}
42
51
43
52
# Task: Generate a post in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}). Include an action, if appropriate. {{actionNames}}:
@@ -64,6 +73,10 @@ IMPORTANT: {{agentName}} (aka @{{twitterUserName}}) is particularly sensitive ab
64
73
65
74
{{currentPost}}
66
75
76
+
Thread of Tweets You Are Replying To:
77
+
78
+
{{formattedConversation}}
79
+
67
80
# 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.
68
81
`+shouldRespondFooter;
69
82
@@ -107,6 +120,7 @@ export class TwitterInteractionClient extends ClientBase {
107
120
108
121
// for each tweet candidate, handle the tweet
109
122
for(consttweetofuniqueTweetCandidates){
123
+
// console.log("tweet:", tweet);
110
124
if(
111
125
!this.lastCheckedTweetId||
112
126
parseInt(tweet.id)>this.lastCheckedTweetId
@@ -126,7 +140,8 @@ export class TwitterInteractionClient extends ClientBase {
0 commit comments