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
@@ -53,7 +53,7 @@ Thread of Tweets You Are Replying To:
53
53
{{formattedConversation}}
54
54
55
55
{{actions}}
56
-
# 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:
56
+
# Task: Generate a post in the voice, style and perspective of {{agentName}} (@{{twitterUserName}}), check'Thread of Tweets You Are Replying To' to avoid repeating yourself. You MUST include an action if the current post text includes a prompt that is similar to one of the available actions mentioned here:
57
57
{{actionNames}}
58
58
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)
Copy file name to clipboardexpand all lines: packages/client-twitter/src/post.ts
+5-6
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ import { DEFAULT_MAX_TWEET_LENGTH } from "./environment.ts";
20
20
// {{bio}}
21
21
// {{lore}}
22
22
// {{topics}}
23
-
/*
23
+
24
24
consttwitterPostTemplate=`
25
25
# Areas of Expertise
26
26
{{interact}}
@@ -40,10 +40,9 @@ const twitterPostTemplate = `
40
40
Write a post that is {{adjective}} about {{topic}} (without mentioning {{topic}} directly), from the perspective of {{agentName}}. Do not add commentary or acknowledge this request, just write the post.
41
41
Your response should be 1, 2, or 3 sentences (choose the length at random).
42
42
Your response should not contain any questions. Brief, concise statements only. The total character count MUST be less than {{maxTweetLength}}. No emojis. Use \\n\\n (double spaces) between statements if there are multiple statements in your response.`;
43
-
*/
44
-
consttwitterPostTemplate=`
45
-
46
43
44
+
/*
45
+
const twitterPostTemplate = `
47
46
# About {{agentName}} (@{{twitterUserName}}):
48
47
{{bio}}
49
48
{{lore}}
@@ -64,7 +63,7 @@ Recent interactions and thoughts:
64
63
3. Makes a chaotic observation about Zaun/Piltover/recent events
65
64
66
65
Your response should maintain {{agentName}}'s personality and authenticity. Make the post engaging and interesting or funny so people react to it. Do not add commentary or acknowledge this request, just write the post.
67
-
The total character count MUST be less than {{maxTweetLength}}.`;
66
+
The total character count MUST be less than {{maxTweetLength}}.`;*/
68
67
exportconsttwitterActionTemplate=
69
68
//{{postDirections}}
70
69
`
@@ -523,7 +522,7 @@ export class TwitterPostClient {
523
522
this.runtime.character.name,
524
523
"twitter"
525
524
);
526
-
// this is testing code ####################################
525
+
527
526
lettweets=[];
528
527
// Check if we're in test mode with a specific tweet
0 commit comments