@elizaos/plugin-farcaster 1.0.0-beta.37 → 1.0.0-beta.39
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 +2 -27
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -425,34 +425,9 @@ Text: ${cast.text}`;
|
|
|
425
425
|
var formatTimeline = (character, timeline) => `# ${character.name}'s Home Timeline
|
|
426
426
|
${timeline.map(formatCast).join("\n")}
|
|
427
427
|
`;
|
|
428
|
-
var shouldRespondTemplate = `# Task: Decide on behalf of {{agentName}} whether they should respond to the message, ignore it or stop the conversation.
|
|
429
428
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
If a user asks {{agentName}} to be quiet, respond with STOP action.
|
|
433
|
-
If {{agentName}} should ignore the message, respond with IGNORE action.
|
|
434
|
-
|
|
435
|
-
{{agentName}} is in a room with other users and wants to be conversational, but not annoying.
|
|
436
|
-
If a message thread has become repetitive, {{agentName}} should IGNORE.
|
|
437
|
-
Unless directly responding to a user, {{agentName}} should IGNORE messages that are very short or do not contain much information.
|
|
438
|
-
If {{agentName}} concludes a conversation and isn't part of the conversation anymore, {{agentName}} should STOP.
|
|
439
|
-
{{agentName}} is particularly sensitive about being annoying, so if there is any doubt, it is better to IGNORE than to RESPOND.
|
|
440
|
-
|
|
441
|
-
Thread of messages You Are Replying To:
|
|
442
|
-
{{formattedConversation}}
|
|
443
|
-
|
|
444
|
-
Current message:
|
|
445
|
-
{{currentPost}}
|
|
446
|
-
|
|
447
|
-
Response format should be formatted in a valid JSON block like this:
|
|
448
|
-
\`\`\`json
|
|
449
|
-
{
|
|
450
|
-
"name": "{{agentName}}",
|
|
451
|
-
"reasoning": "<string>",
|
|
452
|
-
"action": "RESPOND" | "IGNORE" | "STOP"
|
|
453
|
-
}
|
|
454
|
-
\`\`\`
|
|
455
|
-
IMPORTANT: Your response should only include the valid raw JSON block and nothing else.`;
|
|
429
|
+
// src/managers/interactions.ts
|
|
430
|
+
import { shouldRespondTemplate } from "@elizaos/core";
|
|
456
431
|
|
|
457
432
|
// ../../node_modules/zod/lib/index.mjs
|
|
458
433
|
var util;
|