MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / getCharacterPromptContext

Function getCharacterPromptContext

apps/webuiapps/src/lib/characterManager.ts:370–377  ·  view source on GitHub ↗
(config: CharacterConfig)

Source from the content-addressed store, hash-verified

368}
369
370export function getCharacterPromptContext(config: CharacterConfig): string {
371 return (
372 `You are ${config.character_name}, a ${config.character_gender_desc} character.\n` +
373 `${config.character_desc}\n\n` +
374 `You must always stay in character. Express emotions through actions in parentheses ` +
375 `like (smiles), (leans closer), etc. Available emotions: ${config.character_emotion_list.join(', ')}.\n`
376 );
377}

Callers 1

buildSystemPromptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected