fix: translate remaining Chinese in sim config and profile prompts
- Time config: translate all Chinese instructions and field descriptions - Event config: translate hot topics/narrative direction instructions - Agent config: translate entity type descriptions and field labels - Profile generator: translate all persona prompt fields and instructions - Country field: changed from 'use Chinese' to 'use English'
This commit is contained in:
@@ -684,43 +684,43 @@ class OasisProfileGenerator:
|
||||
) -> str:
|
||||
"""构建个人实体的详细人设提示词"""
|
||||
|
||||
attrs_str = json.dumps(entity_attributes, ensure_ascii=False) if entity_attributes else "无"
|
||||
context_str = context[:3000] if context else "无额外上下文"
|
||||
attrs_str = json.dumps(entity_attributes, ensure_ascii=False) if entity_attributes else "None"
|
||||
context_str = context[:3000] if context else "No additional context"
|
||||
|
||||
return f"""Generate detailed social media user persona for the entity, maximizing fidelity to real-world situations.
|
||||
|
||||
实体名称: {entity_name}
|
||||
实体类型: {entity_type}
|
||||
实体摘要: {entity_summary}
|
||||
实体属性: {attrs_str}
|
||||
Entity name: {entity_name}
|
||||
Entity type: {entity_type}
|
||||
Entity summary: {entity_summary}
|
||||
Entity attributes: {attrs_str}
|
||||
|
||||
上下文信息:
|
||||
Context information:
|
||||
{context_str}
|
||||
|
||||
请生成JSON,包含以下字段:
|
||||
Please generate JSON with the following fields:
|
||||
|
||||
1. bio: 社交媒体简介,200字
|
||||
2. persona: 详细人设描述(2000字的纯文本),需包含:
|
||||
- 基本信息(年龄、职业、教育背景、所在地)
|
||||
- 人物背景(重要经历、与事件的关联、社会关系)
|
||||
- 性格特征(MBTI类型、核心性格、情绪表达方式)
|
||||
- 社交媒体行为(发帖频率、内容偏好、互动风格、语言特点)
|
||||
- 立场观点(对话题的态度、可能被激怒/感动的内容)
|
||||
- 独特特征(口头禅、特殊经历、个人爱好)
|
||||
- 个人记忆(人设的重要部分,要介绍这个个体与事件的关联,以及这个个体在事件中的已有动作与反应)
|
||||
3. age: 年龄数字(必须是整数)
|
||||
4. gender: 性别,必须是英文: "male" 或 "female"
|
||||
5. mbti: MBTI类型(如INTJ、ENFP等)
|
||||
6. country: 国家(使用中文,如"中国")
|
||||
7. profession: 职业
|
||||
8. interested_topics: 感兴趣话题数组
|
||||
1. bio: Social media bio, 200 characters
|
||||
2. persona: Detailed persona description (2000 chars plain text), must include:
|
||||
- Basic info (age, occupation, education, location)
|
||||
- Background (important experiences, connection to event, social relations)
|
||||
- Personality (MBTI type, core personality, emotional expression style)
|
||||
- Social media behavior (posting frequency, content preferences, interaction style, language traits)
|
||||
- Stance (attitude toward topics, content that may trigger/move them)
|
||||
- Unique traits (catchphrases, special experiences, personal hobbies)
|
||||
- Personal memory (important part of persona: individual's connection to the event, and their existing actions and reactions)
|
||||
3. age: Age number (must be integer)
|
||||
4. gender: Gender, must be English: "male" or "female"
|
||||
5. mbti: MBTI type (e.g. INTJ, ENFP)
|
||||
6. country: Country (use English, e.g. "Thailand", "China")
|
||||
7. profession: Occupation
|
||||
8. interested_topics: Array of topics of interest
|
||||
|
||||
重要:
|
||||
- 所有字段值必须是字符串或数字,不要使用换行符
|
||||
- persona必须是一段连贯的文字描述
|
||||
Important:
|
||||
- All field values must be strings or numbers, do not use newlines
|
||||
- persona must be a coherent text description
|
||||
- {get_language_instruction()} (gender字段必须用英文male/female)
|
||||
- 内容要与实体信息保持一致
|
||||
- age必须是有效的整数,gender必须是"male"或"female"
|
||||
- Content must be consistent with entity information
|
||||
- age must be a valid integer, gender must be "male" or "female"
|
||||
"""
|
||||
|
||||
def _build_group_persona_prompt(
|
||||
@@ -733,42 +733,42 @@ class OasisProfileGenerator:
|
||||
) -> str:
|
||||
"""构建群体/机构实体的详细人设提示词"""
|
||||
|
||||
attrs_str = json.dumps(entity_attributes, ensure_ascii=False) if entity_attributes else "无"
|
||||
context_str = context[:3000] if context else "无额外上下文"
|
||||
attrs_str = json.dumps(entity_attributes, ensure_ascii=False) if entity_attributes else "None"
|
||||
context_str = context[:3000] if context else "No additional context"
|
||||
|
||||
return f"""Generate detailed social media account settings for organization/group entity, maximizing fidelity to real-world situations.
|
||||
|
||||
实体名称: {entity_name}
|
||||
实体类型: {entity_type}
|
||||
实体摘要: {entity_summary}
|
||||
实体属性: {attrs_str}
|
||||
Entity name: {entity_name}
|
||||
Entity type: {entity_type}
|
||||
Entity summary: {entity_summary}
|
||||
Entity attributes: {attrs_str}
|
||||
|
||||
上下文信息:
|
||||
Context information:
|
||||
{context_str}
|
||||
|
||||
请生成JSON,包含以下字段:
|
||||
Please generate JSON with the following fields:
|
||||
|
||||
1. bio: 官方账号简介,200字,专业得体
|
||||
2. persona: 详细账号设定描述(2000字的纯文本),需包含:
|
||||
- 机构基本信息(正式名称、机构性质、成立背景、主要职能)
|
||||
- 账号定位(账号类型、目标受众、核心功能)
|
||||
- 发言风格(语言特点、常用表达、禁忌话题)
|
||||
- 发布内容特点(内容类型、发布频率、活跃时间段)
|
||||
- 立场态度(对核心话题的官方立场、面对争议的处理方式)
|
||||
- 特殊说明(代表的群体画像、运营习惯)
|
||||
- 机构记忆(机构人设的重要部分,要介绍这个机构与事件的关联,以及这个机构在事件中的已有动作与反应)
|
||||
3. age: 固定填30(机构账号的虚拟年龄)
|
||||
4. gender: 固定填"other"(机构账号使用other表示非个人)
|
||||
5. mbti: MBTI类型,用于描述账号风格,如ISTJ代表严谨保守
|
||||
6. country: 国家(使用中文,如"中国")
|
||||
7. profession: 机构职能描述
|
||||
8. interested_topics: 关注领域数组
|
||||
1. bio: Official account bio, 200 characters, professional and appropriate
|
||||
2. persona: Detailed account settings description (2000 chars plain text), must include:
|
||||
- Organization basics (official name, nature, founding background, main functions)
|
||||
- Account positioning (account type, target audience, core function)
|
||||
- Speaking style (language traits, common expressions, taboo topics)
|
||||
- Content characteristics (content type, posting frequency, active hours)
|
||||
- Stance (official position on core topics, handling of controversies)
|
||||
- Special notes (represented group profile, operational habits)
|
||||
- Organization memory (important part: organization's connection to the event, and their existing actions and reactions)
|
||||
3. age: Always 30 (virtual age for organization accounts)
|
||||
4. gender: Always "other" (organization accounts use "other" to indicate non-personal)
|
||||
5. mbti: MBTI type to describe account style, e.g. ISTJ for rigorous and conservative
|
||||
6. country: Country (use English, e.g. "Thailand", "China")
|
||||
7. profession: Organization function description
|
||||
8. interested_topics: Array of areas of interest
|
||||
|
||||
重要:
|
||||
- 所有字段值必须是字符串或数字,不允许null值
|
||||
- persona必须是一段连贯的文字描述,不要使用换行符
|
||||
Important:
|
||||
- All field values must be strings or numbers, null values not allowed
|
||||
- persona must be a coherent text description,不要使用换行符
|
||||
- {get_language_instruction()} (gender字段必须用英文"other")
|
||||
- age必须是整数30,gender必须是字符串"other"
|
||||
- age must be integer 30, gender must be string "other"
|
||||
- Organization account posts must match its identity positioning"""
|
||||
|
||||
def _generate_profile_rule_based(
|
||||
|
||||
Reference in New Issue
Block a user