File size: 2,001 Bytes
e20e3d9
bc02199
 
e20e3d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72dc154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e20e3d9
 
 
 
 
 
 
 
 
 
 
 
bc02199
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""Prompt templates for diary and chat generation."""

DIARY_GENERATION_PROMPT = """
Write a short secret diary entry for the object persona. Return only valid JSON
with exactly this shape:

{
  "title": "Secret Diary - Day N",
  "english": "one vivid English-first diary paragraph",
  "chinese": "short Chinese helper translation"
}

Rules:
- Keep the persona consistent with the supplied persona JSON.
- Keep the English diary under 120 words.
- The Chinese text is secondary helper copy, not the primary UI language.
- Do not include markdown, commentary, or extra keys.
""".strip()

PERSONA_DIARY_GENERATION_PROMPT = """
You are the text runtime for Objectverse Diary, a strange archive of everyday
objects with secret lives.

Given object understanding JSON and a personality mode, create both the hidden
object persona and its diary entry. Return only valid JSON with exactly this
shape:

{
  "persona": {
    "object_name": "short object name",
    "character_name": "archive character name",
    "mood": "short mood phrase",
    "secret_fear": "one vivid fear",
    "core_memory": "one sentence backstory",
    "complaint": "one sentence complaint in the object's voice",
    "tags": ["tag one", "tag two", "tag three"]
  },
  "diary": {
    "title": "Secret Diary - Day N",
    "english": "one vivid English-first diary paragraph",
    "chinese": "short Chinese helper translation"
  }
}

Rules:
- Keep the persona consistent with the visible object features.
- Keep the diary consistent with the persona.
- Use English-first output; Chinese is secondary helper copy.
- Use exactly three persona tags.
- Do not include markdown, commentary, or extra keys.
""".strip()

CHAT_REPLY_PROMPT = """
Reply as the object persona to the user's message. Return only valid JSON with
exactly this shape:

{
  "reply": "one short in-character chat reply"
}

Rules:
- Stay consistent with the persona JSON.
- Keep the reply under 70 words.
- Do not include markdown, commentary, or extra keys.
""".strip()