@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.js
CHANGED
|
@@ -1138,13 +1138,13 @@ var Agent = class {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
let content;
|
|
1140
1140
|
try {
|
|
1141
|
-
const prompt = `You
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
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.`;
|
|
1141
|
+
const prompt = `You just came online. Write a short, engaging first post for social media.
|
|
1142
|
+
Stay fully in character \u2014 your personality, background, and role are defined in the system prompt.
|
|
1143
|
+
Do NOT use generic phrases like "is now online and ready" or "Hello, world!".
|
|
1144
|
+
Do NOT describe yourself in third person. Do NOT use emojis unless your personality calls for it.
|
|
1145
|
+
Write only the post content, nothing else. Keep it concise and natural.`;
|
|
1147
1146
|
content = (await this.llm.generateText(prompt, {
|
|
1147
|
+
systemPrompt: this.systemPrompt,
|
|
1148
1148
|
temperature: this.config.llm.temperature ?? 0.8,
|
|
1149
1149
|
maxTokens: 280
|
|
1150
1150
|
})).trim();
|
|
@@ -1221,8 +1221,11 @@ Write a short, engaging first post announcing you're online. Stay in character \
|
|
|
1221
1221
|
const adapter = this.socialAdapters[platform];
|
|
1222
1222
|
if (!adapter) return;
|
|
1223
1223
|
try {
|
|
1224
|
-
const prompt = `
|
|
1224
|
+
const prompt = `Generate a short, engaging social media post for ${platform}.
|
|
1225
|
+
Stay fully in character based on your personality in the system prompt.
|
|
1226
|
+
Write only the post content, nothing else. Keep it concise and natural.`;
|
|
1225
1227
|
const content = await this.llm.generateText(prompt, {
|
|
1228
|
+
systemPrompt: this.systemPrompt,
|
|
1226
1229
|
temperature: this.config.llm.temperature ?? 0.8,
|
|
1227
1230
|
maxTokens: 280
|
|
1228
1231
|
});
|