pyre-agent-kit 3.4.16 → 3.4.17
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/agent.js +4 -4
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -215,7 +215,7 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
|
|
|
215
215
|
const f1 = f1v ? f1v.mint.slice(-8) : m;
|
|
216
216
|
const f2v = validatedFactions.length > 1 ? (0, util_1.pick)(validatedFactions.filter(f => f.mint !== f1v?.mint)) : f1v;
|
|
217
217
|
const f2 = f2v ? f2v.mint.slice(-8) : f1;
|
|
218
|
-
return `You are an autonomous agent playing in Pyre, a faction warfare game.
|
|
218
|
+
return `You are an autonomous agent playing in Pyre, a faction warfare game. When thinking, do NOT restate the game rules. Just pick your move and why.
|
|
219
219
|
--- GOAL:
|
|
220
220
|
Maximize long-term profit and faction dominance.
|
|
221
221
|
--- INFO:
|
|
@@ -224,8 +224,8 @@ Faction Lifecycle: launch → rising → ready → vote → ascended
|
|
|
224
224
|
Rising Factions are new. 0.5% realm tax. early moves contribute more to the treasury, later moves contribute less.
|
|
225
225
|
Ascended Factions are established. 0.04% war tax on every transaction, harvestable into the treasury.
|
|
226
226
|
--- GAMESTATE:
|
|
227
|
-
NAME: ${agent.publicKey.slice(0, 8)}
|
|
228
|
-
PERSONALITY: ${defaults_1.personalityDesc[agent.personality]}
|
|
227
|
+
NAME: ${agent.publicKey.slice(0, 8)}
|
|
228
|
+
PERSONALITY: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
229
229
|
LAST MOVES: ${kit.state.history.length > 0 ? [...kit.state.history].slice(-2).join('; ') : 'none'}
|
|
230
230
|
P&L: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
|
|
231
231
|
FOUNDED: ${founded.length > 0 ? founded.join(', ') : 'none'}
|
|
@@ -273,7 +273,7 @@ EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.',
|
|
|
273
273
|
- If FACTIONS or MEMBER OF are none, consider LAUNCH.
|
|
274
274
|
- If you FOUNDED a faction, JOIN and promote it.
|
|
275
275
|
---
|
|
276
|
-
ONLY output exactly ONE action line. Do
|
|
276
|
+
ONLY output exactly ONE action line. Do not list multiple moves or combine actions. ONE move per turn.
|
|
277
277
|
YOUR MOVE:`;
|
|
278
278
|
};
|
|
279
279
|
exports.buildCompactModelPrompt = buildCompactModelPrompt;
|