(config: CharacterConfig)
| 368 | } |
| 369 | |
| 370 | export 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 | } |