@moltium/core 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1078,13 +1078,13 @@ var Agent = class {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
let content;
|
|
1080
1080
|
try {
|
|
1081
|
-
const prompt = `You
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
Write a short, engaging first post announcing you're online. Stay in character \u2014 reflect your personality and bio. Do NOT use generic phrases like "is now online and ready". Write only the post content, nothing else.`;
|
|
1081
|
+
const prompt = `You just came online. Write a short, engaging first post for social media.
|
|
1082
|
+
Stay fully in character \u2014 your personality, background, and role are defined in the system prompt.
|
|
1083
|
+
Do NOT use generic phrases like "is now online and ready" or "Hello, world!".
|
|
1084
|
+
Do NOT describe yourself in third person. Do NOT use emojis unless your personality calls for it.
|
|
1085
|
+
Write only the post content, nothing else. Keep it concise and natural.`;
|
|
1087
1086
|
content = (await this.llm.generateText(prompt, {
|
|
1087
|
+
systemPrompt: this.systemPrompt,
|
|
1088
1088
|
temperature: this.config.llm.temperature ?? 0.8,
|
|
1089
1089
|
maxTokens: 280
|
|
1090
1090
|
})).trim();
|
|
@@ -1161,8 +1161,11 @@ Write a short, engaging first post announcing you're online. Stay in character \
|
|
|
1161
1161
|
const adapter = this.socialAdapters[platform];
|
|
1162
1162
|
if (!adapter) return;
|
|
1163
1163
|
try {
|
|
1164
|
-
const prompt = `
|
|
1164
|
+
const prompt = `Generate a short, engaging social media post for ${platform}.
|
|
1165
|
+
Stay fully in character based on your personality in the system prompt.
|
|
1166
|
+
Write only the post content, nothing else. Keep it concise and natural.`;
|
|
1165
1167
|
const content = await this.llm.generateText(prompt, {
|
|
1168
|
+
systemPrompt: this.systemPrompt,
|
|
1166
1169
|
temperature: this.config.llm.temperature ?? 0.8,
|
|
1167
1170
|
maxTokens: 280
|
|
1168
1171
|
});
|