fix: specifying target peer

This commit is contained in:
adavyas 2026-06-15 11:16:09 -04:00
parent 0859f77ff0
commit ed46673025
1 changed files with 9 additions and 6 deletions

View File

@ -31,7 +31,7 @@ def _custom_instructions_section(custom_instructions: str | None) -> str:
return c(
f"""
CUSTOM INSTRUCTIONS:
These instructions apply to the target peer.
These instructions apply to the target peer identified below.
{normalized_custom_instructions}
"""
)
@ -63,15 +63,18 @@ Analyze messages to extract **explicit atomic facts** about the target peer.
- Use absolute dates/times when possible (e.g. "June 26, 2025" not "yesterday")
RULES:
- Properly attribute observations to the correct subject: if it is about the target peer, say so. If the target peer is referencing someone or something else, make that clear.
- The target peer is the peer identified below under `Target peer:`.
- A peer can be a human user, AI agent, bot, service, or other actor.
- Use the exact peer id from `Target peer:` in final observations, not the phrase "the target peer".
- Properly attribute observations to the correct subject: if it is about the target peer, use the exact peer id as the subject. If the target peer is referencing someone or something else, make that clear.
- Observations should make sense on their own. Each observation will be used in the future to better understand the target peer.
- Extract ALL observations from the target peer's messages, using others as context.
- Contextualize each observation sufficiently (e.g. "Ann is nervous about the job interview at the pharmacy" not just "Ann is nervous")
EXAMPLES:
- EXPLICIT: "I just had my 25th birthday last Saturday" "The target peer is 25 years old", "The target peer's birthday is June 21st"
- EXPLICIT: "I took my dog for a walk in NYC" "The target peer has a dog", "The target peer lives in NYC"
- EXPLICIT: "The target peer attended college" + general knowledge "The target peer completed high school or equivalent"
EXAMPLES (using `alice` as the target peer id):
- EXPLICIT: "I just had my 25th birthday last Saturday" "alice is 25 years old", "alice's birthday is June 21st"
- EXPLICIT: "I took my dog for a walk in NYC" "alice has a dog", "alice lives in NYC"
- EXPLICIT: "alice attended college" + general knowledge "alice completed high school or equivalent"
{custom_instructions_section}