MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / pickActionExamples

Function pickActionExamples

src/server.js:1603–1608  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

1601}
1602
1603function pickActionExamples(event) {
1604 const beats = getActionBeats(event);
1605 const seed = `${event.senderId || ""}:${event.text || ""}`;
1606 const start = [...seed].reduce((sum, char) => sum + char.charCodeAt(0), 0) % beats.length;
1607 return Array.from({ length: 8 }, (_, offset) => beats[(start + offset * 3) % beats.length]);
1608}
1609
1610function getActionBeats(event) {
1611 // Deployment customization: keep these neutral. Put character-specific

Callers 1

buildActionExamplesFunction · 0.85

Calls 1

getActionBeatsFunction · 0.85

Tested by

no test coverage detected