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/post.ts
+14-9
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,23 @@ const twitterPostTemplate = `
28
28
29
29
# Task: Generate a post in the voice and style and perspective of {{agentName}} @{{twitterUserName}}.
30
30
Write a 1-3 sentence 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.
31
-
Your response should not contain any questions. Brief, concise statements only. The total character count MUST be less than 280. No emojis. Use \\n\\n (double spaces) between statements.`;
32
-
33
-
constMAX_TWEET_LENGTH=280;
31
+
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.`;
34
32
35
33
/**
36
34
* Truncate text to fit within the Twitter character limit, ensuring it ends at a complete sentence.
0 commit comments