Skip to main content

Function: normalizePersonaDefinition()

normalizePersonaDefinition(definition): IPersonaDefinition

Defined in: packages/agentos/src/cognition/substrate/personas/personaNormalization.ts:23

When sentimentTracking.enabled is true and presets names at least one preset, the preset metaprompts are merged into metaPrompts. Returns the input object untouched when nothing applies, and a new object (the input is never mutated) when it does.

Parameters​

definition​

IPersonaDefinition

Returns​

IPersonaDefinition