Function: renderPersonalityDirectives()
renderPersonalityDirectives(
traits,options?):PersonalityDirective[]
Defined in: packages/agentos/src/cognition/substrate/personas/personalityPrompt.ts:190
The directive each HEXACO trait renders, one entry per trait in the order honesty, emotionality, extraversion,
agreeableness, conscientiousness, openness: a trait in the high band (above 0.65) or the low band (below 0.35) gives
its directive, a moderate trait gives null. These are the lines renderPersonalitySection puts under its
heading, so a host that shows the line a trait value gives beside the trait's control shows what the agent is sent.
Trait keys are normalized first, so the SOUL.md spelling honestyHumility reads as honesty, and a trait left out
reads as 0.5. The writing register's grounding directive belongs to no trait and is not among the entries.
Parameters
traits
unknown
A trait map under any accepted spelling; anything else gives six null lines.
options?
The bands to render in place of the values' and the register.
Returns
Six entries, one per trait.
Example
import { renderPersonalityDirectives } from '@framers/agentos';
const [honesty] = renderPersonalityDirectives({ honesty: 0.9, openness: 0.5 });
honesty.line; // 'Be straightforward and transparent. Avoid flattery, spin, or evasion. Acknowledge limitations directly.'
Throws
When options.register is given and is neither conversation nor writing.